diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e5821bb84e..3c8bc2c656 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,9 +5,9 @@ name: Android CI with Gradle
on:
push:
- branches: [ master ]
+ branches: [ master, tanzania-ministry-of-health-nacp ]
pull_request:
- branches: [ master ]
+ branches: [ master, tanzania-ministry-of-health-nacp ]
jobs:
unit_tests:
@@ -20,12 +20,12 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- - name: Install NDK
- run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run unit tests with Gradle
run: ./gradlew :opensrp-chw-hf:clean :opensrp-chw-hf:jacocoTestReport --stacktrace
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
- name: Upload coverage to Coveralls with Gradle
run: ./gradlew coveralls --stacktrace
env:
diff --git a/.gitignore b/.gitignore
index 549d5ba5b6..aea5beaccd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,9 @@ project.properties
.settings
build/
jacoco.exec
+opensrp-chw-hf/nacp/
+caches
+daemon
+native
+wrapper
+github.properties
diff --git a/build.gradle b/build.gradle
index 9fb2da53fe..9cdd16e486 100644
--- a/build.gradle
+++ b/build.gradle
@@ -20,7 +20,7 @@ apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'jacoco'
jacoco {
- toolVersion = "0.8.0"
+ toolVersion = "0.7.9"
}
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index 7a3265ee94..7454180f2a 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 f156ae7e29..4e1cc9db6b 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,5 @@
-#Tue Aug 18 16:21:12 EAT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
diff --git a/gradlew b/gradlew
index cccdd3d517..1b6c787337 100755
--- a/gradlew
+++ b/gradlew
@@ -1,78 +1,129 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# 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
+#
+# https://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.
+#
##############################################################################
-##
-## Gradle start up script for UN*X
-##
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
##############################################################################
# Attempt to set APP_HOME
+
# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
-APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
APP_NAME="Gradle"
-APP_BASE_NAME=`basename "$0"`
+APP_BASE_NAME=${0##*/}
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS=""
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
+MAX_FD=maximum
warn () {
echo "$*"
-}
+} >&2
die () {
echo
echo "$*"
echo
exit 1
-}
+} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
-case "`uname`" in
- CYGWIN* )
- cygwin=true
- ;;
- Darwin* )
- darwin=true
- ;;
- MINGW* )
- msys=true
- ;;
- NONSTOP* )
- nonstop=true
- ;;
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACMD=$JAVA_HOME/jre/sh/java
else
- JAVACMD="$JAVA_HOME/bin/java"
+ JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
@@ -81,7 +132,7 @@ Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
- JAVACMD="java"
+ JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
@@ -89,84 +140,95 @@ location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
- MAX_FD_LIMIT=`ulimit -H -n`
- if [ $? -eq 0 ] ; then
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
- MAX_FD="$MAX_FD_LIMIT"
- fi
- ulimit -n $MAX_FD
- if [ $? -ne 0 ] ; then
- warn "Could not set maximum file descriptor limit: $MAX_FD"
- fi
- else
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
- fi
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
fi
-# For Darwin, add options to specify how the application appears in the dock
-if $darwin; then
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
-fi
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
-# For Cygwin, switch paths to Windows format before running java
-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`
- SEP=""
- for dir in $ROOTDIRSRAW ; do
- ROOTDIRS="$ROOTDIRS$SEP$dir"
- SEP="|"
- done
- OURCYGPATTERN="(^($ROOTDIRS))"
- # Add a user-defined pattern to the cygpath arguments
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
- fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
- i=0
- for arg in "$@" ; do
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
-
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
- else
- eval `echo args$i`="\"$arg\""
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
fi
- i=$((i+1))
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
done
- case $i in
- (0) set -- ;;
- (1) set -- "$args0" ;;
- (2) set -- "$args0" "$args1" ;;
- (3) set -- "$args0" "$args1" "$args2" ;;
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
- esac
fi
-# Escape application args
-save () {
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
- echo " "
-}
-APP_ARGS=$(save "$@")
-
-# Collect all arguments for the java command, following the shell quoting and substitution rules
-eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
-
-# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
-if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
- cd "$(dirname "$0")"
-fi
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
index e95643d6a2..ac1b06f938 100644
--- a/gradlew.bat
+++ b/gradlew.bat
@@ -1,3 +1,19 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@@ -13,15 +29,18 @@ if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
@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 DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@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
+if "%ERRORLEVEL%" == "0" goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -35,7 +54,7 @@ goto fail
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-if exist "%JAVA_EXE%" goto init
+if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -45,28 +64,14 @@ echo location of your Java installation.
goto fail
-:init
-@rem Get command-line arguments, handling Windows variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_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=%*
-
: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%
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
diff --git a/opensrp-chw-hf/build.gradle b/opensrp-chw-hf/build.gradle
index 96c3c8051f..c779bcc6dc 100644
--- a/opensrp-chw-hf/build.gradle
+++ b/opensrp-chw-hf/build.gradle
@@ -15,9 +15,43 @@ buildscript {
}
}
+def githubProperties = new Properties()
+if (rootProject.file("github.properties").exists()) {
+ githubProperties.load(new FileInputStream(rootProject.file("github.properties")))
+}
+allprojects {
+ repositories {
+ maven { url 'https://maven.google.com' }
+
+ maven {
+
+ name = "GitHubPackages"
+
+ url = uri("https://maven.pkg.github.com/Digital-Square-Tanzania/opensrp-client-chw-core")
+ credentials {
+ username = githubProperties['gpr.usr'] ?: System.getenv("GITHUB_ACTOR")
+ password = githubProperties['gpr.key'] ?: System.getenv("GITHUB_TOKEN")
+ }
+
+ }
+
+ maven {
+
+ name = "GitHubPackages"
+
+ url = uri("https://maven.pkg.github.com/Digital-Square-Tanzania/opensrp-client-chw-ld")
+ credentials {
+ username = githubProperties['gpr.usr'] ?: System.getenv("GITHUB_ACTOR")
+ password = githubProperties['gpr.key'] ?: System.getenv("GITHUB_TOKEN")
+ }
+ }
+
+ }
+}
+
android {
useLibrary 'org.apache.http.legacy'
- compileSdkVersion 28
+ compileSdkVersion 33
buildToolsVersion androidBuildToolsVersion
compileOptions {
@@ -27,15 +61,14 @@ android {
defaultConfig {
applicationId "org.smartregister.chw.hf"
- minSdkVersion 18
- targetSdkVersion 28
+ minSdkVersion 21
+ targetSdkVersion 33
versionCode 11
versionName "1.2.13"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
buildConfigField "String", 'opensrp_url', '"https://boresha-afya.smartregister.org/opensrp/"'
- buildConfigField "String", 'opensrp_url_debug', '"https://boresha-afya-stage.smartregister.org/opensrp/"'
- // buildConfigField "String", 'opensrp_url_debug', '"https://ba-unified-stage.smartregister.org/opensrp/"'
+ buildConfigField "String", 'opensrp_url_debug', '"http://50.116.15.4:8082/opensrp/"'
buildConfigField "boolean", 'SUPPORT_QR', 'true'
buildConfigField "int", "DATABASE_VERSION", '12'
buildConfigField "int", "DATA_SYNC_DURATION_MINUTES", '15'
@@ -50,6 +83,22 @@ android {
includeCompileClasspath = true
}
}
+
+ if (project.rootProject.file("local.properties").exists()) {
+ Properties properties = new Properties()
+ properties.load(project.rootProject.file("local.properties").newDataInputStream())
+ if (properties != null &&
+ properties.containsKey("mapbox.sdk.token")) {
+ buildConfigField "String", "MAPBOX_SDK_ACCESS_TOKEN", properties["mapbox.sdk.token"]
+ } else {
+ println("Mapbox key config variables is not set in your local.properties")
+ buildConfigField "String", "MAPBOX_SDK_ACCESS_TOKEN", "\"sample_key\""
+ }
+
+ } else {
+ println("local.properties does not exist")
+ buildConfigField "String", "MAPBOX_SDK_ACCESS_TOKEN", "\"sample_key\""
+ }
}
android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true
@@ -64,17 +113,20 @@ android {
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '100'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "boolean", "TIME_CHECK", "true"
- buildConfigField "int", "DATA_SYNC_DURATION_MINUTES", '15'
+ buildConfigField "int", "DATA_SYNC_DURATION_MINUTES", '30'
buildConfigField "int", "VACCINE_SYNC_PROCESSING_MINUTES", '30'
buildConfigField "int", "IMAGE_UPLOAD_MINUTES", '180'
buildConfigField "int", "PULL_UNIQUE_IDS_MINUTES", '180'
- buildConfigField "int", "REPORT_INDICATOR_GENERATION_MINUTES", '15'
+ buildConfigField "int", "REPORT_INDICATOR_GENERATION_MINUTES", '150'
buildConfigField "int", "HOME_VISIT_MINUTES", '60'
buildConfigField "int", "STOCK_USAGE_REPORT_MINUTES", '1440'
buildConfigField "boolean", 'SUPPORT_REPORT', 'false'
- buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS", '{"Ward" , "Council", "Facility", "MOH Jhpiego Facility Name", "Health Facility", "Village", "Village Sublocations"}'
- buildConfigField "String[]", "LOCATION_HIERACHY", '{"Country","Region","District","Ward" ,"Council", "Facility", "MOH Jhpiego Facility Name", "Health Facility", "Village", "Village Sublocations"}'
+ buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS", '{"Ward" , "Council", "Facility", "Village"}'
+ buildConfigField "String[]", "LOCATION_HIERACHY", '{"Country","Zone","Region","District","Council","Ward", "Facility","Village"}'
buildConfigField "String", 'DEFAULT_LOCATION', '"Facility"'
+ buildConfigField "boolean", "BUILD_FOR_BORESHA_AFYA_SOUTH", "true"
+ buildConfigField "boolean", "BUILD_FOR_PMTCT_CASE_BASED_MANAGEMENT", "true"
+ buildConfigField "boolean", "ENABLED_MALARIA_MODULE", "false"
buildConfigField "String[]", 'FACILITY_LEVEL', '{"MOH Jhpiego Facility Name", "Health Facility", "Facility"}'
}
@@ -83,17 +135,20 @@ android {
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '15'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "boolean", "TIME_CHECK", "false"
- buildConfigField "int", "DATA_SYNC_DURATION_MINUTES", '15'
+ buildConfigField "int", "DATA_SYNC_DURATION_MINUTES", '30'
buildConfigField "int", "VACCINE_SYNC_PROCESSING_MINUTES", '30'
buildConfigField "int", "IMAGE_UPLOAD_MINUTES", '15'
buildConfigField "int", "PULL_UNIQUE_IDS_MINUTES", '15'
- buildConfigField "int", "REPORT_INDICATOR_GENERATION_MINUTES", '15'
+ buildConfigField "int", "REPORT_INDICATOR_GENERATION_MINUTES", '150'
buildConfigField "int", "HOME_VISIT_MINUTES", '60'
buildConfigField "int", "STOCK_USAGE_REPORT_MINUTES", '1440'
buildConfigField "boolean", 'SUPPORT_REPORT', 'false'
- buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS", '{"Ward" , "Council", "Facility", "MOH Jhpiego Facility Name", "Health Facility", "Village", "Village Sublocations"}'
- buildConfigField "String[]", "LOCATION_HIERACHY", '{"Country","Region","District","Ward" ,"Council", "Facility", "MOH Jhpiego Facility Name", "Health Facility", "Village", "Village Sublocations"}'
+ buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS", '{"Ward" , "Council", "Facility", "Village"}'
+ buildConfigField "String[]", "LOCATION_HIERACHY", '{"Country","Zone","Region","District","Council","Ward", "Facility","Village"}'
buildConfigField "String", 'DEFAULT_LOCATION', '"Facility"'
+ buildConfigField "boolean", "BUILD_FOR_BORESHA_AFYA_SOUTH", "true"
+ buildConfigField "boolean", "BUILD_FOR_PMTCT_CASE_BASED_MANAGEMENT", "false"
+ buildConfigField "boolean", "ENABLED_MALARIA_MODULE", "true"
buildConfigField "String[]", 'FACILITY_LEVEL', '{"MOH Jhpiego Facility Name", "Health Facility", "Facility"}'
testCoverageEnabled true
}
@@ -138,16 +193,68 @@ android {
}
}
+ flavorDimensions 'baseDimension'
+ productFlavors {
+ nacp {
+ applicationId "org.smartregister.chw.moh.hf"
+ minSdkVersion 21
+ targetSdkVersion 31
+ versionCode 22
+ versionName "1.2.0"
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ multiDexEnabled true
+ buildConfigField "String", 'opensrp_url', '"https://ucs.moh.go.tz/opensrp/"'
+ buildConfigField "String", 'opensrp_url_debug', '"http://170.187.199.69:8082/opensrp/"'
+ buildConfigField "boolean", 'SUPPORT_QR', 'true'
+ buildConfigField "int", "DATABASE_VERSION", '24'
+ buildConfigField "int", "DATA_SYNC_DURATION_MINUTES", '15'
+ buildConfigField "long", "MAX_SERVER_TIME_DIFFERENCE", "1800000l"
+ buildConfigField "boolean", "TIME_CHECK", "false"
+ buildConfigField "String", "SYNC_TYPE", '"teamId"'
+ buildConfigField "int", "MAX_SYNC_RETRIES", '3'
+ buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
+ buildConfigField "boolean", "IS_SYNC_SETTINGS", "false"
+ javaCompileOptions {
+ annotationProcessorOptions {
+ includeCompileClasspath = true
+ }
+ }
+ }
+ }
+
lintOptions {
checkReleaseBuilds false
abortOnError false
}
+ dataBinding {
+ enabled = true
+ }
+
+ bundle {
+ language {
+ // Specifies that the app bundle should not support
+ // configuration APKs for language resources. These
+ // resources are instead packaged with each base and
+ // dynamic feature APK.
+ enableSplit = false
+ }
+ }
+
+}
+
+def flavors = android.productFlavors.collect { flavor -> flavor.name }
+if (!flavors) flavors.add('')
+
+def testDependencies = []
+flavors.each { productFlavorName ->
+ testDependencies.add("test${productFlavorName.capitalize()}DebugUnitTest")
+ testDependencies.add("create${productFlavorName.capitalize()}DebugCoverageReport")
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation('org.smartregister:opensrp-client-chw-core:1.5.27-SNAPSHOT@aar') {
+ implementation('org.smartregister:opensrp-client-chw-core:1.5.40.0-MOH-SNAPSHOT@aar') {
// implementation(project(":opensrp-chw-core")) {
transitive = true
exclude group: 'com.android.support', module: 'appcompat-v7'
@@ -155,24 +262,41 @@ dependencies {
exclude group: 'androidx.appcompat', module: 'appcompat'
exclude group: 'androidx.constraintlayout', module: 'constraintlayout'
exclude group: 'com.google.guava', module: 'guava'
- exclude group: 'com.rengwuxian.materialedittext', module: 'library'
+ exclude group: 'com.mcxiaoke.volley', module: 'library'
+ exclude group: 'org.smartregister', module: 'opensrp-client-materialedittext'
+ exclude group: 'org.smartregister', module: 'opensrp-client-chw-ld'
}
+
+ implementation('org.smartregister:opensrp-client-chw-ld:1.0.31-NACP-SNAPSHOT@aar') {
+ transitive = true
+ exclude group: 'org.smartregister', module: 'opensrp-client-core'
+ exclude group: 'org.smartregister', module: 'opensrp-client-native-form'
+ exclude group: 'org.smartregister', module: 'opensrp-client-configurable-views'
+ exclude group: 'com.android.support', module: 'appcompat-v7'
+ exclude group: 'id.zelory', module: 'compressor'
+ }
+
+
//Do not upgrade to 1.1.0 due to compatibility issues
+ implementation 'com.github.rey5137:material:1.2.5'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
//Do not upgrade to 1.1.0 due to compatibility issues
- implementation 'androidx.recyclerview:recyclerview:1.0.2'
- implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
+ implementation 'androidx.recyclerview:recyclerview:1.1.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'com.android.support:multidex:1.0.3'
//Do not upgrade to 24.jre-1 due to compatibility issues
implementation 'com.google.guava:guava:20.0'
+ implementation 'androidx.webkit:webkit:1.4.0'
+ implementation 'com.whiteelephant:monthandyearpicker:1.3.0'
+ testImplementation project(path: ':opensrp-chw-hf')
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'org.mockito:mockito-android:3.0.0'
- implementation 'com.github.lecho:hellocharts-android:v1.5.8'
+ implementation 'com.github.lecho:hellocharts-library:1.5.8@aar'
testImplementation 'junit:junit:4.13'
testImplementation 'org.mockito:mockito-core:3.1.0'
@@ -187,8 +311,7 @@ tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}
-task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) {
-
+task jacocoTestReport(type: JacocoReport, dependsOn: ['testNacpDebugUnitTest', 'createNacpDebugCoverageReport']) {
reports {
xml.enabled = true
html.enabled = true
@@ -204,7 +327,7 @@ task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'crea
sourceDirectories.setFrom(files([mainSrc]))
classDirectories.setFrom(files([debugTree]))
executionData.setFrom(fileTree(dir: project.buildDir, includes: [
- 'jacoco/testDebugUnitTest.exec', 'outputs/code-coverage/connected/*coverage.ec'
+ 'jacoco/testNacpDebugUnitTest.exec', 'outputs/code-coverage/connected/*coverage.ec'
]))
}
diff --git a/opensrp-chw-hf/src/main/AndroidManifest.xml b/opensrp-chw-hf/src/main/AndroidManifest.xml
index 40972a876e..145eb8e688 100644
--- a/opensrp-chw-hf/src/main/AndroidManifest.xml
+++ b/opensrp-chw-hf/src/main/AndroidManifest.xml
@@ -3,53 +3,231 @@
xmlns:tools="http://schemas.android.com/tools"
package="org.smartregister.chw.hf">
+
+
+
+
+
+
+
+
+
+
+
+
-
+ tools:replace="android:theme, android:icon">
+
+ android:windowSoftInputMode="stateAlwaysHidden|adjustResize"/>
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
@@ -125,8 +374,23 @@
+
+
+
+
-
-
@@ -163,15 +425,161 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
@@ -203,30 +599,46 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/anc-reporting-indicator-definitions.yml b/opensrp-chw-hf/src/main/assets/config/anc-reporting-indicator-definitions.yml
new file mode 100644
index 0000000000..4e4e08231d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/anc-reporting-indicator-definitions.yml
@@ -0,0 +1,4803 @@
+indicators:
+ - key: "2a-10-14"
+ grouping: "ANC"
+ description: "Gestation age less than 12 weeks for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) <= 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+ - key: "2b-10-14"
+ grouping: "ANC"
+ description: "Gestation age greater than or equals to 12 weeks for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) > 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+ - key: "2c-10-14"
+ grouping: "ANC"
+ description: "Followup visits for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.visit_number > 1 OR is_transfer_in IS NOT NULL)
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2d-10-14"
+ grouping: "ANC"
+ description: "Followup visits for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number >= 4
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2e-10-14"
+ grouping: "ANC"
+ description: "Clients Who Tested HB Levels on First Visit 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND eaf.hb_level IS NOT NULL
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4b-10-14"
+ grouping: "ANC"
+ description: "Pregnant Clients 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4d-10-14"
+ grouping: "ANC"
+ description: "Clients with HB Level less than 8.5 for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.hb_level AS FLOAT) < 8.5
+ AND eaf.visit_number = 1
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4e-10-14"
+ grouping: "ANC"
+ description: "Clients with BP greater than or equalts to 140/90 mm/hg for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.systolic AS INTEGER) > 140
+ AND CAST(eaf.diastolic AS INTEGER) > 90
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4g-10-14"
+ grouping: "ANC"
+ description: "Clients with glucose in urine for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.glucose_in_urine = 'positive'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4h-10-14"
+ grouping: "ANC"
+ description: "Clients with protein in urine for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.protein_in_urine = 'positive'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4i-10-14"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4j-10-14"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.syphilis = 'positive')
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4l-10-14"
+ grouping: "ANC"
+ description: "Partners tested syphilis for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "5a-10-14"
+ grouping: "ANC"
+ description: "Known on ART Clients for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND medical_surgical_history LIKE '%known_on_art%'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5c-10-14"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv <> 'test_not_conducted'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5d-10-14"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit and found positive for 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv = 'positive'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5e-10-14"
+ grouping: "ANC"
+ description: "Wajawazito waliokutwa na VVU (positive) kipimo cha kwanza walio chini ya umri wa miaka 25"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv = 'positive'
+ AND eaf.hiv_test_number = 1
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5g-10-14"
+ grouping: "ANC"
+ description: "Couple testing for clients who are 10 - 14 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.couple_testing = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+
+ - key: "2a-15-19"
+ grouping: "ANC"
+ description: "Gestation age less than 12 weeks for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) <= 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+ - key: "2b-15-19"
+ grouping: "ANC"
+ description: "Gestation age greater than or equals to 12 weeks for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) > 12
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+ - key: "2c-15-19"
+ grouping: "ANC"
+ description: "Followup visits for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.visit_number > 1 OR is_transfer_in IS NOT NULL)
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2d-15-19"
+ grouping: "ANC"
+ description: "Followup visits for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number >= 4
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2e-15-19"
+ grouping: "ANC"
+ description: "Clients Who Tested HB Levels on First Visit For 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND eaf.hb_level IS NOT NULL
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4a-15-19"
+ grouping: "ANC"
+ description: "Pregnant Clients with four or more pregnancies 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND (medical_surgical_history LIKE '%pregnant_more_than_four%' OR parity >= 4)
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4b-15-19"
+ grouping: "ANC"
+ description: "Pregnant Clients 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4d-15-19"
+ grouping: "ANC"
+ description: "Clients with HB Level less than 8.5 for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.hb_level AS FLOAT) < 8.5
+ AND eaf.visit_number = 1
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4e-15-19"
+ grouping: "ANC"
+ description: "Clients with BP greater than or equalts to 140/90 mm/hg for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.systolic AS INTEGER) > 140
+ AND CAST(eaf.diastolic AS INTEGER) > 90
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "4g-15-19"
+ grouping: "ANC"
+ description: "Clients with glucose in urine for 10 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.glucose_in_urine = 'positive'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "4h-15-19"
+ grouping: "ANC"
+ description: "Clients with protein in urine for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.protein_in_urine = 'positive'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4i-15-19"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4j-15-19"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.syphilis = 'positive')
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4l-15-19"
+ grouping: "ANC"
+ description: "Partners tested syphilis for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5a-15-19"
+ grouping: "ANC"
+ description: "Known on ART Clients for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND medical_surgical_history LIKE '%known_on_art%'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5c-15-19"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv <> 'test_not_conducted'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5d-15-19"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit and found positive for 15 - 19 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND eaf.hiv = 'positive'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5e-15-19"
+ grouping: "ANC"
+ description: "Wajawazito waliokutwa na VVU (positive) kipimo cha kwanza walio chini ya umri wa miaka 25"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv = 'positive'
+ AND eaf.hiv_test_number = 1
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2a-20-24"
+ grouping: "ANC"
+ description: "Gestation age less than 12 weeks for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) <= 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+ - key: "2b-20-24"
+ grouping: "ANC"
+ description: "Gestation age greater than or equals to 12 weeks for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) > 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+
+ - key: "2c-20-24"
+ grouping: "ANC"
+ description: "Followup visits for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.visit_number > 1 OR is_transfer_in IS NOT NULL)
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "2d-20-24"
+ grouping: "ANC"
+ description: "Followup visits for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number >= 4
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2e-20-24"
+ grouping: "ANC"
+ description: "Clients Who Tested HB Levels on First Visit for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND eaf.hb_level IS NOT NULL
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4a-20-24"
+ grouping: "ANC"
+ description: "Pregnant Clients with four or more pregnancies 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND (medical_surgical_history LIKE '%pregnant_more_than_four%' OR parity >= 4)
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4d-20-24"
+ grouping: "ANC"
+ description: "Clients with HB Level less than 8.5 for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.hb_level AS FLOAT) < 8.5
+ AND eaf.visit_number = 1
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4e-20-24"
+ grouping: "ANC"
+ description: "Clients with BP greater than or equalts to 140/90 mm/hg for 20 - 25 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.systolic AS INTEGER) > 140
+ AND CAST(eaf.diastolic AS INTEGER) > 90
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4g-20-24"
+ grouping: "ANC"
+ description: "Clients with glucose in urine for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.glucose_in_urine = 'positive'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "4h-20-24"
+ grouping: "ANC"
+ description: "Clients with protein in urine for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.protein_in_urine = 'positive'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4i-20-24"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4j-20-24"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.syphilis = 'positive')
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4l-20-24"
+ grouping: "ANC"
+ description: "Partners tested syphilis for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5a-20-24"
+ grouping: "ANC"
+ description: "Known on ART Clients for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND medical_surgical_history LIKE '%known_on_art%'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5c-20-24"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv <> 'test_not_conducted'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5d-20-24"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit and found positive for 20 - 24 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv = 'positive'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5e-20-24"
+ grouping: "ANC"
+ description: "Wajawazito waliokutwa na VVU (positive) kipimo cha kwanza walio chini ya umri wa miaka 25"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv = 'positive'
+ AND eaf.hiv_test_number = 1
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2a-25-29"
+ grouping: "ANC"
+ description: "Gestation age less than 12 weeks for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) <= 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+ - key: "2b-25-29"
+ grouping: "ANC"
+ description: "Gestation age greater than or equals to 12 weeks for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) > 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+29 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+
+ - key: "2c-25-29"
+ grouping: "ANC"
+ description: "Followup visits for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.visit_number > 1 OR is_transfer_in IS NOT NULL)
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "2d-25-29"
+ grouping: "ANC"
+ description: "Followup visits for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number >= 4
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "2e-25-29"
+ grouping: "ANC"
+ description: "Clients Who Tested HB Levels on First Visit for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND eaf.hb_level IS NOT NULL
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4a-25-29"
+ grouping: "ANC"
+ description: "Pregnant Clients with four or more pregnancies 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND (medical_surgical_history LIKE '%pregnant_more_than_four%' OR parity >= 4)
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4d-25-29"
+ grouping: "ANC"
+ description: "Clients with HB Level less than 8.5 for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.hb_level AS FLOAT) < 8.5
+ AND eaf.visit_number = 1
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4e-25-29"
+ grouping: "ANC"
+ description: "Clients with BP greater than or equalts to 140/90 mm/hg for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.systolic AS INTEGER) > 140
+ AND CAST(eaf.diastolic AS INTEGER) > 90
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4g-25-29"
+ grouping: "ANC"
+ description: "Clients with glucose in urine for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.glucose_in_urine = 'positive'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "4h-25-29"
+ grouping: "ANC"
+ description: "Clients with protein in urine for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.protein_in_urine = 'positive'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4i-25-29"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4j-25-29"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.syphilis = 'positive')
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4l-25-29"
+ grouping: "ANC"
+ description: "Partners tested syphilis for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5a-25-29"
+ grouping: "ANC"
+ description: "Known on ART Clients for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND medical_surgical_history LIKE '%known_on_art%'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5c-25-29"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv <> 'test_not_conducted'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5d-25-29"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit and found positive for 25 - 29 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv = 'positive'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2a-30-34"
+ grouping: "ANC"
+ description: "Gestation age less than 12 weeks for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) <= 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+ - key: "2b-30-34"
+ grouping: "ANC"
+ description: "Gestation age greater than or equals to 12 weeks for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) > 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+ - key: "2c-30-34"
+ grouping: "ANC"
+ description: "Followup visits for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.visit_number > 1 OR is_transfer_in IS NOT NULL)
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2d-30-34"
+ grouping: "ANC"
+ description: "Followup visits for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number >= 4
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2e-30-34"
+ grouping: "ANC"
+ description: "Clients Who Tested HB Levels on First Visit for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND eaf.hb_level IS NOT NULL
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4a-30-34"
+ grouping: "ANC"
+ description: "Pregnant Clients with four or more pregnancies 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND (medical_surgical_history LIKE '%pregnant_more_than_four%' OR parity >= 4)
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4d-30-34"
+ grouping: "ANC"
+ description: "Clients with HB Level less than 8.5 for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.hb_level AS FLOAT) < 8.5
+ AND eaf.visit_number = 1
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4e-30-34"
+ grouping: "ANC"
+ description: "Clients with BP greater than or equalts to 140/90 mm/hg for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.systolic AS INTEGER) > 140
+ AND CAST(eaf.diastolic AS INTEGER) > 90
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4g-30-34"
+ grouping: "ANC"
+ description: "Clients with glucose in urine for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.glucose_in_urine = 'positive'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "4h-30-34"
+ grouping: "ANC"
+ description: "Clients with protein in urine for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.protein_in_urine = 'positive'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4i-30-34"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4j-30-34"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.syphilis = 'positive')
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4l-30-34"
+ grouping: "ANC"
+ description: "Partners tested syphilis for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5a-30-34"
+ grouping: "ANC"
+ description: "Known on ART Clients for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND medical_surgical_history LIKE '%known_on_art%'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5c-30-34"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv <> 'test_not_conducted'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5d-30-34"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit and found positive for 30 - 34 year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv = 'positive'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2a-35+"
+ grouping: "ANC"
+ description: "Gestation age less than 12 weeks for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) <= 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+
+ - key: "2b-35+"
+ grouping: "ANC"
+ description: "Gestation age greater than or equals to 12 weeks for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.gest_age as INT) > 12 AND eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' || '01')"
+
+ - key: "2c-35+"
+ grouping: "ANC"
+ description: "Followup visits for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.visit_number > 1 OR is_transfer_in IS NOT NULL)
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2d-35+"
+ grouping: "ANC"
+ description: "Followup visits for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number >= 4
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "2e-35+"
+ grouping: "ANC"
+ description: "Clients Who Tested HB Levels on First Visit for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND is_transfer_in IS NULL
+ AND eaf.hb_level IS NOT NULL
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4a-35+"
+ grouping: "ANC"
+ description: "Pregnant Clients with four or more pregnancies 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND (medical_surgical_history LIKE '%pregnant_more_than_four%' OR parity >= 4)
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4c-35+"
+ grouping: "ANC"
+ description: "Pregnant Clients 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND (medical_surgical_history LIKE '%first_pregnancy_at_or_above_thirty_five%' or gravida = '1')
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4d-35+"
+ grouping: "ANC"
+ description: "Clients with HB Level less than 8.5 for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.hb_level AS FLOAT) < 8.5
+ AND eaf.visit_number = 1
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4e-35+"
+ grouping: "ANC"
+ description: "Clients with BP greater than or equalts to 140/90 mm/hg for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE CAST(eaf.systolic AS INTEGER) > 140
+ AND CAST(eaf.diastolic AS INTEGER) > 90
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4g-35+"
+ grouping: "ANC"
+ description: "Clients with glucose in urine for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.glucose_in_urine = 'positive'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "4h-35+"
+ grouping: "ANC"
+ description: "Clients with protein in urine for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.protein_in_urine = 'positive'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4i-35+"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4j-35+"
+ grouping: "ANC"
+ description: "Clients tested syphilis for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.syphilis = 'positive')
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4l-35+"
+ grouping: "ANC"
+ description: "Partners tested syphilis for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis <> 'test_not_conducted'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "5a-35+"
+ grouping: "ANC"
+ description: "Known on ART Clients for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.visit_number = 1
+ AND medical_surgical_history LIKE '%known_on_art%'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5c-35+"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv <> 'test_not_conducted'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5d-35+"
+ grouping: "ANC"
+ description: "Clients Tested for HIV on first visit and found positive for 35+ year olds"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv = 'positive'
+ AND medical_surgical_history NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "3-10-14"
+ grouping: "ANC"
+ description: "Wajawazito waliopata Chanjo ya TT2+"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (ear.tt_vaccination_type LIKE '%tt2%' OR ear.tt_vaccination_type LIKE '%tt3%' OR ear.tt_vaccination_type LIKE '%tt4%' OR ear.tt_vaccination_type LIKE '%tt5%')
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "3-15-19"
+ grouping: "ANC"
+ description: "Wajawazito waliopata Chanjo ya TT2+"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (ear.tt_vaccination_type LIKE '%tt2%' OR ear.tt_vaccination_type LIKE '%tt3%' OR ear.tt_vaccination_type LIKE '%tt4%' OR ear.tt_vaccination_type LIKE '%tt5%')
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "3-20-24"
+ grouping: "ANC"
+ description: "Wajawazito waliopata Chanjo ya TT2+"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (ear.tt_vaccination_type LIKE '%tt2%' OR ear.tt_vaccination_type LIKE '%tt3%' OR ear.tt_vaccination_type LIKE '%tt4%' OR ear.tt_vaccination_type LIKE '%tt5%')
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "3-25-29"
+ grouping: "ANC"
+ description: "Wajawazito waliopata Chanjo ya TT2+"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (ear.tt_vaccination_type LIKE '%tt2%' OR ear.tt_vaccination_type LIKE '%tt3%' OR ear.tt_vaccination_type LIKE '%tt4%' OR ear.tt_vaccination_type LIKE '%tt5%')
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "3-30-34"
+ grouping: "ANC"
+ description: "Wajawazito waliopata Chanjo ya TT2+"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (ear.tt_vaccination_type LIKE '%tt2%' OR ear.tt_vaccination_type LIKE '%tt3%' OR ear.tt_vaccination_type LIKE '%tt4%' OR ear.tt_vaccination_type LIKE '%tt5%')
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "3-35+"
+ grouping: "ANC"
+ description: "Wajawazito waliopata Chanjo ya TT2+"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (ear.tt_vaccination_type LIKE '%tt2%' OR ear.tt_vaccination_type LIKE '%tt3%' OR ear.tt_vaccination_type LIKE '%tt4%' OR ear.tt_vaccination_type LIKE '%tt5%')
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4f-10-14"
+ grouping: "ANC"
+ description: "Kifua Kikuu"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.tb_status = 'positive'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4f-15-19"
+ grouping: "ANC"
+ description: "Kifua Kikuu"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.tb_status = 'positive'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4f-20-24"
+ grouping: "ANC"
+ description: "Kifua Kikuu"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.tb_status = 'positive'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4f-25-29"
+ grouping: "ANC"
+ description: "Kifua Kikuu"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.tb_status = 'positive'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4f-30-34"
+ grouping: "ANC"
+ description: "Kifua Kikuu"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.tb_status = 'positive'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4f-35+"
+ grouping: "ANC"
+ description: "Kifua Kikuu"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.tb_status = 'positive'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4k-10-14"
+ grouping: "ANC"
+ description: "Waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4k-15-19"
+ grouping: "ANC"
+ description: "Waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4k-20-24"
+ grouping: "ANC"
+ description: "Waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4k-25-29"
+ grouping: "ANC"
+ description: "Waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4k-30-34"
+ grouping: "ANC"
+ description: "Waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "4k-35+"
+ grouping: "ANC"
+ description: "Waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4m-10-14"
+ grouping: "ANC"
+ description: "Wenza/Waume Waliogundulika na maambukizi ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis = 'positive'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4m-15-19"
+ grouping: "ANC"
+ description: "Wenza/Waume Waliogundulika na maambukizi ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis = 'positive'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4m-20-24"
+ grouping: "ANC"
+ description: "Wenza/Waume Waliogundulika na maambukizi ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis = 'positive'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4m-25-29"
+ grouping: "ANC"
+ description: "Wenza/Waume Waliogundulika na maambukizi ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis = 'positive'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4m-30-34"
+ grouping: "ANC"
+ description: "Wenza/Waume Waliogundulika na maambukizi ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis = 'positive'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4m-35+"
+ grouping: "ANC"
+ description: "Wenza/Waume Waliogundulika na maambukizi ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis = 'positive'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4n-10-14"
+ grouping: "ANC"
+ description: "Wenza/waume waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4n-15-19"
+ grouping: "ANC"
+ description: "Wenza/waume waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4n-20-24"
+ grouping: "ANC"
+ description: "Wenza/waume waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4n-25-29"
+ grouping: "ANC"
+ description: "Wenza/waume waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4n-30-34"
+ grouping: "ANC"
+ description: "Wenza/waume waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4n-35+"
+ grouping: "ANC"
+ description: "Wenza/waume waliopata matibabu ya Kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_syphilis_treatment = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4o-10-14"
+ grouping: "ANC"
+ description: "Wajawazito Waliopatikana na magonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4o-15-19"
+ grouping: "ANC"
+ description: "Wajawazito Waliopatikana na magonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4o-20-24"
+ grouping: "ANC"
+ description: "Wajawazito Waliopatikana na magonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4o-25-29"
+ grouping: "ANC"
+ description: "Wajawazito Waliopatikana na magonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4o-30-34"
+ grouping: "ANC"
+ description: "Wajawazito Waliopatikana na magonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4o-35+"
+ grouping: "ANC"
+ description: "Wajawazito Waliopatikana na magonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4q-10-14"
+ grouping: "ANC"
+ description: "Wenza/Waume waliopatikana na mgonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4q-15-19"
+ grouping: "ANC"
+ description: "Wenza/Waume waliopatikana na mgonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4q-20-24"
+ grouping: "ANC"
+ description: "Wenza/Waume waliopatikana na mgonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4q-25-29"
+ grouping: "ANC"
+ description: "Wenza/Waume waliopatikana na mgonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4q-30-34"
+ grouping: "ANC"
+ description: "Wenza/Waume waliopatikana na mgonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4q-35+"
+ grouping: "ANC"
+ description: "Wenza/Waume waliopatikana na mgonjwa ya maambukizo ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4p-10-14"
+ grouping: "ANC"
+ description: "Wajawazito Waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4p-15-19"
+ grouping: "ANC"
+ description: "Wajawazito Waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4p-20-24"
+ grouping: "ANC"
+ description: "Wajawazito Waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4p-25-29"
+ grouping: "ANC"
+ description: "Wajawazito Waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4p-30-34"
+ grouping: "ANC"
+ description: "Wajawazito Waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4p-35+"
+ grouping: "ANC"
+ description: "Wajawazito Waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4r-10-14"
+ grouping: "ANC"
+ description: "Wenzi/Waume waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4r-15-19"
+ grouping: "ANC"
+ description: "Wenzi/Waume waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4r-20-24"
+ grouping: "ANC"
+ description: "Wenzi/Waume waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4r-25-29"
+ grouping: "ANC"
+ description: "Wenzi/Waume waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4r-30-34"
+ grouping: "ANC"
+ description: "Wenzi/Waume waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "4r-35+"
+ grouping: "ANC"
+ description: "Wenzi/Waume waliopata tiba sahihi ya magonjwa ya ngono yasiyo kaswende"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_other_stds_treatment = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5b-10-14"
+ grouping: "ANC"
+ description: "Wajawazito wote Waliopata Ushauri nasaha kabla ya Kupima VVU kliniki"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_before_testing = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5b-15-19"
+ grouping: "ANC"
+ description: "Wajawazito wote Waliopata Ushauri nasaha kabla ya Kupima VVU kliniki"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_before_testing = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5b-20-24"
+ grouping: "ANC"
+ description: "Wajawazito wote Waliopata Ushauri nasaha kabla ya Kupima VVU kliniki"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_before_testing = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5b-25-29"
+ grouping: "ANC"
+ description: "Wajawazito wote Waliopata Ushauri nasaha kabla ya Kupima VVU kliniki"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_before_testing = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5b-30-34"
+ grouping: "ANC"
+ description: "Wajawazito wote Waliopata Ushauri nasaha kabla ya Kupima VVU kliniki"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_before_testing = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5b-35+"
+ grouping: "ANC"
+ description: "Wajawazito wote Waliopata Ushauri nasaha kabla ya Kupima VVU kliniki"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_before_testing = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5f-10-14"
+ grouping: "ANC"
+ description: "Wajawazito waliopata ushauri 0 baada ya kupima"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_after_testing = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5f-15-19"
+ grouping: "ANC"
+ description: "Wajawazito waliopata ushauri 0 baada ya kupima"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_after_testing = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5f-20-24"
+ grouping: "ANC"
+ description: "Wajawazito waliopata ushauri 0 baada ya kupima"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_after_testing = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5f-25-29"
+ grouping: "ANC"
+ description: "Wajawazito waliopata ushauri 0 baada ya kupima"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_after_testing = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5f-30-34"
+ grouping: "ANC"
+ description: "Wajawazito waliopata ushauri 0 baada ya kupima"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_after_testing = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5f-35+"
+ grouping: "ANC"
+ description: "Wajawazito waliopata ushauri 0 baada ya kupima"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_counselling_after_testing = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5g-10-14"
+ grouping: "ANC"
+ description: "Wajawazito waliopimwa VVU na wenza wao (Couple) kwa pamoja katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.couple_testing = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5g-15-19"
+ grouping: "ANC"
+ description: "Wajawazito waliopimwa VVU na wenza wao (Couple) kwa pamoja katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.couple_testing = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5g-20-24"
+ grouping: "ANC"
+ description: "Wajawazito waliopimwa VVU na wenza wao (Couple) kwa pamoja katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.couple_testing = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5g-25-29"
+ grouping: "ANC"
+ description: "Wajawazito waliopimwa VVU na wenza wao (Couple) kwa pamoja katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.couple_testing = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5g-30-34"
+ grouping: "ANC"
+ description: "Wajawazito waliopimwa VVU na wenza wao (Couple) kwa pamoja katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.couple_testing = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ - key: "5g-35+"
+ grouping: "ANC"
+ description: "Wajawazito waliopimwa VVU na wenza wao (Couple) kwa pamoja katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.couple_testing = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5h-10-14"
+ grouping: "ANC"
+ description: "Wajawazito waliopima VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5h-15-19"
+ grouping: "ANC"
+ description: "Wajawazito waliopima VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5h-20-24"
+ grouping: "ANC"
+ description: "Wajawazito waliopima VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5h-25-29"
+ grouping: "ANC"
+ description: "Wajawazito waliopima VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5h-30-34"
+ grouping: "ANC"
+ description: "Wajawazito waliopima VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5h-35+"
+ grouping: "ANC"
+ description: "Wajawazito waliopima VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5i-10-14"
+ grouping: "ANC"
+ description: "Wajawazito waliokutwa na maambukizi ya VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv = 'positive'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5i-15-19"
+ grouping: "ANC"
+ description: "Wajawazito waliokutwa na maambukizi ya VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv = 'positive'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5i-20-24"
+ grouping: "ANC"
+ description: "Wajawazito waliokutwa na maambukizi ya VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv = 'positive'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5i-25-29"
+ grouping: "ANC"
+ description: "Wajawazito waliokutwa na maambukizi ya VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv = 'positive'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5i-30-34"
+ grouping: "ANC"
+ description: "Wajawazito waliokutwa na maambukizi ya VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv = 'positive'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5i-35+"
+ grouping: "ANC"
+ description: "Wajawazito waliokutwa na maambukizi ya VVU kipimo cha pili"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv_test_at_32 = 'true'
+ AND eaf.hiv = 'positive'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5j-10-14"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha kwanza Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5j-15-19"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha kwanza Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5j-20-24"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha kwanza Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5j-25-29"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha kwanza Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5j-30-34"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha kwanza Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5j-35+"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha kwanza Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5k-10-14"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha kwanza katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5k-15-19"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha kwanza katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5k-20-24"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha kwanza katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5k-25-29"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha kwanza katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5k-30-34"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha kwanza katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5k-35+"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha kwanza katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_number = 1
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5l-10-14"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha 0 pili Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5l-15-19"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha 0 pili Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5l-20-24"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha 0 pili Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5l-25-29"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha 0 pili Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5l-30-34"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha 0 pili Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5l-35+"
+ grouping: "ANC"
+ description: "Wenza waliopima VVU kipimo cha 0 pili Kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5m-10-14"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha pili katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5m-15-19"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha pili katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5m-20-24"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha pili katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5m-25-29"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha pili katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5m-30-34"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha pili katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5m-35+"
+ grouping: "ANC"
+ description: "Wenza waliogundulika kuwa na maambukizi ya VVU kipimo cha pili katika kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.partner_hiv_test_at_32 = 'true'
+ AND eaf.partner_hiv = 'positive'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5n-10-14"
+ grouping: "ANC"
+ description: "Wajawazito na wenza waliopata majibu tofauti(discordant) baada ya kupima VVU kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN (SELECT visit_date, hiv, entity_id FROM ec_anc_followup where hiv IS NOT NULL AND hiv <> 'test_not_conducted') eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv IS NOT NULL AND ear.hiv <> ear.partner_hiv
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5n-15-19"
+ grouping: "ANC"
+ description: "Wajawazito na wenza waliopata majibu tofauti(discordant) baada ya kupima VVU kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN (SELECT visit_date, hiv, entity_id FROM ec_anc_followup where hiv IS NOT NULL AND hiv <> 'test_not_conducted') eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv IS NOT NULL AND ear.hiv <> ear.partner_hiv
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5n-20-24"
+ grouping: "ANC"
+ description: "Wajawazito na wenza waliopata majibu tofauti(discordant) baada ya kupima VVU kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN (SELECT visit_date, hiv, entity_id FROM ec_anc_followup where hiv IS NOT NULL AND hiv <> 'test_not_conducted') eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv IS NOT NULL AND ear.hiv <> ear.partner_hiv
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5n-25-29"
+ grouping: "ANC"
+ description: "Wajawazito na wenza waliopata majibu tofauti(discordant) baada ya kupima VVU kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN (SELECT visit_date, hiv, entity_id FROM ec_anc_followup where hiv IS NOT NULL AND hiv <> 'test_not_conducted') eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv IS NOT NULL AND ear.hiv <> ear.partner_hiv
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5n-30-34"
+ grouping: "ANC"
+ description: "Wajawazito na wenza waliopata majibu tofauti(discordant) baada ya kupima VVU kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN (SELECT visit_date, hiv, entity_id FROM ec_anc_followup where hiv IS NOT NULL AND hiv <> 'test_not_conducted') eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv IS NOT NULL AND ear.hiv <> ear.partner_hiv
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5n-35+"
+ grouping: "ANC"
+ description: "Wajawazito na wenza waliopata majibu tofauti(discordant) baada ya kupima VVU kliniki ya wajawazito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN (SELECT visit_date, hiv, entity_id FROM ec_anc_followup where hiv IS NOT NULL AND hiv <> 'test_not_conducted') eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.hiv IS NOT NULL AND ear.hiv <> ear.partner_hiv
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5o-10-14"
+ grouping: "ANC"
+ description: "Waliopata ushauri juu ya ulishaji wa mtoto"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_child_feeding%'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5o-15-19"
+ grouping: "ANC"
+ description: "Waliopata ushauri juu ya ulishaji wa mtoto"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_child_feeding%'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5o-20-24"
+ grouping: "ANC"
+ description: "Waliopata ushauri juu ya ulishaji wa mtoto"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_child_feeding%'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5o-25-29"
+ grouping: "ANC"
+ description: "Waliopata ushauri juu ya ulishaji wa mtoto"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_child_feeding%'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5o-30-34"
+ grouping: "ANC"
+ description: "Waliopata ushauri juu ya ulishaji wa mtoto"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_child_feeding%'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5o-35+"
+ grouping: "ANC"
+ description: "Waliopata ushauri juu ya ulishaji wa mtoto"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_child_feeding%'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5p-10-14"
+ grouping: "ANC"
+ description: "Wajawazito waliopima VVU kipimo cha kwanza walio chini ya umri wa miaka 25"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5p-15-19"
+ grouping: "ANC"
+ description: "Wajawazito waliopima VVU kipimo cha kwanza walio chini ya umri wa miaka 25"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "5p-20-24"
+ grouping: "ANC"
+ description: "Wajawazito waliopima VVU kipimo cha kwanza walio chini ya umri wa miaka 25"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_anc_followup eaf on ear.base_entity_id = eaf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ WHERE eaf.hiv_test_number = 1
+ AND eaf.hiv <> 'test_not_conducted'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6a-10-14"
+ grouping: "ANC"
+ description: "Waliopewa LLIN"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.llin_provision = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "6a-15-19"
+ grouping: "ANC"
+ description: "Waliopewa LLIN"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.llin_provision = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6a-20-24"
+ grouping: "ANC"
+ description: "Waliopewa LLIN"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.llin_provision = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6a-25-29"
+ grouping: "ANC"
+ description: "Waliopewa LLIN"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.llin_provision = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6a-30-34"
+ grouping: "ANC"
+ description: "Waliopewa LLIN"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.llin_provision = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6a-35+"
+ grouping: "ANC"
+ description: "Waliopewa LLIN"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.llin_provision = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6b-10-14"
+ grouping: "ANC"
+ description: "Waliopimwa Malaria kutumia mRDT/BS"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria <> 'test_not_conducted'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6b-15-19"
+ grouping: "ANC"
+ description: "Waliopimwa Malaria kutumia mRDT/BS"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria <> 'test_not_conducted'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6b-20-24"
+ grouping: "ANC"
+ description: "Waliopimwa Malaria kutumia mRDT/BS"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria <> 'test_not_conducted'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6b-25-29"
+ grouping: "ANC"
+ description: "Waliopimwa Malaria kutumia mRDT/BS"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria <> 'test_not_conducted'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6b-30-34"
+ grouping: "ANC"
+ description: "Waliopimwa Malaria kutumia mRDT/BS"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria <> 'test_not_conducted'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6b-35+"
+ grouping: "ANC"
+ description: "Waliopimwa Malaria kutumia mRDT/BS"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria <> 'test_not_conducted'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6c-10-14"
+ grouping: "ANC"
+ description: "Waliogundulika Malaria positive"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria = 'positive'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6c-15-19"
+ grouping: "ANC"
+ description: "Waliogundulika Malaria positive"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria = 'positive'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6c-20-24"
+ grouping: "ANC"
+ description: "Waliogundulika Malaria positive"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria = 'positive'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6c-25-29"
+ grouping: "ANC"
+ description: "Waliogundulika Malaria positive"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria = 'positive'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6c-30-34"
+ grouping: "ANC"
+ description: "Waliogundulika Malaria positive"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria = 'positive'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6c-35+"
+ grouping: "ANC"
+ description: "Waliogundulika Malaria positive"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.mRDT_for_malaria = 'positive'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6d-10-14"
+ grouping: "ANC"
+ description: "Waliopewa IPT2"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt2'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6d-15-19"
+ grouping: "ANC"
+ description: "Waliopewa IPT2"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt2'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6d-20-24"
+ grouping: "ANC"
+ description: "Waliopewa IPT2"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt2'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6d-25-29"
+ grouping: "ANC"
+ description: "Waliopewa IPT2"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt2'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6d-30-34"
+ grouping: "ANC"
+ description: "Waliopewa IPT2"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt2'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6d-35+"
+ grouping: "ANC"
+ description: "Waliopewa IPT2"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt2'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6e-10-14"
+ grouping: "ANC"
+ description: "Waliopewa IPT3"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt3'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6e-15-19"
+ grouping: "ANC"
+ description: "Waliopewa IPT3"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt3'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6e-20-24"
+ grouping: "ANC"
+ description: "Waliopewa IPT3"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt3'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6e-25-29"
+ grouping: "ANC"
+ description: "Waliopewa IPT3"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt3'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6e-30-34"
+ grouping: "ANC"
+ description: "Waliopewa IPT3"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt3'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6e-35+"
+ grouping: "ANC"
+ description: "Waliopewa IPT3"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt3'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "6f-10-14"
+ grouping: "ANC"
+ description: "Waliopewa IPT4"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt4'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6f-15-19"
+ grouping: "ANC"
+ description: "Waliopewa IPT4"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt4'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6f-20-24"
+ grouping: "ANC"
+ description: "Waliopewa IPT4"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt4'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6f-25-29"
+ grouping: "ANC"
+ description: "Waliopewa IPT4"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt4'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6f-30-34"
+ grouping: "ANC"
+ description: "Waliopewa IPT4"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt4'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "6f-35+"
+ grouping: "ANC"
+ description: "Waliopewa IPT4"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.malaria_preventive_therapy = 'ipt4'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "7-10-14"
+ grouping: "ANC"
+ description: "Waliopewa Iron/Folic Acid (I,F,IFA) vidonge vya kutosha mpaka hudhurio linalofuata"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.iron_folate_supplements LIKE '%FeFo%' OR eaf.iron_folate_supplements LIKE '%folic%')
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "7-15-19"
+ grouping: "ANC"
+ description: "Waliopewa Iron/Folic Acid (I,F,IFA) vidonge vya kutosha mpaka hudhurio linalofuata"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.iron_folate_supplements LIKE '%FeFo%' OR eaf.iron_folate_supplements LIKE '%folic%')
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "7-20-24"
+ grouping: "ANC"
+ description: "Waliopewa Iron/Folic Acid (I,F,IFA) vidonge vya kutosha mpaka hudhurio linalofuata"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.iron_folate_supplements LIKE '%FeFo%' OR eaf.iron_folate_supplements LIKE '%folic%')
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "7-25-29"
+ grouping: "ANC"
+ description: "Waliopewa Iron/Folic Acid (I,F,IFA) vidonge vya kutosha mpaka hudhurio linalofuata"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.iron_folate_supplements LIKE '%FeFo%' OR eaf.iron_folate_supplements LIKE '%folic%')
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "7-30-34"
+ grouping: "ANC"
+ description: "Waliopewa Iron/Folic Acid (I,F,IFA) vidonge vya kutosha mpaka hudhurio linalofuata"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.iron_folate_supplements LIKE '%FeFo%' OR eaf.iron_folate_supplements LIKE '%folic%')
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "7-35+"
+ grouping: "ANC"
+ description: "Waliopewa Iron/Folic Acid (I,F,IFA) vidonge vya kutosha mpaka hudhurio linalofuata"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE (eaf.iron_folate_supplements LIKE '%FeFo%' OR eaf.iron_folate_supplements LIKE '%folic%')
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "8-10-14"
+ grouping: "ANC"
+ description: "Waliopewa Dawa za minyoo(Mebendazole/Albendazole)"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.deworming <> 'medication_not_given'
+ AND eaf.deworming IS NOT NULL
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "8-15-19"
+ grouping: "ANC"
+ description: "Waliopewa Dawa za minyoo(Mebendazole/Albendazole)"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.deworming <> 'medication_not_given'
+ AND eaf.deworming IS NOT NULL
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "8-20-24"
+ grouping: "ANC"
+ description: "Waliopewa Dawa za minyoo(Mebendazole/Albendazole)"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.deworming <> 'medication_not_given'
+ AND eaf.deworming IS NOT NULL
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "8-25-29"
+ grouping: "ANC"
+ description: "Waliopewa Dawa za minyoo(Mebendazole/Albendazole)"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.deworming <> 'medication_not_given'
+ AND eaf.deworming IS NOT NULL
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "8-30-34"
+ grouping: "ANC"
+ description: "Waliopewa Dawa za minyoo(Mebendazole/Albendazole)"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.deworming <> 'medication_not_given'
+ AND eaf.deworming IS NOT NULL
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "8-35+"
+ grouping: "ANC"
+ description: "Waliopewa Dawa za minyoo(Mebendazole/Albendazole)"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.deworming <> 'medication_not_given'
+ AND eaf.deworming IS NOT NULL
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "9-10-14"
+ grouping: "ANC"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_condom_use%'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "9-15-19"
+ grouping: "ANC"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_condom_use%'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "9-20-24"
+ grouping: "ANC"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_condom_use%'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "9-25-29"
+ grouping: "ANC"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_condom_use%'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "9-30-34"
+ grouping: "ANC"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_condom_use%'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "9-35+"
+ grouping: "ANC"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ WHERE eaf.given_counselling LIKE '%chk_condom_use%'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "10-10-14"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa wakati wa ujauzito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN task t on fm.base_entity_id = t.for
+ WHERE date(substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 9, 2)) >
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' ||
+ substr(ear.confirmation_date, 1, 2))
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "10-15-19"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa wakati wa ujauzito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN task t on fm.base_entity_id = t.for
+ WHERE date(substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 9, 2)) >
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' ||
+ substr(ear.confirmation_date, 1, 2))
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "10-20-24"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa wakati wa ujauzito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN task t on fm.base_entity_id = t.for
+ WHERE date(substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 9, 2)) >
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' ||
+ substr(ear.confirmation_date, 1, 2))
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "10-25-29"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa wakati wa ujauzito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN task t on fm.base_entity_id = t.for
+ WHERE date(substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 9, 2)) >
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' ||
+ substr(ear.confirmation_date, 1, 2))
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "10-30-34"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa wakati wa ujauzito"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN task t on fm.base_entity_id = t.for
+ WHERE date(substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 9, 2)) >
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' ||
+ substr(ear.confirmation_date, 1, 2))
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "10-35+"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa wakati wa ujauzito"
+
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN task t on fm.base_entity_id = t.for
+ WHERE date(substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.server_version / 1000, 'unixepoch', 'localtime')), 9, 2)) >
+ date(substr(ear.confirmation_date, 7, 4) || '-' || substr(ear.confirmation_date, 4, 2) || '-' ||
+ substr(ear.confirmation_date, 1, 2))
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "11-10-14"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa kwenda CTC"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN ec_pmtct_registration epr on fm.base_entity_id = epr.base_entity_id
+ WHERE epr.ctc_number IS NOT NULL
+ AND ear.known_on_art NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "11-15-19"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa kwenda CTC"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN ec_pmtct_registration epr on fm.base_entity_id = epr.base_entity_id
+ WHERE epr.ctc_number IS NOT NULL
+ AND ear.known_on_art NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "11-20-24"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa kwenda CTC"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN ec_pmtct_registration epr on fm.base_entity_id = epr.base_entity_id
+ WHERE epr.ctc_number IS NOT NULL
+ AND ear.known_on_art NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "11-25-29"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa kwenda CTC"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN ec_pmtct_registration epr on fm.base_entity_id = epr.base_entity_id
+ WHERE epr.ctc_number IS NOT NULL
+ AND ear.known_on_art NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "11-30-34"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa kwenda CTC"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN ec_pmtct_registration epr on fm.base_entity_id = epr.base_entity_id
+ WHERE epr.ctc_number IS NOT NULL
+ AND ear.known_on_art NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "11-35+"
+ grouping: "ANC"
+ description: "Waliopewa Rufaa kwenda CTC"
+ indicatorQuery: " SELECT count(DISTINCT ear.base_entity_id) as count
+ FROM ec_anc_register ear
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ear.base_entity_id
+ INNER JOIN ec_anc_followup eaf on fm.base_entity_id = eaf.entity_id
+ INNER JOIN ec_pmtct_registration epr on fm.base_entity_id = epr.base_entity_id
+ WHERE epr.ctc_number IS NOT NULL
+ AND ear.known_on_art NOT LIKE '%known_on_art%'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(eaf.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/cbhs-reporting-indicator-definitions.yml b/opensrp-chw-hf/src/main/assets/config/cbhs-reporting-indicator-definitions.yml
new file mode 100644
index 0000000000..25e0a2fb1a
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/cbhs-reporting-indicator-definitions.yml
@@ -0,0 +1,1228 @@
+indicators:
+ - key: "cbhs-1a-jumla-me"
+ grouping: "CBHS"
+ description: "Number of Male clients enrolled to HIV services until last month"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 9, 2)) <
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-1a-jumla-ke"
+ grouping: "CBHS"
+ description: "Number of Female clients enrolled to HIV services until last month"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 9, 2)) <
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-1b-jumla-me"
+ grouping: "CBHS"
+ description: "Total Male continuing with care this month"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.registration_or_followup_status = 'continuing_with_services'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-1b-jumla-ke"
+ grouping: "CBHS"
+ description: "Total Female continuing with care this month"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.registration_or_followup_status = 'continuing_with_services'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-jumla-me"
+ grouping: "CBHS"
+ description: "Total new male clients registered this month"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-jumla-ke"
+ grouping: "CBHS"
+ description: "Total new female clients registered this month"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-1-me"
+ grouping: "CBHS"
+ description: "Total new male clients less than one year old registered this month"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+1 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-1-ke"
+ grouping: "CBHS"
+ description: "Total new female clients less than one year old registered this month"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+1 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-1-5-me"
+ grouping: "CBHS"
+ description: "Total new male clients registered this month for 1-5 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+1 years') <= date('now'))
+ AND (date(fm.dob, '+6 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-1-5-ke"
+ grouping: "CBHS"
+ description: "Total new female clients registered this month for 1-5 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+1 years') <= date('now'))
+ AND (date(fm.dob, '+6 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-6-9-me"
+ grouping: "CBHS"
+ description: "Total new male clients registered this month for 6-9 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+6 years') <= date('now'))
+ AND (date(fm.dob, '+10 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-6-9-ke"
+ grouping: "CBHS"
+ description: "Total new female clients registered this month for 6-9 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+6 years') <= date('now'))
+ AND (date(fm.dob, '+10 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-10-14-me"
+ grouping: "CBHS"
+ description: "Total new male clients registered this month for 10-14 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-10-14-ke"
+ grouping: "CBHS"
+ description: "Total new female clients registered this month for 10-14 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-15-19-me"
+ grouping: "CBHS"
+ description: "Total new male clients registered this month for 15-19 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-15-19-ke"
+ grouping: "CBHS"
+ description: "Total new female clients registered this month for 15-19 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-20-24-me"
+ grouping: "CBHS"
+ description: "Total new male clients registered this month for 20-24 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-20-24-ke"
+ grouping: "CBHS"
+ description: "Total new female clients registered this month for 20-24 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-25-49-me"
+ grouping: "CBHS"
+ description: "Total new male clients registered this month for 25-49 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+50 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-25-49-ke"
+ grouping: "CBHS"
+ description: "Total new female clients registered this month for 25-49 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+50 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-50-59-me"
+ grouping: "CBHS"
+ description: "Total new male clients registered this month for 50-59 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+50 years') <= date('now'))
+ AND (date(fm.dob, '+60 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-50-59-ke"
+ grouping: "CBHS"
+ description: "Total new female clients registered this month for 50-59 year olds"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+50 years') <= date('now'))
+ AND (date(fm.dob, '+60 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-60-me"
+ grouping: "CBHS"
+ description: "Total new male clients registered this month above 60 years"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+60 years') <= date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2a-60-ke"
+ grouping: "CBHS"
+ description: "Total new female clients registered this month above 60 years"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND (ecf.registration_or_followup_status = 'new_client' or ecr.registration_or_followup_status is null)
+ AND (date(fm.dob, '+60 years') <= date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-1-jumla-me"
+ grouping: "CBHS"
+ description: "Total male with HIV infections"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND ecr.reasons_for_registration = 'hiv_aids'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-1-jumla-ke"
+ grouping: "CBHS"
+ description: "Total female with HIV infections"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND ecr.reasons_for_registration = 'hiv_aids'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-2-jumla-me"
+ grouping: "CBHS"
+ description: "Total male with Tuberculosis"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND ecr.reasons_for_registration = 'tuberculosis'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-2-jumla-ke"
+ grouping: "CBHS"
+ description: "Total male with Tuberculosis"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND ecr.reasons_for_registration = 'tuberculosis'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-3-jumla-me"
+ grouping: "CBHS"
+ description: "Total homosexuals"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND ecr.reasons_for_registration = 'homosexual'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-4-jumla-ke"
+ grouping: "CBHS"
+ description: "Total Sex workers"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND ecr.reasons_for_registration = 'sex_worker_woman'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-5-jumla-me"
+ grouping: "CBHS"
+ description: "Total male infants born with HIV infections"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND ecr.reasons_for_registration = 'hiv_infected_child'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-5-jumla-ke"
+ grouping: "CBHS"
+ description: "Total female infants born with HIV infections"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND ecr.reasons_for_registration = 'hiv_infected_child'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-6-jumla-me"
+ grouping: "CBHS"
+ description: "Total HIV untested male infants"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND ecr.reasons_for_registration = 'untested_hiv_infected_child'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-6-jumla-ke"
+ grouping: "CBHS"
+ description: "Total HIV untested female infants"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND ecr.reasons_for_registration = 'untested_hiv_infected_child'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-7-jumla-me"
+ grouping: "CBHS"
+ description: "Total male children abused"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND ecr.reasons_for_registration = 'abused_child'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-7-jumla-ke"
+ grouping: "CBHS"
+ description: "Total Female children abused"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND ecr.reasons_for_registration = 'abused_child'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-8-jumla-me"
+ grouping: "CBHS"
+ description: "Total Male gender violence"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND ecr.reasons_for_registration = 'gender_violence'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-8-jumla-ke"
+ grouping: "CBHS"
+ description: "Total Female gender violence"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND ecr.reasons_for_registration = 'gender_violence'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-9-jumla-me"
+ grouping: "CBHS"
+ description: "Total Male drug addicts"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Male'
+ AND ecr.reasons_for_registration = 'drug_abuse'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-9-jumla-ke"
+ grouping: "CBHS"
+ description: "Total Female drug addicts"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND ecr.reasons_for_registration = 'drug_abuse'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-10-jumla-ke"
+ grouping: "CBHS"
+ description: "Total pregnant women"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND ecr.reasons_for_registration = 'pregnant_mother'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2b-11-jumla-ke"
+ grouping: "CBHS"
+ description: "Total breast feeding mothers"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ fm.gender = 'Female'
+ AND ecr.reasons_for_registration = 'breastfeeding_mother'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2c-2-jumla-me"
+ grouping: "CBHS"
+ description: "Total male infected with HIV"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND (
+ (ecr.client_hiv_status_during_registration = 'positive'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')))
+ OR (ecf.client_hiv_status_after_testing = 'positive'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))))"
+
+ - key: "cbhs-2c-2-jumla-ke"
+ grouping: "CBHS"
+ description: "Total female infected with HIV"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND (
+ (ecr.client_hiv_status_during_registration = 'positive'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')))
+ OR (ecf.client_hiv_status_after_testing = 'positive'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))))"
+
+ - key: "cbhs-2c-3-jumla-me"
+ grouping: "CBHS"
+ description: "Total male not infected with HIV"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND (
+ (ecr.client_hiv_status_during_registration = 'negative'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')))
+ OR (ecf.client_hiv_status_after_testing = 'negative'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))))"
+
+ - key: "cbhs-2c-3-jumla-ke"
+ grouping: "CBHS"
+ description: "Total female not infected with HIV"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND (
+ (ecr.client_hiv_status_during_registration = 'negative'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')))
+ OR (ecf.client_hiv_status_after_testing = 'negative'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))))"
+
+ - key: "cbhs-2c-4-jumla-me"
+ grouping: "CBHS"
+ description: "Total male unknown HIV status"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND (
+ (ecr.client_hiv_status_during_registration = 'unknown'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')))
+ OR (ecf.client_hiv_status_after_testing = 'unknown'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))))"
+
+ - key: "cbhs-2c-4-jumla-ke"
+ grouping: "CBHS"
+ description: "Total female unknown HIV status"
+ indicatorQuery: "SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND (
+ (ecr.client_hiv_status_during_registration = 'unknown'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.hiv_registration_date / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')))
+ OR (ecf.client_hiv_status_after_testing = 'unknown'
+ AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1,
+ 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6,
+ 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))))"
+
+ - key: "cbhs-2d-1-jumla-me"
+ grouping: "CBHS"
+ description: "Total male given HIV counselling and testing"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.hiv_services_provided LIKE '%hiv_counselling_and_testing%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-1-jumla-ke"
+ grouping: "CBHS"
+ description: "Total female given HIV counselling and testing"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.hiv_services_provided LIKE '%hiv_counselling_and_testing%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-2-jumla-me"
+ grouping: "CBHS"
+ description: "Total male given ARV medication"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.hiv_services_provided LIKE '%arv_services%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-2-jumla-ke"
+ grouping: "CBHS"
+ description: "Total female given ARV medication"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.hiv_services_provided LIKE '%arv_services%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-3-jumla-me"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.hiv_services_provided LIKE '%hiv_prevention_services_from_mother_to_infant%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-3-jumla-ke"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.hiv_services_provided LIKE '%hiv_prevention_services_from_mother_to_infant%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-4-jumla-me"
+ grouping: "CBHS"
+ description: "Total male given Collaborative HIV and TB Health services"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.hiv_services_provided LIKE '%collaborative_community_services_for_tb_and_hiv%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-4-jumla-ke"
+ grouping: "CBHS"
+ description: "Total female given Collaborative HIV and TB Health services"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.hiv_services_provided LIKE '%collaborative_community_services_for_tb_and_hiv%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-5-jumla-me"
+ grouping: "CBHS"
+ description: "Total male given services to reduce the spread of STDs"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ ecf.hiv_services_provided LIKE '%prevention_of_the_spread_of_stds_service%' AND fm.gender = 'Male'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-5-jumla-ke"
+ grouping: "CBHS"
+ description: "Total female given services to reduce the spread of STDs"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ ecf.hiv_services_provided LIKE '%prevention_of_the_spread_of_stds_service%' AND fm.gender = 'Female'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-6-jumla-me"
+ grouping: "CBHS"
+ description: "Total male given special group services"
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.hiv_services_provided LIKE '%for_special_group_services%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-6-jumla-ke"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.hiv_services_provided LIKE '%for_special_group_services%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-7-jumla-me"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.hiv_services_provided LIKE '%prevention_of_gender_based_violence_and_child_abuse_services%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-7-jumla-ke"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.hiv_services_provided LIKE '%prevention_of_gender_based_violence_and_child_abuse_services%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-8-jumla-me"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.hiv_services_provided LIKE '%psychological_services%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-8-jumla-ke"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.hiv_services_provided LIKE '%psychological_services%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-9-jumla-me"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.hiv_services_provided LIKE '%information_about_fgm%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-9-jumla-ke"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.hiv_services_provided LIKE '%information_about_fgm%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-10-jumla-me"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.hiv_services_provided LIKE '%family_planning_and_condom_distribution_services%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-10-jumla-ke"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.hiv_services_provided LIKE '%family_planning_and_condom_distribution_services%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-11-jumla-me"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Male'
+ AND ecf.hiv_services_provided LIKE '%distribution_of_self_test_kits%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-2d-11-jumla-ke"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE fm.gender = 'Female'
+ AND ecf.hiv_services_provided LIKE '%distribution_of_self_test_kits%'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-5-jumla"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ ecf.registration_or_followup_status <> 'client_continues_with_clinic_from_elsewhere' AND ecf.registration_or_followup_status <> 'new_client' AND ecf.registration_or_followup_status <> 'continuing_with_services'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-5-deseased"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ ecf.registration_or_followup_status = 'deceased'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-5-continue-with-clinic-from-elsewhere"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ ecf.registration_or_followup_status = 'client_continues_with_clinic_from_elsewhere'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-5-moved"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ ecf.registration_or_followup_status = 'client_has_moved'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-5-absconded"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ ecf.registration_or_followup_status = 'client_has_absconded'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "cbhs-5-completed_and_qualified_from_the_services"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.base_entity_id) as count
+ FROM ec_cbhs_register ecr
+ INNER JOIN ec_cbhs_followup ecf on ecf.entity_id = ecr.base_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = ecr.base_entity_id
+ WHERE
+ ecf.registration_or_followup_status = 'completed_and_qualified_from_the_services'
+ AND date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "cbhs-6-kisheria"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecf.entity_id) as count
+ FROM ec_cbhs_followup ecf
+ WHERE instr(ecf.referrals_issued_to_other_services ,'legal_services') AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "cbhs-6-vikundi"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecf.entity_id) as count
+ FROM ec_cbhs_followup ecf
+ WHERE instr(ecf.referrals_issued_to_other_services ,'support_groups') AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "cbhs-6-huduma-zingine"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecf.entity_id) as count
+ FROM ec_cbhs_followup ecf
+ WHERE instr(ecf.referrals_issued_to_other_services ,'other_referrals') AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "cbhs-7-kisheria"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecf.entity_id) as count
+ FROM ec_cbhs_followup ecf
+ WHERE instr(ecf.referrals_to_other_services_completed ,'legal_services') AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "cbhs-7-vikundi"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecf.entity_id) as count
+ FROM ec_cbhs_followup ecf
+ WHERE instr(ecf.referrals_to_other_services_completed ,'support_groups') AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "cbhs-7-huduma-zingine"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecf.entity_id) as count
+ FROM ec_cbhs_followup ecf
+ WHERE instr(ecf.referrals_to_other_services_completed ,'other_referrals') AND
+ date(substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "cbhs-8-jumla"
+ grouping: "CBHS"
+ description: ""
+ indicatorQuery: " SELECT count(DISTINCT ecr.provider_id) as count
+ FROM ec_cbhs_register ecr
+ WHERE date(substr(strftime('%Y-%m-%d', datetime(ecr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ecr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/community-ltfu-summary.yml b/opensrp-chw-hf/src/main/assets/config/community-ltfu-summary.yml
new file mode 100644
index 0000000000..e0016ac906
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/community-ltfu-summary.yml
@@ -0,0 +1,3963 @@
+indicators:
+ # - Male under 2 years
+ - key: "ltfu-less-2-me-ctc"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'CTC' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-prep"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 wasiofika kliniki ya PrEP"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'Prep' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-pmtct"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 wasiofika kliniki ya PMTCT"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PMTCT' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-tb"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 wasiofika kliniki ya wenye TB "
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'TB' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-wajidunga"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 wasiofika kliniki ya wanaojidunga"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PWID' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-arv-yes"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 wanaotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'yes' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-arv-no"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 wasiotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'no' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-a1"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 wanaohudhuria kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'continuing_with_services' and
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-b1"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 waliopatikana na wako tayari kurudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_ready_to_return' and
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-c1"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 waliopatikana na wamerudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ INNER JOIN task t on t.for = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_and_has_returned_to_clinic'
+ AND t.business_status = 'Complete' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-d1"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 waliohamia kituo kingine bila taarifa"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_moved_to_another_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-e1"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 waliohama makazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_relocated' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-f1"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 waliopatikana lakini hayuko tayari kurudi kliniki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_does_not_want_to_return' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-g1"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao wamefariki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'deceased' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-h1"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao hawajapatikana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_not_found' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-a2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao walisahau"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_has_forgotten' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-b2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao walikuwa wagonjwa sana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_ill' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-c2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao walishindwa kujiweka wazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_failed_to_disclose_his_status' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-d2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao walikosa nauli"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_did_not_have_fare' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-e2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao umbali au usafiri mgumu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_lives_far_away_from_the_health_facility' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-f2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao wamepata nafuu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_feels_well' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-g2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao hawakupata ruhusa kazini"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_busy_at_work' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-h2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao walisafiri"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_traveled' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-i2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao wanatumia tiba mbadala"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_uses_alternative_medicine' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-j2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 ambao wameona huduma haziridhishi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'poor_services_at_health_facility' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-me-k2"
+ grouping: "LTFU"
+ description: "Wateja wanaume chini ya miaka 2 wenye sababu nyinginezo"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'other' AND
+ fm.gender = 'Male'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ # Female under 2 years
+ - key: "ltfu-less-2-ke-ctc"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'CTC' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-prep"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 wasiofika kliniki ya PrEP"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'Prep' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-pmtct"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 wasiofika kliniki ya PMTCT"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PMTCT' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-tb"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 wasiofika kliniki ya wenye TB "
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'TB' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ date(fm.dob, '+2 years') > date('now') AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-wajidunga"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 wasiofika kliniki ya wanaojidunga"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PWID' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ date(fm.dob, '+2 years') > date('now') AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-arv-yes"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 wanaotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'yes' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-arv-no"
+ grouping: "LTFU"
+ description: "Wateja wanwake chini ya miaka 2 wasiotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'no' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-a1"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 wanaohudhuria kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'continuing_with_services' and
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-b1"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 waliopatikana na wako tayari kurudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_ready_to_return' and
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-c1"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 waliopatikana na wamerudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ INNER JOIN task t on t.for = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_and_has_returned_to_clinic'
+ AND t.business_status = 'Complete' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-d1"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 waliohamia kituo kingine bila taarifa"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_moved_to_another_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-e1"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 waliohama makazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_relocated' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-f1"
+ grouping: "LTFU"
+ description: "Wateja wanwake chini ya miaka 2 waliopatikana lakini hayuko tayari kurudi kliniki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_does_not_want_to_return' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-g1"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao wamefariki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'deceased' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-h1"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao hawajapatikana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_not_found' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-a2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao walisahau"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_has_forgotten' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-b2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao walikuwa wagonjwa sana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_ill' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-c2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao walishindwa kujiweka wazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_failed_to_disclose_his_status' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-d2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao walikosa nauli"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_did_not_have_fare' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-e2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao umbali au usafiri mgumu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_lives_far_away_from_the_health_facility' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-f2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao wamepata nafuu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_feels_well' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-g2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao hawakupata ruhusa kazini"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_busy_at_work' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-h2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao walisafiri"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_traveled' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-i2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao wanatumia tiba mbadala"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_uses_alternative_medicine' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-j2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 ambao wameona huduma haziridhishi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'poor_services_at_health_facility' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-less-2-ke-k2"
+ grouping: "LTFU"
+ description: "Wateja wanawake chini ya miaka 2 wenye sababu nyinginezo"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'other' AND
+ fm.gender = 'Female'
+ AND (date(fm.dob, '+2 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ # Male above 2 years and below 15 years
+ - key: "ltfu-2-14-me-ctc"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'CTC' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-prep"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 wasiofika kliniki ya PrEP"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'Prep' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-pmtct"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 wasiofika wasiofika kliniki ya PMTCT"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PMTCT' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-tb"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 wasiofika kliniki ya wenye TB "
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'TB' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-wajidunga"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 wasiofika kliniki ya wanaojidunga"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PWID' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-arv-yes"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 wanaotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'yes' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-arv-no"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 wasiotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'no' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-a1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 wanaohudhuria kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'continuing_with_services' and
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-b1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 waliopatikana na wako tayari kurudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_ready_to_return' and
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-c1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 waliopatikana na wamerudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ INNER JOIN task t on t.for = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_and_has_returned_to_clinic'
+ AND t.business_status = 'Complete' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-d1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 waliohamia kituo kingine bila taarifa"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_moved_to_another_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-e1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 waliohama makazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_relocated' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-f1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 waliopatikana lakini hayuko tayari kurudi kliniki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_does_not_want_to_return' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-g1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao wamefariki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'deceased' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-h1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao hawajapatikana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_not_found' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-a2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao walisahau"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_has_forgotten' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-b2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao walikuwa wagonjwa sana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_ill' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-c2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao walishindwa kujiweka wazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_failed_to_disclose_his_status' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-d2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao walikosa nauli"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_did_not_have_fare' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-e2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao umbali au usafiri mgumu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_lives_far_away_from_the_health_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-f2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao wamepata nafuu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_feels_well' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-g2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao hawakupata ruhusa kazini"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_busy_at_work' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-h2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao walisafiri"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_traveled' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-i2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao wanatumia tiba mbadala"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_uses_alternative_medicine' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-j2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 ambao wameona huduma haziridhishi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'poor_services_at_health_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-me-k2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 2 na chini ya miaka 15 wenye sababu nyinginezo"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'other' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ # Female above 2 years and below 15 years
+ - key: "ltfu-2-14-ke-ctc"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'CTC' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-prep"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 wasiofika kliniki ya PrEP"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'Prep' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-pmtct"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 wasiofika wasiofika kliniki ya PMTCT"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PMTCT' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-tb"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 wasiofika kliniki ya wenye TB "
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'TB' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-wajidunga"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 wasiofika kliniki ya wanaojidunga"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PWID' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-arv-yes"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 wanaotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'yes' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-arv-no"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 wasiotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'no' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-a1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 wanaohudhuria kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'continuing_with_services' and
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-b1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 waliopatikana na wako tayari kurudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_ready_to_return' and
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-c1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 waliopatikana na wamerudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ INNER JOIN task t on t.for = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_and_has_returned_to_clinic'
+ AND t.business_status = 'Complete' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-d1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 waliohamia kituo kingine bila taarifa"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_moved_to_another_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-e1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 waliohama makazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_relocated' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-f1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 waliopatikana lakini hayuko tayari kurudi kliniki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_does_not_want_to_return' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-g1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao wamefariki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'deceased' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-h1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao hawajapatikana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_not_found' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-a2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao walisahau"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_has_forgotten' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-b2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao walikuwa wagonjwa sana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_ill' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-c2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao walishindwa kujiweka wazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_failed_to_disclose_his_status' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-d2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao walikosa nauli"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_did_not_have_fare' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-e2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao umbali au usafiri mgumu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_lives_far_away_from_the_health_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-f2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao wamepata nafuu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_feels_well' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-g2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao hawakupata ruhusa kazini"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_busy_at_work' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-h2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao walisafiri"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_traveled' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-i2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao wanatumia tiba mbadala"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_uses_alternative_medicine' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-j2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 ambao wameona huduma haziridhishi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'poor_services_at_health_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-2-14-ke-k2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 2 na chini ya miaka 15 wenye sababu nyinginezo"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'other' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+2 years') <= date('now')) AND
+ (date(fm.dob, '+15 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ # Male above 15 years and below 24 years
+ - key: "ltfu-15-24-me-ctc"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'CTC' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-prep"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 wasiofika kliniki ya PrEP"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'Prep' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-pmtct"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 wasiofika wasiofika kliniki ya PMTCT"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PMTCT' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-tb"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 wasiofika kliniki ya wenye TB "
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'TB' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-wajidunga"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 wasiofika kliniki ya wanaojidunga"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PWID' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-arv-yes"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 wanaotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'yes' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-arv-no"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 wasiotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'no' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-a1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 wanaohudhuria kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'continuing_with_services' and
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-b1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 waliopatikana na wako tayari kurudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_ready_to_return' and
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-c1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 waliopatikana na wamerudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ INNER JOIN task t on t.for = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_and_has_returned_to_clinic'
+ AND t.business_status = 'Complete' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-d1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 waliohamia kituo kingine bila taarifa"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_moved_to_another_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-e1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 waliohama makazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_relocated' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-f1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 waliopatikana lakini hayuko tayari kurudi kliniki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_does_not_want_to_return' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-g1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao wamefariki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'deceased' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-h1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao hawajapatikana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_not_found' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-a2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao walisahau"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_has_forgotten' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-b2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao walikuwa wagonjwa sana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_ill' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-c2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao walishindwa kujiweka wazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_failed_to_disclose_his_status' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-d2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao walikosa nauli"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_did_not_have_fare' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-e2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao umbali au usafiri mgumu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_lives_far_away_from_the_health_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-f2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao wamepata nafuu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_feels_well' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-g2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao hawakupata ruhusa kazini"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_busy_at_work' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-h2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao walisafiri"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_traveled' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-i2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao wanatumia tiba mbadala"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_uses_alternative_medicine' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-j2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 ambao wameona huduma haziridhishi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'poor_services_at_health_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-me-k2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 15 na chini ya miaka 24 wenye sababu nyinginezo"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'other' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ # Female above 15 years and below 24 years
+ - key: "ltfu-15-24-ke-ctc"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'CTC' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-prep"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 wasiofika kliniki ya PrEP"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'Prep' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-pmtct"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 wasiofika wasiofika kliniki ya PMTCT"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PMTCT' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-tb"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 wasiofika kliniki ya wenye TB "
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'TB' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-wajidunga"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 wasiofika kliniki ya wanaojidunga"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PWID' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-arv-yes"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 wanaotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'yes' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-arv-no"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 wasiotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'no' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-a1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 wanaohudhuria kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'continuing_with_services' and
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now'))"
+
+ - key: "ltfu-15-24-ke-b1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 waliopatikana na wako tayari kurudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_ready_to_return' and
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-c1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 waliopatikana na wamerudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ INNER JOIN task t on t.for = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_and_has_returned_to_clinic'
+ AND t.business_status = 'Complete' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-d1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 waliohamia kituo kingine bila taarifa"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_moved_to_another_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-e1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 waliohama makazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_relocated' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-f1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 waliopatikana lakini hayuko tayari kurudi kliniki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_does_not_want_to_return' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-g1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao wamefariki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'deceased' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-h1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao hawajapatikana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_not_found' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-a2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao walisahau"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_has_forgotten' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-b2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao walikuwa wagonjwa sana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_ill' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-c2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao walishindwa kujiweka wazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_failed_to_disclose_his_status' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-d2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao walikosa nauli"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_did_not_have_fare' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-e2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao umbali au usafiri mgumu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_lives_far_away_from_the_health_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-f2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao wamepata nafuu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_feels_well' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-g2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao hawakupata ruhusa kazini"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_busy_at_work' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-h2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao walisafiri"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_traveled' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-i2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao wanatumia tiba mbadala"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_uses_alternative_medicine' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-j2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 ambao wameona huduma haziridhishi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'poor_services_at_health_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-15-24-ke-k2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 15 na chini ya miaka 25 wenye sababu nyinginezo"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'other' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+15 years') <= date('now')) AND
+ (date(fm.dob, '+25 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ # Male above 25 years and below 49 years
+ - key: "ltfu-25-49-me-ctc"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'CTC' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-prep"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 wasiofika kliniki ya PrEP"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'Prep' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-pmtct"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 wasiofika wasiofika kliniki ya PMTCT"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PMTCT' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-tb"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 wasiofika kliniki ya wenye TB "
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'TB' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-wajidunga"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 wasiofika kliniki ya wanaojidunga"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PWID' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-arv-yes"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 wanaotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'yes' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-arv-no"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 wasiotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'no' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-a1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 49 wanaohudhuria kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'continuing_with_services' and
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-b1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 waliopatikana na wako tayari kurudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_ready_to_return' and
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-c1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 waliopatikana na wamerudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ INNER JOIN task t on t.for = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_and_has_returned_to_clinic'
+ AND t.business_status = 'Complete' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-d1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 waliohamia kituo kingine bila taarifa"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_moved_to_another_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-e1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 waliohama makazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_relocated' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-f1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 waliopatikana lakini hayuko tayari kurudi kliniki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_does_not_want_to_return' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-g1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao wamefariki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'deceased' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-h1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao hawajapatikana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_not_found' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-a2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao walisahau"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_has_forgotten' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-b2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao walikuwa wagonjwa sana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_ill' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-c2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao walishindwa kujiweka wazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_failed_to_disclose_his_status' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-d2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao walikosa nauli"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_did_not_have_fare' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-e2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao umbali au usafiri mgumu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_lives_far_away_from_the_health_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-f2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao wamepata nafuu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_feels_well' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-g2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao hawakupata ruhusa kazini"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_busy_at_work' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-h2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao walisafiri"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_traveled' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-i2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao wanatumia tiba mbadala"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_uses_alternative_medicine' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-j2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 ambao wameona huduma haziridhishi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'poor_services_at_health_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-me-k2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 25 na chini ya miaka 50 wenye sababu nyinginezo"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'other' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ # Female above 25 years and below 49 years
+ - key: "ltfu-25-49-ke-ctc"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'CTC' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-prep"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 wasiofika kliniki ya PrEP"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'Prep' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-pmtct"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 wasiofika wasiofika kliniki ya PMTCT"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PMTCT' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-tb"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 wasiofika kliniki ya wenye TB "
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'TB' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-wajidunga"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 wasiofika kliniki ya wanaojidunga"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PWID' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-arv-yes"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 wanaotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'yes' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-arv-no"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 wasiotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'no' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-a1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 49 wanaohudhuria kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'continuing_with_services' and
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-b1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 waliopatikana na wako tayari kurudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_ready_to_return' and
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-c1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 waliopatikana na wamerudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ INNER JOIN task t on t.for = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_and_has_returned_to_clinic'
+ AND t.business_status = 'Complete' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-d1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 waliohamia kituo kingine bila taarifa"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_moved_to_another_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-e1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 waliohama makazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_relocated' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-f1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 waliopatikana lakini hayuko tayari kurudi kliniki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_does_not_want_to_return' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-g1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao wamefariki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'deceased' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-h1"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao hawajapatikana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_not_found' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-a2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao walisahau"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_has_forgotten' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-b2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao walikuwa wagonjwa sana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_ill' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-c2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao walishindwa kujiweka wazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_failed_to_disclose_his_status' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-d2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao walikosa nauli"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_did_not_have_fare' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-e2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao umbali au usafiri mgumu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_lives_far_away_from_the_health_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now'))"
+
+ - key: "ltfu-25-49-ke-f2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao wamepata nafuu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_feels_well' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-g2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao hawakupata ruhusa kazini"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_busy_at_work' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-h2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao walisafiri"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_traveled' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-i2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao wanatumia tiba mbadala"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_uses_alternative_medicine' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-j2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 ambao wameona huduma haziridhishi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'poor_services_at_health_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-25-49-ke-k2"
+ grouping: "LTFU"
+ description: "Wateja wanawake juu ya miaka 25 na chini ya miaka 50 wenye sababu nyinginezo"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'other' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+25 years') <= date('now')) AND
+ (date(fm.dob, '+50 years') > date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ # Male above 50 years
+ - key: "ltfu-50-me-ctc"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'CTC' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-prep"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'Prep' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-pmtct"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 wasiofika wasiofika kliniki ya PMTCT"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PMTCT' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-tb"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 wasiofika kliniki ya wenye TB "
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'TB' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-wajidunga"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 wasiofika kliniki ya wanaojidunga"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PWID' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-arv-yes"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 wanaotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'yes' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-arv-no"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 wasiotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'no' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-a1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 wanaohudhuria kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'continuing_with_services' and
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-b1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 waliopatikana na wako tayari kurudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_ready_to_return' and
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-c1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 waliopatikana na wamerudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ INNER JOIN task t on t.for = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_and_has_returned_to_clinic'
+ AND t.business_status = 'Complete' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-d1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 waliohamia kituo kingine bila taarifa"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_moved_to_another_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-e1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 waliohama makazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_relocated' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-f1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 waliopatikana lakini hayuko tayari kurudi kliniki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_does_not_want_to_return' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-g1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao wamefariki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'deceased' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-h1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao hawajapatikana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_not_found' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-a2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao walisahau"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_has_forgotten' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-b2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao walikuwa wagonjwa sana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_ill' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-c2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao walishindwa kujiweka wazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_failed_to_disclose_his_status' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-d2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao walikosa nauli"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_did_not_have_fare' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-e2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao umbali au usafiri mgumu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_lives_far_away_from_the_health_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-f2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao wamepata nafuu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_feels_well' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-g2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao hawakupata ruhusa kazini"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_busy_at_work' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-h2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao walisafiri"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_traveled' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-i2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 ambao wanatumia tiba mbadala"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_uses_alternative_medicine' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-j2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ys miaka 50 ambao wameona huduma haziridhishi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'poor_services_at_health_facility' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-me-k2"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 wenye sababu nyinginezo"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'other' AND
+ fm.gender = 'Male' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ # Female above 50 years
+ - key: "ltfu-50-ke-ctc"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 wasiofika kliniki ya CTC"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'CTC' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-prep"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 wasiofika kliniki ya PrEP"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'Prep' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-pmtct"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 wasiofika wasiofika kliniki ya PMTCT"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PMTCT' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-tb"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 wasiofika kliniki ya wenye TB "
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'TB' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-wajidunga"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 wasiofika kliniki ya wanaojidunga"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.problem = 'PWID' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-arv-yes"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 wanaotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'yes' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-arv-no"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 wasiotumia ARV na hawajafika kliniki"
+ indicatorQuery: "SELECT count(DISTINCT er.entity_id) as count
+ FROM ec_referral er
+ INNER JOIN ec_family_member fm on fm.base_entity_id = er.entity_id
+ WHERE
+ er.chw_referral_service = 'LTFU' AND
+ er.on_art = 'no' AND
+ er.referral_type = 'facility_to_community_referral' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(er.referral_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-a1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 wanaohudhuria kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'continuing_with_services' and
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-b1"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 waliopatikana na wako tayari kurudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_ready_to_return' and
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-c1"
+ grouping: "LTFU"
+ description: "Wateja wanaume juu ya miaka 50 waliopatikana na wamerudi kliniki baada ya ufuatiliaji"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ INNER JOIN task t on t.for = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_found_and_has_returned_to_clinic'
+ AND t.business_status = 'Complete' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-d1"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 waliohamia kituo kingine bila taarifa"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_moved_to_another_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-e1"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 waliohama makazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_has_relocated' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-f1"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 waliopatikana lakini hayuko tayari kurudi kliniki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_does_not_want_to_return' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-g1"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 ambao wamefariki"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'deceased' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-h1"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 ambao hawajapatikana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.followup_status = 'client_not_found' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-a2"
+ description: "Wateja wanamke juu ya miaka 50 ambao walisahau"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_has_forgotten' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-b2"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 ambao walikuwa wagonjwa sana"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_ill' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-c2"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 ambao walishindwa kujiweka wazi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_failed_to_disclose_his_status' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-d2"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 ambao walikosa nauli"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_did_not_have_fare' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-e2"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 ambao umbali au usafiri mgumu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_lives_far_away_from_the_health_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-f2"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 ambao wamepata nafuu"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_feels_well' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-g2"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 ambao hawakupata ruhusa kazini"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_was_busy_at_work' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-h2"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 ambao walisafiri"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_traveled' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-i2"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 ambao wanatumia tiba mbadala"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'client_uses_alternative_medicine' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-j2"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ys miaka 50 ambao wameona huduma haziridhishi"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'poor_services_at_health_facility' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "ltfu-50-ke-k2"
+ grouping: "LTFU"
+ description: "Wateja wanamke juu ya miaka 50 wenye sababu nyinginezo"
+ indicatorQuery: "SELECT count(DISTINCT elf.entity_id) as count
+ FROM ec_ltfu_feedback elf
+ INNER JOIN ec_family_member fm on fm.base_entity_id = elf.entity_id
+ WHERE
+ elf.reasons_for_missed_appointment = 'other' AND
+ fm.gender = 'Female' AND
+ (date(fm.dob, '+50 years') <= date('now')) AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(elf.feedback_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/fp-reporting-indicator-definitions.yml b/opensrp-chw-hf/src/main/assets/config/fp-reporting-indicator-definitions.yml
new file mode 100644
index 0000000000..4c33b556aa
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/fp-reporting-indicator-definitions.yml
@@ -0,0 +1,12783 @@
+indicators:
+ #Question 1
+ - key: "fp-1a-nc-10-14"
+ grouping: "FP"
+ description: "Number of new male clients from 10-14 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 14
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1a-nc-15-19"
+ grouping: "FP"
+ description: "Number of new male clients from 15-19 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 19
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1a-nc-20-24"
+ grouping: "FP"
+ description: "Number of new male clients from 20-24 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1a-nc-25-29"
+ grouping: "FP"
+ description: "Number of new male clients from 25-29 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1a-nc-30-34"
+ grouping: "FP"
+ description: "Number of new male clients from 30-34 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1a-nc-35+"
+ grouping: "FP"
+ description: "Number of new male clients from 35+ years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob)) >= 35
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1a-rc-10-14"
+ grouping: "FP"
+ description: "Number of new male clients from 10-14 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 14
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1a-rc-15-19"
+ grouping: "FP"
+ description: "Number of new male clients from 15-19 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 19
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1a-rc-20-24"
+ grouping: "FP"
+ description: "Number of new male clients from 20-24 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1a-rc-25-29"
+ grouping: "FP"
+ description: "Number of new male clients from 25-29 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1a-rc-30-34"
+ grouping: "FP"
+ description: "Number of new male clients from 30-34 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1a-rc-35+"
+ grouping: "FP"
+ description: "Number of new male clients from 35+ years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob)) >= 35
+ AND (efm.gender='Male')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1b-nc-10-14"
+ grouping: "FP"
+ description: "Number of new female clients from 10-14 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 14
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1b-nc-15-19"
+ grouping: "FP"
+ description: "Number of new female clients from 15-19 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 19
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1b-nc-20-24"
+ grouping: "FP"
+ description: "Number of new female clients from 20-24 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1b-nc-25-29"
+ grouping: "FP"
+ description: "Number of new female clients from 25-29 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1b-nc-30-34"
+ grouping: "FP"
+ description: "Number of new female clients from 30-34 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1b-nc-35+"
+ grouping: "FP"
+ description: "Number of new female clients from 35+ years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob)) >= 35
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1b-rc-10-14"
+ grouping: "FP"
+ description: "Number of new female clients from 10-14 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 14
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1b-rc-15-19"
+ grouping: "FP"
+ description: "Number of new female clients from 15-19 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 19
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1b-rc-20-24"
+ grouping: "FP"
+ description: "Number of new female clients from 20-24 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1b-rc-25-29"
+ grouping: "FP"
+ description: "Number of new female clients from 25-29 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1b-rc-30-34"
+ grouping: "FP"
+ description: "Number of new female clients from 30-34 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1b-rc-35+"
+ grouping: "FP"
+ description: "Number of new female clients from 35+ years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob)) >= 35
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1c-nc-10-14"
+ grouping: "FP"
+ description: "Number of couples from 10-14 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 14
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1c-nc-15-19"
+ grouping: "FP"
+ description: "Number of couples from 15-19 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 19
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1c-nc-20-24"
+ grouping: "FP"
+ description: "Number of couples from 20-24 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1c-nc-25-29"
+ grouping: "FP"
+ description: "Number of couples from 25-29 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1c-nc-30-34"
+ grouping: "FP"
+ description: "Number of couples from 30-34 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1c-nc-35+"
+ grouping: "FP"
+ description: "Number of couples from 35+ years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob)) >= 35
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1c-rc-10-14"
+ grouping: "FP"
+ description: "Number of couples from 10-14 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 14
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1c-rc-15-19"
+ grouping: "FP"
+ description: "Number of couples from 15-19 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 19
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1c-rc-20-24"
+ grouping: "FP"
+ description: "Number of couples from 20-24 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1c-rc-25-29"
+ grouping: "FP"
+ description: "Number of couples from 25-29 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-1c-rc-30-34"
+ grouping: "FP"
+ description: "Number of couples from 30-34 years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-1c-rc-35+"
+ grouping: "FP"
+ description: "Number of couples from 35+ years counseled on family planning services age"
+ indicatorQuery: "SELECT count(DISTINCT efc.entity_id) as count
+ FROM ec_fp_counseling efc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efc.entity_id
+ INNER JOIN ec_family_planning efl ON efc.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob)) >= 35
+ AND (efc.client_counseled_with_her_partner = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2a-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2a-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2a-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2a-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2a-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2a-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2a-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2a-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2a-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2a-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2a-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2a-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years received family planning methods at RCH"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_facility='rch')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 2b
+ #NEW CLIENT
+ - key: "fp-2b-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2b-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2b-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2b-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2b-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2b-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-2b-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2b-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2b-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2b-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2b-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2b-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years received family planning methods at CTC"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_facility='ctc')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 2c
+ #NEW CLIENT
+ - key: "fp-2c-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2c-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2c-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2c-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2c-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2c-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-2c-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2c-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2c-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2c-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2c-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2c-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years received family planning methods through outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ #Question 2d
+ #NEW CLIENT
+ - key: "fp-2d-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2d-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2d-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2d-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2d-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2d-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-2d-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2d-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2d-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2d-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-2d-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-2d-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years received family planning methods through community-based services (CBD)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 3a
+ #NEW CLIENT
+ - key: "fp-3a-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3a-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3a-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-3a-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3a-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-3a-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-3a-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3a-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3a-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-3a-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3a-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-3a-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years received an injectable contraceptive at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ #Question 3b
+ #NEW CLIENT
+ - key: "fp-3b-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3b-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3b-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-3b-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3b-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-3b-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-3b-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3b-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3b-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-3b-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-3b-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-3b-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years received an injectable contraceptive at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.injection_administered = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ #Question 4a
+ #NEW CLIENT
+ - key: "fp-4a-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4a-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4a-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4a-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4a-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4a-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-4a-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4a-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4a-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4a-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4a-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4a-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years provided with combined oral contraceptive methods at facility (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 4b
+ #NEW CLIENT
+ - key: "fp-4b-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4b-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4b-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4b-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4b-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4b-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-4b-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4b-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4b-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4b-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4b-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4b-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years provided with combined oral contraceptive methods at facility (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 4c
+ #NEW CLIENT
+ - key: "fp-4c-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4c-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4c-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4c-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4c-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4c-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-4c-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4c-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4c-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4c-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4c-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4c-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years provided with combined oral contraceptive methods at outreach (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 4d
+ #NEW CLIENT
+ - key: "fp-4d-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4d-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4d-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4d-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4d-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4d-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-4d-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4d-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4d-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4d-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4d-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4d-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years provided with combined oral contraceptive methods at outreach (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 4e
+ #NEW CLIENT
+ - key: "fp-4e-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4e-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4e-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4e-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4e-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4e-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-4e-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4e-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4e-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4e-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4e-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4e-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years provided with combined oral contraceptive methods at community (COC)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.coc >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ #Question 4f
+ #NEW CLIENT
+ - key: "fp-4f-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4f-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4f-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4f-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4f-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4f-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-4f-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4f-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4f-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4f-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-4f-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-4f-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years provided with combined oral contraceptive methods at community (POP)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.pop >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 5a
+ #NEW CLIENT
+ - key: "fp-5a-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5a-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5a-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5a-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5a-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5a-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-5a-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5a-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5a-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5a-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5a-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5a-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years distributed with male condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 5b
+ #NEW CLIENT
+ - key: "fp-5b-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5b-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5b-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5b-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5b-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5b-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-5b-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5b-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5b-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5b-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5b-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5b-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years distributed with female condoms at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 5c
+ #NEW CLIENT
+ - key: "fp-5c-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5c-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5c-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5c-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5c-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5c-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-5c-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5c-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5c-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5c-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5c-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5c-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years distributed with male condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 5d
+ #NEW CLIENT
+ - key: "fp-5d-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5d-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5d-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5d-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5d-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5d-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-5d-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5d-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5d-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5d-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5d-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5d-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years distributed with female condoms at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ #Question 5e
+ #NEW CLIENT
+ - key: "fp-5e-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5e-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5e-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5e-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5e-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5e-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-5e-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5e-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5e-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5e-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5e-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5e-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years distributed with male condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_male_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ #Question 5f
+ #NEW CLIENT
+ - key: "fp-5f-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5f-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5f-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5f-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5f-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5f-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-5f-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5f-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5f-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5f-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-5f-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-5f-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years distributed with female condoms at community"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efpm.number_female_condoms_collected >= 1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 6a
+ #NEW CLIENT
+ - key: "fp-6a-nc-10-14"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6a-nc-15-19"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6a-nc-20-24"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6a-nc-25-29"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6a-nc-30-34"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6a-nc-35+"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-6a-rc-10-14"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6a-rc-15-19"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6a-rc-20-24"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6a-rc-25-29"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6a-rc-30-34"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6a-rc-35+"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 6b
+ #NEW CLIENT
+ - key: "fp-6b-nc-10-14"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6b-nc-15-19"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6b-nc-20-24"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6b-nc-25-29"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6b-nc-30-34"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6b-nc-35+"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-6b-rc-10-14"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6b-rc-15-19"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6b-rc-20-24"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6b-rc-25-29"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6b-rc-30-34"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6b-rc-35+"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from outreach for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 6c
+ #NEW CLIENT
+ - key: "fp-6c-nc-10-14"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6c-nc-15-19"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6c-nc-20-24"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6c-nc-25-29"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6c-nc-30-34"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6c-nc-35+"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-6c-rc-10-14"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6c-rc-15-19"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6c-rc-20-24"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6c-rc-25-29"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6c-rc-30-34"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6c-rc-35+"
+ grouping: "FP"
+ description: "Number of women who have undergone sterilization at facility referred from community for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efpm.btl = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 6d
+ #NEW CLIENT
+ - key: "fp-6d-nc-10-14"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6d-nc-15-19"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6d-nc-20-24"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6d-nc-25-29"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6d-nc-30-34"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6d-nc-35+"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-6d-rc-10-14"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6d-rc-15-19"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6d-rc-20-24"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6d-rc-25-29"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6d-rc-30-34"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6d-rc-35+"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 6e
+ #NEW CLIENT
+ - key: "fp-6e-nc-10-14"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6e-nc-15-19"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6e-nc-20-24"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6e-nc-25-29"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6e-nc-30-34"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6e-nc-35+"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-6e-rc-10-14"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6e-rc-15-19"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6e-rc-20-24"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6e-rc-25-29"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6e-rc-30-34"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6e-rc-35+"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from outreach for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 6f
+ #NEW CLIENT
+ - key: "fp-6f-nc-10-14"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6f-nc-15-19"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6f-nc-20-24"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6f-nc-25-29"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6f-nc-30-34"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6f-nc-35+"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-6f-rc-10-14"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6f-rc-15-19"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6f-rc-20-24"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6f-rc-25-29"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-6f-rc-30-34"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-6f-rc-35+"
+ grouping: "FP"
+ description: "Number of male who have undergone sterilization at facility referred from community for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efpm.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Male')
+ AND (efpm.vasectomy = 'yes')
+ AND (efp.service_delivery_point_outreach='community')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7a
+ #NEW CLIENT
+ - key: "fp-7a-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7a-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7a-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7a-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7a-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7a-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7a-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7a-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7a-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7a-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7a-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7a-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have been fitted with an IUD (Intrauterine Device) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7b
+ #NEW CLIENT
+ - key: "fp-7b-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7b-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7b-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7b-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7b-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7b-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7b-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7b-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7b-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7b-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7b-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7b-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have been fitted with an IUD (Intrauterine Device) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.iucd_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7c
+ #NEW CLIENT
+ - key: "fp-7c-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7c-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7c-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7c-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7c-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7c-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7c-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7c-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7c-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7c-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7c-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7c-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have had IUD (Intrauterine Device) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7d
+ #NEW CLIENT
+ - key: " fp-7d-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: " fp-7d-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: " fp-7d-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: " fp-7d-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: " fp-7d-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: " fp-7d-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: " fp-7d-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: " fp-7d-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: " fp-7d-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: " fp-7d-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: " fp-7d-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: " fp-7d-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have had IUD (Intrauterine Device) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.iud_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ #Question 7e
+ #NEW CLIENT
+ - key: "fp-7e-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7e-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7e-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7e-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7e-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7e-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7e-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7e-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7e-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7e-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7e-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7e-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have been implanted with contraceptive implants (Jadelle) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7f
+ #NEW CLIENT
+ - key: "fp-7f-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7f-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7f-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7f-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7f-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7f-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7f-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7f-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7f-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7f-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7f-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7f-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have been implanted with contraceptive implants (Jadelle) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.jadelle_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7g
+ #NEW CLIENT
+ - key: "fp-7g-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7g-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7g-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7g-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7g-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7g-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7g-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7g-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7g-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7g-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7g-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7g-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have been implanted with contraceptive implants (Implanon) at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7h
+ #NEW CLIENT
+ - key: "fp-7h-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7h-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7h-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7h-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7h-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7h-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7h-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7h-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7h-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7h-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7h-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7h-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have been implanted with contraceptive implants (Implanon) at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (efpm.implanon_inserted='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7i
+ #NEW CLIENT
+ - key: "fp-7i-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7i-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7i-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7i-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7i-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7i-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7i-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7i-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7i-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7i-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7i-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7i-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have had implants (Jadelle) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7j
+ #NEW CLIENT
+ - key: "fp-7j-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7j-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7j-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7j-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7j-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7j-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7j-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7j-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7j-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7j-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7j-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7j-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have had implants (Jadelle) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.jadelle_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7k
+ #NEW CLIENT
+ - key: "fp-7k-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7k-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7k-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7k-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7k-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7k-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7k-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7k-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7k-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7k-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7k-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7k-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have had implants (Implanon) removed at facility"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 7l
+ #NEW CLIENT
+ - key: "fp-7l-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7l-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7l-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7l-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7l-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7l-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-7l-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7l-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7l-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7l-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-7l-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-7l-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years who have had implants (Implanon) removed at outreach"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_follow_up_visit effv ON effv.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='outreach')
+ AND (effv.implanon_removed='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 8a
+ #NEW CLIENT
+ - key: "fp-8a-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8a-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8a-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8a-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8a-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8a-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-8a-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8a-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8a-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8a-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8a-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8a-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years using the Lactational Amenorrhea Method (LAM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efpm.client_counseled_on_lam='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 8b
+ #NEW CLIENT
+ - key: "fp-8b-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8b-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8b-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8b-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8b-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8b-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-8b-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8b-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8b-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8b-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8b-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8b-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years using the Standard Days Method (SDM)"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efpm.cycle_beads_provided='yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 8c
+ #NEW CLIENT
+ - key: "fp-8c-nc-10-14"
+ grouping: "FP"
+ description: "Number of New clients from 10-14 years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8c-nc-15-19"
+ grouping: "FP"
+ description: "Number of New clients from 15-19 years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8c-nc-20-24"
+ grouping: "FP"
+ description: "Number of New clients from 20-24 years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8c-nc-25-29"
+ grouping: "FP"
+ description: "Number of New clients from 25-29 years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8c-nc-30-34"
+ grouping: "FP"
+ description: "Number of New clients from 30-34 years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8c-nc-35+"
+ grouping: "FP"
+ description: "Number of New clients above 35+ years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-8c-rc-10-14"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 10-14 years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8c-rc-15-19"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 15-19 years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8c-rc-20-24"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 20-24 years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8c-rc-25-29"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 25-29 years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-8c-rc-30-34"
+ grouping: "FP"
+ description: "Number of Re-visit clients from 30-34 years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-8c-rc-35+"
+ grouping: "FP"
+ description: "Number of Re-visit clients above 35+ years using emergency contraceptive methods"
+ indicatorQuery: "SELECT count(DISTINCT efp.entity_id) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efpm.ecp>=1)
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 9a
+ #NEW CLIENT
+ - key: "fp-9a-nc-10-14"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to New clients from 10-14 years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9a-nc-15-19"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to New clients from 15-19 years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9a-nc-20-24"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to New clients from 20-24 years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-9a-nc-25-29"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to New clients from 25-29 years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility')
+ AND (efl.client_used_fp_before = 'no' OR efp.point_of_service_delivery='outreach')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9a-nc-30-34"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to 30-34 years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-9a-nc-35+"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to New clients above 35+ years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-9a-rc-10-14"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9a-rc-15-19"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9a-rc-20-24"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-9a-rc-25-29"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9a-rc-30-34"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-9a-rc-35+"
+ grouping: "FP"
+ description: "Number of POP cycles dispensed (Facility + Outreach + CBD) to Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT SUM(efpm.pop) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 9b
+ #NEW CLIENT
+ - key: "fp-9b-nc-10-14"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to New clients from 10-14 years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9b-nc-15-19"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to New clients from 15-19 years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9b-nc-20-24"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to New clients from 20-24 years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-9b-nc-25-29"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to New clients from 25-29 years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9b-nc-30-34"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to 30-34 years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-9b-nc-35+"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to New clients above 35+ years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-9b-rc-10-14"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9b-rc-15-19"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9b-rc-20-24"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-9b-rc-25-29"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-9b-rc-30-34"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-9b-rc-35+"
+ grouping: "FP"
+ description: "Number of COC cycles dispensed (Facility + Outreach + CBD) to Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT SUM(efpm.coc) as count
+ FROM ec_fp_point_of_service_delivery efp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efp.entity_id
+ INNER JOIN ec_fp_provision_of_method efpm ON efpm.entity_id = efp.entity_id
+ INNER JOIN ec_family_planning efl ON efp.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efp.point_of_service_delivery='facility' OR efp.point_of_service_delivery='outreach')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ #Question 10a
+ #NEW CLIENT
+ - key: "fp-10a-nc-10-14"
+ grouping: "FP"
+ description: "Number of male condoms distributed to New clients from 10-14 years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10a-nc-15-19"
+ grouping: "FP"
+ description: "Number of male condoms distributed to New clients from 15-19 years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10a-nc-20-24"
+ grouping: "FP"
+ description: "Number of male condoms distributed to New clients from 20-24 years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-10a-nc-25-29"
+ grouping: "FP"
+ description: "Number of male condoms distributed to New clients from 25-29 years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10a-nc-30-34"
+ grouping: "FP"
+ description: "Number of male condoms distributed to 30-34 years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-10a-nc-35+"
+ grouping: "FP"
+ description: "Number of male condoms distributed to New clients above 35+ years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-10a-rc-10-14"
+ grouping: "FP"
+ description: "Number of male condoms distributed to Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10a-rc-15-19"
+ grouping: "FP"
+ description: "Number of male condoms distributed to Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10a-rc-20-24"
+ grouping: "FP"
+ description: "Number of male condoms distributed to Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-10a-rc-25-29"
+ grouping: "FP"
+ description: "Number of male condoms distributed to Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10a-rc-30-34"
+ grouping: "FP"
+ description: "Number of male condoms distributed to Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-10a-rc-35+"
+ grouping: "FP"
+ description: "Number of male condoms distributed to Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT SUM(efpm.number_male_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 10b
+ #NEW CLIENT
+ - key: "fp-10b-nc-10-14"
+ grouping: "FP"
+ description: "Number of female condoms distributed to New clients from 10-14 years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10b-nc-15-19"
+ grouping: "FP"
+ description: "Number of female condoms distributed to New clients from 15-19 years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10b-nc-20-24"
+ grouping: "FP"
+ description: "Number of female condoms distributed to New clients from 20-24 years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-10b-nc-25-29"
+ grouping: "FP"
+ description: "Number of female condoms distributed to New clients from 25-29 years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10b-nc-30-34"
+ grouping: "FP"
+ description: "Number of female condoms distributed to 30-34 years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-10b-nc-35+"
+ grouping: "FP"
+ description: "Number of female condoms distributed to New clients above 35+ years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-10b-rc-10-14"
+ grouping: "FP"
+ description: "Number of female condoms distributed to Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10b-rc-15-19"
+ grouping: "FP"
+ description: "Number of female condoms distributed to Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10b-rc-20-24"
+ grouping: "FP"
+ description: "Number of female condoms distributed to Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-10b-rc-25-29"
+ grouping: "FP"
+ description: "Number of female condoms distributed to Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-10b-rc-30-34"
+ grouping: "FP"
+ description: "Number of female condoms distributed to Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-10b-rc-35+"
+ grouping: "FP"
+ description: "Number of female condoms distributed to Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT SUM(efpm.number_female_condoms_collected) as count
+ FROM ec_fp_provision_of_method efpm
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efpm.entity_id
+ INNER JOIN ec_family_planning efl ON efpm.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efpm.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ #Question 11a
+ #NEW CLIENT
+ - key: "fp-11a-nc-10-14"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11a-nc-15-19"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11a-nc-20-24"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11a-nc-25-29"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11a-nc-30-34"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11a-nc-35+"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-11a-rc-10-14"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11a-rc-15-19"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11a-rc-20-24"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11a-rc-25-29"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11a-rc-30-34"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11a-rc-35+"
+ grouping: "FP"
+ description: "Number of women screened for breast cancer for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%' OR efs.breast_condition LIKE '%none%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 11b
+ #NEW CLIENT
+ - key: "fp-11b-nc-10-14"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11b-nc-15-19"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11b-nc-20-24"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11b-nc-25-29"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11b-nc-30-34"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11b-nc-35+"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-11b-rc-10-14"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11b-rc-15-19"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11b-rc-20-24"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11b-rc-25-29"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11b-rc-30-34"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11b-rc-35+"
+ grouping: "FP"
+ description: "Number of women diagnosed with breast problems for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.breast_condition LIKE '%lamp%' OR efs.breast_condition LIKE '%sore%' OR efs.breast_condition LIKE '%discoloration%' OR efs.breast_condition LIKE '%blood_discharge%' OR efs.breast_condition LIKE '%absess%' OR efs.breast_condition LIKE '%other%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 11c
+ #NEW CLIENT
+ - key: "fp-11c-nc-10-14"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11c-nc-15-19"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11c-nc-20-24"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11c-nc-25-29"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11c-nc-30-34"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11c-nc-35+"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-11c-rc-10-14"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11c-rc-15-19"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11c-rc-20-24"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11c-rc-25-29"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11c-rc-30-34"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11c-rc-35+"
+ grouping: "FP"
+ description: "Number of women screened for cervical cancer using VIA for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ #Question 11d
+ #NEW CLIENT
+ - key: "fp-11d-nc-10-14"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11d-nc-15-19"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11d-nc-20-24"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11d-nc-25-29"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11d-nc-30-34"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11d-nc-35+"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-11d-rc-10-14"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11d-rc-15-19"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11d-rc-20-24"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11d-rc-25-29"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11d-rc-30-34"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11d-rc-35+"
+ grouping: "FP"
+ description: "Number of women found 'POSITIVE' after screening VIA for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.via_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 11e
+ #NEW CLIENT
+ - key: "fp-11e-nc-10-14"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-nc-15-19"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-nc-20-24"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11e-nc-25-29"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-nc-30-34"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11e-nc-35+"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-11e-rc-10-14"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-rc-15-19"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-rc-20-24"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11e-rc-25-29"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-rc-30-34"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11e-rc-35+"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.cervix = 'abnormal' OR efs.discharge = 'yes' OR efs.growth = 'yes' OR efs.uterine_size = 'abnormal' OR efs.uterine_position = 'retroverted' OR efs.adnexa = 'painful')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 11e
+ #NEW CLIENT
+ - key: "fp-11e-nc-10-14"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-nc-15-19"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-nc-20-24"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11e-nc-25-29"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-nc-30-34"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11e-nc-35+"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-11e-rc-10-14"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-rc-15-19"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-rc-20-24"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11e-rc-25-29"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-11e-rc-30-34"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-11e-rc-35+"
+ grouping: "FP"
+ description: "Number of women suspected of having cervical cancer for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efs.entity_id) as count
+ FROM ec_fp_screening efs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efs.entity_id
+ INNER JOIN ec_family_planning efl ON efs.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efm.gender='Female')
+ AND (efs.client_eligible_for_via = 'no')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 12a
+ #NEW CLIENT
+ - key: "fp-12a-nc-10-14"
+ grouping: "FP"
+ description: "Number of known HIV positive New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12a-nc-15-19"
+ grouping: "FP"
+ description: "Number of known HIV positive New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12a-nc-20-24"
+ grouping: "FP"
+ description: "Number of known HIV positive New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12a-nc-25-29"
+ grouping: "FP"
+ description: "Number of known HIV positive New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12a-nc-30-34"
+ grouping: "FP"
+ description: "Number of known HIV positive 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12a-nc-35+"
+ grouping: "FP"
+ description: "Number of known HIV positive New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-12a-rc-10-14"
+ grouping: "FP"
+ description: "Number of known HIV positive Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12a-rc-15-19"
+ grouping: "FP"
+ description: "Number of known HIV positive Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12a-rc-20-24"
+ grouping: "FP"
+ description: "Number of known HIV positive Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12a-rc-25-29"
+ grouping: "FP"
+ description: "Number of known HIV positive Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12a-rc-30-34"
+ grouping: "FP"
+ description: "Number of known HIV positive Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12a-rc-35+"
+ grouping: "FP"
+ description: "Number of known HIV positive Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 12b
+ #NEW CLIENT
+ - key: "fp-12b-nc-10-14"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12b-nc-15-19"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12b-nc-20-24"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12b-nc-25-29"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12b-nc-30-34"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12b-nc-35+"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-12b-rc-10-14"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12b-rc-15-19"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12b-rc-20-24"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12b-rc-25-29"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12b-rc-30-34"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12b-rc-35+"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested for HIV for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 12c
+ #NEW CLIENT
+ - key: "fp-12c-nc-10-14"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12c-nc-15-19"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12c-nc-20-24"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12c-nc-25-29"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12c-nc-30-34"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12c-nc-35+"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-12c-rc-10-14"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12c-rc-15-19"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12c-rc-20-24"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12c-rc-25-29"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12c-rc-30-34"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12c-rc-35+"
+ grouping: "FP"
+ description: "Number of breastfeeding clients tested positive for HIV for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ INNER JOIN ec_fp_screening efs ON efos.entity_id = efs.entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efs.is_client_breastfeeding = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 12d
+ #NEW CLIENT
+ - key: "fp-12d-nc-10-14"
+ grouping: "FP"
+ description: "Number of women tested for HIV for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12d-nc-15-19"
+ grouping: "FP"
+ description: "Number of women tested for HIV for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12d-nc-20-24"
+ grouping: "FP"
+ description: "Number of women tested for HIV for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12d-nc-25-29"
+ grouping: "FP"
+ description: "Number of women tested for HIV for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12d-nc-30-34"
+ grouping: "FP"
+ description: "Number of women tested for HIV for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12d-nc-35+"
+ grouping: "FP"
+ description: "Number of women tested for HIV for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-12d-rc-10-14"
+ grouping: "FP"
+ description: "Number of women tested for HIV for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12d-rc-15-19"
+ grouping: "FP"
+ description: "Number of women tested for HIV for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12d-rc-20-24"
+ grouping: "FP"
+ description: "Number of women tested for HIV for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12d-rc-25-29"
+ grouping: "FP"
+ description: "Number of women tested for HIV for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12d-rc-30-34"
+ grouping: "FP"
+ description: "Number of women tested for HIV for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12d-rc-35+"
+ grouping: "FP"
+ description: "Number of women tested for HIV for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_hiv_test_results = 'positive' OR efos.client_hiv_test_results = 'negative')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 12e
+ #NEW CLIENT
+ - key: "fp-12e-nc-10-14"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12e-nc-15-19"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12e-nc-20-24"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12e-nc-25-29"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12e-nc-30-34"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12e-nc-35+"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-12e-rc-10-14"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12e-rc-15-19"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12e-rc-20-24"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12e-rc-25-29"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12e-rc-30-34"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12e-rc-35+"
+ grouping: "FP"
+ description: "Number of women tested positive for HIV for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_hiv_test_results = 'positive')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 12f
+ #NEW CLIENT
+ - key: "fp-12f-nc-10-14"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12f-nc-15-19"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12f-nc-20-24"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12f-nc-25-29"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12f-nc-30-34"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12f-nc-35+"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-12f-rc-10-14"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12f-rc-15-19"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12f-rc-20-24"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12f-rc-25-29"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12f-rc-30-34"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12f-rc-35+"
+ grouping: "FP"
+ description: "Number of partners tested for HIV for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.partner_tested_for_hiv = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 12g
+ #NEW CLIENT
+ - key: "fp-12g-nc-10-14"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12g-nc-15-19"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12g-nc-20-24"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12g-nc-25-29"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12g-nc-30-34"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12g-nc-35+"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-12g-rc-10-14"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12g-rc-15-19"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12g-rc-20-24"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12g-rc-25-29"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12g-rc-30-34"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12g-rc-35+"
+ grouping: "FP"
+ description: "Number of partners tested positive for HIV for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.partner_hiv_test_results = 'positive')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 12h
+ #NEW CLIENT
+ - key: "fp-12h-nc-10-14"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12h-nc-15-19"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12h-nc-20-24"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12h-nc-25-29"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12h-nc-30-34"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12h-nc-35+"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-12h-rc-10-14"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12h-rc-15-19"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12h-rc-20-24"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12h-rc-25-29"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12h-rc-30-34"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12h-rc-35+"
+ grouping: "FP"
+ description: "Number of female clients referred to CTC for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.client_referred_to_ctc = 'yes')
+ AND (efm.gender='Female')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 12i
+ #NEW CLIENT
+ - key: "fp-12i-nc-10-14"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12i-nc-15-19"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12i-nc-20-24"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12i-nc-25-29"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12i-nc-30-34"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12i-nc-35+"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-12i-rc-10-14"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12i-rc-15-19"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12i-rc-20-24"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12i-rc-25-29"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-12i-rc-30-34"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-12i-rc-35+"
+ grouping: "FP"
+ description: "Number of partners referred to CTC for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT efos.entity_id) as count
+ FROM ec_fp_other_services efos
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = efos.entity_id
+ INNER JOIN ec_family_planning efl ON efos.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (efos.partner_referred_to_ctc = 'yes')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(efos.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 13a
+ #NEW CLIENT
+ - key: "fp-13a-nc-10-14"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13a-nc-15-19"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for to New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13a-nc-20-24"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13a-nc-25-29"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13a-nc-30-34"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for New clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13a-nc-35+"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-13a-rc-10-14"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13a-rc-15-19"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13a-rc-20-24"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13a-rc-25-29"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13a-rc-30-34"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13a-rc-35+"
+ grouping: "FP"
+ description: "Number of reported cases of heavy bleeding incidents for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%heavy_bleeding%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 13b
+ #NEW CLIENT
+ - key: "fp-13b-nc-10-14"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13b-nc-15-19"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for to New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13b-nc-20-24"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13b-nc-25-29"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13b-nc-30-34"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for New clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13b-nc-35+"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-13b-rc-10-14"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13b-rc-15-19"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13b-rc-20-24"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13b-rc-25-29"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13b-rc-30-34"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13b-rc-35+"
+ grouping: "FP"
+ description: "Number of reported cases of severe headaches incidents for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%severe_headache%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 13c
+ #NEW CLIENT
+ - key: "fp-13c-nc-10-14"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13c-nc-15-19"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for to New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13c-nc-20-24"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13c-nc-25-29"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13c-nc-30-34"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for New clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13c-nc-35+"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-13c-rc-10-14"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13c-rc-15-19"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13c-rc-20-24"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13c-rc-25-29"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13c-rc-30-34"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13c-rc-35+"
+ grouping: "FP"
+ description: "Number of reported cases of severe abdominal pain incidents for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%severe_lower%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 13d
+ #NEW CLIENT
+ - key: "fp-13d-nc-10-14"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13d-nc-15-19"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for to New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13d-nc-20-24"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13d-nc-25-29"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13d-nc-30-34"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for New clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13d-nc-35+"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-13d-rc-10-14"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13d-rc-15-19"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13d-rc-20-24"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13d-rc-25-29"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13d-rc-30-34"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13d-rc-35+"
+ grouping: "FP"
+ description: "Number of reported cases of severe chest pain incidents for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%severe_chest%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 13e
+ #NEW CLIENT
+ - key: "fp-13e-nc-10-14"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13e-nc-15-19"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for to New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13e-nc-20-24"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13e-nc-25-29"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13e-nc-30-34"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for New clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13e-nc-35+"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-13e-rc-10-14"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13e-rc-15-19"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13e-rc-20-24"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13e-rc-25-29"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13e-rc-30-34"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13e-rc-35+"
+ grouping: "FP"
+ description: "Number of reported cases of who became pregnant for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Question 13f
+ #NEW CLIENT
+ - key: "fp-13f-nc-10-14"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for New clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13f-nc-15-19"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for to New clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13f-nc-20-24"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for New clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13f-nc-25-29"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for New clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13f-nc-30-34"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for New clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13f-nc-35+"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for New clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ #Revisit CLIENT
+ - key: "fp-13f-rc-10-14"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for Re-visit clients from 10-14 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 10 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13f-rc-15-19"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for Re-visit clients from 15-19 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 15 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13f-rc-20-24"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for Re-visit clients from 20-24 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 20 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 24
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13f-rc-25-29"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for Re-visit clients from 25-29 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 25 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 29
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+ - key: "fp-13f-rc-30-34"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for Re-visit clients from 30-34 years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE 30 <= (date('Now') - date(efm.dob)) AND (date('Now')-date(efm.dob))<= 34
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+ - key: "fp-13f-rc-35+"
+ grouping: "FP"
+ description: "Number of family planning clients using ARV (Antiretroviral) medication who became pregnant for Re-visit clients above 35+ years"
+ indicatorQuery: "SELECT count(DISTINCT eff.entity_id) as count
+ FROM ec_fp_follow_up_visit eff
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = eff.entity_id
+ INNER JOIN ec_fp_screening efs ON efs.entity_id = eff.entity_id
+ INNER JOIN ec_family_planning efl ON eff.entity_id = efl.base_entity_id
+ WHERE (date('Now')-date(efm.dob))>=35
+ AND (eff.side_effects LIKE '%pregnancy%')
+ AND (efs.client_medical_history LIKE '%on_art%')
+ AND (efl.client_used_fp_before = 'yes')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(eff.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+
+
+
diff --git a/opensrp-chw-hf/src/main/assets/config/indicator-definitions.yml b/opensrp-chw-hf/src/main/assets/config/indicator-definitions.yml
index 55002de678..607b645b6f 100644
--- a/opensrp-chw-hf/src/main/assets/config/indicator-definitions.yml
+++ b/opensrp-chw-hf/src/main/assets/config/indicator-definitions.yml
@@ -1,1416 +1,1416 @@
-indicators:
- - key: "newpreg_mama_visit"
- description: "newpreg_mama_visit_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN visits v on v.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'ANC Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND (substr(e.eventDate, 1, 4) == strftime('%Y',date('now'), 'localtime'))
- AND (substr(e.eventDate, 6, 2) == strftime('%m',date('now'), 'localtime'))
- AND (v.visit_type = 'ANC Home Visit')
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
-
- - key: "oldpreg_mama_visit"
- description: "oldpreg_mama_visit_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN visits v on v.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'ANC Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND (date (e.eventDate) < date('now','start of month'))
- AND v.visit_type = 'ANC Home Visit'
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
-
- - key: "total_preg_visit"
- description: "total_preg_visit_label"
- indicatorQuery: "SELECT count (DISTINCT(v.base_entity_id)) as count
- FROM visits v
- WHERE v.visit_type = 'ANC Home Visit'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
-
- - key: "pnc_visit"
- description: "pnc_visit_label"
- indicatorQuery: "SELECT count (DISTINCT(v.base_entity_id)) as count
- FROM visits v
- WHERE v.visit_type = 'PNC Home Visit'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
-
- - key: "total_F_visited"
- description: "total_F_visited_label"
- indicatorQuery: "SELECT count (DISTINCT(v.base_entity_id)) as count
- FROM visits v
- WHERE ( v.visit_type = 'PNC Home Visit' OR v.visit_type = 'ANC Home Visit')
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
-
- - key: "less1m_visit"
- description: "less1m_visit_label"
- indicatorQuery: "SELECT SUM(count) as count
- FROM(
- SELECT count(DISTINCT c.base_entity_id) as count
- FROM ec_child c
- INNER JOIN visits v on v.base_entity_id = c.mother_entity_id
- WHERE v.visit_type = 'PNC Home Visit'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))
- AND ( date(c.dob, '+1 month') > date ('now'))
- UNION ALL
- SELECT count(DISTINCT c.base_entity_id) as count
- FROM ec_child c
- INNER JOIN visits v on v.base_entity_id = c.base_entity_id
- WHERE( date(c.dob, '+1 month') > date ('now'))
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND v.visit_type = 'Child Home Visit'
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))
- )"
-
- - key: "1m1yr_visit"
- description: "reporting_1m1yr_visit_label"
- indicatorQuery: "SELECT count(DISTINCT c.base_entity_id) as count
- FROM ec_child c
- INNER JOIN visits v on v.base_entity_id = c.base_entity_id
- WHERE( date(c.dob, '+1 month') <= date ('now'))
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND( date(c.dob, '+1 year') > date ('now'))
- AND v.visit_type = 'Child Home Visit'
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
-
- - key: "1yr5yr_visit"
- description: "reporting_1yr5yr_visit_label"
- indicatorQuery: "SELECT count(DISTINCT c.base_entity_id) as count
- FROM ec_child c
- INNER JOIN visits v on v.base_entity_id = c.base_entity_id
- WHERE( date(c.dob, '+1 year') <= date ('now'))
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND( date(c.dob, '+5 years') >= date ('now'))
- AND v.visit_type = 'Child Home Visit'
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
-
- - key: "total_U5_visit"
- description: "total_U5_visit_label"
- indicatorQuery: "SELECT count(1) as count
- FROM event e
- INNER JOIN ec_child c on c.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Child Registration' OR e.eventType = 'PNC Child Registration')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND (c.is_closed = '0')"
-
- - key: "hh_visited"
- description: "hh_visited_label"
- indicatorQuery: "SELECT SUM(count)
- FROM (
- SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- WHERE e.eventType = 'Family Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND (substr(e.eventDate, 1, 4) == strftime('%Y',date('now'), 'localtime'))
- AND (substr(e.eventDate, 6, 2) == strftime('%m',date('now'), 'localtime'))
- AND e.baseEntityId NOT IN(
- SELECT DISTINCT fm.relational_id
- FROM ec_family_member fm
- INNER JOIN visits v on v.base_entity_id = fm.base_entity_id
- WHERE ( v.visit_type = 'PNC Home Visit' OR v.visit_type = 'ANC Home Visit' OR v.visit_type = 'FP Follow up Visit Resupply'
- OR v.visit_type = 'FP Follow-up Visit Side-effects' OR v.visit_type = 'FP Follow up visit Counselling' OR v.visit_type = 'Child Home Visit')
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))
- )
- UNION ALL
- SELECT COUNT(DISTINCT fm.relational_id) as count
- FROM visits v
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE ( v.visit_type = 'PNC Home Visit' OR v.visit_type = 'ANC Home Visit' OR v.visit_type = 'FP Follow up Visit Resupply'
- OR v.visit_type = 'FP Follow-up Visit Side-effects' OR v.visit_type = 'FP Follow up visit Counselling' OR v.visit_type = 'Child Home Visit')
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
- AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))
- )"
-
- - key: "F_referral_hf"
- description: "F_referral_hf_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- WHERE (e.eventType = 'ANC Referral' OR e.eventType = 'PNC Referral' OR e.eventType = 'Family Planning Referral' OR e.eventType = 'Malaria Referral')
- AND ('%s' = (substr(e.eventDate, 1,10)))"
-
- - key: "less1m_referral_hf"
- description: "less1m_referral_hf_label"
- indicatorQuery: "SELECT SUM(count) as count
- FROM(
- SELECT count(DISTINCT c.base_entity_id) as count
- FROM ec_child c
- INNER JOIN event e on e.baseEntityId = c.base_entity_id
- WHERE( date(c.dob, '+1 month') > date ('now'))
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND e.eventType = 'Sick Child Referral'
- UNION ALL
- SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_child c on c.mother_entity_id = e.baseEntityId
- WHERE e.eventType = 'PNC Referral'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(c.dob, '+1 month') > date ('now'))
- AND e.eventType = 'PNC Referral')"
-
- - key: "1m1yr_referral_hf"
- description: "reporting_1m1yr_referral_hf_label"
- indicatorQuery: "SELECT count(DISTINCT c.base_entity_id) as count
- FROM ec_child c
- INNER JOIN event e on e.baseEntityId = c.base_entity_id
- WHERE( date(c.dob, '+1 month') <= date ('now'))
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND( date(c.dob, '+1 year') > date ('now'))
- AND e.eventType = 'Sick Child Referral'"
-
- - key: "1yr5yr_referral_hf"
- description: "reporting_1yr5yr_referral_hf_label"
- indicatorQuery: "SELECT count(DISTINCT c.base_entity_id) as count
- FROM ec_child c
- INNER JOIN event e on e.baseEntityId = c.base_entity_id
- WHERE( date(c.dob, '+1 year') <= date ('now'))
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND( date(c.dob, '+5 years') >= date ('now'))
- AND e.eventType = 'Sick Child Referral'"
-
- - key: "total_referral"
- description: "total_referral_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- WHERE (e.eventType = 'ANC Referral' OR e.eventType = 'PNC Referral' OR e.eventType = 'Family Planning Referral' OR e.eventType = 'Malaria Referral' OR e.eventType = 'Sick Child Referral')
- AND ('%s' = (substr(e.eventDate, 1,10)))"
-
- - key: "no_healthedu_meet"
- description: "no_healthedu_meet_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- WHERE (e.eventType = ' Health Education Meeting')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND (substr(e.eventDate, 1, 4) == strftime('%Y',date('now'), 'localtime'))
- AND (substr(e.eventDate, 6, 2) == strftime('%m',date('now'), 'localtime'))"
-
- - key: "no_ppl_attend_meet"
- description: "no_ppl_attend_meet_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- WHERE (e.eventType = ' Health Education Meeting')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND (substr(e.eventDate, 1, 4) == strftime('%Y',date('now'), 'localtime'))
- AND (substr(e.eventDate, 6, 2) == strftime('%m',date('now'), 'localtime'))"
-
- - key: "F_death_home"
- description: "F_death_home_label"
- indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
-
- - key: "no_maternal_death"
- description: "no_maternal_death_label"
- indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
-
- - key: "less1m_death_home"
- description: "less1m_death_home_label"
- indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
-
- - key: "total_less1m_deaths"
- description: "total_less1m_deaths_label"
- indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
-
- - key: "1m1yr_death_home"
- description: "reporting_1m1yr_death_home_label"
- indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
-
- - key: "total_1m1yr_deaths"
- description: "total_1m1yr_deaths_label"
- indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
-
- - key: "1yr5yr_death_home"
- description: "reporting_1yr5yr_death_home_label"
- indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
-
- - key: "total_1yr5yr_deaths"
- description: "total_1yr5yr_deaths_label"
- indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
-
- - key: "birth_home"
- description: "birth_home_label"
- indicatorQuery: "SELECT count(DISTINCT pg.base_entity_id) as count
- FROM ec_pregnancy_outcome pg
- INNER JOIN event e on e.baseEntityId = pg.base_entity_id
- WHERE pg.delivery_place = 'At home'
- AND ('%s' = (substr(e.eventDate, 1,10)))"
-
- - key: "birth_home_healer"
- description: "birth_home_healer_label"
- indicatorQuery: "SELECT count(DISTINCT pg.base_entity_id) as count
- FROM ec_pregnancy_outcome pg
- INNER JOIN event e on e.baseEntityId = pg.base_entity_id
- WHERE pg.delivery_place = 'At home'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND pg.delivery_home = 'She gave birth at home with the help of a traditional midwife'"
-
- - key: "birth_way_hf"
- description: "birth_way_hf_label"
- indicatorQuery: "SELECT count(DISTINCT pg.base_entity_id) as count
- FROM ec_pregnancy_outcome pg
- INNER JOIN event e on e.baseEntityId = pg.base_entity_id
- WHERE pg.delivery_place = 'On the way to the health facility'
- AND ('%s' = (substr(e.eventDate, 1,10)))"
-
- - key: "total_birth_home"
- description: "total_birth_home_label"
- indicatorQuery: "SELECT count(DISTINCT pg.base_entity_id) as count
- FROM ec_pregnancy_outcome pg
- INNER JOIN event e on e.baseEntityId = pg.base_entity_id
- WHERE ( pg.delivery_place = 'At home' OR pg.delivery_place = 'On the way to the health facility')
- AND ('%s' = (substr(e.eventDate, 1,10)))"
-
- - key: "10y14y_new_clients"
- description: "reporting_10y14y_new_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fp.using_method = 'no')
- AND ( fm.gender = 'Female')"
-
- - key: "10y14y_new_men_clients"
- description: "reporting_10y14y_new_men_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fp.using_method = 'no')
- AND ( fm.gender = 'Male')"
-
- - key: "10y14y_return_clients"
- description: "reporting_10y14y_return_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fp.using_method = 'yes')
- AND ( fm.gender = 'Female')"
-
- - key: "10y14y_return_men_clients"
- description: "reporting_10y14y_return_men_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fp.using_method = 'yes')
- AND ( fm.gender = 'Male')"
-
- - key: "10y14y_total_clients"
- description: "reporting_10y14y_total_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))"
-
- - key: "15y19y_new_clients"
- description: "reporting_15y19y_new_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND ( fp.using_method = 'no')
- AND ( fm.gender = 'Female')"
-
- - key: "15y19y_new_men_clients"
- description: "reporting_15y19y_new_men_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND ( fp.using_method = 'no')
- AND ( fm.gender = 'Male')"
-
- - key: "15y19y_return_clients"
- description: "reporting_15y19y_return_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND ( fp.using_method = 'yes')
- AND ( fm.gender = 'Female')"
-
- - key: "15y19y_return_men_clients"
- description: "reporting_15y19y_return_men_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND ( fp.using_method = 'yes')
- AND ( fm.gender = 'Male')"
-
- - key: "15y19y_total_clients"
- description: "reporting_15y19y_total_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))"
-
- - key: "20y24y_new_clients"
- description: "reporting_20y24y_new_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fp.using_method = 'no')
- AND ( fm.gender = 'Female')"
-
- - key: "20y24y_new_men_clients"
- description: "reporting_20y24y_new_men_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fp.using_method = 'no')
- AND ( fm.gender = 'Male')"
-
- - key: "20y24y_return_clients"
- description: "reporting_20y24y_return_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fp.using_method = 'yes')
- AND ( fm.gender = 'Female')"
-
- - key: "20y24y_return_men_clients"
- description: "reporting_20y24y_return_men_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fp.using_method = 'yes')
- AND ( fm.gender = 'Male')"
-
- - key: "20y24y_total_clients"
- description: "reporting_20y24y_total_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))"
-
- - key: "25_new_clients"
- description: "reporting_25_new_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fp.using_method = 'no')
- AND ( fm.gender = 'Female')"
-
- - key: "25_new_men_clients"
- description: "reporting_25_new_men_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fp.using_method = 'no')
- AND ( fm.gender = 'Male')"
-
- - key: "25_return_clients"
- description: "reporting_25_return_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fp.using_method = 'yes')
- AND ( fm.gender = 'Female')"
-
- - key: "25_return_men_clients"
- description: "reporting_25_return_men_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fp.using_method = 'yes')
- AND ( fm.gender = 'Male')"
-
- - key: "25_total_clients"
- description: "reporting_25_total_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))"
-
- - key: "total_new_clients"
- description: "total_new_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( fp.using_method = 'no')
- AND ( fm.gender = 'Female')"
-
- - key: "total_new_men_clients"
- description: "total_new_men_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( fp.using_method = 'no')
- AND ( fm.gender = 'Male')"
-
- - key: "total_return_clients"
- description: "total_return_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( fp.using_method = 'yes')
- AND ( fm.gender = 'Female')"
-
- - key: "total_return_men_clients"
- description: "total_return_men_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( fp.using_method = 'yes')
- AND ( fm.gender = 'Male')"
-
- - key: "total_total_clients"
- description: "total_total_clients_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Registration'
- AND ('%s' = (substr(e.eventDate, 1,10))) "
-
- - key: "10y14y_pop"
- description: "reporting_10y14y_pop_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND fp.fp_method_accepted = 'POP'"
-
- - key: "10y14y_coc"
- description: "reporting_10y14y_coc_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND fp.fp_method_accepted = 'COC'"
-
- - key: "10y14y_emc"
- description: "reporting_10y14y_emc_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND fp.fp_method_accepted = 'Emergency contraceptive'"
-
- - key: "10y14y_total_pills"
- description: "reporting_10y14y_total_pills_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Emergency contraceptive' OR fp.fp_method_accepted = 'COC' OR fp.fp_method_accepted = 'POP')"
-
- - key: "15y19y_pop"
- description: "reporting_15y19y_pop_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND fp.fp_method_accepted = 'POP'"
-
- - key: "15y19y_coc"
- description: "reporting_15y19y_coc_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND fp.fp_method_accepted = 'COC'"
-
- - key: "15y19y_emc"
- description: "reporting_15y19y_emc_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND fp.fp_method_accepted = 'Emergency contraceptive'"
-
- - key: "15y19y_total_pills"
- description: "reporting_15y19y_total_pills_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Emergency contraceptive' OR fp.fp_method_accepted = 'COC' OR fp.fp_method_accepted = 'POP')"
-
- - key: "20y24y_pop"
- description: "reporting_20y24y_pop_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND fp.fp_method_accepted = 'POP'"
-
- - key: "20y24y_coc"
- description: "reporting_20y24y_coc_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND fp.fp_method_accepted = 'COC'"
-
- - key: "20y24y_emc"
- description: "reporting_20y24y_emc_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND fp.fp_method_accepted = 'Emergency contraceptive'"
-
- - key: "20y24y_total_pills"
- description: "reporting_20y24y_total_pills_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Emergency contraceptive' OR fp.fp_method_accepted = 'COC' OR fp.fp_method_accepted = 'POP')"
-
- - key: "25_pop"
- description: "reporting_25_pop_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND fp.fp_method_accepted = 'POP'"
-
- - key: "25_coc"
- description: "reporting_25_coc_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND fp.fp_method_accepted = 'COC'"
-
- - key: "25_emc"
- description: "reporting_25_emc_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND fp.fp_method_accepted = 'Emergency contraceptive'"
-
- - key: "25_total_pills"
- description: "reporting_25_total_pills_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fp.fp_method_accepted = 'Emergency contraceptive' OR fp.fp_method_accepted = 'COC' OR fp.fp_method_accepted = 'POP')"
-
- - key: "total_pop"
- description: "total_pop_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND fp.fp_method_accepted = 'POP'"
-
- - key: "total_coc"
- description: "total_coc_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND fp.fp_method_accepted = 'COC'"
-
- - key: "total_emc"
- description: "total_emc_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND fp.fp_method_accepted = 'Emergency contraceptive'"
-
- - key: "total_total_pills"
- description: "total_total_pills_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( fp.fp_method_accepted = 'Emergency contraceptive' OR fp.fp_method_accepted = 'COC' OR fp.fp_method_accepted = 'POP')"
-
- - key: "10y14y_F_mcondom"
- description: "reporting_10y14y_F_mcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Male condom')
- AND ( fm.gender = 'Female')"
-
- - key: "10y14y_men_F_mcondom"
- description: "reporting_10y14y_men_F_mcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Male condom')
- AND ( fm.gender = 'Male')"
-
- - key: "10y14y_F_fcondom"
- description: "reporting_10y14y_F_fcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom')
- AND ( fm.gender = 'Female')"
-
- - key: "10y14y_men_F_fcondom"
- description: "reporting_10y14y_men_F_fcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom')
- AND ( fm.gender = 'Male')"
-
- - key: "10y14y_total_condoms"
- description: "reporting_10y14y_total_condoms_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom' OR fp.fp_method_accepted = 'Male condom' )"
-
- - key: "15y19y_F_mcondom"
- description: "reporting_15y19y_F_mcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Male condom')
- AND ( fm.gender = 'Female')"
-
- - key: "15y19y_men_F_mcondom"
- description: "reporting_15y19y_men_F_mcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND (fp.fp_method_accepted = 'Male condom')
- AND (fm.gender = 'Male')"
-
- - key: "15y19y_F_fcondom"
- description: "reporting_15y19y_F_fcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom')
- AND ( fm.gender = 'Female')"
-
- - key: "15y19y_men_F_fcondom"
- description: "reporting_15y19y_men_F_fcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND (fp.fp_method_accepted = 'Female condom')
- AND (fm.gender = 'Male')"
-
- - key: "15y19y_total_condoms"
- description: "reporting_15y19y_total_condoms_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom' OR fp.fp_method_accepted = 'Male condom' )"
-
- - key: "20y24y_F_mcondom"
- description: "reporting_20y24y_F_mcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND (fp.fp_method_accepted = 'Male condom')
- AND (fm.gender = 'Female')"
-
- - key: "20y24y_men_F_mcondom"
- description: "reporting_20y24y_men_F_mcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Male condom')
- AND ( fm.gender = 'Male')"
-
- - key: "20y24y_F_fcondom"
- description: "reporting_20y24y_F_fcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom')
- AND ( fm.gender = 'Female')"
-
- - key: "20y24y_men_F_fcondom"
- description: "reporting_20y24y_men_F_fcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom')
- AND ( fm.gender = 'Male')"
-
- - key: "20y24y_total_condoms"
- description: "reporting_20y24y_total_condoms_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom' OR fp.fp_method_accepted = 'Male condom' )"
-
- - key: "25_F_mcondom"
- description: "reporting_25_F_mcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fp.fp_method_accepted = 'Male condom')
- AND ( fm.gender = 'Female')"
-
- - key: "25_men_F_mcondom"
- description: "reporting_25_men_F_mcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fp.fp_method_accepted = 'Male condom')
- AND ( fm.gender = 'Male')"
-
- - key: "25_F_fcondom"
- description: "reporting_25_F_fcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom')
- AND ( fm.gender = 'Female')"
-
- - key: "25_men_F_fcondom"
- description: "reporting_25_men_F_fcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom')
- AND ( fm.gender = 'Male')"
-
- - key: "25_total_condoms"
- description: "reporting_25_total_condoms_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fp.fp_method_accepted = 'Female condom' OR fp.fp_method_accepted = 'Male condom')"
-
- - key: "total_F_mcondom"
- description: "total_F_mcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( fp.fp_method_accepted = 'Male condom')
- AND ( fm.gender = 'Female')"
-
- - key: "total_men_F_mcondom"
- description: "total_men_F_mcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( fp.fp_method_accepted = 'Male condom')
- AND ( fm.gender = 'Male')"
-
- - key: "total_F_fcondom"
- description: "total_F_fcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( fp.fp_method_accepted = 'Female condom')
- AND ( fm.gender = 'Female')"
-
- - key: "total_men_F_fcondom"
- description: "total_men_F_fcondom_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( fp.fp_method_accepted = 'Female condom')
- AND ( fm.gender = 'Male')"
-
- - key: "total_total_condoms"
- description: "total_total_condoms_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( fp.fp_method_accepted = 'Female condom' OR fp.fp_method_accepted = 'Male condom')"
-
- - key: "10y14y_beads"
- description: "reporting_10y14y_beads_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND fp.fp_method_accepted = 'Standard day method'"
-
- - key: "15y19y_beads"
- description: "reporting_15y19y_beads_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND fp.fp_method_accepted = 'Standard day method'"
-
- - key: "20y24y_beads"
- description: "reporting_20y24y_beads_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND fp.fp_method_accepted = 'Standard day method'"
-
- - key: "25_beads"
- description: "reporting_25_beads_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND fp.fp_method_accepted = 'Standard day method'"
-
- - key: "total_beads"
- description: "total_beads_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND fp.fp_method_accepted = 'Standard day method'"
-
- - key: "10y14y_cousel_ANC"
- description: "reporting_10y14y_cousel_ANC_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During ANC'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))"
-
- - key: "15y19y_cousel_ANC"
- description: "reporting_15y19y_cousel_ANC_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During ANC'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))"
-
- - key: "20y24y_cousel_ANC"
- description: "reporting_20y24y_cousel_ANC_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During ANC'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))"
-
- - key: "25_cousel_ANC"
- description: "reporting_25_cousel_ANC_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During ANC'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+25 years') <= date ('now'))"
-
- - key: "total_cousel_ANC"
- description: "total_cousel_ANC_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During ANC'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+10 years') <= date ('now'))"
-
- - key: "10y14y_cousel_delivery"
- description: "reporting_10y14y_cousel_delivery_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During labour and delivery'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))"
-
- - key: "15y19y_cousel_delivery"
- description: "reporting_15y19y_cousel_delivery_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During labour and delivery'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))"
-
- - key: "20y24y_cousel_delivery"
- description: "reporting_20y24y_cousel_delivery_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During labour and delivery'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))"
-
- - key: "25_cousel_delivery"
- description: "reporting_25_cousel_delivery_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During labour and delivery'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+25 years') <= date ('now'))"
-
- - key: "total_cousel_delivery"
- description: "total_cousel_delivery_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During labour and delivery'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+10 years') <= date ('now'))"
-
- - key: "10y14y_cousel_PNC"
- description: "reporting_10y14y_cousel_PNC_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During PNC'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))"
-
- - key: "15y19y_cousel_PNC"
- description: "reporting_15y19y_cousel_PNC_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During PNC'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))"
-
- - key: "20y24y_cousel_PNC"
- description: "reporting_20y24y_cousel_PNC_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During PNC'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))"
-
- - key: "25_cousel_PNC"
- description: "reporting_25_cousel_PNC_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During PNC'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+25 years') <= date ('now'))"
-
- - key: "total_cousel_PNC"
- description: "total_cousel_PNC_label"
- indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
- FROM visit_details vd
- INNER JOIN visits v on v.visit_id = vd.visit_id
- INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
- WHERE vd.human_readable_details = 'During PNC'
- AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
- AND ( date(fm.dob, '+10 years') <= date ('now'))"
-
- - key: "10y14y_referral"
- description: "reporting_10y14y_referral_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Referral'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fm.gender = 'Female')"
-
- - key: "10y14y_men_referral"
- description: "reporting_10y14y_men_referral_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Referral'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))
- AND ( date(fm.dob, '+14 years') >= date ('now'))
- AND ( fm.gender = 'Male')"
-
- - key: "15y19y_referral"
- description: "reporting_15y19y_referral_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Referral'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND ( fm.gender = 'Female')"
-
- - key: "15y19y_men_referral"
- description: "reporting_15y19y_men_referral_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Referral'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+15 years') <= date ('now'))
- AND ( date(fm.dob, '+19 years') >= date ('now'))
- AND ( fm.gender = 'Male')"
-
- - key: "20y24y_referral"
- description: "reporting_20y24y_referral_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Referral'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fm.gender = 'Female')"
-
- - key: "20y24y_men_referral"
- description: "reporting_20y24y_men_referral_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Referral'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+20 years') <= date ('now'))
- AND ( date(fm.dob, '+24 years') >= date ('now'))
- AND ( fm.gender = 'Male')"
-
- - key: "25_referral"
- description: "reporting_25_referral_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Referral'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fm.gender = 'Female')"
-
- - key: "25_men_referral"
- description: "reporting_25_men_referral_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Referral'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+25 years') <= date ('now'))
- AND ( fm.gender = 'Male')"
-
- - key: "total_fp_referral"
- description: "total_fp_referral_label"
- indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
- FROM event e
- INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
- WHERE e.eventType = 'Family Planning Referral'
- AND ('%s' = (substr(e.eventDate, 1,10)))
- AND ( date(fm.dob, '+10 years') <= date ('now'))"
+#indicators:
+# - key: "newpreg_mama_visit"
+# description: "newpreg_mama_visit_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN visits v on v.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'ANC Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND (substr(e.eventDate, 1, 4) == strftime('%Y',date('now'), 'localtime'))
+# AND (substr(e.eventDate, 6, 2) == strftime('%m',date('now'), 'localtime'))
+# AND (v.visit_type = 'ANC Home Visit')
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
+#
+# - key: "oldpreg_mama_visit"
+# description: "oldpreg_mama_visit_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN visits v on v.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'ANC Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND (date (e.eventDate) < date('now','start of month'))
+# AND v.visit_type = 'ANC Home Visit'
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
+#
+# - key: "total_preg_visit"
+# description: "total_preg_visit_label"
+# indicatorQuery: "SELECT count (DISTINCT(v.base_entity_id)) as count
+# FROM visits v
+# WHERE v.visit_type = 'ANC Home Visit'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
+#
+# - key: "pnc_visit"
+# description: "pnc_visit_label"
+# indicatorQuery: "SELECT count (DISTINCT(v.base_entity_id)) as count
+# FROM visits v
+# WHERE v.visit_type = 'PNC Home Visit'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
+#
+# - key: "total_F_visited"
+# description: "total_F_visited_label"
+# indicatorQuery: "SELECT count (DISTINCT(v.base_entity_id)) as count
+# FROM visits v
+# WHERE ( v.visit_type = 'PNC Home Visit' OR v.visit_type = 'ANC Home Visit')
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
+#
+# - key: "less1m_visit"
+# description: "less1m_visit_label"
+# indicatorQuery: "SELECT SUM(count) as count
+# FROM(
+# SELECT count(DISTINCT c.base_entity_id) as count
+# FROM ec_child c
+# INNER JOIN visits v on v.base_entity_id = c.mother_entity_id
+# WHERE v.visit_type = 'PNC Home Visit'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))
+# AND ( date(c.dob, '+1 month') > date ('now'))
+# UNION ALL
+# SELECT count(DISTINCT c.base_entity_id) as count
+# FROM ec_child c
+# INNER JOIN visits v on v.base_entity_id = c.base_entity_id
+# WHERE( date(c.dob, '+1 month') > date ('now'))
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND v.visit_type = 'Child Home Visit'
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))
+# )"
+#
+# - key: "1m1yr_visit"
+# description: "reporting_1m1yr_visit_label"
+# indicatorQuery: "SELECT count(DISTINCT c.base_entity_id) as count
+# FROM ec_child c
+# INNER JOIN visits v on v.base_entity_id = c.base_entity_id
+# WHERE( date(c.dob, '+1 month') <= date ('now'))
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND( date(c.dob, '+1 year') > date ('now'))
+# AND v.visit_type = 'Child Home Visit'
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
+#
+# - key: "1yr5yr_visit"
+# description: "reporting_1yr5yr_visit_label"
+# indicatorQuery: "SELECT count(DISTINCT c.base_entity_id) as count
+# FROM ec_child c
+# INNER JOIN visits v on v.base_entity_id = c.base_entity_id
+# WHERE( date(c.dob, '+1 year') <= date ('now'))
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND( date(c.dob, '+5 years') >= date ('now'))
+# AND v.visit_type = 'Child Home Visit'
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))"
+#
+# - key: "total_U5_visit"
+# description: "total_U5_visit_label"
+# indicatorQuery: "SELECT count(1) as count
+# FROM event e
+# INNER JOIN ec_child c on c.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Child Registration' OR e.eventType = 'PNC Child Registration')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND (c.is_closed = '0')"
+#
+# - key: "hh_visited"
+# description: "hh_visited_label"
+# indicatorQuery: "SELECT SUM(count)
+# FROM (
+# SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# WHERE e.eventType = 'Family Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND (substr(e.eventDate, 1, 4) == strftime('%Y',date('now'), 'localtime'))
+# AND (substr(e.eventDate, 6, 2) == strftime('%m',date('now'), 'localtime'))
+# AND e.baseEntityId NOT IN(
+# SELECT DISTINCT fm.relational_id
+# FROM ec_family_member fm
+# INNER JOIN visits v on v.base_entity_id = fm.base_entity_id
+# WHERE ( v.visit_type = 'PNC Home Visit' OR v.visit_type = 'ANC Home Visit' OR v.visit_type = 'FP Follow up Visit Resupply'
+# OR v.visit_type = 'FP Follow-up Visit Side-effects' OR v.visit_type = 'FP Follow up visit Counselling' OR v.visit_type = 'Child Home Visit')
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))
+# )
+# UNION ALL
+# SELECT COUNT(DISTINCT fm.relational_id) as count
+# FROM visits v
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE ( v.visit_type = 'PNC Home Visit' OR v.visit_type = 'ANC Home Visit' OR v.visit_type = 'FP Follow up Visit Resupply'
+# OR v.visit_type = 'FP Follow-up Visit Side-effects' OR v.visit_type = 'FP Follow up visit Counselling' OR v.visit_type = 'Child Home Visit')
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( strftime('%Y',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%Y',date('now'), 'localtime'))
+# AND ( strftime('%m',(datetime(v.visit_date/1000, 'unixepoch', 'localtime'))) == strftime('%m',date('now'), 'localtime'))
+# )"
+#
+# - key: "F_referral_hf"
+# description: "F_referral_hf_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# WHERE (e.eventType = 'ANC Referral' OR e.eventType = 'PNC Referral' OR e.eventType = 'Family Planning Referral' OR e.eventType = 'Malaria Referral')
+# AND ('%s' = (substr(e.eventDate, 1,10)))"
+#
+# - key: "less1m_referral_hf"
+# description: "less1m_referral_hf_label"
+# indicatorQuery: "SELECT SUM(count) as count
+# FROM(
+# SELECT count(DISTINCT c.base_entity_id) as count
+# FROM ec_child c
+# INNER JOIN event e on e.baseEntityId = c.base_entity_id
+# WHERE( date(c.dob, '+1 month') > date ('now'))
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND e.eventType = 'Sick Child Referral'
+# UNION ALL
+# SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_child c on c.mother_entity_id = e.baseEntityId
+# WHERE e.eventType = 'PNC Referral'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(c.dob, '+1 month') > date ('now'))
+# AND e.eventType = 'PNC Referral')"
+#
+# - key: "1m1yr_referral_hf"
+# description: "reporting_1m1yr_referral_hf_label"
+# indicatorQuery: "SELECT count(DISTINCT c.base_entity_id) as count
+# FROM ec_child c
+# INNER JOIN event e on e.baseEntityId = c.base_entity_id
+# WHERE( date(c.dob, '+1 month') <= date ('now'))
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND( date(c.dob, '+1 year') > date ('now'))
+# AND e.eventType = 'Sick Child Referral'"
+#
+# - key: "1yr5yr_referral_hf"
+# description: "reporting_1yr5yr_referral_hf_label"
+# indicatorQuery: "SELECT count(DISTINCT c.base_entity_id) as count
+# FROM ec_child c
+# INNER JOIN event e on e.baseEntityId = c.base_entity_id
+# WHERE( date(c.dob, '+1 year') <= date ('now'))
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND( date(c.dob, '+5 years') >= date ('now'))
+# AND e.eventType = 'Sick Child Referral'"
+#
+# - key: "total_referral"
+# description: "total_referral_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# WHERE (e.eventType = 'ANC Referral' OR e.eventType = 'PNC Referral' OR e.eventType = 'Family Planning Referral' OR e.eventType = 'Malaria Referral' OR e.eventType = 'Sick Child Referral')
+# AND ('%s' = (substr(e.eventDate, 1,10)))"
+#
+# - key: "no_healthedu_meet"
+# description: "no_healthedu_meet_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# WHERE (e.eventType = ' Health Education Meeting')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND (substr(e.eventDate, 1, 4) == strftime('%Y',date('now'), 'localtime'))
+# AND (substr(e.eventDate, 6, 2) == strftime('%m',date('now'), 'localtime'))"
+#
+# - key: "no_ppl_attend_meet"
+# description: "no_ppl_attend_meet_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# WHERE (e.eventType = ' Health Education Meeting')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND (substr(e.eventDate, 1, 4) == strftime('%Y',date('now'), 'localtime'))
+# AND (substr(e.eventDate, 6, 2) == strftime('%m',date('now'), 'localtime'))"
+#
+# - key: "F_death_home"
+# description: "F_death_home_label"
+# indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
+#
+# - key: "no_maternal_death"
+# description: "no_maternal_death_label"
+# indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
+#
+# - key: "less1m_death_home"
+# description: "less1m_death_home_label"
+# indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
+#
+# - key: "total_less1m_deaths"
+# description: "total_less1m_deaths_label"
+# indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
+#
+# - key: "1m1yr_death_home"
+# description: "reporting_1m1yr_death_home_label"
+# indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
+#
+# - key: "total_1m1yr_deaths"
+# description: "total_1m1yr_deaths_label"
+# indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
+#
+# - key: "1yr5yr_death_home"
+# description: "reporting_1yr5yr_death_home_label"
+# indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
+#
+# - key: "total_1yr5yr_deaths"
+# description: "total_1yr5yr_deaths_label"
+# indicatorQuery: "SELECT count (0) as count FROM ec_child WHERE is_closed is 2"
+#
+# - key: "birth_home"
+# description: "birth_home_label"
+# indicatorQuery: "SELECT count(DISTINCT pg.base_entity_id) as count
+# FROM ec_pregnancy_outcome pg
+# INNER JOIN event e on e.baseEntityId = pg.base_entity_id
+# WHERE pg.delivery_place = 'At home'
+# AND ('%s' = (substr(e.eventDate, 1,10)))"
+#
+# - key: "birth_home_healer"
+# description: "birth_home_healer_label"
+# indicatorQuery: "SELECT count(DISTINCT pg.base_entity_id) as count
+# FROM ec_pregnancy_outcome pg
+# INNER JOIN event e on e.baseEntityId = pg.base_entity_id
+# WHERE pg.delivery_place = 'At home'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND pg.delivery_home = 'She gave birth at home with the help of a traditional midwife'"
+#
+# - key: "birth_way_hf"
+# description: "birth_way_hf_label"
+# indicatorQuery: "SELECT count(DISTINCT pg.base_entity_id) as count
+# FROM ec_pregnancy_outcome pg
+# INNER JOIN event e on e.baseEntityId = pg.base_entity_id
+# WHERE pg.delivery_place = 'On the way to the health facility'
+# AND ('%s' = (substr(e.eventDate, 1,10)))"
+#
+# - key: "total_birth_home"
+# description: "total_birth_home_label"
+# indicatorQuery: "SELECT count(DISTINCT pg.base_entity_id) as count
+# FROM ec_pregnancy_outcome pg
+# INNER JOIN event e on e.baseEntityId = pg.base_entity_id
+# WHERE ( pg.delivery_place = 'At home' OR pg.delivery_place = 'On the way to the health facility')
+# AND ('%s' = (substr(e.eventDate, 1,10)))"
+#
+# - key: "10y14y_new_clients"
+# description: "reporting_10y14y_new_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fp.using_method = 'no')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "10y14y_new_men_clients"
+# description: "reporting_10y14y_new_men_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fp.using_method = 'no')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "10y14y_return_clients"
+# description: "reporting_10y14y_return_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fp.using_method = 'yes')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "10y14y_return_men_clients"
+# description: "reporting_10y14y_return_men_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fp.using_method = 'yes')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "10y14y_total_clients"
+# description: "reporting_10y14y_total_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))"
+#
+# - key: "15y19y_new_clients"
+# description: "reporting_15y19y_new_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND ( fp.using_method = 'no')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "15y19y_new_men_clients"
+# description: "reporting_15y19y_new_men_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND ( fp.using_method = 'no')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "15y19y_return_clients"
+# description: "reporting_15y19y_return_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND ( fp.using_method = 'yes')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "15y19y_return_men_clients"
+# description: "reporting_15y19y_return_men_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND ( fp.using_method = 'yes')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "15y19y_total_clients"
+# description: "reporting_15y19y_total_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))"
+#
+# - key: "20y24y_new_clients"
+# description: "reporting_20y24y_new_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fp.using_method = 'no')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "20y24y_new_men_clients"
+# description: "reporting_20y24y_new_men_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fp.using_method = 'no')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "20y24y_return_clients"
+# description: "reporting_20y24y_return_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fp.using_method = 'yes')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "20y24y_return_men_clients"
+# description: "reporting_20y24y_return_men_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fp.using_method = 'yes')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "20y24y_total_clients"
+# description: "reporting_20y24y_total_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))"
+#
+# - key: "25_new_clients"
+# description: "reporting_25_new_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fp.using_method = 'no')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "25_new_men_clients"
+# description: "reporting_25_new_men_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fp.using_method = 'no')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "25_return_clients"
+# description: "reporting_25_return_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fp.using_method = 'yes')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "25_return_men_clients"
+# description: "reporting_25_return_men_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fp.using_method = 'yes')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "25_total_clients"
+# description: "reporting_25_total_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))"
+#
+# - key: "total_new_clients"
+# description: "total_new_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( fp.using_method = 'no')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "total_new_men_clients"
+# description: "total_new_men_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( fp.using_method = 'no')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "total_return_clients"
+# description: "total_return_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( fp.using_method = 'yes')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "total_return_men_clients"
+# description: "total_return_men_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( fp.using_method = 'yes')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "total_total_clients"
+# description: "total_total_clients_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Registration'
+# AND ('%s' = (substr(e.eventDate, 1,10))) "
+#
+# - key: "10y14y_pop"
+# description: "reporting_10y14y_pop_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'POP'"
+#
+# - key: "10y14y_coc"
+# description: "reporting_10y14y_coc_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'COC'"
+#
+# - key: "10y14y_emc"
+# description: "reporting_10y14y_emc_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'Emergency contraceptive'"
+#
+# - key: "10y14y_total_pills"
+# description: "reporting_10y14y_total_pills_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Emergency contraceptive' OR fp.fp_method_accepted = 'COC' OR fp.fp_method_accepted = 'POP')"
+#
+# - key: "15y19y_pop"
+# description: "reporting_15y19y_pop_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'POP'"
+#
+# - key: "15y19y_coc"
+# description: "reporting_15y19y_coc_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'COC'"
+#
+# - key: "15y19y_emc"
+# description: "reporting_15y19y_emc_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'Emergency contraceptive'"
+#
+# - key: "15y19y_total_pills"
+# description: "reporting_15y19y_total_pills_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Emergency contraceptive' OR fp.fp_method_accepted = 'COC' OR fp.fp_method_accepted = 'POP')"
+#
+# - key: "20y24y_pop"
+# description: "reporting_20y24y_pop_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'POP'"
+#
+# - key: "20y24y_coc"
+# description: "reporting_20y24y_coc_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'COC'"
+#
+# - key: "20y24y_emc"
+# description: "reporting_20y24y_emc_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'Emergency contraceptive'"
+#
+# - key: "20y24y_total_pills"
+# description: "reporting_20y24y_total_pills_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Emergency contraceptive' OR fp.fp_method_accepted = 'COC' OR fp.fp_method_accepted = 'POP')"
+#
+# - key: "25_pop"
+# description: "reporting_25_pop_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND fp.fp_method_accepted = 'POP'"
+#
+# - key: "25_coc"
+# description: "reporting_25_coc_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND fp.fp_method_accepted = 'COC'"
+#
+# - key: "25_emc"
+# description: "reporting_25_emc_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND fp.fp_method_accepted = 'Emergency contraceptive'"
+#
+# - key: "25_total_pills"
+# description: "reporting_25_total_pills_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fp.fp_method_accepted = 'Emergency contraceptive' OR fp.fp_method_accepted = 'COC' OR fp.fp_method_accepted = 'POP')"
+#
+# - key: "total_pop"
+# description: "total_pop_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND fp.fp_method_accepted = 'POP'"
+#
+# - key: "total_coc"
+# description: "total_coc_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND fp.fp_method_accepted = 'COC'"
+#
+# - key: "total_emc"
+# description: "total_emc_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND fp.fp_method_accepted = 'Emergency contraceptive'"
+#
+# - key: "total_total_pills"
+# description: "total_total_pills_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( fp.fp_method_accepted = 'Emergency contraceptive' OR fp.fp_method_accepted = 'COC' OR fp.fp_method_accepted = 'POP')"
+#
+# - key: "10y14y_F_mcondom"
+# description: "reporting_10y14y_F_mcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Male condom')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "10y14y_men_F_mcondom"
+# description: "reporting_10y14y_men_F_mcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Male condom')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "10y14y_F_fcondom"
+# description: "reporting_10y14y_F_fcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "10y14y_men_F_fcondom"
+# description: "reporting_10y14y_men_F_fcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "10y14y_total_condoms"
+# description: "reporting_10y14y_total_condoms_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom' OR fp.fp_method_accepted = 'Male condom' )"
+#
+# - key: "15y19y_F_mcondom"
+# description: "reporting_15y19y_F_mcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Male condom')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "15y19y_men_F_mcondom"
+# description: "reporting_15y19y_men_F_mcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND (fp.fp_method_accepted = 'Male condom')
+# AND (fm.gender = 'Male')"
+#
+# - key: "15y19y_F_fcondom"
+# description: "reporting_15y19y_F_fcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "15y19y_men_F_fcondom"
+# description: "reporting_15y19y_men_F_fcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND (fp.fp_method_accepted = 'Female condom')
+# AND (fm.gender = 'Male')"
+#
+# - key: "15y19y_total_condoms"
+# description: "reporting_15y19y_total_condoms_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom' OR fp.fp_method_accepted = 'Male condom' )"
+#
+# - key: "20y24y_F_mcondom"
+# description: "reporting_20y24y_F_mcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND (fp.fp_method_accepted = 'Male condom')
+# AND (fm.gender = 'Female')"
+#
+# - key: "20y24y_men_F_mcondom"
+# description: "reporting_20y24y_men_F_mcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Male condom')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "20y24y_F_fcondom"
+# description: "reporting_20y24y_F_fcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "20y24y_men_F_fcondom"
+# description: "reporting_20y24y_men_F_fcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "20y24y_total_condoms"
+# description: "reporting_20y24y_total_condoms_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom' OR fp.fp_method_accepted = 'Male condom' )"
+#
+# - key: "25_F_mcondom"
+# description: "reporting_25_F_mcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fp.fp_method_accepted = 'Male condom')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "25_men_F_mcondom"
+# description: "reporting_25_men_F_mcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fp.fp_method_accepted = 'Male condom')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "25_F_fcondom"
+# description: "reporting_25_F_fcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "25_men_F_fcondom"
+# description: "reporting_25_men_F_fcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "25_total_condoms"
+# description: "reporting_25_total_condoms_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fp.fp_method_accepted = 'Female condom' OR fp.fp_method_accepted = 'Male condom')"
+#
+# - key: "total_F_mcondom"
+# description: "total_F_mcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( fp.fp_method_accepted = 'Male condom')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "total_men_F_mcondom"
+# description: "total_men_F_mcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( fp.fp_method_accepted = 'Male condom')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "total_F_fcondom"
+# description: "total_F_fcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( fp.fp_method_accepted = 'Female condom')
+# AND ( fm.gender = 'Female')"
+#
+# - key: "total_men_F_fcondom"
+# description: "total_men_F_fcondom_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( fp.fp_method_accepted = 'Female condom')
+# AND ( fm.gender = 'Male')"
+#
+# - key: "total_total_condoms"
+# description: "total_total_condoms_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( fp.fp_method_accepted = 'Female condom' OR fp.fp_method_accepted = 'Male condom')"
+#
+# - key: "10y14y_beads"
+# description: "reporting_10y14y_beads_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'Standard day method'"
+#
+# - key: "15y19y_beads"
+# description: "reporting_15y19y_beads_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'Standard day method'"
+#
+# - key: "20y24y_beads"
+# description: "reporting_20y24y_beads_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND fp.fp_method_accepted = 'Standard day method'"
+#
+# - key: "25_beads"
+# description: "reporting_25_beads_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND fp.fp_method_accepted = 'Standard day method'"
+#
+# - key: "total_beads"
+# description: "total_beads_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_planning fp on fp.base_entity_id = e.baseEntityId
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE ( e.eventType = 'Family Planning Registration' OR e.eventType = 'Family Planning Change Method')
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND fp.fp_method_accepted = 'Standard day method'"
+#
+# - key: "10y14y_cousel_ANC"
+# description: "reporting_10y14y_cousel_ANC_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During ANC'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))"
+#
+# - key: "15y19y_cousel_ANC"
+# description: "reporting_15y19y_cousel_ANC_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During ANC'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))"
+#
+# - key: "20y24y_cousel_ANC"
+# description: "reporting_20y24y_cousel_ANC_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During ANC'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))"
+#
+# - key: "25_cousel_ANC"
+# description: "reporting_25_cousel_ANC_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During ANC'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))"
+#
+# - key: "total_cousel_ANC"
+# description: "total_cousel_ANC_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During ANC'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))"
+#
+# - key: "10y14y_cousel_delivery"
+# description: "reporting_10y14y_cousel_delivery_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During labour and delivery'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))"
+#
+# - key: "15y19y_cousel_delivery"
+# description: "reporting_15y19y_cousel_delivery_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During labour and delivery'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))"
+#
+# - key: "20y24y_cousel_delivery"
+# description: "reporting_20y24y_cousel_delivery_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During labour and delivery'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))"
+#
+# - key: "25_cousel_delivery"
+# description: "reporting_25_cousel_delivery_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During labour and delivery'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))"
+#
+# - key: "total_cousel_delivery"
+# description: "total_cousel_delivery_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During labour and delivery'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))"
+#
+# - key: "10y14y_cousel_PNC"
+# description: "reporting_10y14y_cousel_PNC_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During PNC'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))"
+#
+# - key: "15y19y_cousel_PNC"
+# description: "reporting_15y19y_cousel_PNC_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During PNC'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))"
+#
+# - key: "20y24y_cousel_PNC"
+# description: "reporting_20y24y_cousel_PNC_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During PNC'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))"
+#
+# - key: "25_cousel_PNC"
+# description: "reporting_25_cousel_PNC_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During PNC'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))"
+#
+# - key: "total_cousel_PNC"
+# description: "total_cousel_PNC_label"
+# indicatorQuery: "SELECT count (DISTINCT v.base_entity_id) as count
+# FROM visit_details vd
+# INNER JOIN visits v on v.visit_id = vd.visit_id
+# INNER JOIN ec_family_member fm on fm.base_entity_id = v.base_entity_id
+# WHERE vd.human_readable_details = 'During PNC'
+# AND ('%s' = strftime('%Y-%m-%d',datetime(v.visit_date/1000, 'unixepoch', 'localtime')))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))"
+#
+# - key: "10y14y_referral"
+# description: "reporting_10y14y_referral_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Referral'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fm.gender = 'Female')"
+#
+# - key: "10y14y_men_referral"
+# description: "reporting_10y14y_men_referral_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Referral'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))
+# AND ( date(fm.dob, '+14 years') >= date ('now'))
+# AND ( fm.gender = 'Male')"
+#
+# - key: "15y19y_referral"
+# description: "reporting_15y19y_referral_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Referral'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND ( fm.gender = 'Female')"
+#
+# - key: "15y19y_men_referral"
+# description: "reporting_15y19y_men_referral_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Referral'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+15 years') <= date ('now'))
+# AND ( date(fm.dob, '+19 years') >= date ('now'))
+# AND ( fm.gender = 'Male')"
+#
+# - key: "20y24y_referral"
+# description: "reporting_20y24y_referral_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Referral'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fm.gender = 'Female')"
+#
+# - key: "20y24y_men_referral"
+# description: "reporting_20y24y_men_referral_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Referral'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+20 years') <= date ('now'))
+# AND ( date(fm.dob, '+24 years') >= date ('now'))
+# AND ( fm.gender = 'Male')"
+#
+# - key: "25_referral"
+# description: "reporting_25_referral_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Referral'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fm.gender = 'Female')"
+#
+# - key: "25_men_referral"
+# description: "reporting_25_men_referral_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Referral'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+25 years') <= date ('now'))
+# AND ( fm.gender = 'Male')"
+#
+# - key: "total_fp_referral"
+# description: "total_fp_referral_label"
+# indicatorQuery: "SELECT count(DISTINCT e.baseEntityId) as count
+# FROM event e
+# INNER JOIN ec_family_member fm on fm.base_entity_id = e.baseEntityId
+# WHERE e.eventType = 'Family Planning Referral'
+# AND ('%s' = (substr(e.eventDate, 1,10)))
+# AND ( date(fm.dob, '+10 years') <= date ('now'))"
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/kvp-monthly-report.yml b/opensrp-chw-hf/src/main/assets/config/kvp-monthly-report.yml
new file mode 100644
index 0000000000..3e83fb7859
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/kvp-monthly-report.yml
@@ -0,0 +1,39296 @@
+indicators:
+ - key: "kvp-1-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services='enrolled_and_on_arv' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='known_positive'))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services='enrolled_and_on_arv' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='known_positive'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services='enrolled_and_on_arv' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='known_positive'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services='enrolled_and_on_arv' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='known_positive'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services='enrolled_and_on_arv' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='known_positive'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services='enrolled_and_on_arv' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='known_positive'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services='enrolled_and_on_arv' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='known_positive'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services='enrolled_and_on_arv' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='known_positive'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services='enrolled_and_on_arv' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='known_positive'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services='enrolled_and_on_arv' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='known_positive'))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable'))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable'))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv'))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-pwid-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ((ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv'))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-pwid-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-pwud-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-pwud-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE ((ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided))
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-fsw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-msm-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-msm-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-msm-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-msm-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-msm-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri <10"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 10-14"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 25-29"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 30-34"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 35-39"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 40-44"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 45-49"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri >50"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-1-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi wa wateja wapya waliosajiliwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE client_status = 'new_visit'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-2-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wa makundi maalum waliofikiwa na huduma za kinga kufuatana na kiwango cha chini kinachotakiwa (minimum standards) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+INNER JOIN ec_kvp_structural_services ekss ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_behavioral_services ekbs ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_other_services ekos ON efm.base_entity_id = ekos.entity_id
+WHERE (ekbms.client_status IS NOT NULL OR ekbs.iec_sbcc_materials IS NOT NULL OR ekss.gbv_screening IS NOT NULL OR ekos.other_services_referrals_provided)
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-3-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za ukatili wa kijinsia katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekss.entity_id) as count FROM ec_kvp_structural_services ekss
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekss.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekss.gbv_screening = 'case_reported' OR ekss.gbv_screening = 'referred' OR ekss.gbv_screening = 'received_post_gbv_care')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekss.kvp_visit_date, 7, 4) || '-' || substr(ekss.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-4-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya magonjwa ya ngono katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.sti_screening = 'positive' OR ekbms.sti_screening = 'negative')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-5-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis B) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_b_testing = 'positive' OR ekbms.hep_b_testing = 'negative' OR ekbms.hep_b_testing = 'positive_and_referred')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-6-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa maambukizi ya homa ya ini (Hepatitis C) katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.hep_c_testing = 'positive' OR ekbms.hep_c_testing = 'negative' OR ekbms.hep_c_testing = 'positive_and_referred')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-7-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-7-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliotathiminiwa kutumia huduma za dawa kinga Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_assessment='yes'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-8-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaostahili kuanza dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(ekr.id) as count FROM ec_kvp_register ekr
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekr.id
+WHERE prep_qualified='yes'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+substr(strftime('%Y-%m-%d', datetime(ekr.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "kvp-9-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-9-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wapya ambao wameanza kutumia dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status = 'initiated' AND visit_type = 'new_client'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-10-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata dawa kinga katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-11-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja wanaoendelea kutumia dawa kinga katika kipindi cha ripoti (Isipokuwa wateja Wapya) Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_drug_offered = 'tdf_ftc' AND visit_type != 'new_client'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-14-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja walioacha dawa kinga kwa sababu yoyote ile katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep IS NOT NULL
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-15-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuwa wakitumia dawa kinga na wamegundulika na VVU (New seroconversion) wakati wa mahudhurio katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epf.entity_id) as count FROM ec_prep_followup epf
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epf.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE prep_status='discontinued_quit' AND reasons_stopping_prep='hiv_positive'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(epf.kvp_visit_date, 7, 4) || '-' || substr(epf.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-16-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za uzazi wa mpango katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.family_planning_service IS NOT NULL
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-a-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Wapya waliopimwa na kupokea majibu Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND (ekbms.hiv_status='positive' OR ekbms.hiv_status='negative'))
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-b-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Wapya wenye majibu ya VVU chanya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.hiv_status='positive')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-c-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Wapya waliosajiliwa huduma ya Tiba na Matunzo Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services !='not_applicable')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-17-d-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Wapya walioanzishiwa ART Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.client_status = 'new_visit' AND ekbms.ctc_services ='enrolled_and_on_arv')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-18-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliochunguzwa kifua kikuu katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE (ekbms.tb_screening = 'presumptive' OR ekbms.tb_screening = 'not_presumptive')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-19-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kike(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_female_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-20-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya kondomu za kiume(pcs) zilizogawiwa katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT SUM(ekbms.number_of_male_condoms_issued) as number_female_condom FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 15-19"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-21-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya vipeperushi vya Elimu ya Afya vilivyotolewa Umri 20-24"
+ indicatorQuery: " SELECT sum(ekbs.iec_sbcc_materials) as number_iec_sbcc_materials FROM ec_kvp_behavioral_services ekbs
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbs.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbs.kvp_visit_date, 7, 4) || '-' || substr(ekbs.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-22-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliopata huduma za MAT katika kipindi cha ripoti Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT ekbms.entity_id) as count FROM ec_kvp_bio_medical_services ekbms
+INNER JOIN ec_family_member efm ON efm.base_entity_id = ekbms.entity_id
+INNER JOIN ec_kvp_register ekr ON efm.base_entity_id = ekr.id
+WHERE ekbms.mat_provided = 'yes'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+date(substr(ekbms.kvp_visit_date, 7, 4) || '-' || substr(ekbms.kvp_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "kvp-12-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-12->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliokuja kuchukua dawa kinga mwezi mmoja baada ya kuanzishiwa Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE epf.prep_status = 'initiated'
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+date(substr(prep_initiation_date, 7, 4) || '-' || substr(prep_initiation_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-agyw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='agyw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-pwid-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-pwid-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwid'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-pwud-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-pwud-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='pwud'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-mobile_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-mobile_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='mobile_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-serodiscordant_couple-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-serodiscordant_couple-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='serodiscordant_couple'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-other_vulnerable_population-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-other_vulnerable_population-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='other_vulnerable_population'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='msm'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-msm-ME"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='msm'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Male')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-<10-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri <10"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))<10
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-10-14-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 10-14"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+10 years') <= date('now'))
+AND (date(efm.dob, '+15 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-15-19-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+15 years') <= date('now'))
+AND (date(efm.dob, '+20 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-20-24-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+20 years') <= date('now'))
+AND (date(efm.dob, '+25 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-25-29-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+25 years') <= date('now'))
+AND (date(efm.dob, '+30 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-30-34-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+30 years') <= date('now'))
+AND (date(efm.dob, '+35 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-35-39-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+35 years') <= date('now'))
+AND (date(efm.dob, '+40 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-40-44-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+40 years') <= date('now'))
+AND (date(efm.dob, '+45 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13-45-49-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='fsw'
+AND (date(efm.dob, '+45 years') <= date('now'))
+AND (date(efm.dob, '+50 years') > date('now'))
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
+ - key: "kvp-13->50-fsw-KE"
+ grouping: "KVP"
+ description: "Idadi ya wateja waliondelea kutumia dawa kinga miezi mitatu mfululizo baada ya kuanzishiwa katika kipindi cha miezi 6 Umri >50"
+ indicatorQuery: " SELECT count(DISTINCT epr.id) as count FROM ec_prep_register epr
+INNER JOIN ec_kvp_register ekr ON ekr.id = epr.id
+INNER JOIN ec_prep_followup epf ON epf.entity_id= epr.id
+INNER JOIN ec_family_member efm ON efm.base_entity_id = epr.id
+WHERE (epf.prep_status = 'initiated' OR epf.prep_status ='re_start')
+AND ekr.client_group ='fsw'
+AND (date('now')-date(efm.dob))>=50
+AND (efm.gender='Female')
+AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+date(substr(kvp_visit_date, 7, 4) || '-' || substr(kvp_visit_date, 4, 2) || '-' || '01')"
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/ld-reporting-indicator-definitions.yml b/opensrp-chw-hf/src/main/assets/config/ld-reporting-indicator-definitions.yml
new file mode 100644
index 0000000000..9bfccdfabc
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/ld-reporting-indicator-definitions.yml
@@ -0,0 +1,6206 @@
+indicators:
+ - key: "ld-2a-10-14"
+ grouping: "LD"
+ description: "Waliojifungua katika kituo cha kutolea huduma za afya"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_a_health_facility'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2a-15-19"
+ grouping: "LD"
+ description: "Waliojifungua katika kituo cha kutolea huduma za afya"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_a_health_facility'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2a-20-24"
+ grouping: "LD"
+ description: "Waliojifungua katika kituo cha kutolea huduma za afya"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_a_health_facility'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2a-25-29"
+ grouping: "LD"
+ description: "Waliojifungua katika kituo cha kutolea huduma za afya"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_a_health_facility'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2a-30-34"
+ grouping: "LD"
+ description: "Waliojifungua katika kituo cha kutolea huduma za afya"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_a_health_facility'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2a-35+"
+ grouping: "LD"
+ description: "Waliojifungua katika kituo cha kutolea huduma za afya"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_a_health_facility'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2b-10-14"
+ grouping: "LD"
+ description: "Waliojifungua kabla ya kufika kituoni(BBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'bba'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2b-15-19"
+ grouping: "LD"
+ description: "Waliojifungua kabla ya kufika kituoni(BBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'bba'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2b-20-24"
+ grouping: "LD"
+ description: "Waliojifungua kabla ya kufika kituoni(BBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'bba'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2b-25-29"
+ grouping: "LD"
+ description: "Waliojifungua kabla ya kufika kituoni(BBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'bba'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2b-30-34"
+ grouping: "LD"
+ description: "Waliojifungua kabla ya kufika kituoni(BBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'bba'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2b-35+"
+ grouping: "LD"
+ description: "Waliojifungua kabla ya kufika kituoni(BBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'bba'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2c-10-14"
+ grouping: "LD"
+ description: "Waliozalishwa na wakunga wa jadi(TBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'tba'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2c-15-19"
+ grouping: "LD"
+ description: "Waliozalishwa na wakunga wa jadi(TBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'tba'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2c-20-24"
+ grouping: "LD"
+ description: "Waliozalishwa na wakunga wa jadi(TBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'tba'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2c-25-29"
+ grouping: "LD"
+ description: "Waliozalishwa na wakunga wa jadi(TBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'tba'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2c-30-34"
+ grouping: "LD"
+ description: "Waliozalishwa na wakunga wa jadi(TBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'tba'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2c-35+"
+ grouping: "LD"
+ description: "Waliozalishwa na wakunga wa jadi(TBA)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'tba'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2d-10-14"
+ grouping: "LD"
+ description: "Waliojifungua nyumbani (H) bila msaada wa TBA"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_home'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2d-15-19"
+ grouping: "LD"
+ description: "Waliojifungua nyumbani (H) bila msaada wa TBA"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_home'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2d-20-24"
+ grouping: "LD"
+ description: "Waliojifungua nyumbani (H) bila msaada wa TBA"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_home'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2d-25-29"
+ grouping: "LD"
+ description: "Waliojifungua nyumbani (H) bila msaada wa TBA"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_home'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2d-30-34"
+ grouping: "LD"
+ description: "Waliojifungua nyumbani (H) bila msaada wa TBA"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_home'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2d-35+"
+ grouping: "LD"
+ description: "Waliojifungua nyumbani (H) bila msaada wa TBA"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.delivery_place = 'at_home'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2e-10-14"
+ grouping: "LD"
+ description: "Waliozalishwa na watoa huduma wenye ujuzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE
+ (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND elpc.delivery_place = 'at_a_health_facility'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2e-15-19"
+ grouping: "LD"
+ description: "Waliozalishwa na watoa huduma wenye ujuzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE
+ (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND elpc.delivery_place = 'at_a_health_facility'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2e-20-24"
+ grouping: "LD"
+ description: "Waliozalishwa na watoa huduma wenye ujuzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE
+ (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND elpc.delivery_place = 'at_a_health_facility'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2e-25-29"
+ grouping: "LD"
+ description: "Waliozalishwa na watoa huduma wenye ujuzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE
+ (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND elpc.delivery_place = 'at_a_health_facility'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2e-30-34"
+ grouping: "LD"
+ description: "Waliozalishwa na watoa huduma wenye ujuzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE
+ (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND elpc.delivery_place = 'at_a_health_facility'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-2e-35+"
+ grouping: "LD"
+ description: "Waliozalishwa na watoa huduma wenye ujuzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE
+ (date(efm.dob, '+35 years') <= date('now'))
+ AND elpc.delivery_place = 'at_a_health_facility'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-3a-10-14"
+ grouping: "LD"
+ description: "Waliojifungua baada ya saa 12 toka uchungu kuanza"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.labour_duration/(1000*60*60) > 12
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-3a-15-19"
+ grouping: "LD"
+ description: "Waliojifungua baada ya saa 12 toka uchungu kuanza"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.labour_duration/(1000*60*60) > 12
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-3a-20-24"
+ grouping: "LD"
+ description: "Waliojifungua baada ya saa 12 toka uchungu kuanza"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.labour_duration/(1000*60*60) > 12
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-3a-25-29"
+ grouping: "LD"
+ description: "Waliojifungua baada ya saa 12 toka uchungu kuanza"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.labour_duration/(1000*60*60) > 12
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-3a-30-34"
+ grouping: "LD"
+ description: "Waliojifungua baada ya saa 12 toka uchungu kuanza"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.labour_duration/(1000*60*60) > 12
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-3a-35+"
+ grouping: "LD"
+ description: "Waliojifungua baada ya saa 12 toka uchungu kuanza"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.labour_duration/(1000*60*60) > 12
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4a-10-14"
+ grouping: "LD"
+ description: "Waliojifungua Kawaida (SVD)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'spontaneous_vaginal_delivery'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4a-15-19"
+ grouping: "LD"
+ description: "Waliojifungua Kawaida (SVD)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'spontaneous_vaginal_delivery'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4a-20-24"
+ grouping: "LD"
+ description: "Waliojifungua Kawaida (SVD)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'spontaneous_vaginal_delivery'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4a-25-29"
+ grouping: "LD"
+ description: "Waliojifungua Kawaida (SVD)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'spontaneous_vaginal_delivery'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4a-30-34"
+ grouping: "LD"
+ description: "Waliojifungua Kawaida (SVD)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'spontaneous_vaginal_delivery'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4a-35+"
+ grouping: "LD"
+ description: "Waliojifungua Kawaida (SVD)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'spontaneous_vaginal_delivery'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4b-10-14"
+ grouping: "LD"
+ description: "Waliojifungua Vacuum (VM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'vacuum_extraction'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4b-15-19"
+ grouping: "LD"
+ description: "Waliojifungua Vacuum (VM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'vacuum_extraction'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4b-20-24"
+ grouping: "LD"
+ description: "Waliojifungua Vacuum (VM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'vacuum_extraction'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4b-25-29"
+ grouping: "LD"
+ description: "Waliojifungua Vacuum (VM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'vacuum_extraction'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4b-30-34"
+ grouping: "LD"
+ description: "Waliojifungua Vacuum (VM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'vacuum_extraction'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4b-35+"
+ grouping: "LD"
+ description: "Waliojifungua Vacuum (VM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'vacuum_extraction'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4c-10-14"
+ grouping: "LD"
+ description: "Waliojifungua Breech delivery (BR)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'breech_delivery'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4c-15-19"
+ grouping: "LD"
+ description: "Waliojifungua Breech delivery (BR)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'breech_delivery'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4c-20-24"
+ grouping: "LD"
+ description: "Waliojifungua Breech delivery (BR)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'breech_delivery'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4c-25-29"
+ grouping: "LD"
+ description: "Waliojifungua Breech delivery (BR)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'breech_delivery'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4c-30-34"
+ grouping: "LD"
+ description: "Waliojifungua Breech delivery (BR)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'breech_delivery'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4c-35+"
+ grouping: "LD"
+ description: "Waliojifungua Breech delivery (BR)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'breech_delivery'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4d-10-14"
+ grouping: "LD"
+ description: "Waliojifungua Caesarian Section (CS)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'cesarean'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4d-15-19"
+ grouping: "LD"
+ description: "Waliojifungua Caesarian Section (CS)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'cesarean'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4d-20-24"
+ grouping: "LD"
+ description: "Waliojifungua Caesarian Section (CS)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'cesarean'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4d-25-29"
+ grouping: "LD"
+ description: "Waliojifungua Caesarian Section (CS)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'cesarean'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4d-30-34"
+ grouping: "LD"
+ description: "Waliojifungua Caesarian Section (CS)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'cesarean'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-4d-35+"
+ grouping: "LD"
+ description: "Waliojifungua Caesarian Section (CS)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.mode_of_delivery = 'cesarean'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5a-10-14"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua APH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_aph%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5a-15-19"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua APH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_aph%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5a-20-24"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua APH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_aph%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5a-25-29"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua APH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_aph%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5a-30-34"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua APH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_aph%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5a-35+"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua APH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_aph%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5b-10-14"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-mature Rupture of Membrane (PROM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_prom%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5b-15-19"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-mature Rupture of Membrane (PROM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_prom%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5b-20-24"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-mature Rupture of Membrane (PROM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_prom%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5b-25-29"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-mature Rupture of Membrane (PROM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_prom%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5b-30-34"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-mature Rupture of Membrane (PROM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_prom%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-5b-35+"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-mature Rupture of Membrane (PROM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_prom%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-5c-10-14"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua High BP"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_high_bp%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5c-15-19"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua High BP"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_high_bp%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5c-20-24"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua High BP"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_high_bp%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5c-25-29"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua High BP"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_high_bp%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5c-30-34"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua High BP"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_high_bp%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-5c-35+"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua High BP"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_high_bp%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5d-10-14"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5d-15-19"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5d-20-24"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5d-25-29"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5d-30-34"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5d-35+"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Pre-eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5e-10-14"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5e-15-19"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5e-20-24"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5e-25-29"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5e-30-34"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5e-35+"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5f-10-14"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Anaemia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_anaemia%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5f-15-19"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Anaemia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_anaemia%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5f-20-24"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Anaemia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_anaemia%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5f-25-29"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Anaemia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_anaemia%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5f-30-34"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Anaemia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_anaemia%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5f-35+"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Anaemia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_anaemia%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5g-10-14"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Malaria"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_malaria%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5g-15-19"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Malaria"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_malaria%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5g-20-24"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Malaria"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_malaria%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5g-25-29"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Malaria"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_malaria%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5g-30-34"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Malaria"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_malaria%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5g-35+"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Malaria"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_malaria%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5h-10-14"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua HIV + Stage III au IV"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_hiv_stage_3_or_4%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5h-15-19"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua HIV + Stage III au IV"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_hiv_stage_3_or_4%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5h-20-24"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua HIV + Stage III au IV"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_hiv_stage_3_or_4%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5h-25-29"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua HIV + Stage III au IV"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_hiv_stage_3_or_4%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5h-30-34"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua HIV + Stage III au IV"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_hiv_stage_3_or_4%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5h-35+"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua HIV + Stage III au IV"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_hiv_stage_3_or_4%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5i-10-14"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Waliokekektwa (FGM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_fgm%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5i-15-19"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Waliokekektwa (FGM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_fgm%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5i-20-24"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Waliokekektwa (FGM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_fgm%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5i-25-29"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Waliokekektwa (FGM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_fgm%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5i-30-34"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Waliokekektwa (FGM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_fgm%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-5i-35+"
+ grouping: "LD"
+ description: "Matatizo kabla ya kujifungua Waliokekektwa (FGM)"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_before_delivery LIKE '%chk_fgm%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6a-10-14"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua PPH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pph%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6a-15-19"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua PPH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pph%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6a-20-24"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua PPH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pph%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6a-25-29"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua PPH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pph%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6a-30-34"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua PPH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pph%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6a-35+"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua PPH"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pph%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6b-10-14"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Pre eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6b-15-19"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Pre eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6b-20-24"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Pre eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6b-25-29"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Pre eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6b-30-34"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Pre eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6b-35+"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Pre eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_pre_eclampsia%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6c-10-14"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6c-15-19"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6c-20-24"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6c-25-29"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6c-30-34"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6c-35+"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Eclampsia"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_eclampsia%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6d-10-14"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Obstructed Labour"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_obstructed_labour%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6d-15-19"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Obstructed Labour"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_obstructed_labour%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6d-20-24"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Obstructed Labour"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_obstructed_labour%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6d-25-29"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Obstructed Labour"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_obstructed_labour%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6d-30-34"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Obstructed Labour"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_obstructed_labour%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6d-35+"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Obstructed Labour"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_obstructed_labour%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6e-10-14"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Retained placenta"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_retained_placenta%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6e-15-19"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Retained placenta"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_retained_placenta%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6e-20-24"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Retained placenta"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_retained_placenta%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6e-25-29"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Retained placenta"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_retained_placenta%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6e-30-34"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Retained placenta"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_retained_placenta%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6e-35+"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Retained placenta"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_retained_placenta%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6f-10-14"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Third degree tear"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_3_degree_tear%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6f-15-19"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Third degree tear"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_3_degree_tear%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6f-20-24"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Third degree tear"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_3_degree_tear%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6f-25-29"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Third degree tear"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_3_degree_tear%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6f-30-34"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Third degree tear"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_3_degree_tear%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6f-35+"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Third degree tear"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_3_degree_tear%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6g-10-14"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Ruptured uterus"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_ruptured_uterus%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6g-15-19"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Ruptured uterus"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_ruptured_uterus%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6g-20-24"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Ruptured uterus"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_ruptured_uterus%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6g-25-29"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Ruptured uterus"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_ruptured_uterus%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6g-30-34"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Ruptured uterus"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_ruptured_uterus%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6g-35+"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Ruptured uterus"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_ruptured_uterus%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6h-10-14"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Uambukizo/Sepsis"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_sepsis%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6h-15-19"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Uambukizo/Sepsis"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_sepsis%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6h-20-24"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Uambukizo/Sepsis"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_sepsis%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6h-25-29"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Uambukizo/Sepsis"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_sepsis%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6h-30-34"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Uambukizo/Sepsis"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_sepsis%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-6h-35+"
+ grouping: "LD"
+ description: "Matatizo wakati na baada ya kujifungua Uambukizo/Sepsis"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.maternal_complications_during_and_after_delivery LIKE '%chk_sepsis%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01')"
+ - key: "ld-7a-10-14"
+ grouping: "LD"
+ description: "EmOC Amepewa Antibiotic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_antibiotics = 'yes'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7a-15-19"
+ grouping: "LD"
+ description: "EmOC Amepewa Antibiotic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_antibiotics = 'yes'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7a-20-24"
+ grouping: "LD"
+ description: "EmOC Amepewa Antibiotic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_antibiotics = 'yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7a-25-29"
+ grouping: "LD"
+ description: "EmOC Amepewa Antibiotic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_antibiotics = 'yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7a-30-34"
+ grouping: "LD"
+ description: "EmOC Amepewa Antibiotic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_antibiotics = 'yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7a-35+"
+ grouping: "LD"
+ description: "EmOC Amepewa Antibiotic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_antibiotics = 'yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7b-10-14"
+ grouping: "LD"
+ description: "EmOC Amepewa Uterotonic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic IS NOT NULL AND elpam.uterotonic <> 'none'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7b-15-19"
+ grouping: "LD"
+ description: "EmOC Amepewa Uterotonic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic IS NOT NULL AND elpam.uterotonic <> 'none'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7b-20-24"
+ grouping: "LD"
+ description: "EmOC Amepewa Uterotonic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic IS NOT NULL AND elpam.uterotonic <> 'none'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7b-25-29"
+ grouping: "LD"
+ description: "EmOC Amepewa Uterotonic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic IS NOT NULL AND elpam.uterotonic <> 'none'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7b-30-34"
+ grouping: "LD"
+ description: "EmOC Amepewa Uterotonic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic IS NOT NULL AND elpam.uterotonic <> 'none'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7b-35+"
+ grouping: "LD"
+ description: "EmOC Amepewa Uterotonic"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic IS NOT NULL AND elpam.uterotonic <> 'none'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7c-10-14"
+ grouping: "LD"
+ description: "EmOC Amepewa Magnesium Sulphate"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_magnesium_sulphate = 'yes'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7c-15-19"
+ grouping: "LD"
+ description: "EmOC Amepewa Magnesium Sulphate"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_magnesium_sulphate = 'yes'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7c-20-24"
+ grouping: "LD"
+ description: "EmOC Amepewa Magnesium Sulphate"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_magnesium_sulphate = 'yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7c-25-29"
+ grouping: "LD"
+ description: "EmOC Amepewa Magnesium Sulphate"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_magnesium_sulphate = 'yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7c-30-34"
+ grouping: "LD"
+ description: "EmOC Amepewa Magnesium Sulphate"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_magnesium_sulphate = 'yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7c-35+"
+ grouping: "LD"
+ description: "EmOC Amepewa Magnesium Sulphate"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.administered_magnesium_sulphate = 'yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7d-10-14"
+ grouping: "LD"
+ description: "EmOC Ameondolewa kwa mkono kondo la nyuma"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.placenta_removed_by_hand = 'yes'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7d-15-19"
+ grouping: "LD"
+ description: "EmOC Ameondolewa kwa mkono kondo la nyuma"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.placenta_removed_by_hand = 'yes'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7d-20-24"
+ grouping: "LD"
+ description: "EmOC Ameondolewa kwa mkono kondo la nyuma"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.placenta_removed_by_hand = 'yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7d-25-29"
+ grouping: "LD"
+ description: "EmOC Ameondolewa kwa mkono kondo la nyuma"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.placenta_removed_by_hand = 'yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7d-30-34"
+ grouping: "LD"
+ description: "EmOC Ameondolewa kwa mkono kondo la nyuma"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.placenta_removed_by_hand = 'yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7d-35+"
+ grouping: "LD"
+ description: "EmOC Ameondolewa kwa mkono kondo la nyuma"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.placenta_removed_by_hand = 'yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7e-10-14"
+ grouping: "LD"
+ description: "EmOC Amefanyiwa MVA/D&C"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.conducted_mva = 'yes'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7f-10-14"
+ grouping: "LD"
+ description: "EmOC Ameongezewa damu"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.provided_blood_transfusion = 'yes'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8a-10-14"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kutoiewa kondo la nyuma kwa kuvutwa kitovu pole pole"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.method_used_to_remove_the_placenta = 'control_cord_traction'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8b-10-14"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kwa kukandwa kandwa nyumba ya uzazi."
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterus_massage_after_delivery = 'yes'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8c-10-14"
+ grouping: "LD"
+ description: "Wanawake waliopata Oxytocin baada ya kujifungua (10 IU)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%oxytocin%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8d-10-14"
+ grouping: "LD"
+ description: "Wanawake waliopata Egometrine baada ya kujifungua (0.5mg)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%ergometrine%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8e-10-14"
+ grouping: "LD"
+ description: "Wanawake waliopata Misoprostol baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%misoprostol%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10a-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10b-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10c-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10d-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.still_birth_choice = 'msb'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10e-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10f-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10g-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10h-10-14"
+ grouping: "LD"
+ description: "Watoto Watoto wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11a-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11b-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11c-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11d-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'msb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11e-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11f-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11g-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11h-10-14"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-12a-10-14"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto Waliosaidiwa kupumua - Suction "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_only'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-12b-10-14"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- stimulation "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'stimulation'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-12c-10-14"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- bag and mask"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_and_bag_mask'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-13a-10-14"
+ grouping: "LD"
+ description: "Idadi ya watoto walionyonyeshwa ndani ya saa moja baada ya kuzaliwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-14a-10-14"
+ grouping: "LD"
+ description: "Wazazi waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.status = 'died'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+
+
+ - key: "ld-7e-15-19"
+ grouping: "LD"
+ description: "EmOC Amefanyiwa MVA/D&C"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.conducted_mva = 'yes'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7f-15-19"
+ grouping: "LD"
+ description: "EmOC Ameongezewa damu"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.provided_blood_transfusion = 'yes'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8a-15-19"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kutoiewa kondo la nyuma kwa kuvutwa kitovu pole pole"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.method_used_to_remove_the_placenta = 'control_cord_traction'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8b-15-19"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kwa kukandwa kandwa nyumba ya uzazi."
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterus_massage_after_delivery = 'yes'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8c-15-19"
+ grouping: "LD"
+ description: "Wanawake waliopata Oxytocin baada ya kujifungua (10 IU)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%oxytocin%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8d-15-19"
+ grouping: "LD"
+ description: "Wanawake waliopata Egometrine baada ya kujifungua (0.5mg)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%ergometrine%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8e-15-19"
+ grouping: "LD"
+ description: "Wanawake waliopata Misoprostol baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%misoprostol%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10a-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10b-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10c-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10d-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.still_birth_choice = 'msb'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10e-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10f-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10g-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-10h-15-19"
+ grouping: "LD"
+ description: "Watoto Watoto wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11a-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11b-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11c-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11d-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'msb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11e-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11f-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11g-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11h-15-19"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-12a-15-19"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto Waliosaidiwa kupumua - Suction "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_only'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-12b-15-19"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- stimulation "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'stimulation'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-12c-15-19"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- bag and mask"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_and_bag_mask'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-13a-15-19"
+ grouping: "LD"
+ description: "Idadi ya watoto walionyonyeshwa ndani ya saa moja baada ya kuzaliwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-14a-15-19"
+ grouping: "LD"
+ description: "Wazazi waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.status = 'died'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+
+ - key: "ld-7e-20-24"
+ grouping: "LD"
+ description: "EmOC Amefanyiwa MVA/D&C"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.conducted_mva = 'yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7f-20-24"
+ grouping: "LD"
+ description: "EmOC Ameongezewa damu"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.provided_blood_transfusion = 'yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8a-20-24"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kutoiewa kondo la nyuma kwa kuvutwa kitovu pole pole"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.method_used_to_remove_the_placenta = 'control_cord_traction'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8b-20-24"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kwa kukandwa kandwa nyumba ya uzazi."
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterus_massage_after_delivery = 'yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8c-20-24"
+ grouping: "LD"
+ description: "Wanawake waliopata Oxytocin baada ya kujifungua (10 IU)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%oxytocin%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8d-20-24"
+ grouping: "LD"
+ description: "Wanawake waliopata Egometrine baada ya kujifungua (0.5mg)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%ergometrine%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8e-20-24"
+ grouping: "LD"
+ description: "Wanawake waliopata Misoprostol baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%misoprostol%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10a-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10b-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10c-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10d-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.still_birth_choice = 'msb'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10e-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10f-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10g-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10h-20-24"
+ grouping: "LD"
+ description: "Watoto Watoto wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11a-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11b-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11c-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11d-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'msb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11e-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11f-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11g-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11h-20-24"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12a-20-24"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto Waliosaidiwa kupumua - Suction "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_only'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12b-20-24"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- stimulation "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'stimulation'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12c-20-24"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- bag and mask"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_and_bag_mask'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-13a-20-24"
+ grouping: "LD"
+ description: "Idadi ya watoto walionyonyeshwa ndani ya saa moja baada ya kuzaliwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-14a-20-24"
+ grouping: "LD"
+ description: "Wazazi waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.status = 'died'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+
+
+ - key: "ld-7e-25-29"
+ grouping: "LD"
+ description: "EmOC Amefanyiwa MVA/D&C"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.conducted_mva = 'yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7f-25-29"
+ grouping: "LD"
+ description: "EmOC Ameongezewa damu"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.provided_blood_transfusion = 'yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8a-25-29"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kutoiewa kondo la nyuma kwa kuvutwa kitovu pole pole"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.method_used_to_remove_the_placenta = 'control_cord_traction'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8b-25-29"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kwa kukandwa kandwa nyumba ya uzazi."
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterus_massage_after_delivery = 'yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8c-25-29"
+ grouping: "LD"
+ description: "Wanawake waliopata Oxytocin baada ya kujifungua (10 IU)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%oxytocin%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8d-25-29"
+ grouping: "LD"
+ description: "Wanawake waliopata Egometrine baada ya kujifungua (0.5mg)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%ergometrine%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8e-25-29"
+ grouping: "LD"
+ description: "Wanawake waliopata Misoprostol baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%misoprostol%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10a-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10b-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10c-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10d-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.still_birth_choice = 'msb'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10e-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10f-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10g-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10h-25-29"
+ grouping: "LD"
+ description: "Watoto Watoto wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11a-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11b-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11c-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11d-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'msb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11e-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11f-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11g-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11h-25-29"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12a-25-29"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto Waliosaidiwa kupumua - Suction "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_only'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12b-25-29"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- stimulation "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'stimulation'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12c-25-29"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- bag and mask"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_and_bag_mask'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-13a-25-29"
+ grouping: "LD"
+ description: "Idadi ya watoto walionyonyeshwa ndani ya saa moja baada ya kuzaliwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-14a-25-29"
+ grouping: "LD"
+ description: "Wazazi waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.status = 'died'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+
+
+ - key: "ld-7e-30-34"
+ grouping: "LD"
+ description: "EmOC Amefanyiwa MVA/D&C"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.conducted_mva = 'yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7f-30-34"
+ grouping: "LD"
+ description: "EmOC Ameongezewa damu"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.provided_blood_transfusion = 'yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8a-30-34"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kutoiewa kondo la nyuma kwa kuvutwa kitovu pole pole"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.method_used_to_remove_the_placenta = 'control_cord_traction'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8b-30-34"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kwa kukandwa kandwa nyumba ya uzazi."
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterus_massage_after_delivery = 'yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8c-30-34"
+ grouping: "LD"
+ description: "Wanawake waliopata Oxytocin baada ya kujifungua (10 IU)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%oxytocin%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8d-30-34"
+ grouping: "LD"
+ description: "Wanawake waliopata Egometrine baada ya kujifungua (0.5mg)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%ergometrine%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8e-30-34"
+ grouping: "LD"
+ description: "Wanawake waliopata Misoprostol baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%misoprostol%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10a-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10b-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10c-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10d-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.still_birth_choice = 'msb'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10e-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10f-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10g-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10h-30-34"
+ grouping: "LD"
+ description: "Watoto Watoto wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11a-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11b-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11c-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11d-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'msb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11e-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11f-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11g-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11h-30-34"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12a-30-34"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto Waliosaidiwa kupumua - Suction "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_only'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12b-30-34"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- stimulation "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'stimulation'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12c-30-34"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- bag and mask"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_and_bag_mask'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-13a-30-34"
+ grouping: "LD"
+ description: "Idadi ya watoto walionyonyeshwa ndani ya saa moja baada ya kuzaliwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-14a-30-34"
+ grouping: "LD"
+ description: "Wazazi waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.status = 'died'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+
+
+ - key: "ld-7e-35+"
+ grouping: "LD"
+ description: "EmOC Amefanyiwa MVA/D&C"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.conducted_mva = 'yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-7f-35+"
+ grouping: "LD"
+ description: "EmOC Ameongezewa damu"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.provided_blood_transfusion = 'yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8a-35+"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kutoiewa kondo la nyuma kwa kuvutwa kitovu pole pole"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.method_used_to_remove_the_placenta = 'control_cord_traction'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8b-35+"
+ grouping: "LD"
+ description: "Wanawake waliosaidiwa kwa kukandwa kandwa nyumba ya uzazi."
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterus_massage_after_delivery = 'yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8c-35+"
+ grouping: "LD"
+ description: "Wanawake waliopata Oxytocin baada ya kujifungua (10 IU)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%oxytocin%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8d-35+"
+ grouping: "LD"
+ description: "Wanawake waliopata Egometrine baada ya kujifungua (0.5mg)"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%ergometrine%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-8e-35+"
+ grouping: "LD"
+ description: "Wanawake waliopata Misoprostol baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elpam.base_entity_id) as count
+ FROM ec_ld_placenta_and_membrane elpam
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpam.base_entity_id
+ WHERE elpam.uterotonic LIKE '%misoprostol%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpam.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10a-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10b-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10c-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10d-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elpc.number_of_children_born = 1
+ AND elinbc.still_birth_choice = 'msb'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10e-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10f-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10g-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mmoja Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND elpc.number_of_children_born = 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-10h-35+"
+ grouping: "LD"
+ description: "Watoto Watoto wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND elpc.number_of_children_born = 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11a-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Jumla ya watoto waliozaliwa hai"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11b-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito<2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) < 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11c-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa hai Uzito =>2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.weight AS FLOAT) >= 2.5
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11d-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Macerated (MSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'msb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11e-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa wafu Fresh (FSB)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.still_birth_choice = 'fsb'
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11f-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliozaliwa na mama wenye VVU"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.risk_category IS NOT NULL
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date((substr(elpc.delivery_date, 7, 4) || '-' || substr(elpc.delivery_date, 4, 2) || '-' || '01'))"
+ - key: "ld-11g-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha Waliopewa dawa za ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-11h-35+"
+ grouping: "LD"
+ description: "Watoto Waliozaliwa mapacha wenye APGAR Score chini ya 7 katika dakika 5"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE CAST(elinbc.apgar_score_at_5_minutes AS FLOAT) < 7
+ AND CAST(elpc.number_of_children_born AS FLOAT) > 1
+ AND elinbc.newborn_status ='alive'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12a-35+"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto Waliosaidiwa kupumua - Suction "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_only'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12b-35+"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- stimulation "
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'stimulation'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-12c-35+"
+ grouping: "LD"
+ description: "Watoto waliosaidiwa kupumua, Idadi ya watoto waliosaidiwa kupumua- bag and mask"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.resuscitation = 'suction_and_bag_mask'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-13a-35+"
+ grouping: "LD"
+ description: "Idadi ya watoto walionyonyeshwa ndani ya saa moja baada ya kuzaliwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-14a-35+"
+ grouping: "LD"
+ description: "Wazazi waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.status = 'died'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9a-10-14"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status <> 'unknown'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9b-10-14"
+ grouping: "LD"
+ description: "Waliogundulika Positive kutoka ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status = 'positive'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9c-10-14"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv IS NOT NULL OR epf.hiv = 'positive' OR epf.hiv = 'negative')
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9d-10-14"
+ grouping: "LD"
+ description: "Waliogundulika Positive wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elc.hiv = 'positive' OR epf.hiv = 'positive')
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9e-10-14"
+ grouping: "LD"
+ description: "Waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND elc.hiv = 'positive'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9f-10-14"
+ grouping: "LD"
+ description: "Waliochagua ulishaji wa maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.reason_for_not_breast_feeding_within_one_hour LIKE '%replacement_feeding%'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9g-10-14"
+ grouping: "LD"
+ description: "Waliopewa ARV Prophylaxis (tail) wakati wa kuruhusiwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-9a-15-19"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status <> 'unknown'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9b-15-19"
+ grouping: "LD"
+ description: "Waliogundulika Positive kutoka ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status = 'positive'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9c-15-19"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv IS NOT NULL OR epf.hiv = 'positive' OR epf.hiv = 'negative')
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9d-15-19"
+ grouping: "LD"
+ description: "Waliogundulika Positive wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elc.hiv = 'positive' OR epf.hiv = 'positive')
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9e-15-19"
+ grouping: "LD"
+ description: "Waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND elc.hiv = 'positive'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9f-15-19"
+ grouping: "LD"
+ description: "Waliochagua ulishaji wa maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.reason_for_not_breast_feeding_within_one_hour LIKE '%replacement_feeding%'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9g-15-19"
+ grouping: "LD"
+ description: "Waliopewa ARV Prophylaxis (tail) wakati wa kuruhusiwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-9a-20-24"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status <> 'unknown'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9b-20-24"
+ grouping: "LD"
+ description: "Waliogundulika Positive kutoka ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status = 'positive'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9c-20-24"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv IS NOT NULL OR epf.hiv = 'positive' OR epf.hiv = 'negative')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9d-20-24"
+ grouping: "LD"
+ description: "Waliogundulika Positive wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elc.hiv = 'positive' OR epf.hiv = 'positive')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9e-20-24"
+ grouping: "LD"
+ description: "Waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND elc.hiv = 'positive'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9f-20-24"
+ grouping: "LD"
+ description: "Waliochagua ulishaji wa maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.reason_for_not_breast_feeding_within_one_hour LIKE '%replacement_feeding%'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9g-20-24"
+ grouping: "LD"
+ description: "Waliopewa ARV Prophylaxis (tail) wakati wa kuruhusiwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-9a-25-29"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status <> 'unknown'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9b-25-29"
+ grouping: "LD"
+ description: "Waliogundulika Positive kutoka ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status = 'positive'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9c-25-29"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv IS NOT NULL OR epf.hiv = 'positive' OR epf.hiv = 'negative')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9d-25-29"
+ grouping: "LD"
+ description: "Waliogundulika Positive wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elc.hiv = 'positive' OR epf.hiv = 'positive')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9e-25-29"
+ grouping: "LD"
+ description: "Waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND elc.hiv = 'positive'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9f-25-29"
+ grouping: "LD"
+ description: "Waliochagua ulishaji wa maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.reason_for_not_breast_feeding_within_one_hour LIKE '%replacement_feeding%'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9g-25-29"
+ grouping: "LD"
+ description: "Waliopewa ARV Prophylaxis (tail) wakati wa kuruhusiwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-9a-30-34"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status <> 'unknown'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9b-30-34"
+ grouping: "LD"
+ description: "Waliogundulika Positive kutoka ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status = 'positive'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9c-30-34"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv IS NOT NULL OR epf.hiv = 'positive' OR epf.hiv = 'negative')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9d-30-34"
+ grouping: "LD"
+ description: "Waliogundulika Positive wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elc.hiv = 'positive' OR epf.hiv = 'positive')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9e-30-34"
+ grouping: "LD"
+ description: "Waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND elc.hiv = 'positive'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9f-30-34"
+ grouping: "LD"
+ description: "Waliochagua ulishaji wa maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.reason_for_not_breast_feeding_within_one_hour LIKE '%replacement_feeding%'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9g-30-34"
+ grouping: "LD"
+ description: "Waliopewa ARV Prophylaxis (tail) wakati wa kuruhusiwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-9a-35+"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status <> 'unknown'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9b-35+"
+ grouping: "LD"
+ description: "Waliogundulika Positive kutoka ANC"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE elc.anc_hiv_status = 'positive'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(elc.admission_date, 7, 4) || '-' || substr(elc.admission_date, 4, 2) || '-' || '01')"
+
+ - key: "ld-9c-35+"
+ grouping: "LD"
+ description: "Jumla waliopimwa VVU wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv IS NOT NULL OR epf.hiv = 'positive' OR epf.hiv = 'negative')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9d-35+"
+ grouping: "LD"
+ description: "Waliogundulika Positive wakati na baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elc.hiv = 'positive' OR epf.hiv = 'positive')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9e-35+"
+ grouping: "LD"
+ description: "Waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON efm.base_entity_id = elc.base_entity_id
+ WHERE elinbc.early_bf_1hr = 'yes'
+ AND elc.hiv = 'positive'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9f-35+"
+ grouping: "LD"
+ description: "Waliochagua ulishaji wa maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE elinbc.reason_for_not_breast_feeding_within_one_hour LIKE '%replacement_feeding%'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9g-35+"
+ grouping: "LD"
+ description: "Waliopewa ARV Prophylaxis (tail) wakati wa kuruhusiwa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE (elinbc.provided_azt_nvp_syrup = 'yes' OR elinbc.provided_other_combinations = 'yes' OR
+ elinbc.provided_nvp_syrup = 'yes')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-15a-10-14"
+ grouping: "LD"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_counselling_after_delivery = 'yes'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15b-10-14"
+ grouping: "LD"
+ description: "Wateja waliofunga kizazi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'tubal_litigation'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15c-10-14"
+ grouping: "LD"
+ description: "Wateja waliowekewa kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'intrauterine_device'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15d-10-14"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'implants'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15e-10-14"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'progestogen_only_pills'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-15a-15-19"
+ grouping: "LD"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_counselling_after_delivery = 'yes'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15b-15-19"
+ grouping: "LD"
+ description: "Wateja waliofunga kizazi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'tubal_litigation'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15c-15-19"
+ grouping: "LD"
+ description: "Wateja waliowekewa kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'intrauterine_device'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15d-15-19"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'implants'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15e-15-19"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'progestogen_only_pills'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-15a-20-24"
+ grouping: "LD"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_counselling_after_delivery = 'yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15b-20-24"
+ grouping: "LD"
+ description: "Wateja waliofunga kizazi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'tubal_litigation'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15c-20-24"
+ grouping: "LD"
+ description: "Wateja waliowekewa kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'intrauterine_device'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15d-20-24"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'implants'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15e-20-24"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'progestogen_only_pills'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-15a-25-29"
+ grouping: "LD"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_counselling_after_delivery = 'yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15b-25-29"
+ grouping: "LD"
+ description: "Wateja waliofunga kizazi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'tubal_litigation'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15c-25-29"
+ grouping: "LD"
+ description: "Wateja waliowekewa kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'intrauterine_device'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15d-25-29"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'implants'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15e-25-29"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'progestogen_only_pills'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-15a-30-34"
+ grouping: "LD"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_counselling_after_delivery = 'yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15b-30-34"
+ grouping: "LD"
+ description: "Wateja waliofunga kizazi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'tubal_litigation'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15c-30-34"
+ grouping: "LD"
+ description: "Wateja waliowekewa kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'intrauterine_device'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15d-30-34"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'implants'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15e-30-34"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'progestogen_only_pills'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-15a-35+"
+ grouping: "LD"
+ description: "Waliopewa ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_counselling_after_delivery = 'yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15b-35+"
+ grouping: "LD"
+ description: "Wateja waliofunga kizazi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'tubal_litigation'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15c-35+"
+ grouping: "LD"
+ description: "Wateja waliowekewa kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'intrauterine_device'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15d-35+"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'implants'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-15e-35+"
+ grouping: "LD"
+ description: "Wateja waliowekewa vipandikizi"
+ indicatorQuery: " SELECT count(DISTINCT elpc.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ WHERE elpc.family_planning_methods_selected = 'progestogen_only_pills'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-10-14-ME"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Male'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-10-14-KE"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Female'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-15-19-ME"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Male'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-15-19-KE"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Female'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-20-24-ME"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Male'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-20-24-KE"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Female'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-25-29-ME"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Male'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-25-29-KE"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Female'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-30-34-ME"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Male'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-30-34-KE"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Female'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-35+-ME"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Male'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-16a-35+-KE"
+ grouping: "LD"
+ description: "Watoto Wachanga Waliofariki"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_ld_postpartum_care elpc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elpc.base_entity_id
+ INNER JOIN ec_child ec ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN ec_ld_immediate_new_born_care elinbc ON ec.base_entity_id = elinbc.base_entity_id
+ WHERE ec.gender = 'Female'
+ AND ec.dod IS NOT NULL
+ AND elinbc.still_birth_choice IS NULL
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elpc.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "ld-13b-10-14"
+ grouping: "LD"
+ description: "Idadi ya wamama waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN task t on elc.base_entity_id = t.for
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE t.focus = 'Labour And Delivery Emergency'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "ld-13b-15-19"
+ grouping: "LD"
+ description: "Idadi ya wamama waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN task t on elc.base_entity_id = t.for
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE t.focus = 'Labour And Delivery Emergency'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "ld-13b-20-24"
+ grouping: "LD"
+ description: "Idadi ya wamama waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN task t on elc.base_entity_id = t.for
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE t.focus = 'Labour And Delivery Emergency'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "ld-13b-25-29"
+ grouping: "LD"
+ description: "Idadi ya wamama waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN task t on elc.base_entity_id = t.for
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE t.focus = 'Labour And Delivery Emergency'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "ld-13b-30-34"
+ grouping: "LD"
+ description: "Idadi ya wamama waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN task t on elc.base_entity_id = t.for
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE t.focus = 'Labour And Delivery Emergency'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+ - key: "ld-13b-35+"
+ grouping: "LD"
+ description: "Idadi ya wamama waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT elc.base_entity_id) as count
+ FROM ec_ld_confirmation elc
+ INNER JOIN task t on elc.base_entity_id = t.for
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elc.base_entity_id
+ WHERE t.focus = 'Labour And Delivery Emergency'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "ld-13c-10-14"
+ grouping: "LD"
+ description: "Idadi ya watoto waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN task t on ec.base_entity_id = t.for
+ WHERE t.focus = 'Labour And Delivery Child Emergency'
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "ld-13c-15-19"
+ grouping: "LD"
+ description: "Idadi ya watoto waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN task t on ec.base_entity_id = t.for
+ WHERE t.focus = 'Labour And Delivery Child Emergency'
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "ld-13c-20-24"
+ grouping: "LD"
+ description: "Idadi ya watoto waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN task t on ec.base_entity_id = t.for
+ WHERE t.focus = 'Labour And Delivery Child Emergency'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "ld-13c-25-29"
+ grouping: "LD"
+ description: "Idadi ya watoto waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN task t on ec.base_entity_id = t.for
+ WHERE t.focus = 'Labour And Delivery Child Emergency'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "ld-13c-30-34"
+ grouping: "LD"
+ description: "Idadi ya watoto waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN task t on ec.base_entity_id = t.for
+ WHERE t.focus = 'Labour And Delivery Child Emergency'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "ld-13c-35+"
+ grouping: "LD"
+ description: "Idadi ya watoto waliopewa rufaa"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.mother_entity_id
+ INNER JOIN task t on ec.base_entity_id = t.for
+ WHERE t.focus = 'Labour And Delivery Child Emergency'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date(substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) || '-' ||
+ substr(strftime('%Y-%m-%d', datetime(t.authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' ||
+ '01') =
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'))"
+
+ - key: "ld-9h-10-14"
+ grouping: "LD"
+ description: "Waliopata rufaa kwenda kliniki ya huduma na matibabu"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv = 'positive')
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9h-15-19"
+ grouping: "LD"
+ description: "Waliopata rufaa kwenda kliniki ya huduma na matibabu"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv = 'positive')
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9h-20-24"
+ grouping: "LD"
+ description: "Waliopata rufaa kwenda kliniki ya huduma na matibabu"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv = 'positive')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9h-25-29"
+ grouping: "LD"
+ description: "Waliopata rufaa kwenda kliniki ya huduma na matibabu"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv = 'positive')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9h-30-34"
+ grouping: "LD"
+ description: "Waliopata rufaa kwenda kliniki ya huduma na matibabu"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv = 'positive')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ - key: "ld-9h-35+"
+ grouping: "LD"
+ description: "Waliopata rufaa kwenda kliniki ya huduma na matibabu"
+ indicatorQuery: " SELECT count(DISTINCT elgec.base_entity_id) as count
+ FROM ec_ld_general_examination_consultation elgec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = elgec.base_entity_id
+ INNER JOIN ec_ld_confirmation elc ON elc.base_entity_id = elgec.base_entity_id
+ LEFT JOIN ec_pnc_followup epf ON epf.entity_id = elgec.base_entity_id
+ WHERE (elgec.hiv = 'positive')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(elgec.visit_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/mother_champion-reporting-indicator-definitions.yml b/opensrp-chw-hf/src/main/assets/config/mother_champion-reporting-indicator-definitions.yml
new file mode 100644
index 0000000000..7e3190b6e6
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/mother_champion-reporting-indicator-definitions.yml
@@ -0,0 +1,59 @@
+indicators:
+ - key: "b-1"
+ grouping: "Mother Champion"
+ description: "Idadi ya wateja wa PMTCT waliounganishwa kwenye kikundi/vikundi vya IGA and Ushauri Nasaha"
+ indicatorQuery: " SELECT count(DISTINCT emcf.entity_id) as count
+ from ec_mother_champion_followup emcf
+ WHERE linked_to_psychosocial_group = 'yes'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "b-2"
+ grouping: "Mother Champion"
+ description: "Idadi ya wateja wapya wa PMTCT waliofuatiliwa na mama vinara na kuanza kutumia dawa"
+ indicatorQuery: " SELECT count(DISTINCT emcf.entity_id) as count
+ from ec_mother_champion_followup emcf
+ WHERE visit_number = 0
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "b-3"
+ grouping: "Mother Champion"
+ description: "Idadi ya wateja wa PMTCT waliopotea kwenye matumizi ya dawa (LTF) na kurudishwa/kufuatiliwa na mama vinara"
+ indicatorQuery: " SELECT count(DISTINCT epcf.entity_id) as count
+ from ec_pmtct_community_feedback epcf
+ WHERE date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "b-4"
+ grouping: "Mother Champion"
+ description: "Idadi ya vipindi alivyofundisha mama kinara/vinara kwa wateja wa PMTCT"
+ indicatorQuery: " SELECT count(DISTINCT id) as count
+ from ec_sbcc es
+ WHERE date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(es.sbcc_date, 7, 4) || '-' || substr(es.sbcc_date, 4, 2) || '-' || '01')"
+ - key: "b-5"
+ grouping: "Mother Champion"
+ description: "Idadi ya wateja wa PMTCT walioelimishwa na mama kinara/vinara"
+ indicatorQuery: " SELECT SUM(participants_number) as count
+ from ec_sbcc es
+ WHERE date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(es.sbcc_date, 7, 4) || '-' || substr(es.sbcc_date, 4, 2) || '-' || '01')"
+ - key: "b-7"
+ grouping: "Mother Champion"
+ description: "Idadi ya wenza waliofuatiliwa/kuletwa kituoni kupima na kujua hali za afya zao kwa mara ya kwanza"
+ indicatorQuery: " SELECT COUNT(DISTINCT eapcf.entity_id) as count
+ from ec_anc_partner_community_feedback eapcf
+ INNER JOIN ec_anc_followup eaf on eaf.entity_id = eapcf.entity_id
+ WHERE (partner_hiv IS NOT NULL AND partner_hiv <> 'test_not_conducted')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/pmtct-reporting-indicator-definitions.yml b/opensrp-chw-hf/src/main/assets/config/pmtct-reporting-indicator-definitions.yml
new file mode 100644
index 0000000000..a52b4c2ebf
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/pmtct-reporting-indicator-definitions.yml
@@ -0,0 +1,856 @@
+indicators:
+ - key: "B3a"
+ grouping: "PMTCT"
+ description: "pmtct_pnc_clients_with_age_10-14"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE (is_transfer_in_client IS NULL OR is_transfer_in_client = 'no')
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "B3b"
+ grouping: "PMTCT"
+ description: "pmtct_pnc_clients_with_age_15-19"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE (is_transfer_in_client IS NULL OR is_transfer_in_client = 'no')
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "B3c"
+ grouping: "PMTCT"
+ description: "pmtct_pnc_clients_with_age_20-24"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE (is_transfer_in_client IS NULL OR is_transfer_in_client = 'no')
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "B3d"
+ grouping: "PMTCT"
+ description: "pmtct_pnc_clients_with_age_25+"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE (is_transfer_in_client IS NULL OR is_transfer_in_client = 'no')
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "C3a"
+ grouping: "PMTCT"
+ description: "pmtct_pnc_clients_who_are_new_on_art"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE (is_transfer_in_client IS NULL OR is_transfer_in_client = 'no')
+ AND known_on_art = 'no'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "C3b"
+ grouping: "PMTCT"
+ description: "pmtct_pnc_clients_who_are_known_on_art"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE (is_transfer_in_client IS NULL OR is_transfer_in_client = 'no')
+ AND known_on_art = 'yes'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "D3"
+ grouping: "PMTCT"
+ description: "pmtct_transfer_in_client_TI"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE is_transfer_in_client = 'yes'
+ AND known_on_art = 'yes'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "E3"
+ grouping: "PMTCT"
+ description: "pmtct_transfer_out_clients_TO"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN (SELECT t2.base_entity_id,
+ substr(t2.grouped_followp_status, 0,
+ instr(t2.grouped_followp_status, ',')) as followup_status
+ from (
+ SELECT T1.base_entity_id,
+ GROUP_CONCAT(T1.followup_status, ',') grouped_followp_status
+ FROM (SELECT ec_pmtct_registration.base_entity_id, ec_pmtct_followup.followup_status, visit_number
+ FROM ec_pmtct_registration
+ INNER JOIN ec_pmtct_followup
+ on ec_pmtct_registration.base_entity_id = ec_pmtct_followup.entity_id
+ ORDER BY visit_number DESC) as T1
+ group by T1.base_entity_id
+ ) as t2) as t3 on t3.base_entity_id = epmtc.base_entity_id
+ WHERE t3.followup_status = 'transfer_out'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+
+ - key: "G3"
+ grouping: "PMTCT"
+ description: "pmtct_clients_continuing_with_services"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN ec_pmtct_followup epf on epmtc.base_entity_id = epf.entity_id
+ WHERE epf.followup_status = 'continuing_with_services'
+ AND epf.visit_number <> '0'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "H3"
+ grouping: "PMTCT"
+ description: "pmtct_clients_with_three_consecutive_missed_appointments"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE epmtc.base_entity_id NOT IN (SELECT DISTINCT epmtc.base_entity_id as base_entity_id
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN ec_pmtct_followup epf on epmtc.base_entity_id = epf.entity_id
+ WHERE (epf.followup_status = 'continuing_with_services' OR
+ epf.followup_status = 'transfer_out')
+ AND epf.visit_number <> '0'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'),
+ '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' ||
+ substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "I3"
+ grouping: "PMTCT"
+ description: "pmtct_clients_that_died"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN ec_pmtct_followup epf on epmtc.base_entity_id = epf.entity_id
+ WHERE fm.dod IS NOT NULL
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+
+ - key: "J3"
+ grouping: "PMTCT"
+ description: "pmtct_clients_that_exited_to_ctc"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE epmtc.is_closed = '1'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "A12"
+ grouping: "PMTCT"
+ description: "pmtct_clients_registered_month(0)_12_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE (is_transfer_in_client IS NULL OR is_transfer_in_client = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "A24"
+ grouping: "PMTCT"
+ description: "pmtct_clients_registered_month(0)_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE (is_transfer_in_client IS NULL OR is_transfer_in_client = 'no')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "B12"
+ grouping: "PMTCT"
+ description: "pmtct_transfer_in_client_TI_since_month(0)_12_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE is_transfer_in_client = 'yes'
+ AND known_on_art = 'yes'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "B24"
+ grouping: "PMTCT"
+ description: "pmtct_transfer_in_client_TI_since_month(0)_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE is_transfer_in_client = 'yes'
+ AND known_on_art = 'yes'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "C12"
+ grouping: "PMTCT"
+ description: "pmtct_transfer_out_clients_since_month(0)_12_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN (SELECT t2.base_entity_id,
+ substr(t2.grouped_followp_status, 0,
+ instr(t2.grouped_followp_status, ',')) as followup_status
+ from (
+ SELECT T1.base_entity_id,
+ GROUP_CONCAT(T1.followup_status, ',') grouped_followp_status
+ FROM (SELECT ec_pmtct_registration.base_entity_id, ec_pmtct_followup.followup_status, visit_number
+ FROM ec_pmtct_registration
+ INNER JOIN ec_pmtct_followup
+ on ec_pmtct_registration.base_entity_id = ec_pmtct_followup.entity_id
+ ORDER BY visit_number DESC) as T1
+ group by T1.base_entity_id
+ ) as t2) as t3 on t3.base_entity_id = epmtc.base_entity_id
+ WHERE t3.followup_status = 'transfer_out'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "C24"
+ grouping: "PMTCT"
+ description: "pmtct_transfer_out_clients_since_month(0)_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN (SELECT t2.base_entity_id,
+ substr(t2.grouped_followp_status, 0,
+ instr(t2.grouped_followp_status, ',')) as followup_status
+ from (
+ SELECT T1.base_entity_id,
+ GROUP_CONCAT(T1.followup_status, ',') grouped_followp_status
+ FROM (SELECT ec_pmtct_registration.base_entity_id, ec_pmtct_followup.followup_status, visit_number
+ FROM ec_pmtct_registration
+ INNER JOIN ec_pmtct_followup
+ on ec_pmtct_registration.base_entity_id = ec_pmtct_followup.entity_id
+ ORDER BY visit_number DESC) as T1
+ group by T1.base_entity_id
+ ) as t2) as t3 on t3.base_entity_id = epmtc.base_entity_id
+ WHERE t3.followup_status = 'transfer_out'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "E12"
+ grouping: "PMTCT"
+ description: "pmtct_clients_continuing_with_services_with_visits_M10_or_M11_or_M12"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN ec_pmtct_followup epf on epmtc.base_entity_id = epf.entity_id
+ WHERE epf.followup_status = 'continuing_with_services'
+ AND (date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01') OR
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-2 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01') OR
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-3 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "E24"
+ grouping: "PMTCT"
+ description: "pmtct_clients_continuing_with_services_with_visits_M24"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN ec_pmtct_followup epf on epmtc.base_entity_id = epf.entity_id
+ WHERE epf.followup_status = 'continuing_with_services'
+ AND (date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-1 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "F12"
+ grouping: "PMTCT"
+ description: "pmtct_clients_with_hvl_test_in_the_last_6_months"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN ec_pmtct_followup epf on epmtc.base_entity_id = epf.entity_id
+ WHERE epf.followup_status = 'continuing_with_services'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-6 months') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')
+ AND epf.hvl_sample_id IS NOT NULL
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "G12"
+ grouping: "PMTCT"
+ description: "pmtct_clients_with_hvl_test_in_the_last_6_months_with_results_less_than_50_per_ul"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN ec_pmtct_followup epf on epmtc.base_entity_id = epf.entity_id
+ INNER JOIN ec_pmtct_hvl_results ephr on epf.base_entity_id = ephr.hvl_pmtct_followup_form_submission_id
+ WHERE epf.followup_status = 'continuing_with_services'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-6 months') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')
+ AND epf.hvl_sample_id IS NOT NULL
+ AND CAST(hvl_result as INT) <= 50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+
+ - key: "H12"
+ grouping: "PMTCT"
+ description: "pmtct_clients_who_are_ltf"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN (SELECT t2.base_entity_id,
+ substr(t2.grouped_followp_status, 0,
+ instr(t2.grouped_followp_status, ',')) as followup_status
+ from (
+ SELECT T1.base_entity_id,
+ GROUP_CONCAT(T1.followup_status, ',') grouped_followp_status
+ FROM (SELECT ec_pmtct_registration.base_entity_id, ec_pmtct_registration.followup_status, visit_number
+ FROM ec_pmtct_registration
+ INNER JOIN ec_pmtct_followup
+ on ec_pmtct_registration.base_entity_id = ec_pmtct_followup.entity_id
+ ORDER BY visit_number DESC) as T1
+ group by T1.base_entity_id
+ ) as t2) as t3 on t3.base_entity_id = epmtc.base_entity_id
+ WHERE t3.followup_status = 'lost_to_followup'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+
+ - key: "F24"
+ grouping: "PMTCT"
+ description: "pmtct_clients_who_are_ltf_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN (SELECT t2.base_entity_id,
+ substr(t2.grouped_followp_status, 0,
+ instr(t2.grouped_followp_status, ',')) as followup_status
+ from (
+ SELECT T1.base_entity_id,
+ GROUP_CONCAT(T1.followup_status, ',') grouped_followp_status
+ FROM (SELECT ec_pmtct_registration.base_entity_id, ec_pmtct_registration.followup_status, visit_number
+ FROM ec_pmtct_registration
+ INNER JOIN ec_pmtct_followup
+ on ec_pmtct_registration.base_entity_id = ec_pmtct_followup.entity_id
+ ORDER BY visit_number DESC) as T1
+ group by T1.base_entity_id
+ ) as t2) as t3 on t3.base_entity_id = epmtc.base_entity_id
+ WHERE t3.followup_status = 'lost_to_followup'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "I12"
+ grouping: "PMTCT"
+ description: "pmtct_clients_who_are_diseased_since_month(0)_12_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE fm.dod IS NOT NULL
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "G24"
+ grouping: "PMTCT"
+ description: "pmtct_clients_who_are_diseased_since_month(0)_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN ec_pmtct_followup epf on epmtc.base_entity_id = epf.entity_id
+ WHERE fm.dod IS NOT NULL
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "J12"
+ grouping: "PMTCT"
+ description: "pmtct_clients_that_exited_to_ctc_since_month(0)_12_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE epmtc.is_closed = '1'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+
+ - key: "H24"
+ grouping: "PMTCT"
+ description: "pmtct_clients_that_exited_to_ctc_since_month(0)_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT epmtc.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ WHERE epmtc.is_closed = '1'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "L12"
+ grouping: "PMTCT"
+ description: "children_born_by_pmtctc_mothers_since_moonth(0)_12_months_report"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN ec_hei eh on fm.base_entity_id = eh.mother_entity_id
+ WHERE date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "J24"
+ grouping: "PMTCT"
+ description: "children_born_by_pmtctc_mothers_since_moonth(0)_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN ec_hei eh on fm.base_entity_id = eh.mother_entity_id
+ WHERE date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "M12"
+ grouping: "PMTCT"
+ description: "children_who_are_ltfs_since_month(0)_12_months_report"
+ indicatorQuery: " SELECT count(DISTINCT t3.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN (SELECT t2.base_entity_id, t2.mother_entity_id,
+ substr(t2.grouped_followp_status, 0,
+ instr(t2.grouped_followp_status, ',')) as followup_status
+ from (
+ SELECT T1.base_entity_id, T1.mother_entity_id,
+ GROUP_CONCAT(T1.followup_status, ',') grouped_followp_status
+ FROM (SELECT ec_hei.base_entity_id, followup_status, mother_entity_id
+ FROM ec_hei
+ INNER JOIN ec_hei_followup
+ on ec_hei.base_entity_id = ec_hei_followup.entity_id
+ ORDER BY visit_number DESC) as T1
+ group by T1.base_entity_id, T1.mother_entity_id
+ ) as t2) as t3 on t3.mother_entity_id = epmtc.base_entity_id
+ WHERE t3.followup_status = 'lost_to_followup'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "Q24"
+ grouping: "PMTCT"
+ description: "children_who_are_ltfs_since_month(0)_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT t3.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN (SELECT t2.base_entity_id, t2.mother_entity_id,
+ substr(t2.grouped_followp_status, 0,
+ instr(t2.grouped_followp_status, ',')) as followup_status
+ from (
+ SELECT T1.base_entity_id, T1.mother_entity_id,
+ GROUP_CONCAT(T1.followup_status, ',') grouped_followp_status
+ FROM (SELECT ec_hei.base_entity_id, followup_status, mother_entity_id
+ FROM ec_hei
+ INNER JOIN ec_hei_followup
+ on ec_hei.base_entity_id = ec_hei_followup.entity_id
+ ORDER BY visit_number DESC) as T1
+ group by T1.base_entity_id, T1.mother_entity_id
+ ) as t2) as t3 on t3.mother_entity_id = epmtc.base_entity_id
+ WHERE t3.followup_status = 'lost_to_followup'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+
+ - key: "K24"
+ grouping: "PMTCT"
+ description: "children_who_transfered_out_since_month(0)_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT t3.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epmtc.base_entity_id
+ INNER JOIN (SELECT t2.base_entity_id, t2.mother_entity_id,
+ substr(t2.grouped_followp_status, 0,
+ instr(t2.grouped_followp_status, ',')) as followup_status
+ from (
+ SELECT T1.base_entity_id, T1.mother_entity_id,
+ GROUP_CONCAT(T1.followup_status, ',') grouped_followp_status
+ FROM (SELECT ec_hei.base_entity_id, ec_hei_followup.followup_status, mother_entity_id
+ FROM ec_hei
+ INNER JOIN ec_hei_followup
+ on ec_hei.base_entity_id = ec_hei_followup.entity_id
+ ORDER BY visit_number DESC) as T1
+ group by T1.base_entity_id, T1.mother_entity_id
+ ) as t2) as t3 on t3.mother_entity_id = epmtc.base_entity_id
+ WHERE t3.followup_status = 'transfer_out'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "N12"
+ grouping: "PMTCT"
+ description: "children_who_are_ltfs_since_month(0)_12_months_report"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_hei eh on epmtc.base_entity_id = eh.mother_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ WHERE
+ fm.dod IS NOT NULL AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "P24"
+ grouping: "PMTCT"
+ description: "children_who_are_ltfs_since_month(0)_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_hei eh on epmtc.base_entity_id = eh.mother_entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ WHERE
+ fm.dod IS NOT NULL AND
+ date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "O12"
+ grouping: "PMTCT"
+ description: "children_who_started_prophylaxis"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_hei eh on epmtc.base_entity_id = eh.mother_entity_id
+ INNER JOIN ec_hei_followup ehf on ehf.entity_id = eh.base_entity_id
+ WHERE (ehf.prophylaxis_arv_for_high_and_low_risk_given IS NOT NULL OR
+ ehf.prophylaxis_arv_for_high_risk_given IS NOT NULL)
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "P12"
+ grouping: "PMTCT"
+ description: "children_who_started_ctx_within_2_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_hei eh on epmtc.base_entity_id = eh.mother_entity_id
+ INNER JOIN ec_hei_followup ehf on ehf.entity_id = eh.base_entity_id
+ INNER JOIN ec_family_member efm on efm.base_entity_id = eh.base_entity_id
+ WHERE ehf.prescribed_ctx = 'yes'
+ AND date(efm.dob, '+2 months') >=
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "Q12a"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_within_2_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_hei eh on epmtc.base_entity_id = eh.mother_entity_id
+ INNER JOIN ec_hei_followup ehf on ehf.entity_id = eh.base_entity_id
+ INNER JOIN ec_family_member efm on efm.base_entity_id = eh.base_entity_id
+ WHERE ehf.sample_id IS NOT NULL
+ AND date(efm.dob, '+2 months') >=
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "Q12b"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_and_found_positive_within_2_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_hei eh on epmtc.base_entity_id = eh.mother_entity_id
+ INNER JOIN ec_hei_followup ehf on ehf.entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehhr.hei_followup_form_submission_id = ehf.base_entity_id
+ INNER JOIN ec_family_member efm on efm.base_entity_id = eh.base_entity_id
+ WHERE ehf.sample_id IS NOT NULL
+ AND date(efm.dob, '+2 months') >=
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')
+ AND ehhr.hiv_test_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-12 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "M24"
+ grouping: "PMTCT"
+ description: "children_who_tested_negative_after_confimation_test_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_hei eh on epmtc.base_entity_id = eh.mother_entity_id
+ WHERE eh.hiv_status = 'negative'
+ AND eh.is_closed = '1'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "N24"
+ grouping: "PMTCT"
+ description: "children_who_tested_negative_but_have_not_completed_hei_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_hei eh on epmtc.base_entity_id = eh.mother_entity_id
+ WHERE eh.hiv_status = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "O24"
+ grouping: "PMTCT"
+ description: "children_who_were_found_positive_24_months_report"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_pmtct_registration epmtc
+ INNER JOIN ec_hei eh on epmtc.base_entity_id = eh.mother_entity_id
+ WHERE eh.hiv_status = 'positive'
+ AND eh.is_closed = '1'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-24 months') =
+ date(substr(epmtc.pmtct_register_date, 7, 4) || '-' || substr(epmtc.pmtct_register_date, 4, 2) || '-' || '01')"
+
+ - key: "A"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_birth"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ WHERE eh.risk_category = 'high'
+ AND ehf.test_at_age = 'At Birth'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "B"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_less_than_2_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ WHERE
+ ehf.test_at_age IS NOT NULL
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+3 months') >
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || substr(ehf.followup_visit_date, 1, 2))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "C"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_2_months_to_12_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ WHERE
+ ehf.test_at_age IS NOT NULL
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+3 months') <
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || substr(ehf.followup_visit_date, 1, 2))
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+12 months') >=
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || substr(ehf.followup_visit_date, 1, 2))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "D"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_13_months_and_greater"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ WHERE
+ ehf.test_at_age IS NOT NULL
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+12 months') <
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || substr(ehf.followup_visit_date, 1, 2))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "A1"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_birth_and_found_positive"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE eh.risk_category = 'high'
+ AND ehf.test_at_age = 'At Birth'
+ AND ehhr.hiv_test_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "B1"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_less_than_2_months_and_found_positive"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE
+ ehf.test_at_age IS NOT NULL
+ AND ehhr.hiv_test_result = 'positive'
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+3 months') >
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || substr(ehf.followup_visit_date, 1, 2))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "C1"
+ grouping: "PMTCT"
+ description: "children_who_were_first_tested_for_hiv_at_2_months_to_12_months_and_found_positive"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE
+ ehf.test_at_age IS NOT NULL
+ AND ehhr.hiv_test_result = 'positive'
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+3 months') <
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || substr(ehf.followup_visit_date, 1, 2))
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+12 months') >=
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || substr(ehf.followup_visit_date, 1, 2))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "D1"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_13_months_and_greater_and_found_positive"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE
+ ehf.test_at_age IS NOT NULL
+ AND ehhr.hiv_test_result = 'positive'
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+12 months') <
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || substr(ehf.followup_visit_date, 1, 2))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "E1"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_13_months_and_greater_and_found_positive"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ LEFT JOIN ec_hiv_register ehr on ehr.base_entity_id = eh.base_entity_id
+ WHERE ehf.test_at_age IS NOT NULL
+ AND ehhr.hiv_test_result = 'positive'
+ AND (ehr.ctc_number IS NOT NULL OR ehr.ctc_number != '' OR ehhr.ctc_number IS NOT NULL OR ehhr.ctc_number != '')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "F"
+ grouping: "PMTCT"
+ description: "children_who_were_given_proprophylactic_therapy"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ WHERE (ehf.prophylaxis_arv_for_high_risk_given IS NOT NULL OR
+ ehf.prophylaxis_arv_for_high_and_low_risk_given IS NOT NULL)
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "G"
+ grouping: "PMTCT"
+ description: "children_who_were_given_ctx_therapy"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on ehf.entity_id = eh.base_entity_id
+ INNER JOIN ec_family_member efm on efm.base_entity_id = eh.base_entity_id
+ WHERE ehf.prescribed_ctx = 'yes'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "H"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_9_months_to_12_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE ehf.test_at_age IS NOT NULL
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+9 months') <=
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' ||
+ substr(ehf.followup_visit_date, 1, 2))
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+13 months') >
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' ||
+ substr(ehf.followup_visit_date, 1, 2))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "I"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_15_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE ehf.test_at_age = '15 Months'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "J"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_18_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE ehf.test_at_age = '18 Months'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "H1"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_9_months_to_12_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE ehf.test_at_age IS NOT NULL
+ AND ehhr.hiv_test_result = 'positive'
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+9 months') <=
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' ||
+ substr(ehf.followup_visit_date, 1, 2))
+ AND date(substr(fm.dob, 1, 4) || '-' || substr(fm.dob, 6, 2) || '-' || substr(fm.dob, 9, 2), '+13 months') >
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' ||
+ substr(ehf.followup_visit_date, 1, 2))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "I1"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_15_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE ehf.test_at_age = '15 Months'
+ AND ehhr.hiv_test_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "J1"
+ grouping: "PMTCT"
+ description: "children_who_were_tested_for_hiv_at_18_months"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE ehf.test_at_age = '18 Months'
+ AND ehhr.hiv_test_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "K"
+ grouping: "PMTCT"
+ description: "children_found_positive_and_linked_to_ctc"
+ indicatorQuery: " SELECT count(DISTINCT eh.base_entity_id) as count
+ FROM ec_hei eh
+ INNER JOIN ec_hei_followup ehf on eh.base_entity_id = ehf.entity_id
+ INNER JOIN ec_family_member fm on fm.base_entity_id = eh.base_entity_id
+ INNER JOIN ec_hei_hiv_results ehhr on ehf.base_entity_id = ehhr.hei_followup_form_submission_id
+ WHERE
+ ehhr.hiv_test_result = 'positive'
+ AND ehhr.ctc_number IS NOT NULL
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/pnc-reporting-indicator-definitions.yml b/opensrp-chw-hf/src/main/assets/config/pnc-reporting-indicator-definitions.yml
new file mode 100644
index 0000000000..25b5c5b856
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/pnc-reporting-indicator-definitions.yml
@@ -0,0 +1,2965 @@
+indicators:
+ - key: "pnc-1a-10-14"
+ grouping: "PNC"
+ description: "Waliohudhuria Ndani ya saa 48"
+ indicatorQuery: "SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1a-15-19"
+ grouping: "PNC"
+ description: "Waliohudhuria Ndani ya saa 48"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1a-20-24"
+ grouping: "PNC"
+ description: "Waliohudhuria Ndani ya saa 48"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1a-25-29"
+ grouping: "PNC"
+ description: "Waliohudhuria Ndani ya saa 48"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1a-30-34"
+ grouping: "PNC"
+ description: "Waliohudhuria Ndani ya saa 48"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1a-35+"
+ grouping: "PNC"
+ description: "Waliohudhuria Ndani ya saa 48"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1b-10-14"
+ grouping: "PNC"
+ description: "Waliohudhuria kati ya siku ya 3-7"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+7 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1b-15-19"
+ grouping: "PNC"
+ description: "Waliohudhuria kati ya siku ya 3-7"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+7 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1b-20-24"
+ grouping: "PNC"
+ description: "Waliohudhuria kati ya siku ya 3-7"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+7 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1b-25-29"
+ grouping: "PNC"
+ description: "Waliohudhuria kati ya siku ya 3-7"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+7 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1b-30-34"
+ grouping: "PNC"
+ description: "Waliohudhuria kati ya siku ya 3-7"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+7 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-1b-35+"
+ grouping: "PNC"
+ description: "Waliohudhuria kati ya siku ya 3-7"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+7 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-2a-10-14"
+ grouping: "PNC"
+ description: "Waliomaliza mahudhurio yote ( saa 48, siku 3-7, siku 8-28, siku 29-42)"
+ indicatorQuery: " SELECT count(DISTINCT base_entity_id) as count
+ FROM (
+ (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T1
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T2 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T3 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+42 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T4 using (base_entity_id)
+ )"
+ - key: "pnc-2a-15-19"
+ grouping: "PNC"
+ description: "Waliomaliza mahudhurio yote ( saa 48, siku 3-7, siku 8-28, siku 29-42)"
+ indicatorQuery: " SELECT count(DISTINCT base_entity_id) as count
+ FROM (
+ (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T1
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T2 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T3 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+42 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T4 using (base_entity_id)
+ )"
+ - key: "pnc-2a-20-24"
+ grouping: "PNC"
+ description: "Waliomaliza mahudhurio yote ( saa 48, siku 3-7, siku 8-28, siku 29-42)"
+ indicatorQuery: " SELECT count(DISTINCT base_entity_id) as count
+ FROM (
+ (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T1
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T2 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T3 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+42 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T4 using (base_entity_id)
+ )"
+ - key: "pnc-2a-25-29"
+ grouping: "PNC"
+ description: "Waliomaliza mahudhurio yote ( saa 48, siku 3-7, siku 8-28, siku 29-42)"
+ indicatorQuery: " SELECT count(DISTINCT base_entity_id) as count
+ FROM (
+ (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T1
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T2 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T3 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+42 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T4 using (base_entity_id)
+ )"
+ - key: "pnc-2a-30-34"
+ grouping: "PNC"
+ description: "Waliomaliza mahudhurio yote ( saa 48, siku 3-7, siku 8-28, siku 29-42)"
+ indicatorQuery: " SELECT count(DISTINCT base_entity_id) as count
+ FROM (
+ (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T1
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T2 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T3 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+42 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T4 using (base_entity_id)
+ )"
+ - key: "pnc-2a-35+"
+ grouping: "PNC"
+ description: "Waliomaliza mahudhurio yote ( saa 48, siku 3-7, siku 8-28, siku 29-42)"
+ indicatorQuery: " SELECT count(DISTINCT base_entity_id) as count
+ FROM (
+ (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T1
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T2 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ ) T3 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT epo.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf ON epf.entity_id = epo.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+42 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T4 using (base_entity_id)
+ )"
+
+ - key: "pnc-3-10-14"
+ grouping: "PNC"
+ description: "Wenye upungufu mkubwa wa damu (Hb < 8.5 g/dl)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE CAST(epf.hb_level AS FLOAT) < 8.5
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-3-15-19"
+ grouping: "PNC"
+ description: "Wenye upungufu mkubwa wa damu (Hb < 8.5 g/dl)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE CAST(epf.hb_level AS FLOAT) < 8.5
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-3-20-24"
+ grouping: "PNC"
+ description: "Wenye upungufu mkubwa wa damu (Hb < 8.5 g/dl)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE CAST(epf.hb_level AS FLOAT) < 8.5
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-3-25-29"
+ grouping: "PNC"
+ description: "Wenye upungufu mkubwa wa damu (Hb < 8.5 g/dl)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE CAST(epf.hb_level AS FLOAT) < 8.5
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-3-30-34"
+ grouping: "PNC"
+ description: "Wenye upungufu mkubwa wa damu (Hb < 8.5 g/dl)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE CAST(epf.hb_level AS FLOAT) < 8.5
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-3-35+"
+ grouping: "PNC"
+ description: "Wenye upungufu mkubwa wa damu (Hb < 8.5 g/dl)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE CAST(epf.hb_level AS FLOAT) < 8.5
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-4-10-14"
+ grouping: "PNC"
+ description: "Waliopata matatizo ya akili baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE (epf.puerperal_psychosis = 'yes' OR epf.mental_illness_symptom = 'yes')
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-4-15-19"
+ grouping: "PNC"
+ description: "Waliopata matatizo ya akili baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE (epf.puerperal_psychosis = 'yes' OR epf.mental_illness_symptom = 'yes')
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-4-20-24"
+ grouping: "PNC"
+ description: "Waliopata matatizo ya akili baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE (epf.puerperal_psychosis = 'yes' OR epf.mental_illness_symptom = 'yes')
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-4-25-29"
+ grouping: "PNC"
+ description: "Waliopata matatizo ya akili baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE (epf.puerperal_psychosis = 'yes' OR epf.mental_illness_symptom = 'yes')
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-4-30-34"
+ grouping: "PNC"
+ description: "Waliopata matatizo ya akili baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE (epf.puerperal_psychosis = 'yes' OR epf.mental_illness_symptom = 'yes')
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-4-35+"
+ grouping: "PNC"
+ description: "Waliopata matatizo ya akili baada ya kujifungua"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE (epf.puerperal_psychosis = 'yes' OR epf.mental_illness_symptom = 'yes')
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-5-10-14"
+ grouping: "PNC"
+ description: "Waliopata Vit. A"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.vitamin_a = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-5-15-19"
+ grouping: "PNC"
+ description: "Waliopata Vit. A"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.vitamin_a = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-5-20-24"
+ grouping: "PNC"
+ description: "Waliopata Vit. A"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.vitamin_a = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-5-25-29"
+ grouping: "PNC"
+ description: "Waliopata Vit. A"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.vitamin_a = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-5-30-34"
+ grouping: "PNC"
+ description: "Waliopata Vit. A"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.vitamin_a = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-5-35+"
+ grouping: "PNC"
+ description: "Waliopata Vit. A"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.vitamin_a = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-6-10-14"
+ grouping: "PNC"
+ description: "Wenye msamba ulioambukizwa/Ulioachia"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.perineum_infection = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-6-15-19"
+ grouping: "PNC"
+ description: "Wenye msamba ulioambukizwa/Ulioachia"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.perineum_infection = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-6-20-24"
+ grouping: "PNC"
+ description: "Wenye msamba ulioambukizwa/Ulioachia"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.perineum_infection = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-6-25-29"
+ grouping: "PNC"
+ description: "Wenye msamba ulioambukizwa/Ulioachia"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.perineum_infection = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-6-30-34"
+ grouping: "PNC"
+ description: "Wenye msamba ulioambukizwa/Ulioachia"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.perineum_infection = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-6-35+"
+ grouping: "PNC"
+ description: "Wenye msamba ulioambukizwa/Ulioachia"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.perineum_infection = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-7-10-14"
+ grouping: "PNC"
+ description: "Wenye fistula"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.fistula = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-7-15-19"
+ grouping: "PNC"
+ description: "Wenye fistula"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.fistula = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-7-20-24"
+ grouping: "PNC"
+ description: "Wenye fistula"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.fistula = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-7-25-29"
+ grouping: "PNC"
+ description: "Wenye fistula"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.fistula = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-7-30-34"
+ grouping: "PNC"
+ description: "Wenye fistula"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.fistula = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-7-35+"
+ grouping: "PNC"
+ description: "Wenye fistula"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.fistula = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8a-10-14"
+ grouping: "PNC"
+ description: "BBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Birth before Arrival (BBA)'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8a-15-19"
+ grouping: "PNC"
+ description: "BBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Birth before Arrival (BBA)'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8a-20-24"
+ grouping: "PNC"
+ description: "BBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Birth before Arrival (BBA)'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8a-25-29"
+ grouping: "PNC"
+ description: "BBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epo.delivery_place = 'Birth before Arrival (BBA)'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8a-30-34"
+ grouping: "PNC"
+ description: "BBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Birth before Arrival (BBA)'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8a-35+"
+ grouping: "PNC"
+ description: "BBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Birth before Arrival (BBA)'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8b-10-14"
+ grouping: "PNC"
+ description: "TBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Traditional birth attendant'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8b-15-19"
+ grouping: "PNC"
+ description: "TBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Traditional birth attendant'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8b-20-24"
+ grouping: "PNC"
+ description: "TBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Traditional birth attendant'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8b-25-29"
+ grouping: "PNC"
+ description: "TBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Traditional birth attendant'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8b-30-34"
+ grouping: "PNC"
+ description: "TBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Traditional birth attendant'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8b-35+"
+ grouping: "PNC"
+ description: "TBA"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'Traditional birth attendant'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8c-10-14"
+ grouping: "PNC"
+ description: "Idadi ya waliojifungulia nyumbani"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'At home'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8c-15-19"
+ grouping: "PNC"
+ description: "Idadi ya waliojifungulia nyumbani"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'At home'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8c-20-24"
+ grouping: "PNC"
+ description: "Idadi ya waliojifungulia nyumbani"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'At home'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8c-25-29"
+ grouping: "PNC"
+ description: "Idadi ya waliojifungulia nyumbani"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'At home'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8c-30-34"
+ grouping: "PNC"
+ description: "Idadi ya waliojifungulia nyumbani"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'At home'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-8c-35+"
+ grouping: "PNC"
+ description: "Idadi ya waliojifungulia nyumbani"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ WHERE epo.delivery_place = 'At home'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9a-10-14"
+ grouping: "PNC"
+ description: "Waliopata ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.education_counselling_given = 'yes'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9a-15-19"
+ grouping: "PNC"
+ description: "Waliopata ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.education_counselling_given = 'yes'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9a-20-24"
+ grouping: "PNC"
+ description: "Waliopata ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.education_counselling_given = 'yes'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9a-25-29"
+ grouping: "PNC"
+ description: "Waliopata ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.education_counselling_given = 'yes'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9a-30-34"
+ grouping: "PNC"
+ description: "Waliopata ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.education_counselling_given = 'yes'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9a-35+"
+ grouping: "PNC"
+ description: "Waliopata ushauri wa uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.education_counselling_given = 'yes'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9b-10-14"
+ grouping: "PNC"
+ description: "Waliopata kondomu"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_condom'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9b-15-19"
+ grouping: "PNC"
+ description: "Waliopata kondomu"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_condom'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9b-20-24"
+ grouping: "PNC"
+ description: "Waliopata kondomu"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_condom'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9b-25-29"
+ grouping: "PNC"
+ description: "Waliopata kondomu"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_condom'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9b-30-34"
+ grouping: "PNC"
+ description: "Waliopata kondomu"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_condom'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9b-35+"
+ grouping: "PNC"
+ description: "Waliopata kondomu"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_condom'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9c-10-14"
+ grouping: "PNC"
+ description: "Waliopata vidonge (POP)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_pills'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9c-15-19"
+ grouping: "PNC"
+ description: "Waliopata vidonge (POP)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_pills'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9c-20-24"
+ grouping: "PNC"
+ description: "Waliopata vidonge (POP)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_pills'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9c-25-29"
+ grouping: "PNC"
+ description: "Waliopata vidonge (POP)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_pills'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9c-30-34"
+ grouping: "PNC"
+ description: "Waliopata vidonge (POP)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_pills'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9c-35+"
+ grouping: "PNC"
+ description: "Waliopata vidonge (POP)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_pills'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d1-10-14"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi (Implants)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_implants'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d1-15-19"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi (Implants)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_implants'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d1-20-24"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi (Implants)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_implants'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d1-25-29"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi (Implants)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_implants'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d1-30-34"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi (Implants)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_implants'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d1-35+"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi (Implants)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_implants'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d2-10-14"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi ( Jadelle)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_jadelle'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d2-15-19"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi ( Jadelle)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_jadelle'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d2-20-24"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi ( Jadelle)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_jadelle'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d2-25-29"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi ( Jadelle)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_jadelle'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d2-30-34"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi ( Jadelle)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_jadelle'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9d2-35+"
+ grouping: "PNC"
+ description: "Waliopata vipandikizi ( Jadelle)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_jadelle'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9e-10-14"
+ grouping: "PNC"
+ description: "Waliopata kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_iucd'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9e-15-19"
+ grouping: "PNC"
+ description: "Waliopata kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_iucd'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9e-20-24"
+ grouping: "PNC"
+ description: "Waliopata kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_iucd'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9e-25-29"
+ grouping: "PNC"
+ description: "Waliopata kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_iucd'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9e-30-34"
+ grouping: "PNC"
+ description: "Waliopata kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_iucd'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9e-35+"
+ grouping: "PNC"
+ description: "Waliopata kitanzi"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_iucd'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9f-10-14"
+ grouping: "PNC"
+ description: "Kufunga uzazi (BTL)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_tubal_ligation'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9f-15-19"
+ grouping: "PNC"
+ description: "Kufunga uzazi (BTL)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_tubal_ligation'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9f-20-24"
+ grouping: "PNC"
+ description: "Kufunga uzazi (BTL)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_tubal_ligation'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9f-25-29"
+ grouping: "PNC"
+ description: "Kufunga uzazi (BTL)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_tubal_ligation'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9f-30-34"
+ grouping: "PNC"
+ description: "Kufunga uzazi (BTL)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_tubal_ligation'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9f-35+"
+ grouping: "PNC"
+ description: "Kufunga uzazi (BTL)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_tubal_ligation'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9g-10-14"
+ grouping: "PNC"
+ description: "Rufaa kupata njia ya uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_referred_fp_services'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9g-15-19"
+ grouping: "PNC"
+ description: "Rufaa kupata njia ya uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_referred_fp_services'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9g-20-24"
+ grouping: "PNC"
+ description: "Rufaa kupata njia ya uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_referred_fp_services'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9g-25-29"
+ grouping: "PNC"
+ description: "Rufaa kupata njia ya uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_referred_fp_services'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9g-30-34"
+ grouping: "PNC"
+ description: "Rufaa kupata njia ya uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_referred_fp_services'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-9g-35+"
+ grouping: "PNC"
+ description: "Rufaa kupata njia ya uzazi wa mpango"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on fm.base_entity_id = epf.entity_id
+ WHERE epf.method_provided = 'chk_referred_fp_services'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10a-10-14"
+ grouping: "PNC"
+ description: "Waliokuja postnatal wakiwa positive"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pmtct_registration epr on epo.base_entity_id = epr.base_entity_id
+ WHERE ((date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2)) >
+ date(substr(epr.pmtct_register_date, 7, 4) || '-' || substr(epr.pmtct_register_date, 4, 2) || '-' ||
+ substr(epr.pmtct_register_date, 1, 2))) OR (epo.hiv_status_question = 'positive'))
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10a-15-19"
+ grouping: "PNC"
+ description: "Waliokuja postnatal wakiwa positive"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pmtct_registration epr on epo.base_entity_id = epr.base_entity_id
+ WHERE ((date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2)) >
+ date(substr(epr.pmtct_register_date, 7, 4) || '-' || substr(epr.pmtct_register_date, 4, 2) || '-' ||
+ substr(epr.pmtct_register_date, 1, 2))) OR (epo.hiv_status_question = 'positive'))
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10a-20-24"
+ grouping: "PNC"
+ description: "Waliokuja postnatal wakiwa positive"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pmtct_registration epr on epo.base_entity_id = epr.base_entity_id
+ WHERE ((date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2)) >
+ date(substr(epr.pmtct_register_date, 7, 4) || '-' || substr(epr.pmtct_register_date, 4, 2) || '-' ||
+ substr(epr.pmtct_register_date, 1, 2))) OR (epo.hiv_status_question = 'positive'))
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10a-25-29"
+ grouping: "PNC"
+ description: "Waliokuja postnatal wakiwa positive"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pmtct_registration epr on epo.base_entity_id = epr.base_entity_id
+ WHERE ((date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2)) >
+ date(substr(epr.pmtct_register_date, 7, 4) || '-' || substr(epr.pmtct_register_date, 4, 2) || '-' ||
+ substr(epr.pmtct_register_date, 1, 2))) OR (epo.hiv_status_question = 'positive'))
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10a-30-34"
+ grouping: "PNC"
+ description: "Waliokuja postnatal wakiwa positive"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pmtct_registration epr on epo.base_entity_id = epr.base_entity_id
+ WHERE ((date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2)) >
+ date(substr(epr.pmtct_register_date, 7, 4) || '-' || substr(epr.pmtct_register_date, 4, 2) || '-' ||
+ substr(epr.pmtct_register_date, 1, 2))) OR (epo.hiv_status_question = 'positive'))
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10a-35+"
+ grouping: "PNC"
+ description: "Waliokuja postnatal wakiwa positive"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pmtct_registration epr on epo.base_entity_id = epr.base_entity_id
+ WHERE ((date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2)) >
+ date(substr(epr.pmtct_register_date, 7, 4) || '-' || substr(epr.pmtct_register_date, 4, 2) || '-' ||
+ substr(epr.pmtct_register_date, 1, 2))) OR (epo.hiv_status_question = 'positive'))
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10b-10-14"
+ grouping: "PNC"
+ description: "Waliopima VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv IS NOT NULL
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10b-15-19"
+ grouping: "PNC"
+ description: "Waliopima VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv IS NOT NULL
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10b-20-24"
+ grouping: "PNC"
+ description: "Waliopima VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv IS NOT NULL
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10b-25-29"
+ grouping: "PNC"
+ description: "Waliopima VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv IS NOT NULL
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10b-30-34"
+ grouping: "PNC"
+ description: "Waliopima VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv IS NOT NULL
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10b-35+"
+ grouping: "PNC"
+ description: "Waliopima VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv IS NOT NULL
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10c-10-14"
+ grouping: "PNC"
+ description: "Waliogundulika wana VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv = 'positive'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10c-15-19"
+ grouping: "PNC"
+ description: "Waliogundulika wana VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv = 'positive'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10c-20-24"
+ grouping: "PNC"
+ description: "Waliogundulika wana VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv = 'positive'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10c-25-29"
+ grouping: "PNC"
+ description: "Waliogundulika wana VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv = 'positive'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10c-30-34"
+ grouping: "PNC"
+ description: "Waliogundulika wana VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv = 'positive'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10c-35+"
+ grouping: "PNC"
+ description: "Waliogundulika wana VVU wakati wa postnatal (ndani ya siku 42 tangu ya kujifungua)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ WHERE epf.hiv = 'positive'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10d-10-14"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'ebf'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10d-15-19"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'ebf'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10d-20-24"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'ebf'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10d-25-29"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'ebf'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10d-30-34"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'ebf'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10d-35+"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunyonyesha maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'ebf'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10e-10-14"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunywesha maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'rf'
+ AND (date(fm.dob, '+10 years') <= date('now'))
+ AND (date(fm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10e-15-19"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunywesha maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'rf'
+ AND (date(fm.dob, '+15 years') <= date('now'))
+ AND (date(fm.dob, '20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10e-20-24"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunywesha maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'rf'
+ AND (date(fm.dob, '+20 years') <= date('now'))
+ AND (date(fm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10e-25-29"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunywesha maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'rf'
+ AND (date(fm.dob, '+25 years') <= date('now'))
+ AND (date(fm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10e-30-34"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunywesha maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'rf'
+ AND (date(fm.dob, '+30 years') <= date('now'))
+ AND (date(fm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-10e-35+"
+ grouping: "PNC"
+ description: "Wenye VVU waliochagua kunywesha maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT epo.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_family_member fm on fm.base_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ WHERE epo.hiv = 'positive'
+ AND epcf.feeding_options = 'rf'
+ AND (date(fm.dob, '+35 years') <= date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-11a-ME"
+ grouping: "PNC"
+ description: "Waliohudhuria Ndani ya saa 48"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-11a-KE"
+ grouping: "PNC"
+ description: "Waliohudhuria Ndani ya saa 48"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-11b-ME"
+ grouping: "PNC"
+ description: "Waliohudhuria kati ya siku ya 3-7"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+7 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-11b-KE"
+ grouping: "PNC"
+ description: "Waliohudhuria kati ya siku ya 3-7"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+7 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-11c-ME"
+ grouping: "PNC"
+ description: "Waliomaliza mahudhurio yote ( saa 48, siku 3- 7, siku 8-28, siku 29-42)"
+ indicatorQuery: " SELECT count(DISTINCT base_entity_id) as count
+ FROM (
+ (SELECT DISTINCT ec.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'),
+ '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T1
+ INNER JOIN (SELECT DISTINCT ec.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'),
+ '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T2 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT ec.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'),
+ '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T3 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT ec.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '42 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'),
+ '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T4 using (base_entity_id)
+ )"
+
+ - key: "pnc-11c-KE"
+ grouping: "PNC"
+ description: "Waliomaliza mahudhurio yote ( saa 48, siku 3- 7, siku 8-28, siku 29-42)"
+ indicatorQuery: " SELECT count(DISTINCT base_entity_id) as count
+ FROM (
+ (SELECT DISTINCT ec.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE epf.visit_number = 0
+ AND date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+48 hours') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'),
+ '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T1
+ INNER JOIN (SELECT DISTINCT ec.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+3 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'),
+ '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T2 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT ec.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+8 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') >
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'),
+ '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T3 using (base_entity_id)
+ INNER JOIN (SELECT DISTINCT ec.base_entity_id
+ FROM ec_pregnancy_outcome epo
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = epo.base_entity_id
+ INNER JOIN ec_child ec on ec.mother_entity_id = epo.base_entity_id
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '+29 days') <=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND date(substr(epo.delivery_date, 7, 4) || '-' ||
+ substr(epo.delivery_date, 4, 2) || '-' ||
+ substr(epo.delivery_date, 1, 2), '42 days') >=
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' ||
+ substr(epf.followup_visit_date, 1, 2))
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'),
+ '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' ||
+ substr(epf.followup_visit_date, 4, 2) || '-' || '01')) T4 using (base_entity_id)
+ )"
+
+
+ - key: "pnc-12a-ME"
+ grouping: "PNC"
+ description: "Idadi ya watoto waliopewa BCG"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ WHERE (epcf.child_bcg_vaccination = 'yes')
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+
+ - key: "pnc-12a-KE"
+ grouping: "PNC"
+ description: "Idadi ya watoto waliopewa BCG"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ WHERE (epcf.child_bcg_vaccination = 'yes')
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-12b-ME"
+ grouping: "PNC"
+ description: "Idadi ya watoto waliopewa OPV 0"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ WHERE epcf.child_opv0_vaccination = 'yes'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+
+ - key: "pnc-12b-KE"
+ grouping: "PNC"
+ description: "Idadi ya watoto waliopewa OPV 0"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ WHERE epcf.child_opv0_vaccination = 'yes'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-12c-ME"
+ grouping: "PNC"
+ description: "Idadi ya watoto waliozaliwa na uzito wa < 2.5kg wakapatiwa KMC"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ WHERE CAST(epcf.weight AS FLOAT) < 2.5
+ AND epcf.kangaroo_enrollment = 'yes'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-12c-KE"
+ grouping: "PNC"
+ description: "Idadi ya watoto waliozaliwa na uzito wa < 2.5kg wakapatiwa KMC"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ WHERE CAST(epcf.weight AS FLOAT) < 2.5
+ AND epcf.kangaroo_enrollment = 'yes'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-12d-ME"
+ grouping: "PNC"
+ description: "Idadi ya watoto waliozaliwa nyumbani chini ya 2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE CAST(epcf.weight AS FLOAT) < 2.5
+ AND epo.delivery_place = 'At home'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-12d-KE"
+ grouping: "PNC"
+ description: "Idadi ya watoto waliozaliwa nyumbani chini ya 2.5kg"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE CAST(epcf.weight AS FLOAT) < 2.5
+ AND epo.delivery_place = 'At home'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+ - key: "pnc-12e-ME"
+ grouping: "PNC"
+ description: "Idadi ya watoto waliozaliwa nyumbani walioanzishiwa huduma ya kangaroo (KMC)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE CAST(epcf.weight AS FLOAT) < 2.5
+ AND epo.delivery_place = 'At home'
+ AND epcf.kangaroo_enrollment = 'yes'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+ - key: "pnc-12e-KE"
+ grouping: "PNC"
+ description: "Idadi ya watoto waliozaliwa nyumbani walioanzishiwa huduma ya kangaroo (KMC)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE CAST(epcf.weight AS FLOAT) < 2.5
+ AND epo.delivery_place = 'At home'
+ AND epcf.kangaroo_enrollment = 'yes'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-12f-ME"
+ grouping: "PNC"
+ description: "Wenye upungufu mkubwa wa damu (Hb < 10 g/dl au viganja vyeupe sana)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE CAST(epcf.hb_level AS FLOAT) < 10
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-12f-KE"
+ grouping: "PNC"
+ description: "Wenye upungufu mkubwa wa damu (Hb < 10 g/dl au viganja vyeupe sana)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE CAST(epcf.hb_level AS FLOAT) < 10
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-13a-ME"
+ grouping: "PNC"
+ description: "Watoto wenye uambukizo mkali (septicaemia)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE epcf.septicaemia = 'yes'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-13a-KE"
+ grouping: "PNC"
+ description: "Watoto wenye uambukizo mkali (septicaemia)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE epcf.septicaemia = 'yes'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-13b-ME"
+ grouping: "PNC"
+ description: "Watoto wenye uambukizo kwenye kitovu"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE epcf.umbilical_cord LIKE '%chk_infection%'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-13b-KE"
+ grouping: "PNC"
+ description: "Watoto wenye uambukizo kwenye kitovu"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE epcf.umbilical_cord LIKE '%chk_infection%'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-13c-ME"
+ grouping: "PNC"
+ description: "Watoto wenye uambukizo kwenye ngozi"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE epcf.skin_infection = 'yes'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-13c-KE"
+ grouping: "PNC"
+ description: "Watoto wenye uambukizo kwenye ngozi"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE epcf.skin_infection = 'yes'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-13d-ME"
+ grouping: "PNC"
+ description: "Idadi ya watoto wenye jaundice"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE epcf.jaundice = 'yes'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-13d-KE"
+ grouping: "PNC"
+ description: "Idadi ya watoto wenye jaundice"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pnc_followup epf on epf.entity_id = ec.mother_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = epf.entity_id
+ WHERE epcf.jaundice = 'yes'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epf.followup_visit_date, 7, 4) || '-' || substr(epf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-14-ME"
+ grouping: "PNC"
+ description: "Vifo vya watoto wachanga waliozaliwa nyumbani (perinatal); neonatal"
+ indicatorQuery: " SELECT SUM(T1.count) as count
+ FROM (
+
+ SELECT 'from_ld' as source, count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = ec.mother_entity_id
+ WHERE epo.delivery_place = 'At home'
+ AND (preg_outcome = 'born_alive_died')
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')
+
+ UNION
+
+ SELECT 'from_pregnancy_outcome' as source, count(DISTINCT epo.base_entity_id) as count
+ FROm ec_pregnancy_outcome epo
+ WHERE epo.delivery_place = 'At home'
+ AND preg_outcome = 'born_alive_died'
+ AND sex_of_the_deceased_child = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')
+
+ ) as T1"
+
+ - key: "pnc-14-KE"
+ grouping: "PNC"
+ description: "Vifo vya watoto wachanga waliozaliwa nyumbani (perinatal); neonatal"
+ indicatorQuery: " SELECT SUM(T1.count) as count
+ FROM (
+
+ SELECT 'from_ld' as source, count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_pregnancy_outcome epo on epo.base_entity_id = ec.mother_entity_id
+ WHERE epo.delivery_place = 'At home'
+ AND (preg_outcome = 'born_alive_died')
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')
+
+ UNION
+
+ SELECT 'from_pregnancy_outcome' as source, count(DISTINCT epo.base_entity_id) as count
+ FROm ec_pregnancy_outcome epo
+ WHERE epo.delivery_place = 'At home'
+ AND preg_outcome = 'born_alive_died'
+ AND sex_of_the_deceased_child = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(epo.delivery_date, 7, 4) || '-' || substr(epo.delivery_date, 4, 2) || '-' || '01')
+
+ ) as T1"
+
+ - key: "pnc-15-ME"
+ grouping: "PNC"
+ description: "Waliopewa dawa ya ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_hei_followup ehf on ehf.entity_id = ec.base_entity_id
+ WHERE (ehf.prophylaxis_arv_for_high_and_low_risk_given = 'true' OR ehf.prophylaxis_arv_for_high_risk_given = 'true')
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-15-KE"
+ grouping: "PNC"
+ description: "Waliopewa dawa ya ARV"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ INNER JOIN ec_hei_followup ehf on ehf.entity_id = ec.base_entity_id
+ WHERE (ehf.prophylaxis_arv_for_high_and_low_risk_given = 'true' OR ehf.prophylaxis_arv_for_high_risk_given = 'true')
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(ehf.followup_visit_date, 7, 4) || '-' || substr(ehf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-16a-ME"
+ grouping: "PNC"
+ description: "Watoto wachanga wanaonyonya maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE epcf.feeding_options = 'ebf'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epcf.followup_visit_date, 7, 4) || '-' || substr(epcf.followup_visit_date, 4, 2) || '-' || '01')"
+ - key: "pnc-16a-KE"
+ grouping: "PNC"
+ description: "Watoto wachanga wanaonyonya maziwa ya mama pekee (EBF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE epcf.feeding_options = 'ebf'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epcf.followup_visit_date, 7, 4) || '-' || substr(epcf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-16b-ME"
+ grouping: "PNC"
+ description: "Watoto wachanga wanaonyweshwa maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE epcf.feeding_options = 'rf'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epcf.followup_visit_date, 7, 4) || '-' || substr(epcf.followup_visit_date, 4, 2) || '-' || '01')"
+ - key: "pnc-16b-KE"
+ grouping: "PNC"
+ description: "Watoto wachanga wanaonyweshwa maziwa mbadala (RF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE epcf.feeding_options = 'rf'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epcf.followup_visit_date, 7, 4) || '-' || substr(epcf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-16c-ME"
+ grouping: "PNC"
+ description: "Watoto wachanga wanaonyweshwa maziwa ya mama na kupatiwa chakula kingine (MF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE epcf.feeding_options = 'mf'
+ AND efm.gender = 'Male'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epcf.followup_visit_date, 7, 4) || '-' || substr(epcf.followup_visit_date, 4, 2) || '-' || '01')"
+
+ - key: "pnc-16c-KE"
+ grouping: "PNC"
+ description: "Watoto wachanga wanaonyweshwa maziwa ya mama na kupatiwa chakula kingine (MF)"
+ indicatorQuery: " SELECT count(DISTINCT ec.base_entity_id) as count
+ FROM ec_child ec
+ INNER JOIN ec_pnc_child_followup epcf on epcf.entity_id = ec.base_entity_id
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ec.base_entity_id
+ WHERE epcf.feeding_options = 'mf'
+ AND efm.gender = 'Female'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01'), '-0 months') =
+ date(substr(epcf.followup_visit_date, 7, 4) || '-' || substr(epcf.followup_visit_date, 4, 2) || '-' || '01')"
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/self-testing-monthly-report.yml b/opensrp-chw-hf/src/main/assets/config/self-testing-monthly-report.yml
new file mode 100644
index 0000000000..21cd535a86
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/self-testing-monthly-report.yml
@@ -0,0 +1,7053 @@
+indicators:
+ - key: "hivst-8-18-19-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-20-24-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-25-29-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-30-34-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-35-39-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-40-44-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-45-49-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8->50-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri >=50"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date('now')-date(efm.dob))>=50
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-18-19-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-20-24-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-25-29-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-30-34-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-35-39-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-40-44-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-45-49-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i->50-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri >=50"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-18-19-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-20-24-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-25-29-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-30-34-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-35-39-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-40-44-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-45-49-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii->50-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri >=50"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iv-18-19-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 15-19"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iv-20-24-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 20-24"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iv-25-29-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 25-29"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iv-30-34-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 30-34"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iv-35-39-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 35-39"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iv-40-44-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 40-44"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iv-45-49-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 45-49"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iv->50-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri >=50"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-18-19-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-20-24-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 20-24"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-25-29-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 25-29"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-30-34-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 30-34"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-35-39-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 35-39"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-40-44-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-45-49-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi->50-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri >=50"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-9-18-19-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-20-24-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-25-29-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-30-34-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-35-39-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-40-44-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-45-49-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9->50-ME"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU zaidi ya 50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-18-19-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-20-24-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-25-29-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-30-34-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-35-39-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-40-44-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-45-49-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i->50-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='pwid')
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-18-19-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-20-24-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-25-29-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-30-34-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-35-39-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-40-44-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-45-49-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii->50-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='prisoners')
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iv-18-19-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='msm')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iv-20-24-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='msm')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iv-25-29-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='msm')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iv-30-34-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='msm')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iv-35-39-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='msm')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iv-40-44-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='msm')
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iv-45-49-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='msm')
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iv->50-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='msm')
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-18-19-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='others')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-20-24-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='others')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-25-29-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='others')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-30-34-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='others')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-35-39-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='others')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-40-44-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='others')
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-45-49-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='others')
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi->50-ME"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Male')
+ AND (client_group='others')
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-8-18-19-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-20-24-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-25-29-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-30-34-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-35-39-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-40-44-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-45-49-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8->50-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri >=50"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date('now')-date(efm.dob))>=50
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-18-19-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-20-24-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-25-29-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-30-34-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-35-39-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-40-44-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i-45-49-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-i->50-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri >=50"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-18-19-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-20-24-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-25-29-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 25-29"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-30-34-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 30-34"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-35-39-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 35-39"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-40-44-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii-45-49-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-ii->50-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri >=50"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iii-18-19-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 15-19"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iii-20-24-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 20-24"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iii-25-29-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 25-29"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iii-30-34-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 30-34"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iii-35-39-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 35-39"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iii-40-44-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 40-44"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iii-45-49-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 45-49"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-iii->50-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri >=50"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-v-18-19-KE"
+ grouping: "HIVST"
+ description: "Vijana rika la balehe 15-19"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='agyw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-v-20-24-KE"
+ grouping: "HIVST"
+ description: "Vijana Rika La Balehe Umri 20-24"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='agyw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-18-19-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-20-24-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 20-24"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-25-29-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 25-29"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-30-34-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 30-34"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-35-39-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 35-39"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-40-44-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 40-44"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi-45-49-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 45-49"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-8-vi->50-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri >=50"
+ indicatorQuery: " SELECT count(DISTINCT efm.base_entity_id) as count FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE hivst_result='reactive'
+ AND kit_for='client'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehr.result_date, 7, 4) || '-' || substr(ehr.result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-9-18-19-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-20-24-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-25-29-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-30-34-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-35-39-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-40-44-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-45-49-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9->50-KE"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Binafsi) waliopewa rufaa kwenda kituo/Eneo la upimaji wa maambukizi ya VVU zaidi ya 50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-18-19-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-20-24-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-25-29-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-30-34-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-35-39-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-40-44-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i-45-49-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='pwid')
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-i->50-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wajidunga dawa za kulevya Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='pwid')
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-18-19-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-20-24-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-25-29-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-30-34-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-35-39-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-40-44-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii-45-49-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='prisoners')
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-ii->50-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wafungwa Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='prisoners')
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iii-18-19-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='fsw')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iii-20-24-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='fsw')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iii-25-29-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='fsw')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iii-30-34-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='fsw')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iii-35-39-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='fsw')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iii-40-44-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='fsw')
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iii-45-49-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='fsw')
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-iii->50-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Wanaume wanaofanya ngono na wanaume wenzao Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='fsw')
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-v-18-19-KE"
+ grouping: "HIVST"
+ description: "Vijana Rika La Balehe Umri(KE) 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='agyw')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-v-20-24-KE"
+ grouping: "HIVST"
+ description: "Vijana Rika La Balehe Umri(KE) 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='agyw')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-18-19-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='others')
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-20-24-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='others')
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-25-29-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='others')
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-30-34-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='others')
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-35-39-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='others')
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-40-44-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='others')
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi-45-49-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='others')
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "hivst-9-vi->50-KE"
+ grouping: "HIVST"
+ description: "Rufaa kwa Makundi Mengine Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM task
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = task.for
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE focus='Conventional HIV Test'
+ AND (efm.gender='Female')
+ AND (client_group='others')
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(authored_on / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "hivst-3-18-19-ME"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-20-24-ME"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-25-29-ME"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-30-34-ME"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-35-39-ME"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-40-44-ME"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-45-49-ME"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3->50-ME"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date('now')-date(efm.dob))>=50
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-18-19-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-20-24-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-25-29-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-30-34-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-35-39-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-40-44-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-45-49-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i->50-ME"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='pwid')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-18-19-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-20-24-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-25-29-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-30-34-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-35-39-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-40-44-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-45-49-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii->50-ME"
+ grouping: "HIVST"
+ description: "Wafungwa Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='prisoners')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iv-18-19-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iv-20-24-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iv-25-29-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iv-30-34-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iv-35-39-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iv-40-44-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iv-45-49-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iv->50-ME"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='msm')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-18-19-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-20-24-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-25-29-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-30-34-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-35-39-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-40-44-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-45-49-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi->50-ME"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='others')
+ AND (efm.gender='Male')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+
+
+ - key: "hivst-3-18-19-KE"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-20-24-KE"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-25-29-KE"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-30-34-KE"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-35-39-KE"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-40-44-KE"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-45-49-KE"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3->50-KE"
+ grouping: "HIVST"
+ description: "JUMLA YA KUTENDANISHI VYA JIPIME VVU VILIVYOSAMBAZWA(BiNAFSI) Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date('now')-date(efm.dob))>=50
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-18-19-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-20-24-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-25-29-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-30-34-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-35-39-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-40-44-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i-45-49-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-i->50-KE"
+ grouping: "HIVST"
+ description: "Wajidunga dawa za kulevya Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='pwid')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-18-19-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-20-24-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-25-29-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-30-34-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-35-39-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-40-44-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii-45-49-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-ii->50-KE"
+ grouping: "HIVST"
+ description: "Wafungwa Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='prisoners')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iii-18-19-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iii-20-24-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iii-25-29-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iii-30-34-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iii-35-39-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iii-40-44-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iii-45-49-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-iii->50-KE"
+ grouping: "HIVST"
+ description: "Wanaume wanaofanya ngono na wanaume wenzao Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='fsw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-v-18-19-KE"
+ grouping: "HIVST"
+ description: "Vijana Rika La Balehe Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='agyw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-v-20-24-KE"
+ grouping: "HIVST"
+ description: "Vijana Rika La Balehe Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='agyw')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-18-19-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 15-19"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+18 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-20-24-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 20-24"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-25-29-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 25-29"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-30-34-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 30-34"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-35-39-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 35-39"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-40-44-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 40-44"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi-45-49-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri 45-49"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+ - key: "hivst-3-vi->50-KE"
+ grouping: "HIVST"
+ description: "Makundi Mengine Umri >=50"
+ indicatorQuery: " SELECT count(efm.base_entity_id) as count FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ INNER JOIN ec_hivst_register ON efm.base_entity_id = ec_hivst_register.base_entity_id
+ WHERE self_test_kit_given='yes'
+ AND (date('now')-date(efm.dob))>=50
+ AND (client_group='others')
+ AND (efm.gender='Female')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(collection_date, 7, 4) || '-' || substr(collection_date, 4, 2) || '-' || '01')"
+
+
+ # // 2 and age 15-19
+ - key: "hivst-2-18-19-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 15 - 19"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 20-24
+ - key: "hivst-2-20-24-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 20 - 24"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 25-29
+ - key: "hivst-2-25-29-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 25 - 29"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 30-34
+ - key: "hivst-2-30-34-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 30 - 34"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 35-39
+ - key: "hivst-2-35-39-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 35 - 39"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 40-44
+ - key: "hivst-2-40-44-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 40 - 44"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 45-49
+ - key: "hivst-2-45-49-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 45 - 49"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age ->50
+ - key: "hivst-2->50-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 50 kuendelea"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+ # // 2-i and age 15-19
+ - key: "hivst-2-i-18-19-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 15 - 19 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 20-24
+ - key: "hivst-2-i-20-24-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 20 - 24 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 25-29
+ - key: "hivst-2-i-25-29-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 25 - 29 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 30-34
+ - key: "hivst-2-i-30-34-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 30 - 34 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 35-39
+ - key: "hivst-2-i-35-39-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 35 - 39 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 40-44
+ - key: "hivst-2-i-40-44-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 40 - 44 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 45-49
+ - key: "hivst-2-i-45-49-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 45 - 49 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age ->50
+ - key: "hivst-2-i->50-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka ->50 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+ # // 2-ii and age 15-19
+ - key: "hivst-2-ii-18-19-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 15 - 19 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 20-24
+ - key: "hivst-2-ii-20-24-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 20 - 24 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 25-29
+ - key: "hivst-2-ii-25-29-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 25 - 29 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 30-34
+ - key: "hivst-2-ii-30-34-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 30 - 34 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 35-39
+ - key: "hivst-2-ii-35-39-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 35 - 39 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 40-44
+ - key: "hivst-2-ii-40-44-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 40 - 44 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 45-49
+ - key: "hivst-2-ii-45-49-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 45 - 49 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age ->50
+ - key: "hivst-2-ii->50-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka ->50 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+ # // 2-iii and age 15-19
+ - key: "hivst-2-iii-18-19-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age 20-24
+ - key: "hivst-2-iii-20-24-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age 25-29
+ - key: "hivst-2-iii-25-29-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age 30-34
+ - key: "hivst-2-iii-30-34-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age 35-39
+ - key: "hivst-2-iii-35-39-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 40-44
+ - key: "hivst-2-iii-40-44-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 40 - 44 na ni fsw"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+
+ # // 2-iv and age 15-19
+ - key: "hivst-2-iv-18-19-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 15 - 19 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 20-24
+ - key: "hivst-2-iv-20-24-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 20 - 24 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 25-29
+ - key: "hivst-2-iv-25-29-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 25 - 29 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 30-34
+ - key: "hivst-2-iv-30-34-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 30 - 34 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 35-39
+ - key: "hivst-2-iv-35-39-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 35 - 39 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 40-44
+ - key: "hivst-2-iv-40-44-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 40 - 44 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 45-49
+ - key: "hivst-2-iv-45-49-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 45 - 49 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 20-24
+ - key: "hivst-2-iv->50-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka ->50 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+ # // 2-v and age 15-19
+ - key: "hivst-2-v-18-19-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 20-24
+ - key: "hivst-2-v-20-24-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 25-29
+ - key: "hivst-2-v-25-29-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 30-34
+ - key: "hivst-2-v-30-34-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 35-39
+ - key: "hivst-2-v-35-39-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 40-44
+ - key: "hivst-2-v-40-44-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 45-49
+ - key: "hivst-2-v-45-49-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age ->50
+ - key: "hivst-2-v->50-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka ->50 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+ # // 2-vi and age 15-19
+ - key: "hivst-2-vi-18-19-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 15 - 19 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 20-24
+ - key: "hivst-2-vi-20-24-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 20 - 24 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 25-29
+ - key: "hivst-2-vi-25-29-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 25 - 29 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 30-34
+ - key: "hivst-2-vi-30-34-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 30 - 34 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 35-39
+ - key: "hivst-2-vi-35-39-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 35 - 39 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 40-44
+ - key: "hivst-2-vi-40-44-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 40 - 44 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 45-49
+ - key: "hivst-2-vi-45-49-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka 45 - 49 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age ->50
+ - key: "hivst-2-vi->50-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kiume waliopewa condom kwa umri wa miaka ->50 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+
+ #Question 7
+
+ # // 7 and age 15-19
+ - key: "hivst-7-18-19-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 15 - 19"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 20-24
+ - key: "hivst-7-20-24-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 20 - 24"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 25-29
+ - key: "hivst-7-25-29-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 25 - 29"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 30-34
+ - key: "hivst-7-30-34-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 30 - 34"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 35-39
+ - key: "hivst-7-35-39-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 35 - 39"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 40-44
+ - key: "hivst-7-40-44-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 45-49
+ - key: "hivst-7-45-49-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 45 - 49"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age ->50
+ - key: "hivst-7->50-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 50 kuendelea"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+ # // 7-i and age 15-19
+ - key: "hivst-7-i-18-19-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 15 - 19 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age 20-24
+ - key: "hivst-7-i-20-24-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 20 - 24 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age 25-29
+ - key: "hivst-7-i-25-29-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 25 - 29 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age 30-34
+ - key: "hivst-7-i-30-34-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 30 - 34 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age 35-39
+ - key: "hivst-7-i-35-39-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 35 - 39 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age 40-44
+ - key: "hivst-7-i-40-44-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "hivst-7-i-45-49-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age ->50
+ - key: "hivst-7-i->50-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka ->50 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # // 7-ii and age 15-19
+ - key: "hivst-7-ii-18-19-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 15 - 19 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 20-24
+ - key: "hivst-7-ii-20-24-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 20 - 24 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 25-29
+ - key: "hivst-7-ii-25-29-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 25 - 29 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 30-34
+ - key: "hivst-7-ii-30-34-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 30 - 34 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 35-39
+ - key: "hivst-7-ii-35-39-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 35 - 39 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 40-44
+ - key: "hivst-7-ii-40-44-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 45-49
+ - key: "hivst-7-ii-45-49-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 45 - 49 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age ->50
+ - key: "hivst-7-ii->50-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka ->50 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # // 7-iii and age 15-19
+ - key: "hivst-7-iii-18-19-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iii and age 20-24
+ - key: "hivst-7-iii-20-24-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iii and age 25-29
+ - key: "hivst-7-iii-25-29-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iii and age 30-34
+ - key: "hivst-7-iii-30-34-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iii and age 35-39
+ - key: "hivst-7-iii-35-39-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # // 7-iv and age 15-19
+ - key: "hivst-7-iv-18-19-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 15 - 19 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 20-24
+ - key: "hivst-7-iv-20-24-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 20 - 24 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 25-29
+ - key: "hivst-7-iv-25-29-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 25 - 29 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 30-34
+ - key: "hivst-7-iv-30-34-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 30 - 34 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 35-39
+ - key: "hivst-7-iv-35-39-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 35 - 39 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 40-44
+ - key: "hivst-7-iv-40-44-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 45-49
+ - key: "hivst-7-iv-45-49-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 45 - 49 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 20-24
+ - key: "hivst-7-iv->50-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka ->50 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # // 7-v and age 15-19
+ - key: "hivst-7-v-18-19-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 20-24
+ - key: "hivst-7-v-20-24-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 25-29
+ - key: "hivst-7-v-25-29-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 30-34
+ - key: "hivst-7-v-30-34-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 35-39
+ - key: "hivst-7-v-35-39-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 40-44
+ - key: "hivst-7-v-40-44-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 45-49
+ - key: "hivst-7-v-45-49-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age ->50
+ - key: "hivst-7-v->50-ME"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka ->50 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # // 7-vi and age 15-19
+ - key: "hivst-7-vi-18-19-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 15 - 19 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Male'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 20-24
+ - key: "hivst-7-vi-20-24-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 20 - 24 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Male'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 25-29
+ - key: "hivst-7-vi-25-29-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 25 - 29 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Male'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 30-34
+ - key: "hivst-7-vi-30-34-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 30 - 34 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Male'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 35-39
+ - key: "hivst-7-vi-35-39-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 35 - 39 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Male'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 40-44
+ - key: "hivst-7-vi-40-44-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Male'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 45-49
+ - key: "hivst-7-vi-45-49-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 45 - 49 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Male'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age ->50
+ - key: "hivst-7-vi->50-ME"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka ->50 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Male'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # wanawake Qns 2 and 7
+ #start with question 2
+ # // 2 and age 15-19
+ - key: "hivst-2-18-19-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 20-24
+ - key: "hivst-2-20-24-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 25-29
+ - key: "hivst-2-25-29-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 30-34
+ - key: "hivst-2-30-34-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 35-39
+ - key: "hivst-2-35-39-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 40-44
+ - key: "hivst-2-40-44-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age 45-49
+ - key: "hivst-2-45-49-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2 and age ->50
+ - key: "hivst-2->50-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 50 kuendelea"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_followup ehf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehf.entity_id
+ WHERE condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+
+ # // 2-i and age 15-19
+ - key: "hivst-2-i-18-19-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 20-24
+ - key: "hivst-2-i-20-24-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 25-29
+ - key: "hivst-2-i-25-29-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 30-34
+ - key: "hivst-2-i-30-34-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 35-39
+ - key: "hivst-2-i-35-39-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 40-44
+ - key: "hivst-2-i-40-44-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age 45-49
+ - key: "hivst-2-i-45-49-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-i and age ->50
+ - key: "hivst-2-i->50-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka ->50 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='pwid'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+ # // 2-ii and age 15-19
+ - key: "hivst-2-ii-18-19-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 20-24
+ - key: "hivst-2-ii-20-24-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 25-29
+ - key: "hivst-2-ii-25-29-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 30-34
+ - key: "hivst-2-ii-30-34-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 35-39
+ - key: "hivst-2-ii-35-39-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 40-44
+ - key: "hivst-2-ii-40-44-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age 45-49
+ - key: "hivst-2-ii-45-49-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-ii and age ->50
+ - key: "hivst-2-ii->50-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka ->50 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='prisoners'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+ # // 2-iii and age 15-19
+ - key: "hivst-2-iii-18-19-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age 20-24
+ - key: "hivst-2-iii-20-24-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age 25-29
+ - key: "hivst-2-iii-25-29-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age 30-34
+ - key: "hivst-2-iii-30-34-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age 35-39
+ - key: "hivst-2-iii-35-39-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age 40-44
+ - key: "hivst-2-iii-40-44-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age 45-49
+ - key: "hivst-2-iii-45-49-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iii and age ->50
+ - key: "hivst-2-iii->50-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka ->50 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='fsw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 15-19
+ - key: "hivst-2-iv-18-19-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 20-24
+ - key: "hivst-2-iv-20-24-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 25-29
+ - key: "hivst-2-iv-25-29-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 30-34
+ - key: "hivst-2-iv-30-34-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 35-39
+ - key: "hivst-2-iv-35-39-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 40-44
+ - key: "hivst-2-iv-40-44-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 45-49
+ - key: "hivst-2-iv-45-49-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-iv and age 20-24
+ - key: "hivst-2-iv->50-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka ->50 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='msm'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+ # // 2-v and age 15-19
+ - key: "hivst-2-v-18-19-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 20-24
+ - key: "hivst-2-v-20-24-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 25-29
+ - key: "hivst-2-v-25-29-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 30-34
+ - key: "hivst-2-v-30-34-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 35-39
+ - key: "hivst-2-v-35-39-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 40-44
+ - key: "hivst-2-v-40-44-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age 45-49
+ - key: "hivst-2-v-45-49-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-v and age ->50
+ - key: "hivst-2-v->50-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka ->50 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='agyw'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+
+ # // 2-vi and age 15-19
+ - key: "hivst-2-vi-18-19-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 20-24
+ - key: "hivst-2-vi-20-24-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 25-29
+ - key: "hivst-2-vi-25-29-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 30-34
+ - key: "hivst-2-vi-30-34-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 35-39
+ - key: "hivst-2-vi-35-39-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 40-44
+ - key: "hivst-2-vi-40-44-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age 45-49
+ - key: "hivst-2-vi-45-49-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+ # // 2-vi and age ->50
+ - key: "hivst-2-vi->50-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka ->50 na ni makundi ya others"
+ indicatorQuery: "SELECT count(efm.base_entity_id) as count
+ FROM ec_hivst_register ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.base_entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id = ehr.base_entity_id
+ WHERE client_group='others'
+ AND condoms_given='yes'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(ehf.collection_date, 7, 4) || '-' || substr(ehf.collection_date, 4, 2) || '-' || '01')"
+
+ #Question 7
+ # // 7 and age 15-19
+ - key: "hivst-7-18-19-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 15 - 19"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 20-24
+ - key: "hivst-7-20-24-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 20 - 24"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 25-29
+ - key: "hivst-7-25-29-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 25 - 29"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 30-34
+ - key: "hivst-7-30-34-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 30 - 34"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 35-39
+ - key: "hivst-7-35-39-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 35 - 39"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 40-44
+ - key: "hivst-7-40-44-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age 45-49
+ - key: "hivst-7-45-49-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 45 - 49"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7 and age ->50
+ - key: "hivst-7->50-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 50 kuendelea"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # // 7-i and age 15-19
+ - key: "hivst-7-i-18-19-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 15 - 19 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age 20-24
+ - key: "hivst-7-i-20-24-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 20 - 24 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age 25-29
+ - key: "hivst-7-i-25-29-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 25 - 29 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age 30-34
+ - key: "hivst-7-i-30-34-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 30 - 34 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age 35-39
+ - key: "hivst-7-i-35-39-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 35 - 39 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age 40-44
+ - key: "hivst-7-i-40-44-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "hivst-7-i-45-49-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-i and age ->50
+ - key: "hivst-7-i->50-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka ->50 na ni wajidunga madawa ya kulevya"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='pwid'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # // 7-ii and age 15-19
+ - key: "hivst-7-ii-18-19-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 15 - 19 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 20-24
+ - key: "hivst-7-ii-20-24-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 20 - 24 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 25-29
+ - key: "hivst-7-ii-25-29-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 25 - 29 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 30-34
+ - key: "hivst-7-ii-30-34-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 30 - 34 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 35-39
+ - key: "hivst-7-ii-35-39-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 35 - 39 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 40-44
+ - key: "hivst-7-ii-40-44-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age 45-49
+ - key: "hivst-7-ii-45-49-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 45 - 49 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-ii and age ->50
+ - key: "hivst-7-ii->50-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka ->50 na ni wafungwa wa mahabusu"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='prisoners'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # // 7-iii and age 15-19
+ - key: "hivst-7-iii-18-19-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iii and age 20-24
+ - key: "hivst-7-iii-20-24-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iii and age 25-29
+ - key: "hivst-7-iii-25-29-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iii and age 30-34
+ - key: "hivst-7-iii-30-34-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # // 7-iii and age 35-39
+ - key: "hivst-7-iii-35-39-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iii and age 40-44
+ - key: "hivst-7-iii-40-44-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iii and age 45-49
+ - key: "hivst-7-iii-45-49-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iii and age ->50
+ - key: "hivst-7-iii->50-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka ->50 na ni fsw (wanawake wanaojiuza)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='fsw'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+ # // 7-iv and age 15-19
+ - key: "hivst-7-iv-18-19-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 15 - 19 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 20-24
+ - key: "hivst-7-iv-20-24-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 20 - 24 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 25-29
+ - key: "hivst-7-iv-25-29-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 25 - 29 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 30-34
+ - key: "hivst-7-iv-30-34-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 30 - 34 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 35-39
+ - key: "hivst-7-iv-35-39-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 35 - 39 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 40-44
+ - key: "hivst-7-iv-40-44-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 45-49
+ - key: "hivst-7-iv-45-49-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 45 - 49 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-iv and age 20-24
+ - key: "hivst-7-iv->50-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka ->50 na ni msm (male sex with male)"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='msm'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 15-19
+ - key: "hivst-7-v-18-19-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 15 - 19 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 20-24
+ - key: "hivst-7-v-20-24-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 20 - 24 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 25-29
+ - key: "hivst-7-v-25-29-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 25 - 29 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 30-34
+ - key: "hivst-7-v-30-34-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 30 - 34 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 35-39
+ - key: "hivst-7-v-35-39-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 35 - 39 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 40-44
+ - key: "hivst-7-v-40-44-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 40 - 44 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age 45-49
+ - key: "hivst-7-v-45-49-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka 45 - 49 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-v and age ->50
+ - key: "hivst-7-v->50-KE"
+ grouping: "HIVST"
+ description: "Idadi ya wateja wa kike waliopewa condom kwa umri wa miaka ->50 na ni vijana rila la balehe"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='agyw'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+
+
+
+
+ # // 7-vi and age 15-19
+ - key: "hivst-7-vi-18-19-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 15 - 19 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Female'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 20-24
+ - key: "hivst-7-vi-20-24-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 20 - 24 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Female'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 25-29
+ - key: "hivst-7-vi-25-29-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 25 - 29 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Female'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 30-34
+ - key: "hivst-7-vi-30-34-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 30 - 34 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Female'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 35-39
+ - key: "hivst-7-vi-35-39-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 35 - 39 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Female'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 40-44
+ - key: "hivst-7-vi-40-44-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 40 - 44 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Female'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age 45-49
+ - key: "hivst-7-vi-45-49-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka 45 - 49 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Female'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ # // 7-vi and age ->50
+ - key: "hivst-7-vi->50-KE"
+ grouping: "HIVST"
+ description: "waliojipima wenyewe na kurudisha majibu kwa umri wa miaka ->50 na ni makundi ya others"
+ indicatorQuery: "SELECT count(DISTINCT efm.base_entity_id) as count
+ FROM ec_hivst_results ehr
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = ehr.entity_id
+ INNER JOIN ec_hivst_followup ehf ON ehf.entity_id=ehr.entity_id
+ INNER JOIN ec_hivst_register ehreg ON ehreg.base_entity_id=ehf.entity_id
+ WHERE ehr.hivst_result!='client_did_not_disclose'
+ AND ehr.kit_for='client'
+ AND ehf.self_test_kit_given='yes'
+ AND ehreg.client_group='others'
+ AND efm.gender = 'Female'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' ||
+ substr(strftime('%Y-%m-%d', datetime(ehr.collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) ||
+ '-' || '01')"
+ - key: "hivst-4-a"
+ grouping: "HIVST"
+ description: "Jumla ya vitendanishi vya kujipima VVU vilivyosambazwa (Washirika wa Ngono, Rafiki Rika)"
+ indicatorQuery: " SELECT count(id) as count FROM ec_hivst_results
+ WHERE (kit_for='peer_friend' OR kit_for='sexual_partner')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+ - key: "hivst-5-a"
+ grouping: "HIVST"
+ description: "Jumla ya vitendanishi vya kujipima VVU vilivyosambazwa (Binafsi, Washrika wa Ngono, Rafiki rika)"
+ indicatorQuery: " SELECT count(id) as count FROM ec_hivst_results
+ WHERE (kit_for='client' OR kit_for='peer_friend' OR kit_for='sexual_partner')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+ - key: "hivst-6-a"
+ grouping: "HIVST"
+ description: "Jumla ya wateja (Washrika wa ngono, Rafiki rika) waliotumia vitendanishi vya kujipima VVU na kurudisha majibu"
+ indicatorQuery: " SELECT count(id) as count FROM ec_hivst_results
+ WHERE (kit_for='peer_friend' OR kit_for='sexual_partner' )
+ AND (hivst_result !='not_returned')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(result_date, 7, 4) || '-' || substr(result_date, 4, 2) || '-' || '01')"
+ - key: "hivst-4-b"
+ grouping: "HIVST"
+ description: "B- Jumla ya vitendanishi vya kujipima VVU vilivyosambazwa (Washirika wa Ngono, Rafiki Rika)"
+ indicatorQuery: " SELECT count(base_entity_id) as count FROM ec_hivst_results
+ WHERE (kit_for='peer_friend' OR kit_for='sexual_partner')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+ - key: "hivst-5-b"
+ grouping: "HIVST"
+ description: "B- Jumla ya vitendanishi vya kujipima VVU vilivyosambazwa (Binafsi, Washrika wa Ngono, Rafiki rika)"
+ indicatorQuery: " SELECT count(base_entity_id) as count FROM ec_hivst_results
+ WHERE (kit_for='client' OR kit_for='peer_friend' OR kit_for='sexual_partner')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(collection_date / 1000, 'unixepoch', 'localtime')), 1, 4) ||
+ '-' || substr(strftime('%Y-%m-%d', datetime(collection_date / 1000, 'unixepoch', 'localtime')), 6, 2) || '-' || '01')"
+ - key: "hivst-6-b"
+ grouping: "HIVST"
+ description: "B- Jumla ya wateja (Washrika wa ngono, Rafiki rika) waliotumia vitendanishi vya kujipima VVU na kurudisha majibu"
+ indicatorQuery: "SELECT count(id) as count FROM ec_hivst_results
+ WHERE kit_for!='client'
+ AND (hivst_result !='not_returned')
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(result_date, 7, 4) || '-' || substr(result_date, 4, 2) || '-' || '01')"
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/config/vmmc-monthly-report.yml b/opensrp-chw-hf/src/main/assets/config/vmmc-monthly-report.yml
new file mode 100644
index 0000000000..61bca17a1c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/config/vmmc-monthly-report.yml
@@ -0,0 +1,12217 @@
+indicators:
+ - key: "vmmc-1-1-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-1-1-9-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date(efm.dob, '+1 years') <= date('now'))
+ AND (date(efm.dob, '+10 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-1-10-14-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-1-15-19-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-1-20-24-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 15-19"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-1-25-29-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-1-30-34-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-1-35-39-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-1-40-44-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-1-45-49-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-1-50-a"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # Question 2 (grand totals)
+ - key: "vmmc-2a-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE reffered_from = 'self_referral'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-2b-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE reffered_from = 'chw'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-2c-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE reffered_from = 'opd'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-2d-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE reffered_from = 'ipd'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-2e-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE reffered_from = 'hts'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-2f-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE reffered_from = 'rchs'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-2g-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE reffered_from = 'radio'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-2h-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_enrollment evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.id
+ WHERE reffered_from = 'others'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-3-i-1-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-i-1-9-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+1 years') <= date('now'))
+ AND (date(efm.dob, '+10 years') > date('now'))
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-i-10-14-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-i-15-19-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-i-20-24-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-i-25-29-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-i-30-34-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-i-35-39-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-i-40-44-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-i-45-49-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-i-50-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evs.hiv_result = 'positive'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-1-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-1-9-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+1 years') <= date('now'))
+ AND (date(efm.dob, '+10 years') > date('now'))
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-10-14-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+10 years') <= date('now'))
+ AND (date(efm.dob, '+15 years') > date('now'))
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-15-19-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+15 years') <= date('now'))
+ AND (date(efm.dob, '+20 years') > date('now'))
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-20-24-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+20 years') <= date('now'))
+ AND (date(efm.dob, '+25 years') > date('now'))
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-25-29-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+25 years') <= date('now'))
+ AND (date(efm.dob, '+30 years') > date('now'))
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-30-34-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+30 years') <= date('now'))
+ AND (date(efm.dob, '+35 years') > date('now'))
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-35-39-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+35 years') <= date('now'))
+ AND (date(efm.dob, '+40 years') > date('now'))
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-40-44-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+40 years') <= date('now'))
+ AND (date(efm.dob, '+45 years') > date('now'))
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-45-49-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date(efm.dob, '+45 years') <= date('now'))
+ AND (date(efm.dob, '+50 years') > date('now'))
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ - key: "vmmc-3-ii-50-a"
+ description: "Jumla ya wateja wa VMMC"
+ indicatorQuery: " SELECT count(DISTINCT evs.entity_id) as count FROM ec_vmmc_services evs
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evs.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evs.hiv_result = 'negative'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evs.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # Question 4 (grand totals)
+ - key: "vmmc-4a-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_services evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.entity_id
+ WHERE client_referred_to = 'surgical'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-4b-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_services evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.entity_id
+ WHERE client_referred_to = 'ctc'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-4c-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_services evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.entity_id
+ WHERE client_referred_to = 'psychosocial_support'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-4d-grandtotal"
+ description: "Jumla ya wateja (Binafsi) waliopata majibu chanya (Reactive) baada ya kujipima VVU Umri 20-24"
+ indicatorQuery: " SELECT count(DISTINCT evc.id) as count FROM ec_vmmc_services evc
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evc.entity_id
+ WHERE client_referred_to = 'other'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evc.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # QN 5
+ # CM
+ - key: "vmmc-5-1-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-5-1-9-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-10-14-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-15-19-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-20-24-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-25-29-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-30-34-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-35-39-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-40-44-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-45-49-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-50-cm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (male_circumcision_method = 'dorsal_slit' OR male_circumcision_method = 'sleeve_resection')
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-5-1-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-5-1-9-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-10-14-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-15-19-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-20-24-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-25-29-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-30-34-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-35-39-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-40-44-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-45-49-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-5-50-dm"
+ description: "Number of male circumcised"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND male_circumcision_method = 'device'
+ AND is_male_procedure_circumcision_conducted='yes'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # QN 6 & 7
+ # QUESTION 6
+
+ #i QN 6 CM
+ - key: "vmmc-6-a-i-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ # DM
+
+ - key: "vmmc-6-a-i-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-i-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'bleed_require_pressure_dressing')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ #ii QN 6
+
+ - key: "vmmc-6-a-ii-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-ii-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-a-ii-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-ii-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ii-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'pressure_dressing'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #iii QN 6
+
+ - key: "vmmc-6-a-iii-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-iii-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-a-iii-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-iii-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iii-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '5_or_6_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ #IV QN 6
+
+ - key: "vmmc-6-a-iv-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-iv-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-a-iv-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-iv-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-iv-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_infection = 'purulent'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # V from QN 6
+
+ - key: "vmmc-6-a-v-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-v-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-a-v-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-v-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-v-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'return_cinic'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # vi from QN 6
+
+ # - key: "vmmc-6-a-vi-1-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE (date('now')-date(efm.dob))<1
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ #
+ # - key: "vmmc-6-a-vi-1-9-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-a-vi-10-14-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-a-vi-15-19-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-a-vi-20-24-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-a-vi-25-29-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-a-vi-30-34-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-a-vi-35-39-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-a-vi-40-44-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-a-vi-45-49-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-a-vi-50-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE (date('now')-date(efm.dob))>=50
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-a-vi-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-vi-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-vi-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-vi-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-vi-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-vi-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-vi-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-vi-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-vi-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-vi-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-vi-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_of_adverse_event_device_displacement = 'requires_any_treatment_more_than_routine_post_operative_wound_care')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ # 6-vii DM
+
+ - key: "vmmc-6-a-vii-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-vii-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-vii-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-vii-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-vii-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-vii-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-vii-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-vii-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-vii-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-vii-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-vii-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'meet_severe_criteria'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ # 6-b QN 6
+
+ #############################################################################################
+
+ # Viii QN 6-b
+
+ - key: "vmmc-6-a-viii-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-viii-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-a-viii-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-viii-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-viii-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'additional_non_operative_treatment'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ #########################################################################################
+
+ #############################################################################################
+
+ # Viii QN 6
+
+ - key: "vmmc-6-a-ix-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-ix-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-a-ix-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-ix-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-ix-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_appearance = 'significant_wound_disruption_or_scarring_but_does_not_require_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ #########################################################################################
+
+
+ #i QN 6b
+ - key: "vmmc-6-b-i-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ # DM
+
+ - key: "vmmc-6-b-i-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-i-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_bleeding = 'blood_transfusion')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_bleed_excessive_bleeding = 'blood_transfussion_or_transfered_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ #6b ii QN 6
+
+ - key: "vmmc-6-b-ii-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-ii-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-b-ii-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-ii-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ii-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_swelling = 'penis_severed'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ #6b iii QN 6
+
+ - key: "vmmc-6-b-iii-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-iii-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-b-iii-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-iii-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iii-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_persistent_pain = '7_on_pain_scale'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ #iv QN 6
+ - key: "vmmc-6-b-iv-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-iv-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-b-iv-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-iv-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-iv-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_infection = 'cellutilis'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #V QN 6
+
+ - key: "vmmc-6-b-v-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-v-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-b-v-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-v-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-v-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_pass_urine = 'requires_referral'
+ )
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # vi from QN 6
+
+ # - key: "vmmc-6-b-vi-1-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE (date('now')-date(efm.dob))<1
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ #
+ # - key: "vmmc-6-b-vi-1-9-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-b-vi-10-14-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-b-vi-15-19-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-b-vi-20-24-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-b-vi-25-29-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-b-vi-30-34-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-b-vi-35-39-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-b-vi-40-44-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-b-vi-45-49-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+ #
+ # - key: "vmmc-6-b-vi-50-cm"
+ # description: "Number of male circumcised who experienced one or more adverse events"
+ # indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ # INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ # INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ # WHERE (date('now')-date(efm.dob))>=50
+ # AND evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client'
+ # AND male_circumcision_method != 'device'
+ # AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ # date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ # substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-b-vi-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-vi-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-vi-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-vi-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-vi-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-vi-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-vi-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-vi-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-vi-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-vi-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-vi-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_event_device_displacement = 'intentional_movement_of_device_by_client')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_of_adverse_event_device_displacement = 'intentional_movement_of_device_by_client_or_self_removal_that_requires_surgical_intervention_hospitalization_transfer')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ # Vii QN 6
+
+ - key: "vmmc-6-b-vii-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-vii-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-b-vii-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-vii-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-vii-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_event_device_detachment = 'surgical_intervention'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ #############################################################################################
+
+ # Viii QN 6-b
+
+ - key: "vmmc-6-b-viii-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-viii-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-b-viii-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-viii-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-viii-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_delayed_wound_healing = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ #########################################################################################
+
+ #############################################################################################
+
+ # Viii QN 6
+
+ - key: "vmmc-6-b-ix-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-ix-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # DM
+
+ - key: "vmmc-6-b-ix-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-ix-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-ix-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evf.entity_id) as count FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND evf.desc_of_post_op_adverse_appearance = 'requires_re_operation'
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ #########################################################################################
+
+
+
+ #############################################################################################
+
+ # x QN 6 cm
+ - key: "vmmc-6-a-x-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-x-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ ###########################################################################
+
+
+ # x QN 6 - a DM
+
+ - key: "vmmc-6-a-x-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-a-x-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-x-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'reaction_to_anaesthetic')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ ###########################################################################
+
+
+ # x QN 6 - b CM
+
+ - key: "vmmc-6-b-x-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-x-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ ###########################################################################
+
+
+
+ # x QN 6 - b DM
+
+ - key: "vmmc-6-b-x-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ - key: "vmmc-6-b-x-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-x-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT evp.entity_id) AS distinct_count FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_anaesthetic_related_event = 'anaphylaxis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ ###########################################################################
+
+ - key: "vmmc-7-i-1-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-1-9-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-10-14-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-15-19-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-20-24-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-25-29-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-30-34-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-35-39-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-40-44-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-45-49-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-50-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ ###########################################################################
+
+
+ # QN 6-a xi
+
+ ###########################################################################
+
+
+
+
+ # QN 6-a xi a
+
+ - key: "vmmc-6-a-xi-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ #DM
+
+ - key: "vmmc-6-a-xi-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-a-xi-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'additional_operative')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_skin_removal = 'skin_tight')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+
+ # QN 6-b-xi
+
+ #CM
+
+ - key: "vmmc-6-b-xi-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ #DM
+
+ - key: "vmmc-6-b-xi-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ - key: "vmmc-6-b-xi-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT COUNT(DISTINCT entity_id) AS count
+ FROM (
+ SELECT entity_id
+ FROM (
+ SELECT evf.entity_id
+ FROM ec_vmmc_follow_up_visit evf
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evf.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evf.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evf.desc_of_post_op_adverse_excessive_skin_removed = 'operation_or_transfer_to_another_facility')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evf.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ UNION ALL
+ SELECT evp.entity_id
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_skin_removal = 'requires_reoperation')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')
+ ) AS combined_entity_ids
+) AS counts"
+
+ # QN 6-a-xii
+
+ #CM
+
+ - key: "vmmc-6-a-xii-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ #DM
+
+ - key: "vmmc-6-a-xii-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-a-xii-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'bruising_or_abrasion_of_the_glans_or_shaft_of_the_penis')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # QN 6-b-xii
+
+ #CM
+
+ - key: "vmmc-6-b-xii-1-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-1-9-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-10-14-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-15-19-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-20-24-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-25-29-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-30-34-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-35-39-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-40-44-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-45-49-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-50-cm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method != 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ #DM
+
+ - key: "vmmc-6-b-xii-1-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))<1
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-1-9-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-10-14-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-15-19-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-20-24-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-25-29-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-30-34-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-35-39-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-40-44-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-45-49-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-6-b-xii-50-dm"
+ description: "Number of male circumcised who experienced one or more adverse events"
+ indicatorQuery: " SELECT count(DISTINCT evp.entity_id) as count
+ FROM ec_vmmc_procedure evp
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evp.entity_id
+ WHERE (date('now')-date(efm.dob))>=50
+ AND (evp.desc_intraoperative_ae_injury_to_penis = 'glans_or_shaft_of_penis_severed')
+ AND male_circumcision_method = 'device'
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evp.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # ii.
+ - key: "vmmc-7-ii-1-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-1-9-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-10-14-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-15-19-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-20-24-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-25-29-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-30-34-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-35-39-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-40-44-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-45-49-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-50-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+
+ # iii.
+ - key: "vmmc-7-iii-1-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-1-9-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-10-14-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-15-19-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-20-24-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-25-29-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-30-34-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-35-39-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-40-44-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-45-49-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-50-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # iv.
+ - key: "vmmc-7-iv-1-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-1-9-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-10-14-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-15-19-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-20-24-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-25-29-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-30-34-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-35-39-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-40-44-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-45-49-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-50-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # v.
+ - key: "vmmc-7-v-1-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-1-9-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-10-14-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-15-19-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-20-24-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-25-29-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-30-34-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-35-39-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-40-44-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-45-49-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-50-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # vi.
+ - key: "vmmc-7-vi-1-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-1-9-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-10-14-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-15-19-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-20-24-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-25-29-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-30-34-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-35-39-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-40-44-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-45-49-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-50-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # vii.
+ - key: "vmmc-7-vii-1-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-1-9-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-10-14-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-15-19-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-20-24-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-25-29-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-30-34-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-35-39-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-40-44-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-45-49-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-50-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # # viii.
+ - key: "vmmc-7-viii-1-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-1-9-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-10-14-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-15-19-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-20-24-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-25-29-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-30-34-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-35-39-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-40-44-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-45-49-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-50-cm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ ###########################################################################
+
+ - key: "vmmc-7-i-1-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-1-9-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-10-14-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-15-19-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-20-24-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-25-29-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-30-34-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-35-39-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-40-44-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-45-49-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-i-50-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%complete_or_partial_amputation_of_glans_or_shaft_of_penis%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ ###########################################################################
+
+ # ii.
+ - key: "vmmc-7-ii-1-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-1-9-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-10-14-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-15-19-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-20-24-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-25-29-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-30-34-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-35-39-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-40-44-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-45-49-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-ii-50-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%tetanus_including_non_fatal_cases%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # iii.
+ - key: "vmmc-7-iii-1-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-1-9-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-10-14-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-15-19-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-20-24-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-25-29-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-30-34-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-35-39-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-40-44-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-45-49-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iii-50-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_disbility_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # iv.
+ - key: "vmmc-7-iv-1-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-1-9-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-10-14-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-15-19-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-20-24-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-25-29-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-30-34-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-35-39-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-40-44-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-45-49-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-iv-50-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%ae_results_in_anatomic_deformity_permanent%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # v.
+ - key: "vmmc-7-v-1-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-1-9-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-10-14-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-15-19-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-20-24-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-25-29-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-30-34-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-35-39-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-40-44-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-45-49-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-v-50-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%hospital_admission%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # vi.
+ - key: "vmmc-7-vi-1-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-1-9-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-10-14-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-15-19-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-20-24-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-25-29-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-30-34-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-35-39-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-40-44-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-45-49-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vi-50-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE did_client_experience_nae LIKE '%moderate_severe_device_displacement%'
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # vii.
+ - key: "vmmc-7-vii-1-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-1-9-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-10-14-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-15-19-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-20-24-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-25-29-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-30-34-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-35-39-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-40-44-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-45-49-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-vii-50-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%client_deaths_within_30days_post%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # viii.
+ - key: "vmmc-7-viii-1-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-1-9-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-10-14-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-15-19-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-20-24-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-25-29-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-30-34-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-35-39-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-40-44-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-45-49-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-7-viii-50-dm"
+ description: "VMMC number of notifiable ae reported"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_notifiable_ae evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ WHERE (did_client_experience_nae LIKE '%admission_to_icu_within_30_days_post_mc%' )
+ AND male_circumcision_method = 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # QUESTION 8
+ # CM
+ # i.
+ - key: "vmmc-8-i-1-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-i-1-9-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-i-10-14-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-i-15-19-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-i-20-24-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-i-25-29-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-i-30-34-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-i-35-39-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-i-40-44-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-i-45-49-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-i-50-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 2
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ # ii.
+
+ - key: "vmmc-8-ii-1-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-ii-1-9-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-ii-10-14-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-ii-15-19-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-ii-20-24-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-ii-25-29-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-ii-30-34-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-ii-35-39-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-ii-40-44-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-ii-45-49-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-ii-50-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 2 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '1'
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # iii.
+ - key: "vmmc-8-iii-1-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iii-1-9-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iii-10-14-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iii-15-19-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iii-20-24-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iii-25-29-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iii-30-34-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iii-35-39-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iii-40-44-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iii-45-49-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iii-50-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE round(julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))) BETWEEN 0 AND 7
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # iv.
+
+ - key: "vmmc-8-iv-1-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iv-1-9-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iv-10-14-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iv-15-19-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iv-20-24-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iv-25-29-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iv-30-34-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iv-35-39-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iv-40-44-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iv-45-49-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-iv-50-cm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 < ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND evn.visit_number = '2'
+ AND male_circumcision_method != 'device'
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+ # DM
+ # v.
+ - key: "vmmc-8-v-1-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND (date('now')-date(efm.dob))<1
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-v-1-9-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND 1<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=9
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-v-10-14-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND 10<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=14
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-v-15-19-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND 15<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=19
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-v-20-24-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND 20<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=24
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-v-25-29-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND 25<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=29
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-v-30-34-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND 30<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=34
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-v-35-39-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND 35<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=39
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-v-40-44-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND 40<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=44
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-v-45-49-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND 45<=(date('Now')-date(efm.dob)) AND (date('Now')-date(efm.dob))<=49
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+ - key: "vmmc-8-v-50-dm"
+ description: "VMMC number of male circumcised who returned for followup visit"
+ indicatorQuery: " SELECT count(DISTINCT evn.entity_id) as count FROM ec_vmmc_follow_up_visit evn
+ INNER JOIN ec_family_member efm ON efm.base_entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_procedure vp ON vp.entity_id = evn.entity_id
+ INNER JOIN ec_vmmc_post_op_and_discharge ds ON ds.entity_id = evn.entity_id
+ WHERE 7 <= ((julianday(substr(followup_visit_date, 7, 4) || '-'
+ || substr(followup_visit_date, 4, 2) || '-'
+ || substr(followup_visit_date, 1, 2)) - julianday(substr(ds.discharge_date, 7, 4) || '-'
+ || substr(ds.discharge_date, 4, 2) || '-'
+ || substr(ds.discharge_date, 1, 2))))
+ AND (male_circumcision_method = 'device' )
+ AND (date('now')-date(efm.dob))>=50
+ AND date((substr('%s', 1, 4) || '-' || substr('%s', 6, 2) || '-' || '01')) =
+ date(substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 1, 4) ||'-' ||
+ substr(strftime('%Y-%m-%d', datetime(evn.last_interacted_with / 1000, 'unixepoch', 'localtime')), 6, 2) ||'-' || '01')"
+
+
+# End of QN 6 & 7
diff --git a/opensrp-chw-hf/src/main/assets/ec_client_classification.json b/opensrp-chw-hf/src/main/assets/ec_client_classification.json
index 3c39f4c53f..42e91f6049 100644
--- a/opensrp-chw-hf/src/main/assets/ec_client_classification.json
+++ b/opensrp-chw-hf/src/main/assets/ec_client_classification.json
@@ -93,6 +93,13 @@
"ec_child_activity"
]
},
+ {
+ "field": "eventType",
+ "field_value": "PNC Child Followup",
+ "creates_case": [
+ "ec_child"
+ ]
+ },
{
"field": "eventType",
"field_value": "Visit not done",
@@ -115,21 +122,60 @@
"ec_child"
]
},
+ {
+ "field": "eventType",
+ "field_value": "Pregnancy Confirmation",
+ "creates_case": [
+ "ec_anc_register",
+ "ec_anc_log",
+ "ec_anc_pregnancy_lookup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "ANC Followup Client Registration",
+ "creates_case": [
+ "ec_anc_register",
+ "ec_anc_log",
+ "ec_anc_followup",
+ "ec_anc_birth_emergency_plan",
+ "ec_anc_pregnancy_lookup"
+ ]
+ },
{
"field": "eventType",
"field_value": "ANC Registration",
"creates_case": [
"ec_anc_register",
+ "ec_anc_pregnancy_lookup",
"ec_anc_log"
]
},
{
"field": "eventType",
- "field_value": "ANC Home Visit",
+ "field_value": "ANC First Facility Visit",
"creates_case": [
+ "ec_anc_register",
+ "ec_anc_followup",
+ "ec_anc_birth_emergency_plan"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "ANC Close Followup Visits",
+ "closes_case": [
"ec_anc_register"
]
},
+ {
+ "field": "eventType",
+ "field_value": "ANC Recurring Facility Visit",
+ "creates_case": [
+ "ec_anc_register",
+ "ec_anc_followup",
+ "ec_anc_birth_emergency_plan"
+ ]
+ },
{
"field": "eventType",
"field_value": "Malaria Confirmation",
@@ -137,6 +183,58 @@
"ec_malaria_confirmation"
]
},
+ {
+ "field": "eventType",
+ "field_value": "Vmmc Enrollment",
+ "creates_case": [
+ "ec_vmmc_enrollment"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Close Vmmc Service",
+ "closes_case": [
+ "ec_vmmc_enrollment"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Vmmc Services",
+ "creates_case": [
+ "ec_vmmc_services"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Vmmc Procedure",
+ "creates_case": [
+ "ec_vmmc_procedure"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Vmmc Discharge",
+ "creates_case": [
+ "ec_vmmc_post_op_and_discharge",
+ "ec_vmmc_enrollment"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Vmmc Follow-up Visit",
+ "creates_case": [
+ "ec_vmmc_follow_up_visit",
+ "ec_vmmc_enrollment"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "VMMC Notifiable Adverse Events",
+ "creates_case": [
+ "ec_vmmc_notifiable_ae",
+ "ec_vmmc_enrollment"
+ ]
+ },
{
"field": "eventType",
"field_value": "Family Planning Registration",
@@ -146,7 +244,7 @@
},
{
"field": "eventType",
- "field_value": "Family Planning Change Method",
+ "field_value": "Provide FP method",
"creates_case": [
"ec_family_planning"
]
@@ -155,7 +253,8 @@
"field": "eventType",
"field_value": "Pregnancy Outcome",
"closes_case": [
- "ec_anc_register"
+ "ec_anc_register",
+ "ec_ld_confirmation"
]
},
{
@@ -218,7 +317,8 @@
"field": "eventType",
"field_value": "Referral Registration",
"creates_case": [
- "ec_referral"
+ "ec_referral",
+ "ec_hts_register"
]
},
{
@@ -248,6 +348,769 @@
"creates_case": [
"ec_family_planning_update"
]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Hiv Registration",
+ "creates_case": [
+ "ec_hiv_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Hiv Registration",
+ "creates_case": [
+ "ec_hts_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Tb Registration",
+ "creates_case": [
+ "ec_tb_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "TB Case Closure",
+ "creates_case": [
+ "ec_tb_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HIV Outcome",
+ "creates_case": [
+ "ec_hiv_register",
+ "ec_hiv_outcome",
+ "ec_hts_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Update CTC Number",
+ "creates_case": [
+ "ec_hiv_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "TB Outcome",
+ "creates_case": [
+ "ec_tb_register",
+ "ec_tb_outcome"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HIV Community Followup",
+ "creates_case": [
+ "ec_hiv_community_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "TB Community Followup",
+ "creates_case": [
+ "ec_tb_community_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HIV Community Followup Feedback",
+ "creates_case": [
+ "ec_hiv_community_feedback"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "TB Community Followup Feedback",
+ "creates_case": [
+ "ec_tb_community_feedback"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Close Hiv Feedback",
+ "creates_case": [
+ "ec_hiv_community_feedback"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Close Tb Feedback",
+ "creates_case": [
+ "ec_tb_community_feedback"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Hiv Index Contact Registration",
+ "creates_case": [
+ "ec_hiv_index_hf",
+ "ec_hiv_index"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HIV Index Contact Testing Followup",
+ "creates_case": [
+ "ec_hiv_index_hf",
+ "ec_hiv_index"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HIV Index Contact CHW Followup",
+ "creates_case": [
+ "ec_hiv_index_chw_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HIV Index Contact Community Followup Referral",
+ "creates_case": [
+ "ec_hiv_index_hf",
+ "ec_hiv_index"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PMTCT Registration",
+ "creates_case": [
+ "ec_pmtct_registration",
+ "ec_hiv_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PMTCT TI Registration",
+ "creates_case": [
+ "ec_pmtct_registration",
+ "ec_pmtct_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PMTCT Post PNC Registration",
+ "creates_case": [
+ "ec_pmtct_registration",
+ "ec_hiv_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PMTCT Follow-up Visit",
+ "creates_case": [
+ "ec_pmtct_followup",
+ "ec_pmtct_registration"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Mark PMTCT Client As LTF",
+ "creates_case": [
+ "ec_pmtct_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PMTCT HVL Results",
+ "creates_case": [
+ "ec_pmtct_hvl_results"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PMTCT Close Visits",
+ "closes_case": [
+ "ec_pmtct_registration"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PMTCT CD4 Test Results",
+ "creates_case": [
+ "ec_pmtct_cd4_results"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PMTCT EAC Visit",
+ "creates_case": [
+ "ec_pmtct_eac_visit"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Pregnancy Unconfirmed",
+ "closes_case": [
+ "ec_anc_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Partner Registration",
+ "creates_case": [
+ "ec_anc_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Partner Testing",
+ "creates_case": [
+ "ec_anc_register",
+ "ec_anc_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Update HIV Index Contact Testing Followup",
+ "creates_case": [
+ "ec_hiv_index_hf",
+ "ec_hiv_index"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PMTCT Community Followup Feedback",
+ "creates_case": [
+ "ec_pmtct_community_feedback"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Close PMTCT Feedback",
+ "creates_case": [
+ "ec_pmtct_community_feedback"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HEI Registration",
+ "creates_case": [
+ "ec_hei"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HEI Number Registration",
+ "creates_case": [
+ "ec_hei"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Edit HEI Number",
+ "creates_case": [
+ "ec_hei"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HEI Followup",
+ "creates_case": [
+ "ec_hei_followup",
+ "ec_hei"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Mark HEI Client As LTF",
+ "creates_case": [
+ "ec_hei_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HEI HIV Test Results",
+ "creates_case": [
+ "ec_hei_hiv_results",
+ "ec_hei"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HEI Positive Infant",
+ "closes_case": [
+ "ec_hei"
+ ],
+ "creates_case": [
+ "ec_hiv_register",
+ "ec_hei_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HEI Negative Infant",
+ "creates_case": [
+ "ec_hei_followup"
+ ],
+ "closes_case": [
+ "ec_hei"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PNC No Mother Registration",
+ "creates_case": [
+ "ec_no_mother_pnc",
+ "ec_child"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PNC VISIT",
+ "creates_case": [
+ "ec_pregnancy_outcome",
+ "ec_pnc_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PNC Child Followup",
+ "creates_case": [
+ "ec_pnc_child_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Close PNC Visits",
+ "closes_case": [
+ "ec_pregnancy_outcome"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LD Registration",
+ "creates_case": [
+ "ec_ld_confirmation"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LD Registration",
+ "closes_case": [
+ "ec_anc_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Labour Stage Assessment",
+ "creates_case": [
+ "ec_ld_confirmation"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LD General Examination",
+ "creates_case": [
+ "ec_ld_confirmation",
+ "ec_ld_general_examination_consultation"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Cervix Dilation Monitoring",
+ "creates_case": [
+ "ec_ld_confirmation",
+ "ec_ld_general_examination_consultation"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LD Partograph",
+ "creates_case": [
+ "ec_ld_confirmation",
+ "ec_ld_partograph"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Mode of Delivery",
+ "creates_case": [
+ "ec_ld_confirmation"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LD Active Management of 3rd Stage Of Labour",
+ "creates_case": [
+ "ec_ld_confirmation",
+ "ec_ld_placenta_and_membrane"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Close LD",
+ "closes_case": [
+ "ec_ld_confirmation"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Post Delivery Mother Management",
+ "creates_case": [
+ "ec_pregnancy_outcome"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Post Delivery Mother Management",
+ "creates_case": [
+ "ec_ld_confirmation",
+ "ec_ld_postpartum_care"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LND 1st Newborn",
+ "creates_case": [
+ "ec_ld_immediate_new_born_care"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LND 2nd Newborn",
+ "creates_case": [
+ "ec_ld_immediate_new_born_care"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LND 3rd Newborn",
+ "creates_case": [
+ "ec_ld_immediate_new_born_care"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LND 4th Newborn",
+ "creates_case": [
+ "ec_ld_immediate_new_born_care"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LND 5th Newborn",
+ "creates_case": [
+ "ec_ld_immediate_new_born_care"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LND 6th Newborn",
+ "creates_case": [
+ "ec_ld_immediate_new_born_care"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LTFU Feedback",
+ "creates_case": [
+ "ec_ltfu_feedback"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "LD Child Registration",
+ "creates_case": [
+ "ec_child",
+ "ec_family_member"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "CBHS Registration",
+ "creates_case": [
+ "ec_cbhs_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Update CBHS Registration",
+ "creates_case": [
+ "ec_cbhs_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "CBHS Registration",
+ "creates_case": [
+ "ec_cbhs_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Update CBHS Registration",
+ "creates_case": [
+ "ec_cbhs_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "CBHS Followup",
+ "creates_case": [
+ "ec_cbhs_register",
+ "ec_cbhs_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Mother Champion Community Services Referral",
+ "creates_case": [
+ "ec_mother_champion"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Mother Champion Followup",
+ "creates_case": [
+ "ec_mother_champion_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Mother Champion SBCC Sessions",
+ "creates_case": [
+ "ec_sbcc"
+ ]
+ },
+ {
+ "field":"eventType",
+ "field_value": "ANC Partner Community Followup Referral",
+ "creates_case": [
+ "ec_anc_partner_community_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "ANC Partner Community Followup Feedback",
+ "creates_case": [
+ "ec_anc_partner_community_feedback"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Self Testing Registration",
+ "creates_case": [
+ "ec_hivst_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Self Testing Kits Issue",
+ "creates_case": [
+ "ec_hivst_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Self Testing Results Registration",
+ "creates_case": [
+ "ec_hivst_results"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Self Testing Results",
+ "creates_case": [
+ "ec_hivst_results"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HIVST Mobilization Session",
+ "creates_case":[
+ "ec_hivst_mobilization"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "HTS Registration",
+ "creates_case":[
+ "ec_hts_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Transfer to PNC",
+ "creates_case": [
+ "ec_pregnancy_outcome"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "CDP Condom Order",
+ "creates_case": [
+ "ec_cdp_orders_receive"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "CDP Order From Facility",
+ "creates_case": [
+ "ec_cdp_orders_sent"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "CDP Distribution Within Facility",
+ "creates_case": [
+ "ec_cdp_issuing_hf"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "CDP Distribution Outside Facility",
+ "creates_case": [
+ "ec_cdp_issuing_hf"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "KVP Registration",
+ "creates_case": [
+ "ec_kvp_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "KVP Behavioral Service Visit",
+ "creates_case": [
+ "ec_kvp_behavioral_services"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "KVP Structural Service Visit",
+ "creates_case": [
+ "ec_kvp_structural_services"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "KVP Bio Medical Service Visit",
+ "creates_case": [
+ "ec_kvp_register",
+ "ec_kvp_bio_medical_services"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "KVP Other Service Visit",
+ "creates_case": [
+ "ec_kvp_other_services"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PrEP Registration",
+ "creates_case": [
+ "ec_prep_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PrEP Follow-up Visit",
+ "creates_case": [
+ "ec_prep_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PrEP Client Not Eligible",
+ "closes_case": [
+ "ec_prep_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "PrEP Follow-up Visit",
+ "creates_case": [
+ "ec_prep_register",
+ "ec_prep_followup"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Point of Service Delivery",
+ "creates_case": [
+ "ec_fp_point_of_service_delivery"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "FP Screening",
+ "creates_case": [
+ "ec_fp_screening",
+ "ec_family_planning"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Provide FP Counseling",
+ "creates_case": [
+ "ec_fp_counseling",
+ "ec_family_planning"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "Provide FP method",
+ "creates_case": [
+ "ec_fp_provision_of_method",
+ "ec_family_planning"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "FP Other Services",
+ "creates_case": [
+ "ec_fp_other_services"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "FP Follow-up Visit",
+ "creates_case": [
+ "ec_fp_follow_up_visit"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "FP ECP Screening",
+ "creates_case": [
+ "ec_fp_ecp_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "FP ECP Provision",
+ "creates_case": [
+ "ec_fp_ecp_provision"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "FP ECP Provision",
+ "closes_case": [
+ "ec_fp_ecp_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "SBC Enrollment",
+ "creates_case": [
+ "ec_sbc_register"
+ ]
+ },
+ {
+ "field": "eventType",
+ "field_value": "SBC Follow-up Visit",
+ "creates_case": [
+ "ec_sbc_visit"
+ ]
}
]
}
diff --git a/opensrp-chw-hf/src/main/assets/ec_client_fields.json b/opensrp-chw-hf/src/main/assets/ec_client_fields.json
index 01422b419f..11c188071f 100644
--- a/opensrp-chw-hf/src/main/assets/ec_client_fields.json
+++ b/opensrp-chw-hf/src/main/assets/ec_client_fields.json
@@ -1,7 +1,7 @@
{
"bindobjects": [
{
- "name": "ec_family",
+ "name": "ec_pmtct_registration",
"columns": [
{
"column_name": "base_entity_id",
@@ -11,1732 +11,9740 @@
}
},
{
- "column_name": "unique_id",
- "type": "Client",
+ "column_name": "pmtct_register_date",
+ "type": "Event",
"json_mapping": {
- "field": "identifiers.opensrp_id"
+ "field": "obs.fieldCode",
+ "concept": "pmtct_register_date"
}
},
{
- "column_name": "first_name",
- "type": "Client",
+ "column_name": "hiv_status",
+ "type": "Event",
"json_mapping": {
- "field": "firstName"
+ "field": "obs.fieldCode",
+ "concept": "test_results"
}
},
{
- "column_name": "last_name",
- "type": "Client",
+ "column_name": "ctc_number",
+ "type": "Event",
"json_mapping": {
- "field": "lastName"
+ "field": "obs.fieldCode",
+ "concept": "ctc_number"
}
},
{
- "column_name": "village_town",
- "type": "Client",
+ "column_name": "known_on_art",
+ "type": "Event",
"json_mapping": {
- "field": "addresses.cityVillage"
+ "field": "obs.fieldCode",
+ "concept": "known_on_art"
}
},
{
- "column_name": "landmark",
- "type": "Client",
+ "column_name": "is_transfer_in_client",
+ "type": "Event",
"json_mapping": {
- "field": "addresses.landmark"
+ "field": "obs.fieldCode",
+ "concept": "is_transfer_in_client"
}
},
{
- "column_name": "gps",
+ "column_name": "next_facility_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "next_facility_visit_date"
+ }
+ },
+ {
+ "column_name": "followup_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "followup_status"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_pmtct_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "followup_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "followup_status"
+ }
+ },
+ {
+ "column_name": "followup_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "followup_visit_date"
+ }
+ },
+ {
+ "column_name": "liver_function_test_conducted",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "liver_function_test_conducted"
+ }
+ },
+ {
+ "column_name": "receive_liver_function_test_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "receive_liver_function_test_results"
+ }
+ },
+ {
+ "column_name": "renal_function_test_conducted",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "renal_function_test_conducted"
+ }
+ },
+ {
+ "column_name": "receive_renal_function_test_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "receive_renal_function_test_results"
+ }
+ },
+ {
+ "column_name": "hvl_sample_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hvl_sample_id"
+ }
+ },
+ {
+ "column_name": "hvl_collection_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hvl_collection_date"
+ }
+ },
+ {
+ "column_name": "cd4_sample_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cd4_sample_id"
+ }
+ },
+ {
+ "column_name": "cd4_collection_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cd4_collection_date"
+ }
+ },
+ {
+ "column_name": "arv_line",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "arv_line"
+ }
+ },
+ {
+ "column_name": "arv_regimen",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "arv_regimen"
+ }
+ },
+ {
+ "column_name": "has_been_provided_with_tpt_before",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "has_been_provided_with_tpt_before"
+ }
+ },
+ {
+ "column_name": "is_client_provided_with_tpt",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "is_client_provided_with_tpt"
+ }
+ },
+ {
+ "column_name": "completed_tpt",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "completed_tpt"
+ }
+ },
+ {
+ "column_name": "prescribed_regimes",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "prescribed_regimes"
+ }
+ },
+ {
+ "column_name": "visit_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "visit_number"
+ }
+ },
+ {
+ "column_name": "next_facility_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "next_facility_visit_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_pmtct_hvl_results",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "hvl_sample_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hvl_sample_id"
+ }
+ },
+ {
+ "column_name": "hvl_pmtct_followup_form_submission_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hvl_pmtct_followup_form_submission_id"
+ }
+ },
+ {
+ "column_name": "hvl_result",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hvl_result"
+ }
+ },
+ {
+ "column_name": "enroll_to_eac",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "enroll_to_eac"
+ }
+ },
+ {
+ "column_name": "hvl_result_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hvl_result_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_pmtct_cd4_results",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "cd4_sample_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cd4_sample_id"
+ }
+ },
+ {
+ "column_name": "cd4_pmtct_followup_form_submission_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cd4_pmtct_followup_form_submission_id"
+ }
+ },
+ {
+ "column_name": "cd4_result",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cd4_result"
+ }
+ },
+ {
+ "column_name": "cd4_result_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cd4_result_date"
+ }
+ },
+ {
+ "column_name": "started_ctx",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "started_ctx"
+ }
+ },
+ {
+ "column_name": "reason_for_not_starting_ctx",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "reason_for_not_starting_ctx"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_pmtct_eac_visit",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "eac_visit_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "eac_visit_type"
+ }
+ },
+ {
+ "column_name": "eac",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "eac"
+ }
+ },
+ {
+ "column_name": "eac_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "eac_visit_date"
+ }
+ },
+ {
+ "column_name": "eac_visit_session",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "eac_visit_session"
+ }
+ },
+ {
+ "column_name": "eac_completion_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "eac_completion_status"
+ }
+ },
+ {
+ "column_name": "form_submission_timestamp",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "form_submission_timestamp"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hei",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "unique_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "identifiers.opensrp_id"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "relationships.family"
+ }
+ },
+ {
+ "column_name": "mother_entity_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "relationships.mother"
+ }
+ },
+ {
+ "column_name": "risk_category",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "risk_category"
+ }
+ },
+ {
+ "column_name": "dob",
+ "type": "Client",
+ "json_mapping": {
+ "field": "birthdate"
+ }
+ },
+ {
+ "column_name": "hiv_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_status"
+ }
+ },
+ {
+ "column_name": "hei_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hei_number"
+ }
+ },
+ {
+ "column_name": "next_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "next_facility_visit_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hei_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "followup_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "followup_status"
+ }
+ },
+ {
+ "column_name": "followup_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "followup_visit_date"
+ }
+ },
+ {
+ "column_name": "sample_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "sample_id"
+ }
+ },
+ {
+ "column_name": "sample_collection_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "sample_collection_date"
+ }
+ },
+ {
+ "column_name": "type_of_hiv_test",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "type_of_hiv_test"
+ }
+ },
+ {
+ "column_name": "test_at_age",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "test_at_age"
+ }
+ },
+ {
+ "column_name": "prophylaxis_arv_for_high_risk_given",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "prophylaxis_arv_for_high_risk_given"
+ }
+ },
+ {
+ "column_name": "prophylaxis_arv_for_high_and_low_risk_given",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "prophylaxis_arv_for_high_and_low_risk_given"
+ }
+ },
+ {
+ "column_name": "prescribed_ctx",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "prescribed_ctx"
+ }
+ },
+ {
+ "column_name": "visit_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "visit_number"
+ }
+ },
+ {
+ "column_name": "next_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "next_facility_visit_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hei_hiv_results",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "hei_followup_form_submission_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hei_followup_form_submission_id"
+ }
+ },
+ {
+ "column_name": "hiv_test_result",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_status"
+ }
+ },
+ {
+ "column_name": "hiv_test_result_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_test_result_date"
+ }
+ },
+ {
+ "column_name": "ctc_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "ctc_number"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_family",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "unique_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "identifiers.opensrp_id"
+ }
+ },
+ {
+ "column_name": "first_name",
+ "type": "Client",
+ "json_mapping": {
+ "field": "firstName"
+ }
+ },
+ {
+ "column_name": "last_name",
+ "type": "Client",
+ "json_mapping": {
+ "field": "lastName"
+ }
+ },
+ {
+ "column_name": "village_town",
+ "type": "Client",
+ "json_mapping": {
+ "field": "addresses.cityVillage"
+ }
+ },
+ {
+ "column_name": "landmark",
+ "type": "Client",
+ "json_mapping": {
+ "field": "addresses.landmark"
+ }
+ },
+ {
+ "column_name": "gps",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "gps"
+ }
+ },
+ {
+ "column_name": "nearest_facility",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "nearest_facility"
+ }
+ },
+ {
+ "column_name": "family_head",
+ "type": "Client",
+ "json_mapping": {
+ "field": "relationships.family_head"
+ }
+ },
+ {
+ "column_name": "primary_caregiver",
+ "type": "Client",
+ "json_mapping": {
+ "field": "relationships.primary_caregiver"
+ }
+ },
+ {
+ "column_name": "sync_location_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "locationId"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "date_removed",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.dateRemoved"
+ }
+ },
+ {
+ "column_name": "entity_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "entityType"
+ }
+ },
+ {
+ "column_name": "event_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "eventDate",
+ "event_type": "Family Registration"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_family_member",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "unique_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "identifiers.opensrp_id"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "relationships.family"
+ }
+ },
+ {
+ "column_name": "first_name",
+ "type": "Client",
+ "json_mapping": {
+ "field": "firstName"
+ }
+ },
+ {
+ "column_name": "middle_name",
+ "type": "Client",
+ "json_mapping": {
+ "field": "middleName"
+ }
+ },
+ {
+ "column_name": "last_name",
+ "type": "Client",
+ "json_mapping": {
+ "field": "lastName"
+ }
+ },
+ {
+ "column_name": "dob",
+ "type": "Client",
+ "json_mapping": {
+ "field": "birthdate"
+ }
+ },
+ {
+ "column_name": "dod",
+ "type": "Client",
+ "json_mapping": {
+ "field": "deathdate"
+ }
+ },
+ {
+ "column_name": "dob_unknown",
+ "type": "Client",
+ "json_mapping": {
+ "field": "birthdateApprox"
+ }
+ },
+ {
+ "column_name": "gender",
+ "type": "Client",
+ "json_mapping": {
+ "field": "gender"
+ }
+ },
+ {
+ "column_name": "phone_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "phone_number"
+ }
+ },
+ {
+ "column_name": "other_phone_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_phone_number"
+ }
+ },
+ {
+ "column_name": "national_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.National_ID"
+ }
+ },
+ {
+ "column_name": "voter_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Voter_Registration_Number"
+ }
+ },
+ {
+ "column_name": "driver_license",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Driver_License_Number"
+ }
+ },
+ {
+ "column_name": "passport",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Passport_Number"
+ }
+ },
+ {
+ "column_name": "insurance_provider",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Health_Insurance_Type"
+ }
+ },
+ {
+ "column_name": "insurance_provider_other",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Other_Health_Insurance_Type"
+ }
+ },
+ {
+ "column_name": "insurance_provider_number",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Health_Insurance_Number"
+ }
+ },
+ {
+ "column_name": "marital_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "marital_status"
+ }
+ },
+ {
+ "column_name": "type_of_disability",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "type_of_disability"
+ }
+ },
+ {
+ "column_name": "disabilities",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "disabilities"
+ }
+ },
+ {
+ "column_name": "service_provider",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "service_provider"
+ }
+ },
+ {
+ "column_name": "leader",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Community_Leader"
+ }
+ },
+ {
+ "column_name": "leader_other",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Other_Community_Leader_Type_Name"
+ }
+ },
+ {
+ "column_name": "reasons_for_registration",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Registration_Reason"
+ }
+ },
+ {
+ "column_name": "has_primary_caregiver",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "Has_Primary_Caregiver"
+ }
+ },
+ {
+ "column_name": "primary_caregiver_name",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "Primary_Caregiver_Name"
+ }
+ },
+ {
+ "column_name": "entity_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "entityType"
+ }
+ },
+ {
+ "column_name": "data_source",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "data_source"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "date_removed",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.dateRemoved"
+ }
+ },
+ {
+ "column_name": "sync_location_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "locationId"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_child",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "unique_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "identifiers.opensrp_id"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "relationships.family"
+ }
+ },
+ {
+ "column_name": "mother_entity_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "relationships.mother"
+ }
+ },
+ {
+ "column_name": "entry_point",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "entry_point"
+ }
+ },
+ {
+ "column_name": "first_name",
+ "type": "Client",
+ "json_mapping": {
+ "field": "firstName"
+ }
+ },
+ {
+ "column_name": "middle_name",
+ "type": "Client",
+ "json_mapping": {
+ "field": "middleName"
+ }
+ },
+ {
+ "column_name": "last_name",
+ "type": "Client",
+ "json_mapping": {
+ "field": "lastName"
+ }
+ },
+ {
+ "column_name": "dob",
+ "type": "Client",
+ "json_mapping": {
+ "field": "birthdate"
+ }
+ },
+ {
+ "column_name": "dod",
+ "type": "Client",
+ "json_mapping": {
+ "field": "deathdate"
+ }
+ },
+ {
+ "column_name": "dob_unknown",
+ "type": "Client",
+ "json_mapping": {
+ "field": "birthdateApprox"
+ }
+ },
+ {
+ "column_name": "gender",
+ "type": "Client",
+ "json_mapping": {
+ "field": "gender"
+ }
+ },
+ {
+ "column_name": "early_bf_1hr",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "early_bf_1hr"
+ }
+ },
+ {
+ "column_name": "physically_challenged",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "disabilities"
+ }
+ },
+ {
+ "column_name": "type_of_disability",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "type_of_disability"
+ }
+ },
+ {
+ "column_name": "birth_cert",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "birth_cert_available"
+ }
+ },
+ {
+ "column_name": "rhc_card",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "rhc_card"
+ }
+ },
+ {
+ "column_name": "nutrition_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "nutrition_status"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "last_home_visit",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "last_home_visit"
+ }
+ },
+ {
+ "column_name": "visit_not_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "visit_not_done"
+ }
+ },
+ {
+ "column_name": "date_removed",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.dateRemoved"
+ }
+ },
+ {
+ "column_name": "date_created",
+ "type": "Client",
+ "json_mapping": {
+ "field": "dateCreated"
+ }
+ },
+ {
+ "column_name": "birth_cert_issue_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "164129AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "birth_cert_num",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "birth_regist_number"
+ }
+ },
+ {
+ "column_name": "birth_notification",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "birth_notification"
+ }
+ },
+ {
+ "column_name": "date_of_illness",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1730AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "illness_description",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1390AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "action_taken",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "vaccine_card",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "vaccine_card"
+ }
+ },
+ {
+ "column_name": "insurance_provider",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.insurance_provider"
+ }
+ },
+ {
+ "column_name": "insurance_provider_other",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Other_Health_Insurance_Type"
+ }
+ },
+ {
+ "column_name": "insurance_provider_number",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.Health_Insurance_Number"
+ }
+ },
+ {
+ "column_name": "child_bcg_vaccination",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "child_bcg_vaccination"
+ }
+ },
+ {
+ "column_name": "child_opv0_vaccination",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "child_opv0_vaccination"
+ }
+ },
+ {
+ "column_name": "child_hepatitis_b_vaccination",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "child_hepatitis_b_vaccination"
+ }
+ },
+ {
+ "column_name": "child_vitamin_k_injection",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "child_vitamin_k_injection"
+ }
+ },
+ {
+ "column_name": "weight",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "weight"
+ }
+ },
+ {
+ "column_name": "head_circumference",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "head_circumference"
+ }
+ },
+ {
+ "column_name": "kangaroo_enrollment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "kangaroo_enrollment"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_child_activity",
+ "columns": [
+ {
+ "column_name": "event_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "eventId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "relationships.family"
+ }
+ },
+ {
+ "column_name": "form_submission_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Client",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "event_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "eventType"
+ }
+ },
+ {
+ "column_name": "last_home_visit",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "last_home_visit"
+ }
+ },
+ {
+ "column_name": "visit_not_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "visit_not_done"
+ }
+ },
+ {
+ "column_name": "event_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "eventDate"
+ }
+ },
+ {
+ "column_name": "date_removed",
+ "type": "Client",
+ "json_mapping": {
+ "field": "attributes.dateRemoved"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_anc_register",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "confirmation_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "pregnancy_confirmation_status"
+ }
+ },
+ {
+ "column_name": "confirmation_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "pregnancy_confirmation_date"
+ }
+ },
+ {
+ "column_name": "known_on_art",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "known_on_art"
+ }
+ },
+ {
+ "column_name": "ctc_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "ctc_number"
+ }
+ },
+ {
+ "column_name": "task_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "task_id"
+ }
+ },
+ {
+ "column_name": "last_menstrual_period",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "last_menstrual_period"
+ }
+ },
+ {
+ "column_name": "gest_age",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "gest_age"
+ }
+ },
+ {
+ "column_name": "edd",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "edd"
+ }
+ },
+ {
+ "column_name": "no_prev_preg",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "no_prev_preg"
+ }
+ },
+ {
+ "column_name": "parity",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "parity"
+ }
+ },
+ {
+ "column_name": "gravida",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "gravida"
+ }
+ },
+ {
+ "column_name": "fundal_height",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "fundal_height"
+ }
+ },
+ {
+ "column_name": "no_surv_children",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "no_surv_children"
+ }
+ },
+ {
+ "column_name": "phone_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "phone_number"
+ }
+ },
+ {
+ "column_name": "marital_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "marital_status"
+ }
+ },
+ {
+ "column_name": "medical_surgical_history",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "medical_surgical_history"
+ }
+ },
+ {
+ "column_name": "other_medical_surgical_history",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_medical_surgical_history"
+ }
+ },
+ {
+ "column_name": "blood_group",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "blood_group"
+ }
+ },
+ {
+ "column_name": "rh_factor",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "rh_factor"
+ }
+ },
+ {
+ "column_name": "tb_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "tb_status"
+ }
+ },
+ {
+ "column_name": "tt_vaccination_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "tt_vaccination_type"
+ }
+ },
+ {
+ "column_name": "partner_base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_base_entity_id"
+ }
+ },
+ {
+ "column_name": "partner_hiv",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_hiv"
+ }
+ },
+ {
+ "column_name": "reason_for_not_conducting_partner_hiv_test",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "reason_for_not_conducting_partner_hiv_test"
+ }
+ },
+ {
+ "column_name": "partner_hiv_test_at_32",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_hiv_test_at_32"
+ }
+ },
+ {
+ "column_name": "partner_hiv_test_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_hiv_test_number"
+ }
+ },
+ {
+ "column_name": "partner_syphilis",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_syphilis"
+ }
+ },
+ {
+ "column_name": "partner_syphilis_treatment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_syphilis_treatment"
+ }
+ },
+ {
+ "column_name": "partner_hepatitis",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_hepatitis"
+ }
+ },
+ {
+ "column_name": "partner_other_stds",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_other_stds"
+ }
+ },
+ {
+ "column_name": "partner_other_stds_treatment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_other_stds_treatment"
+ }
+ },
+ {
+ "column_name": "last_home_visit",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "anc_visit_date"
+ }
+ },
+ {
+ "column_name": "visit_not_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "anc_visit_not_done_date"
+ }
+ },
+ {
+ "column_name": "couple_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "couple_testing"
+ }
+ },
+ {
+ "column_name": "name_of_hf",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "name_of_hf"
+ }
+ },
+ {
+ "column_name": "hiv",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv"
+ }
+ },
+ {
+ "column_name": "syphilis",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "syphilis"
+ }
+ },
+ {
+ "column_name": "mRDT_for_malaria",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "mRDT_for_malaria"
+ }
+ },
+ {
+ "column_name": "llin_provision",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "llin_provision"
+ }
+ },
+ {
+ "column_name": "syphilis_treatment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "syphilis_treatment"
+ }
+ },
+ {
+ "column_name": "hepatitis",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hepatitis"
+ }
+ },
+ {
+ "column_name": "height",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "height"
+ }
+ },
+ {
+ "column_name": "date_anc_hiv_test",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "date_anc_hiv_test"
+ }
+ },
+ {
+ "column_name": "hiv_test_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_test_number"
+ }
+ },
+ {
+ "column_name": "hiv_test_at_32",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_test_at_32"
+ }
+ },
+ {
+ "column_name": "malaria_preventive_therapy",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "malaria_preventive_therapy"
+ }
+ },
+ {
+ "column_name": "mRDT_for_malaria",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "mRDT_for_malaria"
+ }
+ },
+ {
+ "column_name": "malaria_preventive_therapy_ipt1",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "malaria_preventive_therapy_ipt1"
+ }
+ },
+ {
+ "column_name": "malaria_preventive_therapy_ipt2",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "malaria_preventive_therapy_ipt2"
+ }
+ },
+ {
+ "column_name": "malaria_preventive_therapy_ipt3",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "malaria_preventive_therapy_ipt3"
+ }
+ },
+ {
+ "column_name": "malaria_preventive_therapy_ipt4",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "malaria_preventive_therapy_ipt4"
+ }
+ },
+ {
+ "column_name": "confirmed_visits",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "confirmed_visits"
+ }
+ },
+ {
+ "column_name": "tb_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "tb_status"
+ }
+ },
+ {
+ "column_name": "other_stds",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_stds"
+ }
+ },
+ {
+ "column_name": "other_stds_treatment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_stds_treatment"
+ }
+ },
+ {
+ "column_name": "is_transfer_in",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "is_transfer_in"
+ }
+ },
+ {
+ "column_name": "visit_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "visit_number"
+ }
+ },
+ {
+ "column_name": "next_facility_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "next_facility_visit_date"
+ }
+ },
+ {
+ "column_name": "last_contact_visit",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "anc_visit_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_anc_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "gest_age",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "gest_age"
+ }
+ },
+ {
+ "column_name": "hb_level",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hb_level"
+ }
+ },
+ {
+ "column_name": "systolic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "systolic"
+ }
+ },
+ {
+ "column_name": "diastolic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "diastolic"
+ }
+ },
+ {
+ "column_name": "tb_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "tb_status"
+ }
+ },
+ {
+ "column_name": "other_stds",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_stds"
+ }
+ },
+ {
+ "column_name": "other_stds_treatment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_stds_treatment"
+ }
+ },
+ {
+ "column_name": "partner_other_stds",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_other_stds"
+ }
+ },
+ {
+ "column_name": "partner_other_stds_treatment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_other_stds_treatment"
+ }
+ },
+ {
+ "column_name": "protein_in_urine",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "protein_in_urine"
+ }
+ },
+ {
+ "column_name": "glucose_in_urine",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "glucose_in_urine"
+ }
+ },
+ {
+ "column_name": "hiv",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv"
+ }
+ },
+ {
+ "column_name": "hiv_test_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_test_number"
+ }
+ },
+ {
+ "column_name": "hiv_test_at_32",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_test_at_32"
+ }
+ },
+ {
+ "column_name": "partner_hiv",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_hiv"
+ }
+ },
+ {
+ "column_name": "partner_hiv_test_at_32",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_hiv_test_at_32"
+ }
+ },
+ {
+ "column_name": "partner_hiv_test_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_hiv_test_number"
+ }
+ },
+ {
+ "column_name": "hiv_counselling_before_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_counselling_before_testing"
+ }
+ },
+ {
+ "column_name": "hiv_counselling_after_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_counselling_after_testing"
+ }
+ },
+ {
+ "column_name": "couple_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "couple_testing"
+ }
+ },
+ {
+ "column_name": "mRDT_for_malaria",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "mRDT_for_malaria"
+ }
+ },
+ {
+ "column_name": "llin_provision",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "llin_provision"
+ }
+ },
+ {
+ "column_name": "malaria_preventive_therapy",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "malaria_preventive_therapy"
+ }
+ },
+ {
+ "column_name": "malaria_preventive_therapy_ipt1",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "malaria_preventive_therapy_ipt1"
+ }
+ },
+ {
+ "column_name": "malaria_preventive_therapy_ipt2",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "malaria_preventive_therapy_ipt2"
+ }
+ },
+ {
+ "column_name": "malaria_preventive_therapy_ipt3",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "malaria_preventive_therapy_ipt3"
+ }
+ },
+ {
+ "column_name": "malaria_preventive_therapy_ipt4",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "malaria_preventive_therapy_ipt4"
+ }
+ },
+ {
+ "column_name": "iron_folate_supplements",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "iron_folate_supplements"
+ }
+ },
+ {
+ "column_name": "tt_vaccination_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "tt_vaccination_type"
+ }
+ },
+ {
+ "column_name": "syphilis",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "syphilis"
+ }
+ },
+ {
+ "column_name": "syphilis_treatment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "syphilis_treatment"
+ }
+ },
+ {
+ "column_name": "partner_syphilis",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_syphilis"
+ }
+ },
+ {
+ "column_name": "partner_syphilis_treatment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_syphilis_treatment"
+ }
+ },
+ {
+ "column_name": "deworming",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "deworming"
+ }
+ },
+ {
+ "column_name": "given_counselling",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "given_counselling"
+ }
+ },
+ {
+ "column_name": "visit_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "visit_number"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_anc_birth_emergency_plan",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "visit_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "visit_number"
+ }
+ },
+ {
+ "column_name": "delivery_place",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "delivery_place"
+ }
+ },
+ {
+ "column_name": "name_of_hf",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "name_of_hf"
+ }
+ },
+ {
+ "column_name": "transport",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "transport"
+ }
+ },
+ {
+ "column_name": "birth_companion",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "birth_companion"
+ }
+ },
+ {
+ "column_name": "emergency_funds",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "emergency_funds"
+ }
+ },
+ {
+ "column_name": "household_support",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "household_support"
+ }
+ },
+ {
+ "column_name": "blood_donor",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "blood_donor"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_anc_pregnancy_lookup",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "pregnancy_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "pregnancy_number"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_anc_log",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "date_created",
+ "type": "Event",
+ "json_mapping": {
+ "field": "eventDate"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_malaria_confirmation",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "date_chw_malaria_test",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "162869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "fever_malaria_chw",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "fever_malaria_chw"
+ }
+ },
+ {
+ "column_name": "fever_duration",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1731AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "malaria_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "date_hf_malaria_test",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "date_hf_malaria_test"
+ }
+ },
+ {
+ "column_name": "malaria_test_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "163724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "malaria",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "163725AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "malaria_treat",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "malaria_treat"
+ }
+ },
+ {
+ "column_name": "fam_llin",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "fam_llin"
+ }
+ },
+ {
+ "column_name": "llin_2days",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "llin_2days"
+ }
+ },
+ {
+ "column_name": "llin_condition",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "llin_condition"
+ }
+ },
+ {
+ "column_name": "malaria_edu_chw",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1379AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_family_planning",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "client_used_fp_before",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "client_used_fp_before"
+ }
+ },
+ {
+ "column_name": "fp_registration_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "fp_registration_number"
+ }
+ },
+ {
+ "column_name": "client_category_after_screening",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "client_category_after_screening"
+ }
+ },
+ {
+ "column_name": "client_agreed_on_fp_choice",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "client_agreed_on_fp_choice"
+ }
+ },
+ {
+ "column_name": "selected_fp_method_after_counseling",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "selected_fp_method_after_counseling"
+ }
+ },
+ {
+ "column_name": "provided_fp_method",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "provided_fp_method"
+ }
+ },
+ {
+ "column_name": "followup_outcome",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "followup_outcome"
+ }
+ },
+ {
+ "column_name": "next_appointment_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "next_appointment_date"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_pregnancy_outcome",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "preg_outcome",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "preg_outcome"
+ }
+ },
+ {
+ "column_name": "miscarriage_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "miscarriage_date"
+ }
+ },
+ {
+ "column_name": "delivery_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "delivery_date"
+ }
+ },
+ {
+ "column_name": "delivery_place",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "delivery_place"
+ }
+ },
+ {
+ "column_name": "last_visit_date",
+ "type": "Event",
+ "data_type": "date",
+ "source_format": "dd-MM-yyyy",
+ "save_format": "yyyy-MM-dd",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "last_visit_date"
+ }
+ },
+ {
+ "column_name": "next_visit_date",
+ "type": "Event",
+ "data_type": "date",
+ "source_format": "dd-MM-yyyy",
+ "save_format": "yyyy-MM-dd",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "next_visit_date"
+ }
+ },
+ {
+ "column_name": "next_facility_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "next_facility_visit_date"
+ }
+ },
+ {
+ "column_name": "last_health_facility_visit_date",
+ "type": "Event",
+ "data_type": "date",
+ "source_format": "dd-MM-yyyy",
+ "save_format": "yyyy-MM-dd",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "last_health_facility_visit_date"
+ }
+ },
+ {
+ "column_name": "confirmed_health_facility_visits",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "confirmed_health_facility_visits"
+ }
+ },
+ {
+ "column_name": "hiv",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv"
+ }
+ },
+ {
+ "column_name": "hiv_status_question",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_status_question"
+ }
+ },
+ {
+ "column_name": "hepatitis_b_vaccination",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hepatitis_b_vaccination"
+ }
+ },
+ {
+ "column_name": "tetanus_vaccination",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "tetanus_vaccination"
+ }
+ },
+ {
+ "column_name": "sex_of_the_deceased_child",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "sex_of_the_deceased_child"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_no_mother_pnc",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "caregiver_name",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "caregiver_name"
+ }
+ },
+ {
+ "column_name": "caregiver_phone_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "caregiver_phone_number"
+ }
+ },
+ {
+ "column_name": "caregiver_location",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "caregiver_location"
+ }
+ },
+ {
+ "column_name": "dob",
+ "type": "Client",
+ "json_mapping": {
+ "field": "birthdate"
+ }
+ },
+ {
+ "column_name": "delivery_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "delivery_date"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_pnc_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "followup_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "followup_visit_date"
+ }
+ },
+ {
+ "column_name": "visit_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "visit_number"
+ }
+ },
+ {
+ "column_name": "hb_level",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hb_level"
+ }
+ },
+ {
+ "column_name": "puerperal_psychosis",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "puerperal_psychosis"
+ }
+ },
+ {
+ "column_name": "mental_illness_symptom",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "mental_illness_symptom"
+ }
+ },
+ {
+ "column_name": "iron_and_folic_acid",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "iron_and_folic_acid"
+ }
+ },
+ {
+ "column_name": "vitamin_a",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "vitamin_a"
+ }
+ },
+ {
+ "column_name": "perineum_infection",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "perineum_infection"
+ }
+ },
+ {
+ "column_name": "fistula",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "fistula"
+ }
+ },
+ {
+ "column_name": "education_counselling_given",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "education_counselling_given"
+ }
+ },
+ {
+ "column_name": "method_provided",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "method_provided"
+ }
+ },
+ {
+ "column_name": "hiv",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_pnc_child_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "followup_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "followup_visit_date"
+ }
+ },
+ {
+ "column_name": "child_activeness",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "child_activeness"
+ }
+ },
+ {
+ "column_name": "hb_level",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hb_level"
+ }
+ },
+ {
+ "column_name": "feeding_options",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "feeding_options"
+ }
+ },
+ {
+ "column_name": "umbilical_cord",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "umbilical_cord"
+ }
+ },
+ {
+ "column_name": "kangaroo_enrollment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "kangaroo_enrollment"
+ }
+ },
+ {
+ "column_name": "child_bcg_vaccination",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "child_bcg_vaccination"
+ }
+ },
+ {
+ "column_name": "child_opv0_vaccination",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "child_opv0_vaccination"
+ }
+ },
+ {
+ "column_name": "septicaemia",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "septicaemia"
+ }
+ },
+ {
+ "column_name": "weight",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "weight"
+ }
+ },
+ {
+ "column_name": "jaundice",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "jaundice"
+ }
+ },
+ {
+ "column_name": "skin_infection",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "skin_infection"
+ }
+ },
+ {
+ "column_name": "hiv_antibody_test",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_antibody_test"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_malaria_follow_up_visit",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "date_chw_mfollowup",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "date_chw_mfollowup"
+ }
+ },
+ {
+ "column_name": "hf_chw_mfollowup",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hf_chw_mfollowup"
+ }
+ },
+ {
+ "column_name": "treat_given_chw_mfollowup",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "treat_given_chw_mfollowup"
+ }
+ },
+ {
+ "column_name": "reason_no_treat",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "reason_no_treat"
+ }
+ },
+ {
+ "column_name": "fever_still",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "fever_still"
+ }
+ },
+ {
+ "column_name": "fever_duration",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "fever_duration"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_child_referral",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "chw_referral_hf_child",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1759AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "referral_problem_child",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "163182AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "referral_problem_child_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "service_before_child",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "service_before_child_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "referral_date_child",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "referral_time_child",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "referral_task_previous_status"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_anc_referral",
+ "columns": [
+ {
+ "column_name": "chw_referral_hf_anc",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1759AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "problem_hf_anc",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "problem"
+ }
+ },
+ {
+ "column_name": "problem_hf_anc_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "problem_other"
+ }
+ },
+ {
+ "column_name": "service_before_anc",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "service_before_referral"
+ }
+ },
+ {
+ "column_name": "service_before_anc_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "service_before_referral_other"
+ }
+ },
+ {
+ "column_name": "referral_date_anc",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "referral_appointment_date"
+ }
+ },
+ {
+ "column_name": "referral_time_anc",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "referral_task_previous_status"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_pnc_referral",
+ "columns": [
+ {
+ "column_name": "chw_referral_hf_pnc",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1759AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "problem_hf_pnc",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "163182AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "problem_hf_pnc_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "service_before_pnc",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "service_before_pnc_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "referral_date_pnc",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "referral_time_pnc",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "referral_task_previous_status"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_fp_referral",
+ "columns": [
+ {
+ "column_name": "fp_method_accepted_referral",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "374AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "fp_side_effects",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "165273AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "fp_side_effects_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "referral_date_fp",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "referral_time_fp",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "referral_task_previous_status"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_referral",
+ "columns": [
+ {
+ "column_name": "chw_referral_service",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "chw_referral_service"
+ }
+ },
+ {
+ "column_name": "chw_referral_hf",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "chw_referral_hf"
+ }
+ },
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "problem",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "problem"
+ }
+ },
+ {
+ "column_name": "problem_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "problem_other"
+ }
+ },
+ {
+ "column_name": "service_before_referral",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "service_before_referral"
+ }
+ },
+ {
+ "column_name": "service_before_referral_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "service_before_referral_other"
+ }
+ },
+ {
+ "column_name": "referral_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referral_date"
+ }
+ },
+ {
+ "column_name": "referral_time",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "formSubmissionField": "referral_time"
+ }
+ },
+ {
+ "column_name": "referral_appointment_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referral_appointment_date"
+ }
+ },
+ {
+ "column_name": "referral_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referral_type"
+ }
+ },
+ {
+ "column_name": "referral_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referral_status"
+ }
+ },
+ {
+ "column_name": "on_art",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "on_art"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_referral_followup",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "chw_followup_feedback_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "chw_followup_feedback_id"
+ }
+ },
+ {
+ "column_name": "other_followup_feedback_information",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_followup_feedback_information"
+ }
+ },
+ {
+ "column_name": "chw_followup_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "chw_followup_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_referral_service",
+ "columns": [
+ {
+ "column_name": "name_en",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode"
+ }
+ },
+ {
+ "column_name": "name_sw",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode"
+ }
+ },
+ {
+ "column_name": "identifier",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode"
+ }
+ },
+ {
+ "column_name": "is_active",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_ltfu_feedback",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "referral_task_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referral_task"
+ }
+ },
+ {
+ "column_name": "followup_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "followup_status"
+ }
+ },
+ {
+ "column_name": "reasons_for_missed_appointment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "reasons_for_missed_appointment"
+ }
+ },
+ {
+ "column_name": "referral_appointment_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referral_appointment_date"
+ }
+ },
+ {
+ "column_name": "last_appointment_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "last_appointment_date"
+ }
+ },
+ {
+ "column_name": "date_of_death",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "date_of_death"
+ }
+ },
+ {
+ "column_name": "reason_client_not_found",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "reason_client_not_found"
+ }
+ },
+ {
+ "column_name": "feedback_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referral_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_referral_service_indicator",
+ "columns": [
+ {
+ "column_name": "name_en",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode"
+ }
+ },
+ {
+ "column_name": "name_sw",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode"
+ }
+ },
+ {
+ "column_name": "is_active",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_sick_child_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "date_sickchild"
+ }
+ },
+ {
+ "column_name": "weight",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "height",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "has_diarrhea",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "142412AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "diarrhea_duration",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "5984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "dehydration_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1497AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "other_symptoms",
+ "type": "Event",
+ "save_format": "json_array",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_sympt_sick_child"
+ }
+ },
+ {
+ "column_name": "test_ordered",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "other_test_ordered",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "test_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "161577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "diagnosis",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "161602AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "diarrhea_treatment",
+ "type": "Event",
+ "save_format": "json_array",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "diarrhea_treat"
+ }
+ },
+ {
+ "column_name": "amount_of_ors",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "diarrhea_treat_ors"
+ }
+ },
+ {
+ "column_name": "amount_rehydration_infusion",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "diarrhea_treat_rehydration"
+ }
+ },
+ {
+ "column_name": "amount_zinc",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "diarrhea_treat_zinc"
+ }
+ },
+ {
+ "column_name": "drugs_taken_home",
+ "type": "Event",
+ "save_format": "json_array",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "diarrhea_treat_walkaway"
+ }
+ },
+ {
+ "column_name": "non_diarrhea_treatment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "dtc_period",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "1785AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "date_marked_as_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "date_marked_as_done"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_anc_danger_signs_outcome",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "anc_danger_signs_visitdate"
+ }
+ },
+ {
+ "column_name": "danger_signs_present",
+ "type": "Event",
+ "save_format": "json_array",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "danger_signs_present"
+ }
+ },
+ {
+ "column_name": "other_danger_signs",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_anc_danger_signs"
+ }
+ },
+ {
+ "column_name": "action_taken",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "action_taken_anc_danger_signs"
+ }
+ },
+ {
+ "column_name": "status_visit",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "status_visit"
+ }
+ },
+ {
+ "column_name": "managed_signs",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "managed_signs"
+ }
+ },
+ {
+ "column_name": "comment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "comment_anc_danger_signs"
+ }
+ },
+ {
+ "column_name": "date_marked_as_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "date_marked_as_done"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_pnc_danger_signs_outcome",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "pnc_danger_signs_visitdate"
+ }
+ },
+ {
+ "column_name": "danger_signs_present",
+ "type": "Event",
+ "save_format": "json_array",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "danger_signs_present"
+ }
+ },
+ {
+ "column_name": "other_danger_signs",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ },
+ {
+ "column_name": "action_taken",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "action_taken_pnc_danger_signs"
+ }
+ },
+ {
+ "column_name": "status_visit",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "status_visit"
+ }
+ },
+ {
+ "column_name": "managed_signs",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "managed_signs"
+ }
+ },
+ {
+ "column_name": "comment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "comment_pnc_danger_signs"
+ }
+ },
+ {
+ "column_name": "date_marked_as_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "date_marked_as_done"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_malaria_followup_hf",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "date_malaria_visit_hf"
+ }
+ },
+ {
+ "column_name": "weight",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "weight_malaria_hf"
+ }
+ },
+ {
+ "column_name": "height",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "height_malaria_hf"
+ }
+ },
+ {
+ "column_name": "tests_ordered",
+ "type": "Event",
+ "save_format": "json_array",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "test_malaria_hf"
+ }
+ },
+ {
+ "column_name": "no_mrdt_reason",
+ "type": "Event",
+ "save_format": "json_array",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "no_mrdt_malaria_hf"
+ }
+ },
+ {
+ "column_name": "other_tests",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_test_malaria_hf"
+ }
+ },
+ {
+ "column_name": "test_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "test_results_malaria_hf"
+ }
+ },
+ {
+ "column_name": "other_test_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_test_results_malaria_hf"
+ }
+ },
+ {
+ "column_name": "diagnosis",
+ "type": "Event",
+ "save_format": "json_array",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "diagnosis_malaria_hf"
+ }
+ },
+ {
+ "column_name": "other_diagnosis",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_diagnosis_malaria_hf"
+ }
+ },
+ {
+ "column_name": "treatment_prescribed",
+ "type": "Event",
+ "save_format": "json_array",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "treat_malaria_hf"
+ }
+ },
+ {
+ "column_name": "other_treatment_prescribed",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "treat_other_malaria_hf"
+ }
+ },
+ {
+ "column_name": "outcomes",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "outcome_malaria_hf"
+ }
+ },
+ {
+ "column_name": "remarks",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "remark_malaria_hf"
+ }
+ },
+ {
+ "column_name": "hcp_attending",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hcp_attending"
+ }
+ },
+ {
+ "column_name": "date_marked_as_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "date_marked_as_done"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_family_planning_update",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "fp_method_accepted",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "fp_method_accepted"
+ }
+ },
+ {
+ "column_name": "fp_reg_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "fp_reg_date"
+ }
+ },
+ {
+ "column_name": "fp_reg_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "fp_change_or_stop_date"
+ }
+ },
+ {
+ "column_name": "date_marked_as_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "date_marked_as_done"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hiv_register",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "ctc_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "ctc_number"
+ }
+ },
+ {
+ "column_name": "cbhs_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cbhs_number"
+ }
+ },
+ {
+ "column_name": "client_hiv_status_during_registration",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_hiv_status_during_registration"
+ }
+ },
+ {
+ "column_name": "client_hiv_status_after_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "test_results"
+ }
+ },
+ {
+ "column_name": "hiv_registration_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_registration_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hts_register",
+ "columns": [
+ {
+ "column_name": "chw_referral_service",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "chw_referral_service"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "ctc_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "ctc_number"
+ }
+ },
+ {
+ "column_name": "cbhs_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cbhs_number"
+ }
+ },
+ {
+ "column_name": "client_hiv_status_during_registration",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_hiv_status_during_registration"
+ }
+ },
+ {
+ "column_name": "client_hiv_status_after_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "test_results"
+ }
+ },
+ {
+ "column_name": "hiv_registration_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_registration_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hiv_outcome",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "action_taken_hiv_problems",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "action_taken_hiv_problems"
+ }
+ },
+ {
+ "column_name": "test_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "test_results"
+ }
+ },
+ {
+ "column_name": "hiv_facility_visit_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_facility_visit_date"
+ }
+ },
+ {
+ "column_name": "enrolled_to_clinic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "formSubmissionField": "enrolled_to_clinic"
+ }
+ },
+ {
+ "column_name": "ctc_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "ctc_number"
+ }
+ },
+ {
+ "column_name": "comment_hiv_problems",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "comment_hiv_problems"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hiv_community_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "reasons_for_issuing_community_referral",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "reasons_for_issuing_community_referral"
+ }
+ },
+ {
+ "column_name": "reason_for_issuing_community_referral_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "reason_for_issuing_community_referral_other"
+ }
+ },
+ {
+ "column_name": "last_client_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "last_client_visit_date"
+ }
+ },
+ {
+ "column_name": "comment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "comment_hiv_community_followup"
+ }
+ },
+ {
+ "column_name": "hiv_community_referral_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_community_referral_date"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_tb_register",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "community_client_tb_registration_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "community_client_tb_registration_number"
+ }
+ },
+ {
+ "column_name": "client_tb_status_during_registration",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_tb_status_during_registration"
+ }
+ },
+ {
+ "column_name": "client_tb_status_after_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "test_results"
+ }
+ },
+ {
+ "column_name": "place_of_domicile",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "place_of_domicile"
+ }
+ },
+ {
+ "column_name": "client_tb_screening_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_tb_screening_results"
+ }
+ },
+ {
+ "column_name": "tb_registration_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "tb_registration_date"
+ }
+ },
+ {
+ "column_name": "tb_case_closure_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "tb_case_closure_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_tb_outcome",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "problem",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "problem"
+ }
+ },
+ {
+ "column_name": "problem_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "problem_other"
+ }
+ },
+ {
+ "column_name": "action_taken_tb_problems",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "action_taken_tb_problems"
+ }
+ },
+ {
+ "column_name": "test_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "test_results"
+ }
+ },
+ {
+ "column_name": "tb_facility_visit_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "tb_facility_visit_date"
+ }
+ },
+ {
+ "column_name": "enrolled_to_clinic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "formSubmissionField": "enrolled_to_clinic"
+ }
+ },
+ {
+ "column_name": "tb_clinic_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "tb_clinic_number"
+ }
+ },
+ {
+ "column_name": "comment_tb_problems",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "comment_tb_problems"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_tb_community_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "reasons_for_issuing_community_referral",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "reasons_for_issuing_community_referral"
+ }
+ },
+ {
+ "column_name": "reason_for_issuing_community_referral_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "reason_for_issuing_community_referral_other"
+ }
+ },
+ {
+ "column_name": "last_client_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "last_client_visit_date"
+ }
+ },
+ {
+ "column_name": "comment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "comment_tb_community_followup"
+ }
+ },
+ {
+ "column_name": "tb_community_referral_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "tb_community_referral_date"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hiv_community_feedback",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "hiv_community_followup_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_community_followup_visit_date"
+ }
+ },
+ {
+ "column_name": "followup_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "followup_status"
+ }
+ },
+ {
+ "column_name": "community_referral_form_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "community_referral_form_id"
+ }
+ },
+ {
+ "column_name": "chw_name",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "chw_name"
+ }
+ },
+ {
+ "column_name": "mark_as_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "mark_as_done"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_pmtct_community_feedback",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "pmtct_community_followup_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "pmtct_community_followup_visit_date"
+ }
+ },
+ {
+ "column_name": "followup_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "followup_status"
+ }
+ },
+ {
+ "column_name": "community_referral_form_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "community_referral_form_id"
+ }
+ },
+ {
+ "column_name": "provider_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "providerId"
+ }
+ },
+ {
+ "column_name": "chw_name",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "chw_name"
+ }
+ },
+ {
+ "column_name": "mark_as_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "mark_as_done"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hiv_index_chw_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "followed_by_chw",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_followed_up_by_chw"
+ }
+ },
+ {
+ "column_name": "agreed_to_be_tested",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "has_the_client_agreed_to_be_tested"
+ }
+ },
+ {
+ "column_name": "client_found",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "has_the_contact_client_been_found"
+ }
+ },
+ {
+ "column_name": "test_location",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "place_where_test_will_be_conducted"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_tb_community_feedback",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "tb_community_followup_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "tb_community_followup_visit_date"
+ }
+ },
+ {
+ "column_name": "followup_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "followup_status"
+ }
+ },
+ {
+ "column_name": "community_referral_form_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "community_referral_form_id"
+ }
+ },
+ {
+ "column_name": "chw_name",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "chw_name"
+ }
+ },
+ {
+ "column_name": "mark_as_done",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "mark_as_done"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hiv_index_hf",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "hiv_client_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "index_client_base_entity_id"
+ }
+ },
+ {
+ "column_name": "relationship",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "relationship"
+ }
+ },
+ {
+ "column_name": "hiv_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_status"
+ }
+ },
+ {
+ "column_name": "has_started_medication",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "has_started_medication"
+ }
+ },
+ {
+ "column_name": "hiv_test_eligibility",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_test_eligibility"
+ }
+ },
+ {
+ "column_name": "how_to_notify_the_contact_client",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "how_to_notify_the_contact_client"
+ }
+ },
+ {
+ "column_name": "has_the_contact_client_been_tested",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "has_the_contact_client_been_tested"
+ }
+ },
+ {
+ "column_name": "test_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "test_results"
+ }
+ },
+ {
+ "column_name": "place_where_test_was_conducted",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "place_where_test_was_conducted"
+ }
+ },
+ {
+ "column_name": "enrolled_to_clinic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "enrolled_to_clinic"
+ }
+ },
+ {
+ "column_name": "ctc_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "ctc_number"
+ }
+ },
+ {
+ "column_name": "refer_to_chw",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "refer_to_chw"
+ }
+ },
+ {
+ "column_name": "hiv_index_contact_community_followup_referral_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_index_contact_community_followup_referral_date"
+ }
+ },
+ {
+ "column_name": "client_followed_up_by_chw",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_followed_up_by_chw"
+ }
+ },
+ {
+ "column_name": "comment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "comment"
+ }
+ },
+ {
+ "column_name": "hiv_index_registration_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "eventDate"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hiv_index",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "hiv_client_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "index_client_base_entity_id"
+ }
+ },
+ {
+ "column_name": "relationship",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "relationship"
+ }
+ },
+ {
+ "column_name": "hiv_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_status"
+ }
+ },
+ {
+ "column_name": "has_started_medication",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "has_started_medication"
+ }
+ },
+ {
+ "column_name": "hiv_test_eligibility",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_test_eligibility"
+ }
+ },
+ {
+ "column_name": "how_to_notify_the_contact_client",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "how_to_notify_the_contact_client"
+ }
+ },
+ {
+ "column_name": "has_the_contact_client_been_tested",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "has_the_contact_client_been_tested"
+ }
+ },
+ {
+ "column_name": "test_results",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "test_results"
+ }
+ },
+ {
+ "column_name": "place_where_test_was_conducted",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "place_where_test_was_conducted"
+ }
+ },
+ {
+ "column_name": "enrolled_to_clinic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "enrolled_to_clinic"
+ }
+ },
+ {
+ "column_name": "ctc_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "ctc_number"
+ }
+ },
+ {
+ "column_name": "refer_to_chw",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "refer_to_chw"
+ }
+ },
+ {
+ "column_name": "hiv_index_contact_community_followup_referral_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_index_contact_community_followup_referral_date"
+ }
+ },
+ {
+ "column_name": "client_followed_up_by_chw",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_followed_up_by_chw"
+ }
+ },
+ {
+ "column_name": "comment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "comment"
+ }
+ },
+ {
+ "column_name": "hiv_index_registration_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "eventDate"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_ld_confirmation",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "labour_confirmation",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "labour_confirmation"
+ }
+ },
+ {
+ "column_name": "reasons_for_admission",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "reasons_for_admission"
+ }
+ },
+ {
+ "column_name": "gravida",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "gravida"
+ }
+ },
+ {
+ "column_name": "para",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "para"
+ }
+ },
+ {
+ "column_name": "anc_hiv_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "anc_hiv_status"
+ }
+ },
+ {
+ "column_name": "membrane",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "membrane"
+ }
+ },
+ {
+ "column_name": "amniotic_fluid",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "amniotic_fluid"
+ }
+ },
+ {
+ "column_name": "hiv",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv"
+ }
+ },
+ {
+ "column_name": "admission_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "admission_date"
+ }
+ },
+ {
+ "column_name": "admission_time",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "admission_time"
+ }
+ },
+ {
+ "column_name": "labour_onset_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "labour_onset_date"
+ }
+ },
+ {
+ "column_name": "labour_onset_time",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "labour_onset_time"
+ }
+ },
+ {
+ "column_name": "moulding",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "moulding"
+ }
+ },
+ {
+ "column_name": "moulding_options",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "moulding_options"
+ }
+ },
+ {
+ "column_name": "cervix_dilation",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cervix_dilation"
+ }
+ },
+ {
+ "column_name": "descent_presenting_part",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "descent_presenting_part"
+ }
+ },
+ {
+ "column_name": "labour_stage",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "labour_stage"
+ }
+ },
+ {
+ "column_name": "mode_of_delivery",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "mode_of_delivery"
+ }
+ },
+ {
+ "column_name": "delivery_mode_reason",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "delivery_mode_reason"
+ }
+ },
+ {
+ "column_name": "pmtct_test_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "pmtct_test_date"
+ }
+ },
+ {
+ "column_name": "hb_test_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hb_test_date"
+ }
+ },
+ {
+ "column_name": "syphilis",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "syphilis"
+ }
+ },
+ {
+ "column_name": "malaria",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "malaria"
+ }
+ },
+ {
+ "column_name": "blood_group",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "blood_group"
+ }
+ },
+ {
+ "column_name": "rh_factor",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "rh_factor"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_ld_follow_up_visit",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_ld_general_examination_consultation",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "form_submission_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "event_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "eventId"
+ }
+ },
+ {
+ "column_name": "event_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "eventDate"
+ }
+ },
+ {
+ "column_name": "pulse_rate",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "pulse_rate"
+ }
+ },
+ {
+ "column_name": "temperature",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "temperature"
+ }
+ },
+ {
+ "column_name": "systolic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "systolic"
+ }
+ },
+ {
+ "column_name": "diastolic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "diastolic"
+ }
+ },
+ {
+ "column_name": "urine",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "urine"
+ }
+ },
+ {
+ "column_name": "fundal_height",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "fundal_height"
+ }
+ },
+ {
+ "column_name": "lie",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "lie"
+ }
+ },
+ {
+ "column_name": "presentation",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "presentation"
+ }
+ },
+ {
+ "column_name": "contraction_in_ten_minutes",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "contraction_in_ten_minutes"
+ }
+ },
+ {
+ "column_name": "fetal_heart_rate",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "fetal_heart_rate"
+ }
+ },
+ {
+ "column_name": "vaginal_exam_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "vaginal_exam_date"
+ }
+ },
+ {
+ "column_name": "vaginal_exam_time",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "vaginal_exam_time"
+ }
+ },
+ {
+ "column_name": "cervix_state",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "cervix_state"
+ }
+ },
+ {
+ "column_name": "cervix_dilation",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "cervix_dilation"
+ }
+ },
+ {
+ "column_name": "presenting_part",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "presenting_part"
+ }
+ },
+ {
+ "column_name": "occiput_position",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "occiput_position"
+ }
+ },
+ {
+ "column_name": "amniotic_fluid",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "amniotic_fluid"
+ }
+ },
+ {
+ "column_name": "hiv",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "hiv"
+ }
+ },
+ {
+ "column_name": "forecasted_svd_time",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "forecasted_svd_time"
+ }
+ },
+ {
+ "column_name": "visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_ld_partograph",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "name_of_the_health_care_provider",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "name_of_the_health_care_provider"
+ }
+ },
+ {
+ "column_name": "partograph_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "partograph_date"
+ }
+ },
+ {
+ "column_name": "partograph_time",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "partograph_time"
+ }
+ },
+ {
+ "column_name": "fetal_heart_rate",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "fetal_heart_rate"
+ }
+ },
+ {
+ "column_name": "moulding",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "moulding"
+ }
+ },
+ {
+ "column_name": "moulding_options",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "moulding_options"
+ }
+ },
+ {
+ "column_name": "membrane",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "membrane"
+ }
+ },
+ {
+ "column_name": "amniotic_fluid",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "amniotic_fluid"
+ }
+ },
+ {
+ "column_name": "cervix_dilation",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "cervix_dilation"
+ }
+ },
+ {
+ "column_name": "descent_presenting_part",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "descent_presenting_part"
+ }
+ },
+ {
+ "column_name": "contraction_every_half_hour_frequency",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "contraction_every_half_hour_frequency"
+ }
+ },
+ {
+ "column_name": "contraction_every_half_hour_time",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "contraction_every_half_hour_time"
+ }
+ },
+ {
+ "column_name": "pulse_rate",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "pulse_rate"
+ }
+ },
+ {
+ "column_name": "temperature",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "temperature"
+ }
+ },
+ {
+ "column_name": "urine_protein",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "urine_protein"
+ }
+ },
+ {
+ "column_name": "urine_acetone",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "urine_acetone"
+ }
+ },
+ {
+ "column_name": "urine_volume",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "urine_volume"
+ }
+ },
+ {
+ "column_name": "oral_intake",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "oral_intake"
+ }
+ },
+ {
+ "column_name": "moulding_options",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "moulding_options"
+ }
+ },
+ {
+ "column_name": "caput",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "caput"
+ }
+ },
+ {
+ "column_name": "amniotic_fluid",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "amniotic_fluid"
+ }
+ },
+ {
+ "column_name": "systolic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "systolic"
+ }
+ },
+ {
+ "column_name": "diastolic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "diastolic"
+ }
+ },
+ {
+ "column_name": "oxytocin_units_per_liter",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "oxytocin_units_per_liter"
+ }
+ },
+ {
+ "column_name": "oxytocin_drops_per_minute",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "oxytocin_drops_per_minute"
+ }
+ },
+ {
+ "column_name": "drugs_provided",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "drugs_provided"
+ }
+ },
+ {
+ "column_name": "iv_fluid_provided",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "iv_fluid_provided"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_ld_placenta_and_membrane",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "uterotonic",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "uterotonic"
+ }
+ },
+ {
+ "column_name": "method_used_to_remove_the_placenta",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "method_used_to_remove_the_placenta"
+ }
+ },
+ {
+ "column_name": "placenta_and_membrane_expulsion",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "placenta_and_membrane_expulsion"
+ }
+ },
+ {
+ "column_name": "type_of_incomplete_placenta",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "type_of_incomplete_placenta"
+ }
+ },
+ {
+ "column_name": "placenta_removed_by_hand",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "placenta_removed_by_hand"
+ }
+ },
+ {
+ "column_name": "prompt_for_placenta_and_membrane_expulsion",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "prompt_for_placenta_and_membrane_expulsion"
+ }
+ },
+ {
+ "column_name": "conducted_mva",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "conducted_mva"
+ }
+ },
+ {
+ "column_name": "administered_antibiotics",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "administered_antibiotics"
+ }
+ },
+ {
+ "column_name": "administered_magnesium_sulphate",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "administered_magnesium_sulphate"
+ }
+ },
+ {
+ "column_name": "removal_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "removal_date"
+ }
+ },
+ {
+ "column_name": "removal_duration",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "removal_duration"
+ }
+ },
+ {
+ "column_name": "estimated_blood_loss",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "estimated_blood_loss"
+ }
+ },
+ {
+ "column_name": "prompt_for_excessive_blood_loss",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "prompt_for_excessive_blood_loss"
+ }
+ },
+ {
+ "column_name": "provided_blood_transfusion",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "provided_blood_transfusion"
+ }
+ },
+ {
+ "column_name": "name_of_the_provider_who_removed_the_placenta",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "name_of_the_provider_who_removed_the_placenta"
+ }
+ },
+ {
+ "column_name": "uterus_massage_after_delivery",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "uterus_massage_after_delivery"
+ }
+ },
+ {
+ "column_name": "reason_for_not_massaging_uterus_after_delivery",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "reason_for_not_massaging_uterus_after_delivery"
+ }
+ },
+ {
+ "column_name": "visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_ld_immediate_new_born_care",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "delivery_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "delivery_date"
+ }
+ },
+ {
+ "column_name": "delivery_time",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "delivery_time"
+ }
+ },
+ {
+ "column_name": "newborn_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "newborn_status"
+ }
+ },
+ {
+ "column_name": "still_birth_choice",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "still_birth_choice"
+ }
+ },
+ {
+ "column_name": "sex",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "sex"
+ }
+ },
+ {
+ "column_name": "apgar_score_at_1_minute",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "formSubmissionField": "apgar_score_at_1_minute"
+ }
+ },
+ {
+ "column_name": "apgar_score_at_5_minutes",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "formSubmissionField": "apgar_score_at_5_minutes"
+ }
+ },
+ {
+ "column_name": "resuscitation",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "resuscitation"
+ }
+ },
+ {
+ "column_name": "weight",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "weight"
+ }
+ },
+ {
+ "column_name": "keep_warm",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "keep_warm"
+ }
+ },
+ {
+ "column_name": "early_bf_1hr",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "early_bf_1hr"
+ }
+ },
+ {
+ "column_name": "reason_for_not_breast_feeding_within_one_hour",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "reason_for_not_breast_feeding_within_one_hour"
+ }
+ },
+ {
+ "column_name": "risk_category",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "risk_category"
+ }
+ },
+ {
+ "column_name": "provided_azt_nvp_syrup",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "provided_azt_nvp_syrup"
+ }
+ },
+ {
+ "column_name": "provided_other_combinations",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "provided_other_combinations"
+ }
+ },
+ {
+ "column_name": "provided_nvp_syrup",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "provided_nvp_syrup"
+ }
+ },
+ {
+ "column_name": "collect_dbs",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "collect_dbs"
+ }
+ },
+ {
+ "column_name": "prophylaxis_arv_for_high_risk_given",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "prophylaxis_arv_for_high_risk_given"
+ }
+ },
+ {
+ "column_name": "name_of_the_provider_who_removed_the_placenta",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "name_of_the_provider_who_removed_the_placenta"
+ }
+ },
+ {
+ "column_name": "uterus_massage_after_delivery",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "uterus_massage_after_delivery"
+ }
+ },
+ {
+ "column_name": "reason_for_not_massaging_uterus_after_delivery",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "reason_for_not_massaging_uterus_after_delivery"
+ }
+ },
+ {
+ "column_name": "visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_ld_postpartum_care",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "status"
+ }
+ },
+ {
+ "column_name": "cause_of_death",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "cause_of_death"
+ }
+ },
+ {
+ "column_name": "time_of_death",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "time_of_death"
+ }
+ },
+ {
+ "column_name": "delivery_place",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "delivery_place"
+ }
+ },
+ {
+ "column_name": "delivered_by_occupation",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "delivered_by_occupation"
+ }
+ },
+ {
+ "column_name": "number_of_children_born",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "number_of_children_born"
+ }
+ },
+ {
+ "column_name": "delivery_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "delivery_date"
+ }
+ },
+ {
+ "column_name": "delivery_time",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "delivery_time"
+ }
+ },
+ {
+ "column_name": "labour_duration",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "labour_duration"
+ }
+ },
+ {
+ "column_name": "maternal_complications_before_delivery",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "maternal_complications_before_delivery"
+ }
+ },
+ {
+ "column_name": "maternal_complications_during_and_after_delivery",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "maternal_complications_during_and_after_delivery"
+ }
+ },
+ {
+ "column_name": "family_planning_counselling_after_delivery",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "family_planning_counselling_after_delivery"
+ }
+ },
+ {
+ "column_name": "family_planning_methods_selected",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "formSubmissionField": "family_planning_methods_selected"
+ }
+ },
+ {
+ "column_name": "visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_cbhs_register",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "provider_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "providerId"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "ctc_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "ctc_number"
+ }
+ },
+ {
+ "column_name": "tb_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "tb_number"
+ }
+ },
+ {
+ "column_name": "rch_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "rch_number"
+ }
+ },
+ {
+ "column_name": "mat_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "mat_number"
+ }
+ },
+ {
+ "column_name": "cbhs_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cbhs_number"
+ }
+ },
+ {
+ "column_name": "registration_or_followup_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "registration_or_followup_status",
+ "value_field": "obs.fieldCode"
+ }
+ },
+ {
+ "column_name": "client_tb_status_during_registration",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_tb_status_during_registration"
+ }
+ },
+ {
+ "column_name": "client_hiv_status_during_registration",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "client_hiv_status_during_registration"
+ }
+ },
+ {
+ "column_name": "client_hiv_status_after_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_hiv_status_after_testing"
+ }
+ },
+ {
+ "column_name": "client_tb_status_after_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_tb_status_after_testing"
+ }
+ },
+ {
+ "column_name": "next_appointment_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "next_appointment_date"
+ }
+ },
+ {
+ "column_name": "hiv_registration_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_registration_date"
+ }
+ },
+ {
+ "column_name": "reasons_for_registration",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "reasons_for_registration"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_cbhs_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "registration_or_followup_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "registration_or_followup_status"
+ }
+ },
+ {
+ "column_name": "client_condition",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_condition"
+ }
+ },
+ {
+ "column_name": "health_problem",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "health_problem"
+ }
+ },
+ {
+ "column_name": "health_problem_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "health_problem_other"
+ }
+ },
+ {
+ "column_name": "prompt_for_health_challenges",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "prompt_for_health_challenges"
+ }
+ },
+ {
+ "column_name": "social_problem",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "social_problem"
+ }
+ },
+ {
+ "column_name": "social_problem_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "social_problem_other"
+ }
+ },
+ {
+ "column_name": "supplies_provided",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "supplies_provided"
+ }
+ },
+ {
+ "column_name": "supplies_provided_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "supplies_provided_other"
+ }
+ },
+ {
+ "column_name": "medicine_provided",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "medicine_provided"
+ }
+ },
+ {
+ "column_name": "next_appointment_date",
+ "type": "Event",
+ "data_type": "date",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "next_appointment_date"
+ }
+ },
+ {
+ "column_name": "hiv_services_provided",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_services_provided"
+ }
+ },
+ {
+ "column_name": "hiv_services_provided_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "hiv_services_provided_other"
+ }
+ },
+ {
+ "column_name": "referrals_issued_to_other_services",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referrals_issued_to_other_services"
+ }
+ },
+ {
+ "column_name": "referrals_issued_to_other_services_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referrals_issued_to_other_services_other"
+ }
+ },
+ {
+ "column_name": "referrals_to_other_services_completed",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referrals_to_other_services_completed"
+ }
+ },
+ {
+ "column_name": "referrals_to_other_services_completed_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "referrals_to_other_services_completed_other"
+ }
+ },
+ {
+ "column_name": "state_of_hiv_care_and_treatment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "state_of_hiv_care_and_treatment"
+ }
+ },
+ {
+ "column_name": "state_of_registration_in_tb_and_pwid_clinics",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "state_of_registration_in_tb_and_pwid_clinics"
+ }
+ },
+ {
+ "column_name": "client_moved_location",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_moved_location"
+ }
+ },
+ {
+ "column_name": "client_moved_location_other",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_moved_location_other"
+ }
+ },
+ {
+ "column_name": "client_hiv_status_after_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_hiv_status_after_testing"
+ }
+ },
+ {
+ "column_name": "client_tb_status_after_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "client_tb_status_after_testing"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_mother_champion",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "last_client_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "last_client_visit_date"
+ }
+ },
+ {
+ "column_name": "pmtct_community_referral_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "pmtct_community_referral_date"
+ }
+ },
+ {
+ "column_name": "comment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "comment_pmtct_community_followup"
+ }
+ },
+ {
+ "column_name": "reasons_for_issuing_community_referral",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "reasons_for_issuing_community_referral"
+ }
+ },
+ {
+ "column_name": "mother_champion_location",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.formSubmissionField",
+ "concept": "mother_champion_location"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_mother_champion_followup",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "type_of_service",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "type_of_service"
+ }
+ },
+ {
+ "column_name": "linked_to_psychosocial_group",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "linked_to_psychosocial_group"
+ }
+ },
+ {
+ "column_name": "counselling_given",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "counselling_given"
+ }
+ },
+ {
+ "column_name": "referrals_issued_other_services",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "referrals_issued_other_services"
+ }
+ },
+ {
+ "column_name": "provider_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "providerId"
+ }
+ },
+ {
+ "column_name": "chw_name",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "chw_name"
+ }
+ },
+ {
+ "column_name": "visit_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "visit_number"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_sbcc",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "sbcc_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "sbcc_date"
+ }
+ },
+ {
+ "column_name": "location_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "location_type"
+ }
+ },
+ {
+ "column_name": "participants_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "participants_number"
+ }
+ },
+ {
+ "column_name": "provider_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "providerId"
+ }
+ },
+ {
+ "column_name": "chw_name",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "chw_name"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_anc_partner_community_feedback",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ },
+ {
+ "column_name": "referral_form_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "referral_form_id"
+ }
+ },
+ {
+ "column_name": "partner_agree_attending_hf",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_agree_attending_hf"
+ }
+ },
+ {
+ "column_name": "client_found",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "is_partner_found"
+ }
+ },
+ {
+ "column_name": "partner_base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "partner_base_entity_id"
+ }
+ },
+ {
+ "column_name": "provider_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "providerId"
+ }
+ },
+ {
+ "column_name": "chw_name",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "chw_name"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hivst_register",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "registration_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "registration_date"
+ }
+ },
+ {
+ "column_name": "client_testing_history",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "client_testing_history"
+ }
+ },
+ {
+ "column_name": "client_group",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "client_group"
+ }
+ },
+ {
+ "column_name": "known_positive_during_reg",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "known_positive_during_reg"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hivst_followup",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "client_testing_approach",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "client_testing_approach"
+ }
+ },
+ {
+ "column_name": "self_test_kit_given",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "self_test_kit_given"
+ }
+ },
+ {
+ "column_name": "extra_kits",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "extra_kits_required"
+ }
+ },
+ {
+ "column_name": "collection_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "collection_date"
+ }
+ },
+ {
+ "column_name": "condoms_given",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "condoms_given"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hivst_results",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "result_reg_id"
+ }
+ },
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "kit_for",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "kit_for"
+ }
+ },
+ {
+ "column_name": "kit_code",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "kit_code"
+ }
+ },
+ {
+ "column_name": "hivst_result",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hivst_result"
+ }
+ },
+ {
+ "column_name": "collection_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "collection_date"
+ }
+ },
+ {
+ "column_name": "result_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "result_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_hivst_mobilization",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "mobilization_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "mobilization_date"
+ }
+ },
+ {
+ "column_name": "female_clients_reached",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "female_clients_reached"
+ }
+ },
+ {
+ "column_name": "male_clients_reached",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "male_clients_reached"
+ }
+ },
+ {
+ "column_name": "male_condoms_issued",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "male_condoms_issued"
+ }
+ },
+ {
+ "column_name": "female_condoms_issued",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "female_condoms_issued"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_cdp_register",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "outlet_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "outlet_visit_date"
+ }
+ },
+ {
+ "column_name": "male_condoms_count",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "number_of_male_condoms"
+ }
+ },
+ {
+ "column_name": "female_condoms_count",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "number_of_female_condoms"
+ }
+ },
+ {
+ "column_name": "visit_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "visit_number"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_cdp_orders",
+ "columns": [
+ {
+ "column_name": "location_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "locationId"
+ }
+ },
+ {
+ "column_name": "receiving_order_facility",
+ "type": "Event",
+ "json_mapping": {
+ "field": "receiving_order_facility"
+ }
+ },
+ {
+ "column_name": "form_submission_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "form_submission_id"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "condom_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "condom_type"
+ }
+ },
+ {
+ "column_name": "condom_brand",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "condom_brand"
+ }
+ },
+ {
+ "column_name": "quantity_requested",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "requested_condoms"
+ }
+ },
+ {
+ "column_name": "request_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "request_type"
+ }
+ },
+ {
+ "column_name": "requested_at",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "requested_at"
+ }
+ },
+ {
+ "column_name": "teamId",
+ "type": "Event",
+ "json_mapping": {
+ "field": "teamId"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_cdp_order_feedback",
+ "columns": [
+ {
+ "column_name": "location_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "locationId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "request_reference",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "request_reference"
+ }
+ },
+ {
+ "column_name": "response_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "response_status"
+ }
+ },
+ {
+ "column_name": "condom_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "condom_type"
+ }
+ },
+ {
+ "column_name": "condom_brand",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "condom_brand"
+ }
+ },
+ {
+ "column_name": "quantity_response",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "quantity_response"
+ }
+ },
+ {
+ "column_name": "response_at",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "response_at"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_cdp_stock_count",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "locationId"
+ }
+ },
+ {
+ "column_name": "form_submission_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "chw_name",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "chw_name"
+ }
+ },
+ {
+ "column_name": "female_condoms_count",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "female_condoms_count"
+ }
+ },
+ {
+ "column_name": "male_condoms_count",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "male_condoms_count"
+ }
+ },
+ {
+ "column_name": "date_updated",
+ "type": "Event",
+ "json_mapping": {
+ "field": "condom_restock_date"
+ }
+ },
+ {
+ "column_name": "processed_form_submission_ids"
+ }
+ ]
+ },
+ {
+ "name": "ec_cdp_stock_log",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "locationId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "chw_name",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "chw_name"
+ }
+ },
+ {
+ "column_name": "female_condoms_offset",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "female_condoms_offset"
+ }
+ },
+ {
+ "column_name": "male_condoms_offset",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "male_condoms_offset"
+ }
+ },
+ {
+ "column_name": "event_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "eventType"
+ }
+ },
+ {
+ "column_name": "stock_event_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "stock_event_type"
+ }
+ },
+ {
+ "column_name": "issuing_organization",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "issuing_organization"
+ }
+ },
+ {
+ "column_name": "other_issuing_organization",
+ "type": "Event",
+ "json_mapping": {
+ "field": "other_issuing_organization"
+ }
+ },
+ {
+ "column_name": "male_condom_brand",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "male_condom_brand"
+ }
+ },
+ {
+ "column_name": "female_condom_brand",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "female_condom_brand"
+ }
+ },
+ {
+ "column_name": "date_updated",
+ "type": "Event",
+ "json_mapping": {
+ "field": "condom_restock_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_cdp_issuing_hf",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "locationId"
+ }
+ },
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "male_condoms",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "male_condoms"
+ }
+ },
+ {
+ "column_name": "female_condoms",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "female_condoms"
+ }
+ },
+ {
+ "column_name": "condom_restock_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "condom_restock_date"
+ }
+ },
+ {
+ "column_name": "condom_type",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "condom_type"
+ }
+ },
+ {
+ "column_name": "condom_brand",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "condom_brand"
+ }
+ },
+ {
+ "column_name": "other_condom_brand",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_condom_brand"
+ }
+ },
+ {
+ "column_name": "point_of_service",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "point_of_service"
+ }
+ },
+ {
+ "column_name": "other_pos",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_pos"
+ }
+ },
+ {
+ "column_name": "male_condoms_offset",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "male_condoms_offset"
+ }
+ },
+ {
+ "column_name": "female_condoms_offset",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "female_condoms_offset"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_kvp_register",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "relational_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
+ }
+ },
+ {
+ "column_name": "uic_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "uic_id"
+ }
+ },
+ {
+ "column_name": "prep_qualified",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "prep_qualified"
+ }
+ },
+ {
+ "column_name": "prep_assessment",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "prep_assessment"
+ }
+ },
+ {
+ "column_name": "hiv_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_status"
+ }
+ },
+ {
+ "column_name": "client_group",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "client_group"
+ }
+ },
+ {
+ "column_name": "enrollment_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "enrollment_date"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
+ "type": "Event",
+ "json_mapping": {
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_kvp_bio_medical_services",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "client_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "client_status"
+ }
+ },
+ {
+ "column_name": "other_kvp_category",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "other_kvp_category"
+ }
+ },
+ {
+ "column_name": "previous_hiv_testing_method",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "previous_hiv_testing_method"
+ }
+ },
+ {
+ "column_name": "testing_site",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "testing_site"
+ }
+ },
+ {
+ "column_name": "testing_approach",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "testing_approach"
+ }
+ },
+ {
+ "column_name": "tested_hiv",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "tested_hiv"
+ }
+ },
+ {
+ "column_name": "hiv_status",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hiv_status"
+ }
+ },
+ {
+ "column_name": "ctc_services",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "ctc_services"
+ }
+ },
+ {
+ "column_name": "ctc_number",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "ctc_number"
+ }
+ },
+ {
+ "column_name": "kits_distributed",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "kits_distributed"
+ }
+ },
+ {
+ "column_name": "enrolled_to_prep",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "enrolled_to_prep"
+ }
+ },
+ {
+ "column_name": "pep_provision",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "pep_provision"
+ }
+ },
+ {
+ "column_name": "number_of_male_condoms_issued",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "number_of_male_condoms_issued"
+ }
+ },
+ {
+ "column_name": "number_of_female_condoms_issued",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "number_of_female_condoms_issued"
+ }
+ },
+ {
+ "column_name": "family_planning_service",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "family_planning_service"
+ }
+ },
+ {
+ "column_name": "tb_screening",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "tb_screening"
+ }
+ },
+ {
+ "column_name": "sti_screening",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "sti_screening"
+ }
+ },
+ {
+ "column_name": "treatment_provided",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "treatment_provided"
+ }
+ },
+ {
+ "column_name": "hep_b_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hep_b_testing"
+ }
+ },
+ {
+ "column_name": "hep_c_testing",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "hep_c_testing"
+ }
+ },
+ {
+ "column_name": "vmcc_provided",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "vmcc_provided"
+ }
+ },
+ {
+ "column_name": "cervical_cancer_screening",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "cervical_cancer_screening"
+ }
+ },
+ {
+ "column_name": "mat_provided",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "mat_provided"
+ }
+ },
+ {
+ "column_name": "kvp_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "kvp_visit_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_kvp_behavioral_services",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "formSubmissionId"
+ }
+ },
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
+ }
+ },
+ {
+ "column_name": "iec_sbcc_materials",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "iec_sbcc_materials"
+ }
+ },
+ {
+ "column_name": "health_education_provided",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "health_education_provided"
+ }
+ },
+ {
+ "column_name": "kvp_visit_date",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "kvp_visit_date"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_kvp_structural_services",
+ "columns": [
+ {
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "nearest_facility",
+ "column_name": "entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "162724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "baseEntityId"
}
},
{
- "column_name": "family_head",
- "type": "Client",
+ "column_name": "gbv_screening",
+ "type": "Event",
"json_mapping": {
- "field": "relationships.family_head"
+ "field": "obs.fieldCode",
+ "concept": "gbv_screening"
}
},
{
- "column_name": "primary_caregiver",
- "type": "Client",
+ "column_name": "kvp_visit_date",
+ "type": "Event",
"json_mapping": {
- "field": "relationships.primary_caregiver"
+ "field": "obs.fieldCode",
+ "concept": "kvp_visit_date"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_kvp_other_services",
+ "columns": [
{
- "column_name": "last_interacted_with",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "version"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "date_removed",
- "type": "Client",
+ "column_name": "entity_id",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.dateRemoved"
+ "field": "baseEntityId"
}
},
{
- "column_name": "event_date",
+ "column_name": "other_services_referrals_provided",
"type": "Event",
"json_mapping": {
- "field": "eventDate",
- "event_type": "Family Registration"
+ "field": "obs.fieldCode",
+ "concept": "other_services_referrals_provided"
}
}
]
},
{
- "name": "ec_family_member",
+ "name": "ec_prep_register",
"columns": [
{
"column_name": "base_entity_id",
- "type": "Client",
+ "type": "Event",
"json_mapping": {
"field": "baseEntityId"
}
},
- {
- "column_name": "unique_id",
- "type": "Client",
- "json_mapping": {
- "field": "identifiers.opensrp_id"
- }
- },
{
"column_name": "relational_id",
- "type": "Client",
+ "type": "Event",
"json_mapping": {
- "field": "relationships.family"
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
}
},
{
- "column_name": "first_name",
- "type": "Client",
+ "column_name": "prep_status",
+ "type": "Event",
"json_mapping": {
- "field": "firstName"
+ "field": "obs.fieldCode",
+ "concept": "prep_status"
}
},
{
- "column_name": "middle_name",
- "type": "Client",
+ "column_name": "prep_initiation_date",
+ "type": "Event",
"json_mapping": {
- "field": "middleName"
+ "field": "obs.fieldCode",
+ "concept": "prep_initiation_date"
}
},
{
- "column_name": "last_name",
- "type": "Client",
+ "column_name": "hbv_test_date",
+ "type": "Event",
"json_mapping": {
- "field": "lastName"
+ "field": "obs.fieldCode",
+ "concept": "hbv_test_date"
}
},
{
- "column_name": "dob",
- "type": "Client",
+ "column_name": "hcv_test_date",
+ "type": "Event",
"json_mapping": {
- "field": "birthdate"
+ "field": "obs.fieldCode",
+ "concept": "hcv_test_date"
}
},
{
- "column_name": "dod",
- "type": "Client",
+ "column_name": "crcl_test_date",
+ "type": "Event",
"json_mapping": {
- "field": "deathdate"
+ "field": "obs.fieldCode",
+ "concept": "crcl_test_date"
}
},
{
- "column_name": "dob_unknown",
- "type": "Client",
+ "column_name": "crcl_results",
+ "type": "Event",
"json_mapping": {
- "field": "birthdateApprox"
+ "field": "obs.fieldCode",
+ "concept": "crcl_results"
}
},
{
- "column_name": "gender",
- "type": "Client",
+ "column_name": "next_visit_date",
+ "type": "Event",
"json_mapping": {
- "field": "gender"
+ "field": "obs.fieldCode",
+ "concept": "next_visit_date"
}
},
{
- "column_name": "phone_number",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "version"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_prep_followup",
+ "columns": [
{
- "column_name": "other_phone_number",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "national_id",
- "type": "Client",
+ "column_name": "entity_id",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.National_ID"
+ "field": "baseEntityId"
}
},
{
- "column_name": "voter_id",
- "type": "Client",
+ "column_name": "visit_type",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.Voter_Registration_Number"
+ "field": "obs.fieldCode",
+ "concept": "visit_type"
}
},
{
- "column_name": "driver_license",
- "type": "Client",
+ "column_name": "prep_drug_offered",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.Driver_License_Number"
+ "field": "obs.fieldCode",
+ "concept": "prep_drug_offered"
}
},
{
- "column_name": "passport",
- "type": "Client",
+ "column_name": "prep_status",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.Passport_Number"
+ "field": "obs.fieldCode",
+ "concept": "prep_status"
}
},
{
- "column_name": "insurance_provider",
- "type": "Client",
+ "column_name": "reasons_stopping_prep",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.Health_Insurance_Type"
+ "field": "obs.fieldCode",
+ "concept": "reasons_stopping_prep"
}
},
{
- "column_name": "insurance_provider_other",
- "type": "Client",
+ "column_name": "prep_status",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.Other_Health_Insurance_Type"
+ "field": "obs.fieldCode",
+ "concept": "prep_status"
}
},
{
- "column_name": "insurance_provider_number",
- "type": "Client",
+ "column_name": "kvp_visit_date",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.Health_Insurance_Number"
+ "field": "obs.fieldCode",
+ "concept": "kvp_visit_date"
}
},
{
- "column_name": "type_of_disability",
+ "column_name": "next_visit_date",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "next_visit_date"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_vmmc_enrollment",
+ "columns": [
{
- "column_name": "disabilities",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "baseEntityId"
}
},
{
- "column_name": "service_provider",
+ "column_name": "relational_id",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1542AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "relational_id"
}
},
{
- "column_name": "leader",
- "type": "Client",
+ "column_name": "service_delivery_approach",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.Community_Leader"
+ "field": "obs.fieldCode",
+ "concept": "service_delivery_approach"
}
},
{
- "column_name": "leader_other",
- "type": "Client",
+ "column_name": "vmmc_client_id",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.Other_Community_Leader_Type_Name"
+ "field": "obs.fieldCode",
+ "concept": "vmmc_client_id"
}
},
{
- "column_name": "entity_type",
+ "column_name": "reffered_from",
"type": "Event",
"json_mapping": {
- "field": "entityType"
+ "field": "obs.fieldCode",
+ "concept": "reffered_from"
}
},
{
- "column_name": "last_interacted_with",
+ "column_name": "next_followup_date",
"type": "Event",
"json_mapping": {
- "field": "version"
+ "field": "obs.fieldCode",
+ "concept": "next_followup_date"
}
},
{
- "column_name": "date_removed",
- "type": "Client",
+ "column_name": "enrollment_date",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.dateRemoved"
+ "field": "obs.fieldCode",
+ "concept": "enrollment_date"
}
},
{
- "column_name": "sync_location_id",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "locationId"
+ "field": "version"
}
}
]
},
{
- "name": "ec_child",
+ "name": "ec_vmmc_services",
"columns": [
{
"column_name": "base_entity_id",
- "type": "Client",
- "json_mapping": {
- "field": "baseEntityId"
- }
- },
- {
- "column_name": "unique_id",
- "type": "Client",
+ "type": "Event",
"json_mapping": {
- "field": "identifiers.opensrp_id"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "relational_id",
- "type": "Client",
+ "column_name": "entity_id",
+ "type": "Event",
"json_mapping": {
- "field": "relationships.family"
+ "field": "baseEntityId"
}
},
{
- "column_name": "mother_entity_id",
- "type": "Client",
+ "column_name": "has_client_had_any_sti",
+ "type": "Event",
"json_mapping": {
- "field": "relationships.mother"
+ "field": "obs.fieldCode",
+ "concept": "has_client_had_any_sti"
}
},
{
- "column_name": "entry_point",
+ "column_name": "any_complaints",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "entry_point"
+ "concept": "any_complaints"
}
},
{
- "column_name": "first_name",
- "type": "Client",
+ "column_name": "is_client_diagnosed_with_any",
+ "type": "Event",
"json_mapping": {
- "field": "firstName"
+ "field": "obs.fieldCode",
+ "concept": "is_client_diagnosed_with_any"
}
},
{
- "column_name": "middle_name",
- "type": "Client",
+ "column_name": "diabetes_treatment",
+ "type": "Event",
"json_mapping": {
- "field": "middleName"
+ "field": "obs.fieldCode",
+ "concept": "diabetes_treatment"
}
},
{
- "column_name": "last_name",
- "type": "Client",
+ "column_name": "type_of_blood_for_glucose_test",
+ "type": "Event",
"json_mapping": {
- "field": "lastName"
+ "field": "obs.fieldCode",
+ "concept": "type_of_blood_for_glucose_test"
}
},
{
- "column_name": "dob",
- "type": "Client",
+ "column_name": "blood_for_glucose",
+ "type": "Event",
"json_mapping": {
- "field": "birthdate"
+ "field": "obs.fieldCode",
+ "concept": "blood_for_glucose"
}
},
{
- "column_name": "dod",
- "type": "Client",
+ "column_name": "surgical_procedure",
+ "type": "Event",
"json_mapping": {
- "field": "deathdate"
+ "field": "obs.fieldCode",
+ "concept": "surgical_procedure"
}
},
{
- "column_name": "dob_unknown",
- "type": "Client",
+ "column_name": "complications_previous_surgical",
+ "type": "Event",
"json_mapping": {
- "field": "birthdateApprox"
+ "field": "obs.fieldCode",
+ "concept": "complications_previous_surgical"
}
},
{
- "column_name": "gender",
- "type": "Client",
+ "column_name": "type_complication",
+ "type": "Event",
"json_mapping": {
- "field": "gender"
+ "field": "obs.fieldCode",
+ "concept": "type_complication"
}
},
{
- "column_name": "early_bf_1hr",
+ "column_name": "any_hematological_disease_symptoms",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "161543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "any_hematological_disease_symptoms"
}
},
{
- "column_name": "physically_challenged",
+ "column_name": "known_allergies",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "known_allergies"
}
},
{
- "column_name": "type_of_disability",
+ "column_name": "tetanus_vaccination",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "tetanus_vaccination"
}
},
{
- "column_name": "birth_cert",
+ "column_name": "tetanus_booster_date",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "165406AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "tetanus_booster_date"
}
},
{
- "column_name": "rhc_card",
+ "column_name": "physical_abnormality",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "164147AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "physical_abnormality"
}
},
{
- "column_name": "nutrition_status",
+ "column_name": "client_weight",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "163301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "client_weight"
}
},
{
- "column_name": "last_interacted_with",
+ "column_name": "pulse_rate",
"type": "Event",
"json_mapping": {
- "field": "version"
+ "field": "obs.fieldCode",
+ "concept": "pulse_rate"
}
},
{
- "column_name": "last_home_visit",
+ "column_name": "systolic",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "last_home_visit"
+ "concept": "systolic"
}
},
{
- "column_name": "visit_not_done",
+ "column_name": "diastolic",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "visit_not_done"
+ "concept": "diastolic"
}
},
{
- "column_name": "date_removed",
- "type": "Client",
+ "column_name": "temperature",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.dateRemoved"
+ "field": "obs.fieldCode",
+ "concept": "temperature"
}
},
{
- "column_name": "date_created",
- "type": "Client",
+ "column_name": "respiration_rate",
+ "type": "Event",
"json_mapping": {
- "field": "dateCreated"
+ "field": "obs.fieldCode",
+ "concept": "respiration_rate"
}
},
{
- "column_name": "birth_cert_issue_date",
+ "column_name": "genital_examination",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "164129AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "genital_examination"
}
},
{
- "column_name": "birth_cert_num",
+ "column_name": "preferred_client_mc_method",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "162052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "preferred_client_mc_method"
}
},
{
- "column_name": "birth_notification",
+ "column_name": "tested_hiv",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "birth_notification"
+ "concept": "tested_hiv"
}
},
{
- "column_name": "date_of_illness",
+ "column_name": "hiv_result",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1730AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "hiv_result"
}
},
{
- "column_name": "illness_description",
+ "column_name": "reasons",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1390AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "reasons"
}
},
{
- "column_name": "action_taken",
+ "column_name": "self_test_kits_offered",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "self_test_kits_offered"
}
},
{
- "column_name": "vaccine_card",
+ "column_name": "client_referred_to",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "vaccine_card"
+ "concept": "client_referred_to"
}
},
{
- "column_name": "insurance_provider",
- "type": "Client",
+ "column_name": "diagnosed_with_hiv_six_month_ago",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.insurance_provider"
+ "field": "obs.fieldCode",
+ "concept": "diagnosed_with_hiv_six_month_ago"
}
},
{
- "column_name": "insurance_provider_other",
- "type": "Client",
+ "column_name": "hiv_viral_load_text",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.Other_Health_Insurance_Type"
+ "field": "obs.fieldCode",
+ "concept": "hiv_viral_load_text"
}
},
{
- "column_name": "insurance_provider_number",
- "type": "Client",
+ "column_name": "last_interacted_with",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.Health_Insurance_Number"
+ "field": "version"
}
}
]
},
{
- "name": "ec_child_activity",
+ "name": "ec_vmmc_procedure",
"columns": [
{
- "column_name": "event_id",
- "type": "Event",
- "json_mapping": {
- "field": "eventId"
- }
- },
- {
- "column_name": "relational_id",
- "type": "Client",
- "json_mapping": {
- "field": "relationships.family"
- }
- },
- {
- "column_name": "form_submission_id",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
"field": "formSubmissionId"
}
},
{
- "column_name": "base_entity_id",
- "type": "Client",
+ "column_name": "entity_id",
+ "type": "Event",
"json_mapping": {
"field": "baseEntityId"
}
},
{
- "column_name": "event_type",
+ "column_name": "client_consent_for_mc_procedure",
"type": "Event",
"json_mapping": {
- "field": "eventType"
+ "field": "obs.fieldCode",
+ "concept": "client_consent_for_mc_procedure"
}
},
{
- "column_name": "last_home_visit",
+ "column_name": "consent_from",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "last_home_visit"
+ "concept": "consent_from"
}
},
{
- "column_name": "visit_not_done",
+ "column_name": "health_care_provider",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "visit_not_done"
+ "concept": "health_care_provider"
}
},
{
- "column_name": "event_date",
+ "column_name": "is_male_procedure_circumcision_conducted",
"type": "Event",
"json_mapping": {
- "field": "eventDate"
+ "field": "obs.fieldCode",
+ "concept": "is_male_procedure_circumcision_conducted"
}
},
{
- "column_name": "date_removed",
- "type": "Client",
+ "column_name": "reason",
+ "type": "Event",
"json_mapping": {
- "field": "attributes.dateRemoved"
+ "field": "obs.fieldCode",
+ "concept": "reason"
}
- }
- ]
- },
- {
- "name": "ec_anc_register",
- "columns": [
+ },
{
- "column_name": "base_entity_id",
+ "column_name": "surgeon_name",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "obs.fieldCode",
+ "concept": "surgeon_name"
}
},
{
- "column_name": "relational_id",
+ "column_name": "assistant_name",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "relational_id"
+ "concept": "assistant_name"
}
},
{
- "column_name": "last_interacted_with",
+ "column_name": "start_time",
"type": "Event",
"json_mapping": {
- "field": "version"
+ "field": "obs.fieldCode",
+ "concept": "start_time"
}
},
{
- "column_name": "last_menstrual_period",
+ "column_name": "end_time",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "end_time"
}
},
{
- "column_name": "gest_age",
+ "column_name": "aneathesia_administered",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1438AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "aneathesia_administered"
}
},
{
- "column_name": "edd",
+ "column_name": "other_aneathesia_administered",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "other_aneathesia_administered"
}
},
{
- "column_name": "no_prev_preg",
+ "column_name": "lignocaine_dosage",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1438AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "lignocaine_dosage"
}
},
{
- "column_name": "gravida",
+ "column_name": "bupivacaine_dosage",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "5624AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "bupivacaine_dosage"
}
},
{
- "column_name": "no_surv_children",
+ "column_name": "dosage",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "164894AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "dosage"
}
},
{
- "column_name": "phone_number",
+ "column_name": "male_circumcision_method",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "male_circumcision_method"
}
},
{
- "column_name": "marital_status",
+ "column_name": "intraoperative_adverse_event_occured",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1054AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "intraoperative_adverse_event_occured"
}
},
{
- "column_name": "last_home_visit",
+ "column_name": "type_of_adverse_event",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "anc_visit_date"
+ "concept": "type_of_adverse_event"
}
},
{
- "column_name": "visit_not_done",
+ "column_name": "type_of_adverse_event_others",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "anc_visit_not_done_date"
+ "concept": "type_of_adverse_event_others"
}
},
{
- "column_name": "confirmed_visits",
+ "column_name": "desc_intraoperative_ae_bleed_excessive_bleeding",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "confirmed_visits"
+ "concept": "desc_intraoperative_ae_bleed_excessive_bleeding"
}
},
{
- "column_name": "last_contact_visit",
+ "column_name": "desc_intraoperative_ae_skin_removal",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "159590AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "desc_intraoperative_ae_skin_removal"
}
- }
- ]
- },
- {
- "name": "ec_anc_log",
- "columns": [
+ },
{
- "column_name": "base_entity_id",
+ "column_name": "desc_intraoperative_ae_injury_to_penis",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "obs.fieldCode",
+ "concept": "desc_intraoperative_ae_injury_to_penis"
}
},
{
- "column_name": "date_created",
+ "column_name": "desc_intraoperative_ae_anaesthetic_related_event",
"type": "Event",
"json_mapping": {
- "field": "eventDate"
+ "field": "obs.fieldCode",
+ "concept": "desc_intraoperative_ae_anaesthetic_related_event"
}
- }
- ]
- },
- {
- "name": "ec_malaria_confirmation",
- "columns": [
+ },
{
- "column_name": "base_entity_id",
+ "column_name": "desc_of_adverse_event_device_displacement",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "obs.fieldCode",
+ "concept": "desc_of_adverse_event_device_displacement"
}
},
{
- "column_name": "date_chw_malaria_test",
+ "column_name": "device_name",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "162869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "device_name"
}
},
{
- "column_name": "fever_malaria_chw",
+ "column_name": "size_place",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "fever_malaria_chw"
+ "concept": "size_place"
}
},
{
- "column_name": "fever_duration",
+ "column_name": "mc_procedure_date",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1731AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "mc_procedure_date"
}
},
{
- "column_name": "malaria_results",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "version"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_vmmc_post_op_and_discharge",
+ "columns": [
{
- "column_name": "date_hf_malaria_test",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "formSubmissionField": "date_hf_malaria_test"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "malaria_test_date",
+ "column_name": "entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "163724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "baseEntityId"
}
},
{
- "column_name": "malaria",
+ "column_name": "discharge_condition",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "163725AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "discharge_condition"
}
},
{
- "column_name": "malaria_treat",
+ "column_name": "name_of_hf",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "formSubmissionField": "malaria_treat"
+ "field": "name_of_hf"
}
},
{
- "column_name": "fam_llin",
+ "column_name": "discharged_reasons",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "fam_llin"
+ "concept": "discharged_reasons"
}
},
{
- "column_name": "llin_2days",
+ "column_name": "analgesics_given",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "llin_2days"
+ "concept": "analgesics_given"
}
},
{
- "column_name": "llin_condition",
+ "column_name": "analgenics_type",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "llin_condition"
+ "concept": "analgenics_type"
}
},
{
- "column_name": "malaria_edu_chw",
+ "column_name": "discharging_name",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1379AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "discharging_name"
}
},
{
- "column_name": "last_interacted_with",
+ "column_name": "provider_cadre",
"type": "Event",
"json_mapping": {
- "field": "version"
+ "field": "obs.fieldCode",
+ "concept": "provider_cadre"
}
- }
- ]
- },
- {
- "name": "ec_family_planning",
- "columns": [
+ },
{
- "column_name": "base_entity_id",
+ "column_name": "first_vital_sign_pulse_rate",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "obs.fieldCode",
+ "concept": "first_vital_sign_pulse_rate"
}
},
{
- "column_name": "fp_reg_date",
+ "column_name": "first_vital_sign_systolic",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "fp_reg_date"
+ "concept": "first_vital_sign_systolic"
}
},
{
- "column_name": "using_method",
+ "column_name": "first_vital_sign_diastolic",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "using_method"
+ "concept": "first_vital_sign_diastolic"
}
},
{
- "column_name": "couselling_fp_methods",
+ "column_name": "first_vital_sign_temperature",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "first_vital_sign_temperature"
}
},
{
- "column_name": "couselling_HIV_STI",
+ "column_name": "first_vital_sign_time_taken",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "couselling_HIV_STI"
+ "concept": "first_vital_sign_time_taken"
}
},
{
- "column_name": "pill",
+ "column_name": "second_vital_sign_pulse_rate",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "pill"
+ "concept": "second_vital_sign_pulse_rate"
}
},
{
- "column_name": "breast_lump",
+ "column_name": "second_vital_sign_systolic",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "breast_lump"
+ "concept": "second_vital_sign_systolic"
}
},
{
- "column_name": "abnormal_vaginal",
+ "column_name": "second_vital_sign_diastolic",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "abnormal_vaginal"
+ "concept": "second_vital_sign_diastolic"
}
},
{
- "column_name": "pregnant",
+ "column_name": "second_vital_sign_temperature",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "pregnant"
+ "concept": "second_vital_sign_temperature"
}
},
{
- "column_name": "difficultly_breathing",
+ "column_name": "second_vital_sign_time_taken",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "difficultly_breathing"
+ "concept": "second_vital_sign_time_taken"
}
},
{
- "column_name": "headaches",
+ "column_name": "notify_client_has_fever",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "headaches"
+ "concept": "notify_client_has_fever"
}
},
{
- "column_name": "frequent_urge",
+ "column_name": "respiration_rate",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "frequent_urge"
+ "concept": "respiration_rate"
}
},
{
- "column_name": "falling_loss_unconsciousness",
+ "column_name": "dressing_condition_in_relation_to_bleeding",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "falling_loss_unconsciousness"
+ "concept": "dressing_condition_in_relation_to_bleeding"
}
},
{
- "column_name": "breastfeed",
+ "column_name": "discharge_date",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "breastfeed"
+ "concept": "discharge_date"
}
},
{
- "column_name": "COC_POP",
+ "column_name": "did_client_experience_nae",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "COC_POP"
+ "concept": "did_client_experience_nae"
}
},
{
- "column_name": "POP",
+ "column_name": "date_nae_occured",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "POP"
+ "concept": "date_nae_occured"
}
},
{
- "column_name": "no_pill",
+ "column_name": "next_followup_date",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "no_pill"
+ "concept": "next_followup_date"
}
},
{
- "column_name": "fp_method_chw",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "160576AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "version"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_vmmc_follow_up_visit",
+ "columns": [
{
- "column_name": "fp_method_already",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "374AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "fp_method_accepted",
+ "column_name": "entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "fp_method_accepted"
+ "field": "baseEntityId"
}
},
{
- "column_name": "ecp",
+ "column_name": "follow_up_visit_type",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "ecp"
+ "concept": "follow_up_visit_type"
}
},
{
- "column_name": "no_condoms",
+ "column_name": "comment_vmmc_followup",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "no_condoms"
+ "concept": "comment_vmmc_followup"
}
},
{
- "column_name": "no_pillcycles",
+ "column_name": "post_op_adverse_event_occur",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "163171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "post_op_adverse_event_occur"
}
},
{
- "column_name": "counselling_use",
+ "column_name": "time_of_adverse_event_occured",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "counselling_use"
+ "concept": "time_of_adverse_event_occured"
}
},
{
- "column_name": "next_injection_due_date",
+ "column_name": "type_of_adverse_event",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "type_of_adverse_event"
}
},
{
- "column_name": "fp_start_date",
+ "column_name": "type_of_adverse_event_others",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "163526AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "type_of_adverse_event_others"
}
},
{
- "column_name": "referral_given",
+ "column_name": "desc_of_post_op_adverse_event_infection",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "referral_given"
+ "concept": "desc_of_post_op_adverse_event_infection"
}
},
{
- "column_name": "last_interacted_with",
+ "column_name": "desc_of_post_op_adverse_event_persistent_pain",
"type": "Event",
"json_mapping": {
- "field": "version"
+ "field": "obs.fieldCode",
+ "concept": "desc_of_post_op_adverse_event_persistent_pain"
}
- }
- ]
- },
- {
- "name": "ec_pregnancy_outcome",
- "columns": [
+ },
{
- "column_name": "base_entity_id",
+ "column_name": "desc_of_post_op_adverse_pass_urine",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "obs.fieldCode",
+ "concept": "desc_of_post_op_adverse_pass_urine"
}
},
{
- "column_name": "relational_id",
+ "column_name": "desc_of_post_op_adverse_event_bleeding",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "relational_id"
+ "concept": "desc_of_post_op_adverse_event_bleeding"
}
},
{
- "column_name": "preg_outcome",
+ "column_name": "desc_of_post_op_adverse_event_swelling",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "161033AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "desc_of_post_op_adverse_event_swelling"
}
},
{
- "column_name": "miscarriage_date",
+ "column_name": "desc_of_post_op_adverse_event_device_displacement",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "165248AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "desc_of_post_op_adverse_event_device_displacement"
}
},
{
- "column_name": "delivery_date",
+ "column_name": "desc_of_post_op_adverse_event_device_detachment",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "5599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "desc_of_post_op_adverse_event_device_detachment"
}
},
{
- "column_name": "delivery_place",
+ "column_name": "desc_of_post_op_adverse_delayed_wound_healing",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1572AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "desc_of_post_op_adverse_delayed_wound_healing"
}
},
{
- "column_name": "last_visit_date",
+ "column_name": "desc_of_post_op_adverse_appearance",
"type": "Event",
- "data_type": "date",
- "source_format": "dd-MM-yyyy",
- "save_format": "yyyy-MM-dd",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "last_visit_date"
+ "concept": "desc_of_post_op_adverse_appearance"
}
},
{
- "column_name": "next_visit_date",
+ "column_name": "desc_of_post_op_adverse_excessive_skin_removed",
"type": "Event",
- "data_type": "date",
- "source_format": "dd-MM-yyyy",
- "save_format": "yyyy-MM-dd",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "next_visit_date"
+ "concept": "desc_of_post_op_adverse_excessive_skin_removed"
}
},
{
- "column_name": "last_health_facility_visit_date",
+ "column_name": "what_done",
"type": "Event",
- "data_type": "date",
- "source_format": "dd-MM-yyyy",
- "save_format": "yyyy-MM-dd",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "last_health_facility_visit_date"
+ "concept": "what_done"
}
},
{
- "column_name": "confirmed_health_facility_visits",
+ "column_name": "treatment_outcome",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "confirmed_health_facility_visits"
+ "concept": "treatment_outcome"
}
},
{
- "column_name": "last_interacted_with",
+ "column_name": "treatment_outcome_note",
"type": "Event",
"json_mapping": {
- "field": "version"
+ "field": "obs.fieldCode",
+ "concept": "treatment_outcome_note"
}
- }
- ]
- },
- {
- "name": "ec_malaria_follow_up_visit",
- "columns": [
+ },
{
- "column_name": "base_entity_id",
+ "column_name": "was_condom_provided",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "obs.fieldCode",
+ "concept": "was_condom_provided"
}
},
{
- "column_name": "date_chw_mfollowup",
+ "column_name": "condoms_issued",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "date_chw_mfollowup"
+ "concept": "condoms_issued"
}
},
{
- "column_name": "hf_chw_mfollowup",
+ "column_name": "notifiable_adverse_event_occured",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "hf_chw_mfollowup"
+ "concept": "notifiable_adverse_event_occured"
}
},
{
- "column_name": "treat_given_chw_mfollowup",
+ "column_name": "followup_visit_date",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "treat_given_chw_mfollowup"
+ "concept": "followup_visit_date"
}
},
{
- "column_name": "reason_no_treat",
+ "column_name": "next_followup_date",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "reason_no_treat"
+ "concept": "next_followup_date"
}
},
{
- "column_name": "fever_still",
+ "column_name": "visit_number",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "fever_still"
+ "concept": "visit_number"
}
},
{
- "column_name": "fever_duration",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "fever_duration"
+ "field": "version"
}
}
]
},
{
- "name": "ec_child_referral",
+ "name": "ec_vmmc_notifiable_ae",
"columns": [
{
"column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "chw_referral_hf_child",
+ "column_name": "entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1759AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "baseEntityId"
}
},
{
- "column_name": "referral_problem_child",
+ "column_name": "was_adverse_events_notifiable",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "163182AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "was_adverse_events_notifiable"
}
},
{
- "column_name": "referral_problem_child_other",
+ "column_name": "did_client_experience_nae",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "did_client_experience_nae"
}
},
{
- "column_name": "service_before_child",
+ "column_name": "date_nae_occured",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "date_nae_occured"
}
},
{
- "column_name": "service_before_child_other",
+ "column_name": "nature_of_ae",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "nature_of_ae"
}
},
{
- "column_name": "referral_date_child",
+ "column_name": "what_done",
"type": "Event",
- "data_type": "date",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "what_done"
}
},
{
- "column_name": "referral_time_child",
+ "column_name": "was_nae_attended",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "referral_task_previous_status"
+ "concept": "was_nae_attended"
}
- }
- ]
- },
- {
- "name": "ec_anc_referral",
- "columns": [
+ },
{
- "column_name": "chw_referral_hf_anc",
+ "column_name": "treatment_outcome",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1759AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "treatment_outcome"
}
},
{
- "column_name": "base_entity_id",
+ "column_name": "treatment_outcome_note",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "obs.fieldCode",
+ "concept": "treatment_outcome_note"
}
},
{
- "column_name": "problem_hf_anc",
+ "column_name": "treatment_outcome_unchanged_note",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "163182AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "treatment_outcome_unchanged_note"
}
},
{
- "column_name": "problem_hf_anc_other",
+ "column_name": "next_followup_date",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "next_followup_date"
}
},
{
- "column_name": "service_before_anc",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "version"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_fp_point_of_service_delivery",
+ "columns": [
{
- "column_name": "service_before_anc_other",
+ "column_name": "entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "baseEntityId"
}
},
{
- "column_name": "referral_date_anc",
+ "column_name": "base_entity_id",
"type": "Event",
- "data_type": "date",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "referral_time_anc",
+ "column_name": "point_of_service_delivery",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "referral_task_previous_status"
+ "concept": "point_of_service_delivery"
}
- }
- ]
- },
- {
- "name": "ec_pnc_referral",
- "columns": [
+ },
{
- "column_name": "chw_referral_hf_pnc",
+ "column_name": "service_delivery_point_facility",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1759AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "service_delivery_point_facility"
}
},
{
- "column_name": "base_entity_id",
+ "column_name": "service_delivery_point_outreach",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "obs.fieldCode",
+ "concept": "service_delivery_point_outreach"
}
},
{
- "column_name": "problem_hf_pnc",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "163182AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "version"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_fp_counseling",
+ "columns": [
{
- "column_name": "problem_hf_pnc_other",
+ "column_name": "entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "baseEntityId"
}
},
{
- "column_name": "service_before_pnc",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "service_before_pnc_other",
+ "column_name": "client_counseled_with_her_partner",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "client_counseled_with_her_partner"
}
},
{
- "column_name": "referral_date_pnc",
+ "column_name": "selected_fp_method_after_counseling",
"type": "Event",
- "data_type": "date",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "selected_fp_method_after_counseling"
}
},
{
- "column_name": "referral_time_pnc",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "formSubmissionField": "referral_task_previous_status"
+ "field": "version"
}
}
]
},
{
- "name": "ec_fp_referral",
+ "name": "ec_fp_screening",
"columns": [
{
- "column_name": "fp_method_accepted_referral",
+ "column_name": "entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "374AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "baseEntityId"
}
},
{
"column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "fp_side_effects",
+ "column_name": "breast_condition",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "165273AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "breast_condition"
}
},
{
- "column_name": "fp_side_effects_other",
+ "column_name": "counseling_cervical_cancer_provided",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "counseling_cervical_cancer_provided"
}
},
{
- "column_name": "referral_date_fp",
+ "column_name": "client_eligible_for_via",
"type": "Event",
- "data_type": "date",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "client_eligible_for_via"
}
},
{
- "column_name": "referral_time_fp",
+ "column_name": "via_results",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "referral_task_previous_status"
+ "concept": "via_results"
}
- }
- ]
- },
- {
- "name": "ec_referral",
- "columns": [
+ },
{
- "column_name": "chw_referral_service",
+ "column_name": "is_client_breastfeeding",
"type": "Event",
"json_mapping": {
- "field": "obs.formSubmissionField",
- "concept": "chw_referral_service"
+ "field": "obs.fieldCode",
+ "concept": "is_client_breastfeeding"
}
},
{
- "column_name": "chw_referral_hf",
+ "column_name": "cervix",
"type": "Event",
"json_mapping": {
- "field": "obs.formSubmissionField",
- "concept": "chw_referral_hf"
+ "field": "obs.fieldCode",
+ "concept": "cervix"
}
},
{
- "column_name": "entity_id",
+ "column_name": "discharge",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "obs.fieldCode",
+ "concept": "discharge"
}
},
{
- "column_name": "base_entity_id",
+ "column_name": "growth",
"type": "Event",
"json_mapping": {
- "field": "formSubmissionId"
+ "field": "obs.fieldCode",
+ "concept": "growth"
}
},
{
- "column_name": "problem",
+ "column_name": "uterine_size",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "163182AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "uterine_size"
}
},
{
- "column_name": "problem_other",
+ "column_name": "uterine_position",
"type": "Event",
"json_mapping": {
- "field": "obs.formSubmissionField",
- "concept": "problem_other"
+ "field": "obs.fieldCode",
+ "concept": "uterine_position"
}
},
{
- "column_name": "service_before_referral",
+ "column_name": "adnexa",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "adnexa"
}
},
{
- "column_name": "service_before_referral_other",
+ "column_name": "client_medical_history",
"type": "Event",
"json_mapping": {
- "field": "obs.formSubmissionField",
- "concept": "service_before_referral_other"
+ "field": "obs.fieldCode",
+ "concept": "client_medical_history"
}
},
{
- "column_name": "referral_date",
+ "column_name": "last_interacted_with",
"type": "Event",
- "data_type": "date",
"json_mapping": {
- "field": "obs.formSubmissionField",
- "concept": "referral_date"
+ "field": "version"
+ }
+ }
+ ]
+ },
+ {
+ "name": "ec_fp_provision_of_method",
+ "columns": [
+ {
+ "column_name": "entity_id",
+ "type": "Event",
+ "json_mapping": {
+ "field": "baseEntityId"
}
},
{
- "column_name": "referral_time",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.formSubmissionField",
- "formSubmissionField": "referral_time"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "referral_appointment_date",
+ "column_name": "type_of_condom_collected",
"type": "Event",
"json_mapping": {
- "field": "obs.formSubmissionField",
- "concept": "referral_appointment_date"
+ "field": "obs.fieldCode",
+ "concept": "type_of_condom_collected"
}
},
{
- "column_name": "referral_type",
+ "column_name": "pop",
"type": "Event",
"json_mapping": {
- "field": "obs.formSubmissionField",
- "concept": "referral_type"
+ "field": "obs.fieldCode",
+ "concept": "pop"
}
},
{
- "column_name": "referral_status",
+ "column_name": "coc",
"type": "Event",
"json_mapping": {
- "field": "obs.formSubmissionField",
- "concept": "referral_status"
+ "field": "obs.fieldCode",
+ "concept": "coc"
}
- }
- ]
- },
- {
- "name": "ec_referral_followup",
- "columns": [
+ },
{
- "column_name": "base_entity_id",
+ "column_name": "injection_administered",
"type": "Event",
"json_mapping": {
- "field": "baseEntityId"
+ "field": "obs.fieldCode",
+ "concept": "injection_administered"
}
},
{
- "column_name": "chw_followup_feedback_id",
+ "column_name": "number_male_condoms_collected",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "chw_followup_feedback_id"
+ "concept": "number_male_condoms_collected"
}
},
{
- "column_name": "other_followup_feedback_information",
+ "column_name": "number_female_condoms_collected",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "other_followup_feedback_information"
+ "concept": "number_female_condoms_collected"
}
},
{
- "column_name": "chw_followup_date",
+ "column_name": "iucd_inserted",
"type": "Event",
- "data_type": "date",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "chw_followup_date"
+ "concept": "iucd_inserted"
}
- }
- ]
- },
- {
- "name": "ec_referral_service",
- "columns": [
+ },
{
- "column_name": "name_en",
+ "column_name": "jadelle_inserted",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode"
+ "field": "obs.fieldCode",
+ "concept": "jadelle_inserted"
}
},
{
- "column_name": "name_sw",
+ "column_name": "implanon_inserted",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode"
+ "field": "obs.fieldCode",
+ "concept": "implanon_inserted"
}
},
{
- "column_name": "identifier",
+ "column_name": "client_counseled_on_lam",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode"
+ "field": "obs.fieldCode",
+ "concept": "client_counseled_on_lam"
}
},
{
- "column_name": "is_active",
+ "column_name": "cycle_beads_provided",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode"
+ "field": "obs.fieldCode",
+ "concept": "cycle_beads_provided"
}
- }
- ]
- },
- {
- "name": "ec_referral_service_indicator",
- "columns": [
+ },
{
- "column_name": "name_en",
+ "column_name": "ecp",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode"
+ "field": "obs.fieldCode",
+ "concept": "ecp"
}
},
{
- "column_name": "name_sw",
+ "column_name": "btl",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode"
+ "field": "obs.fieldCode",
+ "concept": "btl"
}
},
{
- "column_name": "is_active",
+ "column_name": "vasectomy",
+ "type": "Event",
+ "json_mapping": {
+ "field": "obs.fieldCode",
+ "concept": "vasectomy"
+ }
+ },
+ {
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode"
+ "field": "version"
}
}
]
},
{
- "name": "ec_sick_child_followup",
+ "name": "ec_fp_other_services",
"columns": [
{
"column_name": "entity_id",
@@ -1753,172 +9761,165 @@
}
},
{
- "column_name": "visit_date",
- "type": "Event",
- "json_mapping": {
- "field": "obs.fieldCode",
- "concept": "date_sickchild"
- }
- },
- {
- "column_name": "weight",
+ "column_name": "client_hiv_test_results",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "client_hiv_test_results"
}
},
{
- "column_name": "height",
+ "column_name": "client_referred_to_ctc",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "client_referred_to_ctc"
}
},
{
- "column_name": "has_diarrhea",
+ "column_name": "partner_tested_for_hiv",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "142412AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "partner_tested_for_hiv"
}
},
{
- "column_name": "diarrhea_duration",
+ "column_name": "partner_hiv_test_results",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "5984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "partner_hiv_test_results"
}
},
{
- "column_name": "dehydration_status",
+ "column_name": "partner_referred_to_ctc",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1497AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "partner_referred_to_ctc"
}
},
{
- "column_name": "other_symptoms",
+ "column_name": "last_interacted_with",
"type": "Event",
- "save_format": "json_array",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "other_sympt_sick_child"
+ "field": "version"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_fp_follow_up_visit",
+ "columns": [
{
- "column_name": "test_ordered",
+ "column_name": "entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "1271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "baseEntityId"
}
},
{
- "column_name": "other_test_ordered",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "test_results",
+ "column_name": "jadelle_removed",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "161577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "jadelle_removed"
}
},
{
- "column_name": "diagnosis",
+ "column_name": "implanon_removed",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "161602AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "implanon_removed"
}
},
{
- "column_name": "diarrhea_treatment",
+ "column_name": "iud_removed",
"type": "Event",
- "save_format": "json_array",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "diarrhea_treat"
+ "concept": "iud_removed"
}
},
{
- "column_name": "amount_of_ors",
+ "column_name": "side_effects",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "diarrhea_treat_ors"
+ "concept": "side_effects"
}
},
{
- "column_name": "amount_rehydration_infusion",
+ "column_name": "complication",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "diarrhea_treat_rehydration"
+ "concept": "complication"
}
},
{
- "column_name": "amount_zinc",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "diarrhea_treat_zinc"
+ "field": "version"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_fp_ecp_register",
+ "columns": [
{
- "column_name": "drugs_taken_home",
+ "column_name": "base_entity_id",
"type": "Event",
- "save_format": "json_array",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "diarrhea_treat_walkaway"
+ "field": "baseEntityId"
}
},
{
- "column_name": "non_diarrhea_treatment",
+ "column_name": "type_of_incident",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "type_of_incident"
}
},
{
- "column_name": "dtc_period",
+ "column_name": "when_did_incidence_occur",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "1785AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "when_did_incidence_occur"
}
},
{
- "column_name": "results",
+ "column_name": "ecp_eligibility",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "concept": "ecp_eligibility"
}
},
{
- "column_name": "date_marked_as_done",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "date_marked_as_done"
+ "field": "version"
}
}
]
},
{
- "name": "ec_anc_danger_signs_outcome",
+ "name": "ec_fp_ecp_provision",
"columns": [
{
"column_name": "entity_id",
@@ -1935,357 +9936,336 @@
}
},
{
- "column_name": "visit_date",
+ "column_name": "was_ecp_provided",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "anc_danger_signs_visitdate"
+ "concept": "was_ecp_provided"
}
},
{
- "column_name": "danger_signs_present",
+ "column_name": "type_of_ecp_provided",
"type": "Event",
- "save_format": "json_array",
"json_mapping": {
"field": "obs.fieldCode",
- "formSubmissionField": "danger_signs_present"
+ "concept": "type_of_ecp_provided"
}
},
{
- "column_name": "other_danger_signs",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "version"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_kvp_prep_register",
+ "columns": [
{
- "column_name": "action_taken",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "baseEntityId"
}
},
{
- "column_name": "status_visit",
+ "column_name": "relational_id",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "status_visit"
+ "concept": "relational_id"
}
},
{
- "column_name": "managed_signs",
+ "column_name": "uic_id",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "managed_signs"
+ "concept": "uic_id"
}
},
{
- "column_name": "comment",
+ "column_name": "hotspot_name",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "comment_anc_danger_signs"
+ "concept": "hotspot_name"
}
},
{
- "column_name": "date_marked_as_done",
+ "column_name": "facility_name",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "date_marked_as_done"
- }
- }
- ]
- },
- {
- "name": "ec_pnc_danger_signs_outcome",
- "columns": [
- {
- "column_name": "entity_id",
- "type": "Event",
- "json_mapping": {
- "field": "baseEntityId"
+ "concept": "facility_name"
}
},
{
- "column_name": "base_entity_id",
+ "column_name": "birth_region",
"type": "Event",
"json_mapping": {
- "field": "formSubmissionId"
+ "field": "obs.fieldCode",
+ "concept": "birth_region"
}
},
{
- "column_name": "visit_date",
+ "column_name": "client_group",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "pnc_danger_signs_visitdate"
+ "concept": "client_group"
}
},
{
- "column_name": "danger_signs_present",
+ "column_name": "last_interacted_with",
"type": "Event",
- "save_format": "json_array",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "danger_signs_present"
+ "field": "version"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_anc_partner_community_followup",
+ "columns": [
{
- "column_name": "other_danger_signs",
+ "column_name": "entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "field": "baseEntityId"
}
},
{
- "column_name": "action_taken",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "action_taken_pnc_danger_signs"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "status_visit",
+ "column_name": "relational_id",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "status_visit"
+ "concept": "relational_id"
}
},
{
- "column_name": "managed_signs",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "managed_signs"
+ "field": "version"
}
},
{
"column_name": "comment",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "comment_pnc_danger_signs"
+ "field": "obs.formSubmissionField",
+ "concept": "anc_partner_followup_comment"
}
},
{
- "column_name": "date_marked_as_done",
+ "column_name": "anc_partner_community_referral_date",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "date_marked_as_done"
+ "field": "obs.formSubmissionField",
+ "concept": "anc_partner_community_referral_date"
}
}
]
},
{
- "name": "ec_malaria_followup_hf",
+ "name": "ec_sbc_register",
"columns": [
{
- "column_name": "entity_id",
+ "column_name": "base_entity_id",
"type": "Event",
"json_mapping": {
"field": "baseEntityId"
}
},
{
- "column_name": "base_entity_id",
+ "column_name": "relational_id",
"type": "Event",
"json_mapping": {
- "field": "formSubmissionId"
+ "field": "obs.fieldCode",
+ "concept": "relational_id"
}
},
{
- "column_name": "visit_date",
+ "column_name": "hiv_status",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "date_malaria_visit_hf"
+ "concept": "hiv_status"
}
},
{
- "column_name": "weight",
+ "column_name": "ctc_number",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "weight_malaria_hf"
+ "concept": "ctc_number"
}
},
{
- "column_name": "height",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "height_malaria_hf"
+ "field": "version"
}
- },
+ }
+ ]
+ },
+ {
+ "name": "ec_sbc_visit",
+ "columns": [
{
- "column_name": "tests_ordered",
+ "column_name": "entity_id",
"type": "Event",
- "save_format": "json_array",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "test_malaria_hf"
+ "field": "baseEntityId"
}
},
{
- "column_name": "no_mrdt_reason",
+ "column_name": "base_entity_id",
"type": "Event",
- "save_format": "json_array",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "no_mrdt_malaria_hf"
+ "field": "formSubmissionId"
}
},
{
- "column_name": "other_tests",
+ "column_name": "relational_id",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "other_test_malaria_hf"
+ "concept": "relational_id"
}
},
{
- "column_name": "test_results",
+ "column_name": "activity_type",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "test_results_malaria_hf"
+ "concept": "activity_type"
}
},
{
- "column_name": "other_test_results",
+ "column_name": "received_art_counseling",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "other_test_results_malaria_hf"
+ "concept": "received_art_counseling"
}
},
{
- "column_name": "diagnosis",
+ "column_name": "received_condom_education",
"type": "Event",
- "save_format": "json_array",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "diagnosis_malaria_hf"
+ "concept": "received_condom_education"
}
},
{
- "column_name": "other_diagnosis",
+ "column_name": "health_education_received",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "other_diagnosis_malaria_hf"
+ "concept": "health_education_received"
}
},
{
- "column_name": "treatment_prescribed",
+ "column_name": "health_education_hiv_intervention",
"type": "Event",
- "save_format": "json_array",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "treat_malaria_hf"
+ "concept": "health_education_hiv_intervention"
}
},
{
- "column_name": "other_treatment_prescribed",
+ "column_name": "distributed_any_hiv_materials",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "treat_other_malaria_hf"
+ "concept": "distributed_any_hiv_materials"
}
},
{
- "column_name": "outcomes",
+ "column_name": "type_of_materials_content_distributed",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "outcome_malaria_hf"
+ "concept": "type_of_materials_content_distributed"
}
},
{
- "column_name": "remarks",
+ "column_name": "health_education_hiv_intervention",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "remark_malaria_hf"
+ "concept": "health_education_hiv_intervention"
}
},
{
- "column_name": "hcp_attending",
+ "column_name": "received_any_hiv_sms",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "hcp_attending"
+ "concept": "received_any_hiv_sms"
}
},
{
- "column_name": "date_marked_as_done",
+ "column_name": "received_message",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "date_marked_as_done"
- }
- }
- ]
- },
- {
- "name": "ec_family_planning_update",
- "columns": [
- {
- "column_name": "entity_id",
- "type": "Event",
- "json_mapping": {
- "field": "baseEntityId"
+ "concept": "received_message"
}
},
{
- "column_name": "base_entity_id",
+ "column_name": "reason_not_receiving_hiv_sms",
"type": "Event",
"json_mapping": {
- "field": "formSubmissionId"
+ "field": "obs.fieldCode",
+ "concept": "reason_not_receiving_hiv_sms"
}
},
{
- "column_name": "fp_method_accepted",
+ "column_name": "used_toll_free",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "fp_method_accepted"
+ "concept": "used_toll_free"
}
},
{
- "column_name": "fp_reg_date",
+ "column_name": "sbc_comments",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "fp_reg_date"
+ "concept": "sbc_comments"
}
},
{
- "column_name": "fp_reg_date",
+ "column_name": "toll_free_service_accessed",
"type": "Event",
"json_mapping": {
"field": "obs.fieldCode",
- "concept": "fp_change_or_stop_date"
+ "concept": "toll_free_service_accessed"
}
},
{
- "column_name": "date_marked_as_done",
+ "column_name": "last_interacted_with",
"type": "Event",
"json_mapping": {
- "field": "obs.fieldCode",
- "concept": "date_marked_as_done"
+ "field": "version"
}
}
]
}
+
]
}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/all_clients_registration_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/all_clients_registration_form.json
new file mode 100644
index 0000000000..eac7d4a2c3
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/all_clients_registration_form.json
@@ -0,0 +1,1089 @@
+{
+ "count": "2",
+ "encounter_type": "Family 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"
+ },
+ "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": "Taarifa za mteja",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "fam_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "fam_name",
+ "type": "edit_text",
+ "hint": "Jina la Ukoo",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Ukoo"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka Jina la Ukoo"
+ }
+ },
+ {
+ "key": "client_first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kwanza"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ }
+ },
+ {
+ "key": "client_middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kati"
+ }
+ },
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "hidden": "true",
+ "type": "edit_text",
+ "barcode_type": "qrcode",
+ "hint": "Nambari ya utambulisho",
+ "scanButtonText": "Scan QR Code",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali weka kitambulisho halali"
+ }
+ },
+ {
+ "key": "fam_village",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "cityVillage",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Jina la eneo",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka jina la eneo au mji"
+ }
+ },
+ {
+ "key": "landmark",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "landmark",
+ "type": "edit_text",
+ "hint": "Alama/Maelezo ya eneo la nyumba",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka alama/maelezo ya eneo."
+ }
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "15dp"
+ },
+ {
+ "key": "sync_location_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "sync_location_id",
+ "type": "spinner",
+ "hint": "Chagua eneo la WAJA"
+ }
+ ]
+ },
+ "step2": {
+ "title": "Taarifa za mteja",
+ "fields": [
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Kitambulisho cha Kituoni",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali weka kitambulisho halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka kitambulisho cha KIPEKEE"
+ }
+ },
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "last_name",
+ "type": "edit_text",
+ "hint": "Jina la Ukoo",
+ "edit_type": "name",
+ "read_only": true,
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Ukoo"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kwanza"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kati"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "date_picker",
+ "hint": "Tarehe ya kuzaliwa (DOB)",
+ "expanded": false,
+ "duration": {
+ "label": "Umri"
+ },
+ "min_date": "today-120y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza tarehe ya kuzaliwa (DOB)"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "age_calculated",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob_unknown",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdateApprox",
+ "type": "check_box",
+ "label": "",
+ "options": [
+ {
+ "key": "dob_unknown",
+ "text": "Tarehe ya kuzaliwa haijulikani",
+ "text_size": "18px",
+ "value": "false"
+ }
+ ]
+ },
+ {
+ "key": "age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "age",
+ "type": "edit_text",
+ "hint": "Umri",
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Must be a rounded number"
+ },
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid age"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Lazima iwe namba kamili"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Umri lazima uwe sawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "120",
+ "err": "Umri lazima uwe sawa au chini ya 120"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka umri"
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Jinsi",
+ "values": [
+ "Me",
+ "Ke"
+ ],
+ "keys": [
+ "Male",
+ "Female"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza jinsi"
+ }
+ },
+ {
+ "key": "marital_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "marital_status",
+ "type": "spinner",
+ "hint": "Hali ya Ndoa ya Mteja?",
+ "values": [
+ "Hajaoa/Kuolewa",
+ "Ameoa/Kuolewa",
+ "Ameachwa",
+ "Mjane/Mgane",
+ "Kuishi pamoja bila ndoa"
+ ],
+ "keys": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "openmrs_choice_ids": {
+ "Single": "Single",
+ "Married": "Married",
+ "Divorced": "Divorced",
+ "Widowed": "Widowed",
+ "Cohabitation": "Cohabitation"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya mteja",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba lazima iwe jumla ya tarakimu 10 kwa urefu"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ }
+ },
+ {
+ "key": "id_avail",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "id_avail",
+ "type": "check_box",
+ "label": "Je, una kitambulisho chochote kati ya vifuatavyo?",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_national_id",
+ "text": "Kitambulisho cha Taifa",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_national_id"
+ },
+ {
+ "key": "chk_voters_id",
+ "text": "Kitambulisho cha usajili wa mpiga kura",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_voters_id"
+ },
+ {
+ "key": "chk_drivers_license",
+ "text": "Leseni ya udereva",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_drivers_license"
+ },
+ {
+ "key": "chk_passport_number",
+ "text": "kitambulisho cha kusafiria (Passport)",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_passport_number"
+ },
+ {
+ "key": "chk_none",
+ "text": "Hakuna",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "national_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "National_ID",
+ "type": "mask_edit_text",
+ "mask": "########-#####-#####-##",
+ "mask_hint": "12345678912345678912",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya kitambulisho cha taifa k.m 12345678-91234-56789-12",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "23",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_regex": {
+ "value": "^\\d{8}-\\d{5}-\\d{5}-\\d{2}$",
+ "err": "Namba ya kitambulisho cha kitaifa inapaswa kuwa ya umbizo (XXXXXXXX-XXXXX-XXXXX-XX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_national_id"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "voter_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Voter_Registration_Number",
+ "type": "mask_edit_text",
+ "mask": "T-####-####-###-#",
+ "mask_hint": "123456789123",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya kitambulisho cha mpiga kura k.m T-1234-5678-912-3",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_regex": {
+ "value": "^T-\\d{4}-\\d{4}-\\d{3}-\\d{1}$",
+ "err": "Namba ya kitambulosho cha mpiga kura inapaswa kuwa ya umbizo (T-XXXX-XXXX-XXX-X)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_voters_id"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "driver_license",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Driver_License_Number",
+ "type": "mask_edit_text",
+ "mask": "##########",
+ "mask_hint": "1234567891",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya leseni ya udereva k.m 1234567891",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "10",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_regex": {
+ "value": "^([0-9]{10})",
+ "err": "Namba ya leseni ya udereva inapaswa kuwa ya umbizo (XXXXXXXXX)"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_drivers_license"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "passport_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Passport",
+ "type": "mask_edit_text",
+ "mask": "TAE-###-###",
+ "mask_hint": "123456",
+ "allowed_chars": "0123456789",
+ "hint": "Passport namba e.g TAE-123-456",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "11",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_regex": {
+ "value": "^TAE-\\d{3}-\\d{3}$",
+ "err": "Namba ya kitambulisho cha kusafiria inapaswa ijazwe hivi (TAE-XXX-XXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_passport_number"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "insurance_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Health_Insurance_Type",
+ "type": "spinner",
+ "hint": "Mtoa huduma ya bima ya afya",
+ "values": [
+ "Mfuko wa Afya ya Jamii (CHF)/(iCHF)",
+ "Mfuko wa Taifa wa Hifadhi ya Jamii - Manufaa ya Bima ya Afya ya Jamii (SHIB)",
+ "Mfuko wa Taifa wa Bima ya Afya (NHIF)",
+ "Tiba Kwa Kadi (TIKA)",
+ "AAR Huduma ya Afya",
+ "Bima ya afya Strategies",
+ "Milvik Tanzania Ltd (BIMA Mkononi)",
+ "Bima ya afya ya Britam Tanzania",
+ "Bima ya afya Jubilee",
+ "Bima ya afya ya Resolutions",
+ "Bima ya afya ya Reliance",
+ "Nyinginezo",
+ "Hakuna"
+ ],
+ "keys": [
+ "Community Health Fund (CHF)",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
+ "Tiba Kwa Kadi (TIKA)",
+ "AAR Healthcare",
+ "Strategies Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)",
+ "Britam Insurance Tanzania",
+ "Jubilee Insurance",
+ "Resolutions Insurance",
+ "Reliance Insurance",
+ "Other",
+ "None"
+ ],
+ "openmrs_choice_ids": {
+ "Community Health Fund (CHF)": "Community_Health_Fund",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
+ "Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
+ "AAR Healthcare": "AAR_Healthcare",
+ "AAR Strategies Insurance": "Strategies_Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)": "BIMA_Mkononi",
+ "Britam Insurance Tanzania": "Britam_Insurance_Tanzania",
+ "Jubilee Insurance": "Jubilee_Insurance",
+ "Resolutions Insurance": "Resolutions_Insurance",
+ "Reliance Insurance": "Reliance_Insurance",
+ "Other": "Other_Health_Insurance_Type",
+ "None": "No_Health_Insurance"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza mtoa huduma wa bima"
+ }
+ },
+ {
+ "key": "insurance_provider_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Health_Insurance_Type",
+ "type": "edit_text",
+ "hint": "Mtoa huduma mwingine wa bima ya afya",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha mtoa huduma wa bima"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "insurance_provider_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Health_Insurance_Number",
+ "type": "edit_text",
+ "hint": "Namba ya bima ya afya ya mteja",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba ya bima ya afya ya mteja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "wra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "mra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "preg_1yr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "preg_1yr",
+ "type": "spinner",
+ "hint": "Je, mwanamke amejifungua katika mwaka 1 uliopita?",
+ "values": [
+ "Ndio",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua ikiwa mwanamke amejifungua katika mwaka 1 uliopita"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "disabilities",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabilities",
+ "type": "spinner",
+ "hint": "Ulemavu wa kimwili",
+ "values": [
+ "Ndio ",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "type_of_disability",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Aina ya ulemavu",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Ulemavu wa kimwili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Ulemavu wa Uti wa Mgongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Majeraha ya Kichwa - Ulemavu wa Ubongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Ulemavu wa Maono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Ulemavu wa Kusikia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Ulemavu wa Utambuzi au Kujifunza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Matatizo ya Kisaikolojia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Ulemavu Usioonekana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua aina ya ulemavu wa kimwili"
+ }
+ },
+ {
+ "key": "has_primary_caregiver",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Has_Primary_Caregiver",
+ "type": "spinner",
+ "hint": "Je, una mlezi/msaidizi wa Tiba?",
+ "values": [
+ "Ndio",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "primary_caregiver_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Primary_Caregiver_Name",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Jina la mlezi",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja jina la mlezi."
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya mlezi mkuu",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba lazima iwe jumla ya tarakimu 10 kwa urefu"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "service_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_provider",
+ "type": "native_radio",
+ "label": "Kazi ya Mteja",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "chk_self_employed",
+ "text": "Amejiajiri",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_self_employed"
+ },
+ {
+ "key": "chk_employed",
+ "text": "Ameajiriwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_employed"
+ },
+ {
+ "key": "chk_unemployed",
+ "text": "Hajaajiriwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_unemployed"
+ },
+ {
+ "key": "chk_farmer",
+ "text": "Mkulima",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_farmer"
+ },
+ {
+ "key": "chk_traditional_healer",
+ "text": "Mtoa huduma ya Tiba Asili",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_traditional_healer"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "leader",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Community_Leader",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Una nafasi yoyote ya uongozi katika jamii?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_religious",
+ "text": "Kiongozi wa dini",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Religious_Leader"
+ },
+ {
+ "key": "chk_traditional",
+ "text": "Kiongozi wa jadi",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Traditional_leader"
+ },
+ {
+ "key": "chk_political",
+ "text": "Kiongozi wa kisiasa",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Political_leader"
+ },
+ {
+ "key": "chk_influential",
+ "text": "Kiongozi mwenye ushawishi",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Influential_Leader"
+ },
+ {
+ "key": "chk_other",
+ "text": "Nyingine",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Community_Leader_Type"
+ },
+ {
+ "key": "chk_none",
+ "text": "Hakuna",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Not_a_Community_Leader"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "leader_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Community_Leader_Type_Name",
+ "type": "edit_text",
+ "hint": "Taja nafasi nyingine katika jamii",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha jukumu"
+ },
+ "relevance": {
+ "step2:leader": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_other"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/all_clients_update_registration_info_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/all_clients_update_registration_info_form.json
new file mode 100644
index 0000000000..3af0f08bfc
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/all_clients_update_registration_info_form.json
@@ -0,0 +1,1301 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Family 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"
+ },
+ "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": "Client details",
+ "fields": [
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Kitambulisho cha Kituoni",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali Ingiza Kitambulisho"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Ingiza Kitambulisho"
+ }
+ },
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "last_name",
+ "type": "edit_text",
+ "hint": "Jina la Ukoo",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza Jina la Ukoo"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza Jina la Kwanza"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
+ }
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali Ingiza jina sahihi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Ingiza Jina la Kati"
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "date_picker",
+ "hint": "Tarehe ya kuzaliwa",
+ "expanded": false,
+ "duration": {
+ "label": "Umri"
+ },
+ "min_date": "today-120y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Ingiza Tarehe ya kuzaliwa"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "age_calculated",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob_unknown",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdateApprox",
+ "type": "check_box",
+ "label": "",
+ "options": [
+ {
+ "key": "dob_unknown",
+ "text": "Tarehe ya kuzaliwa haijulikani",
+ "text_size": "18px",
+ "value": "false"
+ }
+ ]
+ },
+ {
+ "key": "age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "age",
+ "type": "edit_text",
+ "hint": "Umri",
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid age"
+ },
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Must be a rounded number"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "lazima iwe namba kamili"
+ },
+ "v_max": {
+ "value": "120",
+ "err": "Umri lazima uwe sawa au zaidi ya 120"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza umri"
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Jinsi",
+ "values": [
+ "Me",
+ "Ke"
+ ],
+ "keys": [
+ "Male",
+ "Female"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza jinsi ya mteja"
+ }
+ },
+ {
+ "key": "marital_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "marital_status",
+ "type": "spinner",
+ "hint": "Hali ya Ndoa",
+ "values": [
+ "Hajaoa/Hajaolewa",
+ "Ameoa/Ameolewa",
+ "Ameachwa",
+ "Mjane/Mgane",
+ "Kuishi pamoja bila ndoa"
+ ],
+ "keys": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "openmrs_choice_ids": {
+ "Single": "Single",
+ "Married": "Married",
+ "Divorced": "Divorced",
+ "Widowed": "Widowed",
+ "Cohabitation": "Cohabitation"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu",
+ "v_numeric": {
+ "value": "true",
+ "err": "namba lazima iwe na tarakimu 10"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Nambari lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ }
+ },
+ {
+ "key": "id_avail",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "id_avail",
+ "type": "check_box",
+ "label": "Je una vitambulisho kati ya hivi:",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_national_id",
+ "text": "Kitambulisho cha Taifa",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_national_id"
+ },
+ {
+ "key": "chk_voters_id",
+ "text": "Kitambulisho cha Mpiga kura",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_voters_id"
+ },
+ {
+ "key": "chk_drivers_license",
+ "text": "Leseni ya udereva",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_drivers_license"
+ },
+ {
+ "key": "chk_passport_number",
+ "text": "kitambulisho cha kusafiria (Passport)",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_passport_number"
+ },
+ {
+ "key": "chk_none",
+ "text": "Hakuna",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "national_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "National_ID",
+ "type": "mask_edit_text",
+ "mask": "########-#####-#####-##",
+ "mask_hint": "12345678912345678912",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya kitambulisho cha Taifa mfano: 12345678-91234-56789-12",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "23",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid national id"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_regex": {
+ "value": "^\\d{8}-\\d{5}-\\d{5}-\\d{2}$",
+ "err": "Namba ya Kitambulisho cha Taifa inapaswa iwe hivi (XXXXXXXX-XXXXX-XXXXX-XX)"
+ },
+ "relevance": {
+ "step1:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_national_id"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "voter_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Voter_Registration_Number",
+ "type": "mask_edit_text",
+ "mask": "T-####-####-###-#",
+ "mask_hint": "123456789123",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya kitambulisho cha mpiga kura mfano: T-1234-5678-912-3",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid voters registration"
+ },
+ "v_regex": {
+ "value": "^T-\\d{4}-\\d{4}-\\d{3}-\\d{1}$",
+ "err": "Namba ya mpiga kura inapaswa ijazwe hivi (T-XXXX-XXXX-XXX-X)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "relevance": {
+ "step1:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_voters_id"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "driver_license",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Driver_License_Number",
+ "type": "mask_edit_text",
+ "mask": "##########",
+ "mask_hint": "1234567891",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya Leseni ya Udereva mfano: 1234567891",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "10",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid drivers license number"
+ },
+ "v_regex": {
+ "value": "^([0-9]{10})",
+ "err": "Namba ya leseni ya Udereva ijazwe hivi: (XXXXXXXXXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "relevance": {
+ "step1:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_drivers_license"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "passport_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Passport",
+ "type": "mask_edit_text",
+ "mask": "TAE-###-###",
+ "mask_hint": "123456",
+ "allowed_chars": "0123456789",
+ "hint": "Passport namba e.g TAE-123-456",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "11",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_regex": {
+ "value": "^TAE-\\d{3}-\\d{3}$",
+ "err": "Namba ya kitambulisho cha kusafiria inapaswa ijazwe hivi (TAE-XXX-XXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "relevance": {
+ "step1:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_passport_number"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "insurance_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Health_Insurance_Type",
+ "type": "spinner",
+ "hint": "Mtoa huduma za Bima ya Afya",
+ "values": [
+ "Community Health Fund (CHF)/(iCHF)",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
+ "Tiba Kwa Kadi (TIKA)",
+ "AAR Huduma ya Afya",
+ "Bima ya afya Strategies",
+ "Milvik Tanzania Ltd (BIMA Mkononi)",
+ "Bima ya afya ya Britam Tanzania",
+ "Bima ya afya Jubilee",
+ "Bima ya afya ya Resolutions",
+ "Bima ya afya ya Reliance",
+ "Nyingine",
+ "Hakuna"
+ ],
+ "keys": [
+ "Community Health Fund (CHF)",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
+ "Tiba Kwa Kadi (TIKA)",
+ "AAR Healthcare",
+ "Strategies Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)",
+ "Britam Insurance Tanzania",
+ "Jubilee Insurance",
+ "Resolutions Insurance",
+ "Reliance Insurance",
+ "Other",
+ "None"
+ ],
+ "openmrs_choice_ids": {
+ "Community Health Fund (CHF)": "Community_Health_Fund",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
+ "Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
+ "AAR Healthcare": "AAR_Healthcare",
+ "AAR Strategies Insurance": "Strategies_Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)": "BIMA_Mkononi",
+ "Britam Insurance Tanzania": "Britam_Insurance_Tanzania",
+ "Jubilee Insurance": "Jubilee_Insurance",
+ "Resolutions Insurance": "Resolutions_Insurance",
+ "Reliance Insurance": "Reliance_Insurance",
+ "Other": "Other_Health_Insurance_Type",
+ "None": "No_Health_Insurance"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza mtoa huduma wa Bima za Afya"
+ }
+ },
+ {
+ "key": "insurance_provider_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Health_Insurance_Type",
+ "type": "edit_text",
+ "hint": "Bima za Afya nyingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jina la mtoa huduma wa Bima ya Afya"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "insurance_provider_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Health_Insurance_Number",
+ "type": "edit_text",
+ "hint": "Namba ya bima ya afya ya mteja",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba ya bima ya afya ya mteja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "wra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "mra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "preg_1yr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "preg_1yr",
+ "type": "spinner",
+ "hint": "Je Mama huyu amejifungua ndani ya mwaka mmoja uliopita?",
+ "values": [
+ "Ndiyo",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Je Mama huyu amejifungua ndani ya mwaka mmoja uliopita?"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "disabilities",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabilities",
+ "type": "spinner",
+ "hint": "Ulemavu wa Mwili",
+ "values": [
+ "Ndiyo",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ }
+ },
+ {
+ "key": "type_of_disability",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Aina ya Ulemavu wa mwili",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Ulemavu wa Kimwili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Ulemavu wa Uti wa Mgongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Ulemavu wa Akili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Ulemavu wa Macho",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Ulemavu kwa kusikia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Ulemavu katika utambuzi au kujifunza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Matatizo ya Kisaikolojia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Ulemavu usioonekana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua aina ya Ulemavu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "has_primary_caregiver",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_primary_caregiver",
+ "type": "spinner",
+ "hint": "Je una msaidizi wa kimatatibu",
+ "values": [
+ "Ndiyo",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Chagua mojawapo:"
+ }
+ },
+ {
+ "key": "primary_caregiver_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Primary_Caregiver_Name",
+ "type": "edit_text",
+ "hint": "Jina la Msaidizi",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jina la Msaidizi"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya msaidizi",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "service_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_provider",
+ "type": "native_radio",
+ "label": "Kazi ya Mteja",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "chk_self_employed",
+ "text": "Amejiajiri",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_self_employed"
+ },
+ {
+ "key": "chk_employed",
+ "text": "Ameajiriwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_employed"
+ },
+ {
+ "key": "chk_unemployed",
+ "text": "Hajaajiriwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_unemployed"
+ },
+ {
+ "key": "chk_farmer",
+ "text": "Mkulima",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_farmer"
+ },
+ {
+ "key": "chk_traditional_healer",
+ "text": "Mtoa huduma ya Tiba Asili",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_traditional_healer"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "leader",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Community_Leader",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Je, ana uongozi wowote kwenye jamii?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_religious",
+ "text": "Kiongozi wa Dini",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Religious_Leader"
+ },
+ {
+ "key": "chk_traditional",
+ "text": "Kiongozi wa Jadi",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Traditional_leader"
+ },
+ {
+ "key": "chk_political",
+ "text": "Kiongozi wa Kisiasa",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Political_leader"
+ },
+ {
+ "key": "chk_influential",
+ "text": "Mtu mwenye ushawishi katika jamii",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Influential_Leader"
+ },
+ {
+ "key": "chk_other",
+ "text": "Nyingine",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Community_Leader_Type"
+ },
+ {
+ "key": "chk_none",
+ "text": "Hakuna",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Not_a_Community_Leader"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "leader_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Community_Leader_Type_Name",
+ "type": "edit_text",
+ "hint": "Uongozi mwingine kwenye jamii",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja uongozi mwingine"
+ },
+ "relevance": {
+ "step1:leader": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "reasons_for_registration",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Registration_Reason",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reasons_for_registration_male_15",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_registration_male_15",
+ "type": "check_box",
+ "label": "Sababu za usajili",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "hiv_aids",
+ "text": "Maambukizi ya VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_aids"
+ },
+ {
+ "key": "tuberculosis",
+ "text": "Kifua Kikuu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tuberculosis"
+ },
+ {
+ "key": "homosexual",
+ "text": "Wanaume wanaofanya mapenzi na wanaume",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "homosexual"
+ },
+ {
+ "key": "gender_violence",
+ "text": "Unyanyasaji wa Kijinsia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gender_violence"
+ },
+ {
+ "key": "drug_abuse",
+ "text": "Matumizi mabaya ya dawa za kulevya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_abuse"
+ },
+ {
+ "key": "male_engagement",
+ "text": "Uwepo wa mwanaume husika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_engagement"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Sababu ya usajili inahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reasons_for_registration_female_15",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_registration_female_15",
+ "type": "check_box",
+ "label": "Sababu za usajili",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "hiv_aids",
+ "text": "Maambukizi ya VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_aids"
+ },
+ {
+ "key": "tuberculosis",
+ "text": "Kifua kikuu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tuberculosis"
+ },
+ {
+ "key": "sex_worker_woman",
+ "text": "Mfanyabiashara ya ngono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sex_worker_woman"
+ },
+ {
+ "key": "gender_violence",
+ "text": "Ukatili wa kijinsia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gender_violence"
+ },
+ {
+ "key": "drug_abuse",
+ "text": "Matumizi mabaya ya dawa za kulevya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_abuse"
+ },
+ {
+ "key": "pregnant_mother",
+ "text": "Mama mjamzito",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnant_mother"
+ },
+ {
+ "key": "breastfeeding_mother",
+ "text": "Mama anayenyonyesha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breastfeeding_mother"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Sababu ya usajili inahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reasons_for_registration_under_15",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_registration_under_15",
+ "type": "check_box",
+ "label": "Sababu za usajili",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "hiv_aids",
+ "text": "Maambukizi ya VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_aids"
+ },
+ {
+ "key": "tuberculosis",
+ "text": "Kifua kikuu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tuberculosis"
+ },
+ {
+ "key": "hiv_infected_child",
+ "text": "Mtoto aliyezaliwa na mama mwenye VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_infected_child"
+ },
+ {
+ "key": "untested_hiv_infected_child",
+ "text": "Mtoto ambaye hajapimwa VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "untested_hiv_infected_child"
+ },
+ {
+ "key": "abused_child",
+ "text": "Unyanyasaji wa mtoto",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abused_child"
+ },
+ {
+ "key": "gender_violence",
+ "text": "Unyanyasaji wa kijinsia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gender_violence"
+ },
+ {
+ "key": "drug_abuse",
+ "text": "Matumizi mabaya ya dawa za kulevya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_abuse"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Sababu ya usajili inahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reasons_for_registration_female_under_10",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_registration_female_under_10",
+ "type": "check_box",
+ "label": "Sababu za usajili",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "hiv_aids",
+ "text": "Maambukizi ya VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_aids"
+ },
+ {
+ "key": "tuberculosis",
+ "text": "Kifua kikuu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tuberculosis"
+ },
+ {
+ "key": "hiv_infected_child",
+ "text": "Mtoto aliyezaliwa na mama mwenye VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_infected_child"
+ },
+ {
+ "key": "untested_hiv_infected_child",
+ "text": "Mtoto ambaye hajapimwa VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "untested_hiv_infected_child"
+ },
+ {
+ "key": "abused_child",
+ "text": "Unyanyasaji wa mtoto",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abused_child"
+ },
+ {
+ "key": "gender_violence",
+ "text": "Ukatili wa kijinsia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gender_violence"
+ },
+ {
+ "key": "drug_abuse",
+ "text": "Matumizi mabaya ya dawa za kulevya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_abuse"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Sababu ya usajili inahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reasons_for_registration_female_10_to_15",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_registration_female_10_to_15",
+ "type": "check_box",
+ "label": "Sababu za usajili",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "hiv_aids",
+ "text": "Maambukizi ya VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_aids"
+ },
+ {
+ "key": "tuberculosis",
+ "text": "Kifua kikuu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tuberculosis"
+ },
+ {
+ "key": "hiv_infected_child",
+ "text": "Mtoto aliyezaliwa na mama mwenye VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_infected_child"
+ },
+ {
+ "key": "untested_hiv_infected_child",
+ "text": "Mtoto ambaye hajapimwa VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "untested_hiv_infected_child"
+ },
+ {
+ "key": "abused_child",
+ "text": "Unyanyasaji wa mtoto",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abused_child"
+ },
+ {
+ "key": "gender_violence",
+ "text": "Ukatili wa kijinsia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gender_violence"
+ },
+ {
+ "key": "drug_abuse",
+ "text": "Matumizi mabaya ya dawa za kulevya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_abuse"
+ },
+ {
+ "key": "pregnant_mother",
+ "text": "Mama mjamzito",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnant_mother"
+ },
+ {
+ "key": "breastfeeding_mother",
+ "text": "Mama anayenyonyesha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breastfeeding_mother"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Sababu ya usajili inahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_counselling.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_counselling.json
new file mode 100644
index 0000000000..b4367d6efd
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_counselling.json
@@ -0,0 +1,151 @@
+{
+ "count": "1",
+ "encounter_type": "ANC Counselling",
+ "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"
+ },
+ "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": "Ushauri",
+ "fields": [
+ {
+ "key": "given_counselling",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "given_counselling",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Chagua Ushauri uliyotolewa kwa mteja kwenye tembeleo hili",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ]
+ "options": [
+ {
+ "key": "chk_sexual_relationship",
+ "text": "Uhusiano wa kimapenzi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_sexual_relationship"
+ },
+ {
+ "key": "chk_birth_emergency_plan",
+ "text": "Mpango wa kujifungua na wa dharura",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_birth_emergency_plan"
+ },
+ {
+ "key": "chk_danger_signs",
+ "text": "Dalili hatarishi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_danger_signs"
+ },
+ {
+ "key": "chk_discussion_std_hiv",
+ "text": "Majadiliano juu ya STI/RTI/VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_discussion_std_hiv"
+ },
+ {
+ "key": "chk_condom_use",
+ "text": "Maumizi ya kondomu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_condom_use"
+ },
+ {
+ "key": "chk_advice_gravid",
+ "text": "Ushauri juu ya usumbufu unaojitokeza wakati wa ujauzito",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_advice_gravid"
+ },
+ {
+ "key": "chk_self_care",
+ "text": "Kujijali",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_self_care"
+ },
+ {
+ "key": "chk_healthy_eating",
+ "text": "Lishe bora",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_healthy_eating"
+ },
+ {
+ "key": "chk_physical_activity",
+ "text": "Shuguli za kimwili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_physical_activity"
+ },
+ {
+ "key": "chk_use_folic_acid",
+ "text": "Matumizi ya Madini Chuma (Iron) Foliki Asidi kila siku",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_use_folic_acid"
+ },
+ {
+ "key": "chk_counsel_llin",
+ "text": "Utoaji na ushauri juu ya matumizi ya chandarua (LLIN)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_counsel_llin"
+ },
+ {
+ "key": "chk_child_feeding",
+ "text": "Ulishaji wa mtoto",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_child_feeding"
+ },
+ {
+ "key": "chk_none",
+ "text": "Ushauri haukutolewa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_none"
+ }
+ ]
+ },
+ {
+ "key": "counselling_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "counselling_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_danger_signs_outcome.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_danger_signs_outcome.json
index e0c9f624c6..70c5c3716d 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_danger_signs_outcome.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_danger_signs_outcome.json
@@ -18,11 +18,6 @@
"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",
@@ -54,7 +49,7 @@
}
},
"step1": {
- "title": "Dalili za hatari wakati wa ujauzito",
+ "title": "Dalili za Hatari (ANC)",
"fields": [
{
"key": "anc_danger_signs_visitdate",
@@ -92,12 +87,12 @@
"type": "hidden"
},
{
- "key": "anc_key_info",
+ "key": "anc_key_info_swahili",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "anc_key_info",
+ "openmrs_entity_id": "anc_key_info_swahili",
"type": "toaster_notes",
- "text": "Maelezo muhimu kwa kituo cha afya:\nSiku ya mwisho ya hedhi (LNMP): \nUmri wa mimba (GA): {gest_age}\nTarehe kwa kutarijia kujifungua (EDD): {edd}",
+ "text": "Taarifa muhimu kwa kituo cha afya: Kipindi cha mwisho cha kawaida cha hedhi: (LNMP) Umri wa ujauzito: {gest_age} EDD: {edd}",
"toaster_type": "info",
"calculation": {
"rules-engine": {
@@ -111,76 +106,65 @@
"key": "danger_signs_present",
"type": "check_box",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160939AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "danger_signs_present",
"openmrs_entity_parent": "",
- "label": "Je, mama alikuwa na dalili yoyote ya hatari ",
+ "label": "Mwanamke huyo alikuwa na dalili gani hatarishi?",
"combine_checkbox_option_values": "true",
"options": [
{
"key": "Fever",
- "openmrs_choice_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Homa",
- "value": false
+ "openmrs_choice_id": "Fever",
+ "text": "Homa"
},
{
"key": "Bleeding_vaginally",
- "openmrs_choice_id": "150802AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Damu kutoka ukeni",
- "value": false
+ "openmrs_choice_id": "Bleeding_vaginally",
+ "text": "Kutokwa na damu ukeni"
},
{
"key": "Severe_headache",
- "openmrs_choice_id": "139081AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Maumivu ya kichwa",
- "value": false
+ "openmrs_choice_id": "Severe_headache",
+ "text": "Maumivu makali ya kichwa"
},
{
"key": "Convulsions",
- "openmrs_choice_id": "164483AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Degedege",
- "value": false
+ "openmrs_choice_id": "Convulsions",
+ "text": "degedege"
},
{
"key": "Difficulty_breathing",
- "openmrs_choice_id": "142373AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Kushindwa kupumua",
- "value": false
+ "openmrs_choice_id": "Difficulty_breathing",
+ "text": "Kupumua kwa shida"
},
{
"key": "Severe_abdominal_pain",
- "openmrs_choice_id": "165271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Maumivu makali ya tumbo",
- "value": false
+ "openmrs_choice_id": "Severe_abdominal_pain",
+ "text": "Maumivu makali ya tumbo"
},
{
"key": "Swelling_of_the_face_and/or_hands",
- "openmrs_choice_id": "460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Kuvimba uso na / au mikono",
- "value": false
+ "openmrs_choice_id": "Swelling_of_the_face_and",
+ "text": "Kuvimba kwa uso na/au mikono"
},
{
"key": "Discoloured_or_watery_liquid_vaginal_discharge_with_a_bad_smell",
- "openmrs_choice_id": "123395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Kutoka uchafu / majimaji ukeni yenye harufu mbaya",
- "value": false
+ "openmrs_choice_id": "Discoloured_or_watery_liquid_vaginal_discharge_with_a_bad_smell",
+ "text": "Kutowa na majimaji yenye rangirangi na harufu mbaya ukeni"
},
{
"key": "No_movement_unusual_movement_for_a_child_in_the_womb",
- "openmrs_choice_id": "113377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Kutocheza / kucheza kusiko kwa kawaida kwa mtoto aliye tumboni",
- "value": false
+ "openmrs_choice_id": "No_movement_unusual_movement_for_a_child_in_the_womb",
+ "text": "Hakuna uchezaji/uchezaji usiyo wa kawaida wa mtoto tumboni"
},
{
"key": "Other",
- "openmrs_choice_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Nyingine",
- "value": false
+ "openmrs_choice_id": "Other",
+ "text": "Nyingine"
},
{
"key": "None",
- "openmrs_choice_id": "",
- "text": "None",
- "value": false
+ "openmrs_choice_id": "None",
+ "text": "Hakuna"
}
],
"exclusive": [
@@ -188,17 +172,17 @@
],
"v_required": {
"value": "true",
- "err": "Tafadhali chagua ishara ya hatari"
+ "err": "Tafadhali chagua dalili hatarishi"
}
},
{
"key": "other_anc_danger_signs",
"type": "edit_text",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "other_anc_danger_signs",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Dalili nyinginezo za hatari",
+ "hint": "Dalili hatarishi nyingine",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -208,37 +192,37 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza dalili nyinginezo za hatari"
+ "err": "Tafadhali ingiza dalili hatarishi nyingine"
}
},
{
"key": "action_taken_anc_danger_signs",
"type": "native_radio",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "action_taken_anc_danger_signs",
"openmrs_entity_parent": "",
- "label": "Hatua zilizochukuliwa na kituo cha kutolea huduma",
+ "label": "Hatua zilizochukuliwa na Kituo cha Afya",
"options": [
{
"key": "No_action_taken",
"openmrs_entity": "",
- "openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "No_action_taken",
"openmrs_entity_parent": "",
- "text": "Hakuna hatua zilizochukuliwa"
+ "text": "Hakuna hatua iliyochukuliwa"
},
{
"key": "Managed",
"openmrs_entity": "",
- "openmrs_entity_id": "1692AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "Managed",
"openmrs_entity_parent": "",
- "text": "Amefukuza"
+ "text": "Zinasimamiwa"
},
{
"key": "Referred",
"openmrs_entity": "",
- "openmrs_entity_id": "1648AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "Referred",
"openmrs_entity_parent": "",
- "text": "Amepewa rufaa"
+ "text": "Kutoa rufaa"
}
],
"v_required": {
@@ -252,21 +236,21 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "status_visit",
"openmrs_entity_parent": "",
- "label": "Hali ya mama / mtoto",
+ "label": "Hali ya mama/mtoto",
"options": [
{
"key": "Discharged",
"openmrs_entity": "",
- "openmrs_entity_id": "1654AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "Discharged",
"openmrs_entity_parent": "",
- "text": "Amelazwa"
+ "text": "Wameruhusiwa kutoka hospitali"
},
{
"key": "Died",
"openmrs_entity": "",
- "openmrs_entity_id": "159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "Died",
"openmrs_entity_parent": "",
- "text": "Amekufa"
+ "text": "Wamefariki"
}
],
"relevance": {
@@ -278,7 +262,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali chagua hali ya mama / mtoto"
+ "err": "Tafadhali ingiza hali ya mama/mtoto"
}
},
{
@@ -288,7 +272,7 @@
"openmrs_entity_id": "managed_signs",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Kituo cha kutolea huduma kilimuhudumiaje mama?",
+ "hint": "Je, kituo cha afya kilisimamia vipi hali ya mama?",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -298,7 +282,7 @@
},
"v_required": {
"value": "false",
- "err": null
+ "err": "null"
}
},
{
@@ -308,12 +292,12 @@
"openmrs_entity_id": "comment_anc_danger_signs",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Toa maoni",
+ "hint": "Maoni",
"v_required": {
"value": "false",
- "err": null
+ "err": "null"
}
}
]
}
-}
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_baseline_investigation.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_baseline_investigation.json
new file mode 100644
index 0000000000..1448f005b4
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_baseline_investigation.json
@@ -0,0 +1,1321 @@
+{
+ "count": "1",
+ "encounter_type": "Baseline Investigation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uchunguzi wa Vipimo vya Awali",
+ "fields": [
+ {
+ "key": "glucose_in_urine",
+ "type": "native_radio",
+ "label": "Sukari kwenye mkojo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "glucose_in_urine",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha sukari kwenye mkojo haijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_glucose_in_urine",
+ "type": "toaster_notes",
+ "text": "Angalia kiasi cha sukari katika damu ili kumuepusha Mteja na Ugonjwa wa kisukari wakati wa Ujauzito",
+ "openmrs_entity_id": "prompt_for_glucose_in_urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:glucose_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_glucose_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_glucose_in_urine_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha sukari kwenye mkojo",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu moja"
+ },
+ "relevance": {
+ "step1:glucose_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_glucose_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_glucose_in_urine_test",
+ "type": "edit_text",
+ "hint": "Bainisha sabau zingine za kutofanya kipimo cha sukari kwenye mkojo",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_glucose_in_urine_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "protein_in_urine",
+ "type": "native_radio",
+ "label": "Protini kwenye mkojo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "protein_in_urine",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha protini kwenye mkojo haijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_protein_in_urine",
+ "type": "toaster_notes",
+ "text": "Tafadhali fuatilia shinikizo la damu kwa Mteja ili uweze kuepusha na hatari ya Kifafa cha mimba, bainisha dalili za UTI dhibiti viashiria vya Proteinuria kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_protein_in_urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:protein_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_protein_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_protein_in_urine_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha protini kwenye mkojo ",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu moja"
+ },
+ "relevance": {
+ "step1:protein_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_protein_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_protein_in_urine_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo chs protini kwenye mkojo",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu "
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_protein_in_urine_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "blood_group",
+ "type": "spinner",
+ "hint": "Kundi la damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_group",
+ "openmrs_entity_parent": "",
+ "values": [
+ "A",
+ "B",
+ "AB",
+ "O",
+ "Kipimo cha kundi la damu haijafanyika"
+ ],
+ "keys": [
+ "A",
+ "B",
+ "AB",
+ "O",
+ "test_not_conducted"
+ ],
+ "openmrs_choice_ids": {
+ "A": "A",
+ "B": "B",
+ "AB": "AB",
+ "O": "O",
+ "test_not_conducted": "test_not_conducted"
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_blood_group_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_blood_group_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha kundi la damu",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja amekataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_are_out_of_stock": "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:blood_group": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_blood_group_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_blood_group_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha kundi la damu",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_blood_group_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "rh_factor",
+ "type": "native_radio",
+ "label": "Rh",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rh_factor",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_rh_factor",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:rh_factor": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "hb_level_test",
+ "type": "native_radio",
+ "label": "Kipimo cha kiwango cha damu (Hb)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "Kipimo cha kiwango cha damu (Hb) kimefanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha kiwango cha damu (Hb) hakijafanyika",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "hb_level",
+ "type": "edit_text",
+ "hint": "Kiwango cha HB (g/dl)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiwango cha HB"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Kiwango cha HB lazima kiwe sawasawa na au zaidi ya 0 (g/dl)"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Kiwango cha HB lazima kiwe sawasawa na au chini ya 20 (g/dl)"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiwango cha HB"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_severe_anaemia_treatment",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya upungufu mkubwa wa damu kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_severe_anaemia_treatment",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hb_level": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"8.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_moderate_anaemia_management",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya ukosefu wa damu kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_moderate_anaemia_management",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hb_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha kiwango cha HB ",
+ "values": [
+ "Cuvette Cartridges Hazipo Kituoni",
+ "Mashine ya Kupimwa wingi wa damu (Haemoque) haifanyi kazi",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja amekataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "stock_out_of_cuvettes_cartridges": "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order": "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_hb_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_hb_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha kiwango cha HB",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hb_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "blood_for_glucose_test",
+ "type": "native_radio",
+ "label": "Kipimo cha sukari kwenye damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_for_glucose_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "Kipimo cha sukari kwenye damu kimefanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha sukari kwenye damu hakijafanyika",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "type_of_blood_for_glucose_test",
+ "type": "native_radio",
+ "label": "Aina ya kipimo cha sukari kwenye damu kilichofanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_blood_for_glucose_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "rbg",
+ "text": "Kipimo cha wingi wa sukari mwilini (rbg)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rbg",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "gtt",
+ "text": "Kipimo cha kugundua jinsi sukari mwilini inavyoratibiwa (GTT)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gtt"
+ },
+ {
+ "key": "fbg",
+ "text": "Kipimo cha sukari (asubuhi) kabla ya kula chochote",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fbg"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:blood_for_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "blood_for_glucose",
+ "type": "edit_text",
+ "hint": "Sukari kwenye damu (mmol/L)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_for_glucose",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiwango cha sukari kwenye damu (mmol/L)"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Kiwango cha sukari kwenye damu lazima iwe sawasawa au zaidi ya 0 (mmol/L)"
+ },
+ "v_max": {
+ "value": "45",
+ "err": "Kiwango cha sukari kwenye damu lazima iwe sawasawa au chini ya 45 (mmol/L)"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiwango cha sukari kwenye damu (mmol/L)"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_gestational_diabetes_mellitus",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya Gestational diabetes mellitus kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_gestational_diabetes_mellitus",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_hypoglycaemia",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya hypoglycaemia kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_hypoglycaemia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_blood_glucose_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_blood_glucose_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha sukari kwenye damu",
+ "values": [
+ "Vifaa vya kupimia vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_are_out_of_stock": "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:blood_for_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_blood_glucose_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_blood_glucose_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha sukari kwenye damu",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_blood_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "hiv",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_qn",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_qn",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha VVU hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hiv_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha VVU",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupima",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:hiv_qn": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_hiv_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha VVU",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hiv_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "register_pmtct",
+ "type": "toaster_notes",
+ "text": "Msajili Mteja kwenye PMTCT kwa ajili ya matunzo na ufuatiliaji",
+ "openmrs_entity_id": "register_pmtct",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hiv_qn": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prescribe_arv",
+ "type": "toaster_notes",
+ "text": "Mpatie Mteja dawa za kufubaza virusi vya Ukimwi (ARV) kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prescribe_arv",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hiv_qn": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_counselling_before_testing",
+ "type": "native_radio",
+ "label": "Je, Mteja alipewa ushauri nasaha kabla ya kupima VVU?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_counselling_before_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_counselling_after_testing",
+ "type": "native_radio",
+ "label": "Je, Mteja alipewa ushauri nasaha baada ya kupima VVU?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_counselling_after_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "syphilis",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha Kaswende",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha kaswende hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "prescribe_anti_sy",
+ "type": "toaster_notes",
+ "text": "Muagizie mteja dawa za antibiotiki (Kiuavijasumu)",
+ "openmrs_entity_id": "prescribe_anti_sy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_syphilis_test",
+ "type": "spinner",
+ "hint": "Sababu za kutofanya kipimo cha kaswende",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikkuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_syphilis_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha kaswende",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_syphilis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "syphilis_treatment",
+ "type": "native_radio",
+ "label": "Je, matibabu ya Kaswende yalitolewa?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis_treatment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "hepatitis",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha homa ya ini",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hepatitis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha homa ya ini hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "prescribe_arv_hepb_at_above_twenty_eight",
+ "type": "toaster_notes",
+ "text": "Mpatie Mteja dawa za kufubaza virusi vya Ukimwi (ARV) kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prescribe_arv_hepb_at_above_twenty_eight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "counsel_arv_hepb_below_twenty_eight",
+ "type": "toaster_notes",
+ "text": "Toa ushauri kwa Mama mwenye ujauzito wa wiki 28 kuhusiana na matumizi ya dawa za kufubaza virusi vya Ukimwi (ARV)",
+ "openmrs_entity_id": "counsel_arv_hepb_below_twenty_eight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hepatitis_test",
+ "type": "spinner",
+ "hint": "Sababu za kutofanya kipimo cha homa ya ini",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:hepatitis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_hepatitis_test",
+ "type": "edit_text",
+ "hint": "Sababu zingine za kutofanya kipimo cha homa ya ini",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu "
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hepatitis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "other_stds",
+ "type": "native_radio",
+ "label": "Je, Mteja anajulikana kuwa na magonjwa mengine ya ngono?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_stds",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ]
+ },
+ {
+ "key": "other_stds_treatment",
+ "type": "native_radio",
+ "label": "Je, matibabu yalitolewa kwa magonjwa mengine ya ngono?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_stds_treatment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:other_stds": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_medication_for_other_stds",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_medication_for_other_stds",
+ "type": "spinner",
+ "hint": "Sababu kwa nini matibabu hayakutolewa",
+ "values": [
+ "Dawa zimeisha",
+ "Mteja amekataa kuchukua dawa",
+ "Anamzio na dawa (Allegy)",
+ "Nyingine"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:other_stds_treatment": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_giving_medication_for_other_stds",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_giving_medication_for_other_stds",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutokutoa matibabu",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_medication_for_other_stds": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "date_anc_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "date_anc_hiv_test",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_test_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_number",
+ "type": "hidden"
+ },
+ {
+ "key": "hiv_test_at_32",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_at_32",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "baseline_investigation_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "baseline_investigation_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_malaria_investigation_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_malaria_investigation_form.json
new file mode 100644
index 0000000000..cef645f827
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_malaria_investigation_form.json
@@ -0,0 +1,371 @@
+{
+ "count": "1",
+ "encounter_type": "Malaria Investigation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {
+ "llin_provided": false
+ },
+ "step1": {
+ "title": "Uchunguzi wa Malaria",
+ "fields": [
+ {
+ "key": "client_on_malaria_medication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_on_malaria_medication",
+ "type": "native_radio",
+ "label": "Je, Mteja anatumia dawa za Malaria?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "mRDT_for_malaria",
+ "type": "native_radio",
+ "label": "Majibu ya kipimo cha Malaria",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mRDT_for_malaria",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha Malaria hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "step1:client_on_malaria_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_mRDT",
+ "type": "toaster_notes",
+ "text": "Mpatie dawa za malaria na tibu kulingana na muongozo",
+ "openmrs_entity_id": "prompt_for_mRDT",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:mRDT_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_malaria_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_malaria_test",
+ "type": "spinner",
+ "hint": "Sababu ya kipimo cha malaria kutokufanyika",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:mRDT_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_malaria_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_malaria_test",
+ "type": "edit_text",
+ "hint": "Elezea sababu ya Kutokufanyika kwa kipimo cha Malaria",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_malaria_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy",
+ "type": "hidden",
+ "openmrs_entity_id": "malaria_preventive_therapy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy_ipt1",
+ "type": "native_radio",
+ "openmrs_entity_id": "malaria_preventive_therapy_ipt1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Dawa za kinga za malaria",
+ "options": [
+ {
+ "key": "ipt1",
+ "text": "IPT1",
+ "openmrs_entity_id": "ipt1",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "medication_not_given",
+ "text": "Hajapewa dawa za Malaria",
+ "openmrs_entity_id": "medication_not_given",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Chagua dawa kwa ajili ya kinga ya malaria"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_malaria_medication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_malaria_medication",
+ "type": "spinner",
+ "hint": "Sababu ya kutokupewa dawa za Malaria",
+ "values": [
+ "Bidhaa zimeisha",
+ "Mteja amekataa kuchukua dawa",
+ "Anamzio na dawa (Allegy)",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_reason_malaria_medication_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_malaria_medication_not_given",
+ "type": "edit_text",
+ "hint": "Elezea sababu ya mteja kutokupewa dawa za kujikinga na Malaria",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_malaria_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "llin_provision",
+ "type": "native_radio",
+ "openmrs_entity_id": "llin_provision",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Je, Mteja alipewa LLINs (vyandarua vya muda mrefu)?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "reason_for_not_providing_llin",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_llin",
+ "type": "spinner",
+ "hint": "Sababu ya mteja kutokupewa chandarua cha muda mrefu (LLINs)",
+ "values": [
+ "Bidhaa zimeisha",
+ "Mteja alikataa",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "the_client_refused",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "the_client_refused": "the_client_refused",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:llin_provision": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_llin_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_llin_not_given",
+ "type": "edit_text",
+ "hint": "Elezea sababu ya mteja kutokupewa chandarua cha muda mrefu (LLINs)",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_providing_llin": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "malaria_investigation_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "malaria_investigation_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_medical_and_surgical_history.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_medical_and_surgical_history.json
new file mode 100644
index 0000000000..7804b8d216
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_medical_and_surgical_history.json
@@ -0,0 +1,476 @@
+{
+ "count": "1",
+ "encounter_type": "Medical and Surgical History",
+ "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"
+ },
+ "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": "Historia ya Matibabu na Upasuaji",
+ "fields": [
+ {
+ "key": "medical_surgical_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medical_surgical_history",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Historia yoyote ya Matibabu na upasuaji ya Mgonjwa?",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "diabetes_mellitus",
+ "text": "Kisukari",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "diabetes_mellitus"
+ },
+ {
+ "key": "sickle_cell_disease",
+ "text": "Ugonjwa wa Seli mundu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sickle_cell_disease"
+ },
+ {
+ "key": "heart_diseases",
+ "text": "Magonjwa ya moyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heart_diseases"
+ },
+ {
+ "key": "thyroid_diseases",
+ "text": "Magonjwa ya tezi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "thyroid_diseases"
+ },
+ {
+ "key": "blood_transfusion",
+ "text": "Kuongezewa damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_transfusion"
+ },
+ {
+ "key": "known_on_art",
+ "text": "Mteja yupo kwenye ART tayari",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_on_art"
+ },
+ {
+ "key": "epilepsy",
+ "text": "Kifafa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "epilepsy"
+ },
+ {
+ "key": "previous_c_s",
+ "text": "Kujifungua kwa upasuaji",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "previous_c_s"
+ },
+ {
+ "key": "myomectomy",
+ "text": "Myomectomy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "myomectomy"
+ },
+ {
+ "key": "third_degree_tear",
+ "text": "Kuchanika msamba hatua ya tatu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "third_degree_tear"
+ },
+ {
+ "key": "repaired_fistula",
+ "text": "Fistula iliyotibiwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "repaired_fistula"
+ },
+ {
+ "key": "female_genital_mutilation",
+ "text": "Tohara kwa wanawake",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_genital_mutilation"
+ },
+ {
+ "key": "closely_spaced_pregnancy",
+ "text": "Mimba zilizokaribiana (chini ya miaka miwili)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "closely_spaced_pregnancy"
+ },
+ {
+ "key": "pregnant_more_than_four",
+ "text": "Kuwa mjamzito mara nne au zaidi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnant_more_than_four"
+ },
+ {
+ "key": "hx_hemorrhage",
+ "text": "Historia ya kutokwa damu nyingi baada ya kujifungua",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hx_hemorrhage"
+ },
+ {
+ "key": "history_of_high_blood_pressure",
+ "text": "Historia ya shinikizo la damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "history_of_high_blood_pressure"
+ },
+ {
+ "key": "anaemia",
+ "text": "Ugonjwa wa upungufu wa damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anaemia"
+ },
+ {
+ "key": "difficult_delivery",
+ "text": "Kuzalishwa kwa kuvutwa na kifaa au kuongezewa njia (Vacuum, episiotomy)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "difficult_delivery"
+ },
+ {
+ "key": "hx_abortions",
+ "text": "Historia ya kuharibika kwa mimba",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hx_abortions"
+ },
+ {
+ "key": "other",
+ "text": "Others (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ]
+ },
+ {
+ "key": "other_medical_surgical_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_medical_surgical_history",
+ "type": "edit_text",
+ "hint": "Specify other medical and surgical history",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the other medical surgical history"
+ },
+ "relevance": {
+ "step1:medical_surgical_history": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Namba ya CTC inatakiwa kuwa (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza namba ya CTC ya mteja"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza namba ya CTC ya mteja"
+ },
+ "relevance": {
+ "step1:medical_surgical_history": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "known_on_art"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "gravida",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gravida",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "parity",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "parity",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "no_surv_children",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_surv_children",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gravida_read_only",
+ "type": "edit_text",
+ "read_only": "true",
+ "hint": "Idadi ya ujauzito (Gravida)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gravida_read_only",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "parity_read_only",
+ "type": "edit_text",
+ "read_only": "true",
+ "hint": "Idadi ya mimba zilizofikia wiki 24 au zaidi (Parity)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "parity_read_only",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "no_surv_children_read_only",
+ "type": "edit_text",
+ "read_only": "true",
+ "hint": "Idadi ya watoto walio hai",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_surv_children_read_only",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gravida_text",
+ "type": "edit_text",
+ "hint": "Idadi ya ujauzito (Gravida)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gravida_text",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi ya ujauzito"
+ },
+ "v_max": {
+ "value": "35",
+ "err": "Idadi ya ujauzito lazima iwe sawa au chini ya 35"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "parity_text",
+ "type": "edit_text",
+ "hint": "Idadi ya mimba zilizofikia wiki 24 au zaidi (Parity)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "parity_text",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba halali"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:gravida_text)",
+ "err": "Namba lazima iwe chini ya idadi ya ujauzito"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_grand_multiparity",
+ "type": "toaster_notes",
+ "text": "Toa ushauri juu ya hatari ya kuchanika mfuko wa uzazi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "no_surv_children_text",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_surv_children_text",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya watoto walio hai",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "known_on_art",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_on_art",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "openmrs_entity_parent": "",
+ "value": 1
+ },
+ {
+ "key": "medical_surgical_history_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medical_surgical_history_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_obstetric_examination.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_obstetric_examination.json
new file mode 100644
index 0000000000..3d7052173b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_obstetric_examination.json
@@ -0,0 +1,730 @@
+{
+ "count": "1",
+ "encounter_type": "Obstetric Examination",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uchunguzi wa Uzazi",
+ "fields": [
+ {
+ "key": "gest_age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Uzito (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza uzito"
+ },
+ "v_min": {
+ "value": "20",
+ "err": "Uzito lazima uwe sawasawa au zaidi ya 20 (KG)"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Uzito lazima uwe sawasawa au chini ya 300 (KG)"
+ }
+ },
+ {
+ "key": "height",
+ "type": "edit_text",
+ "hint": "Urefu (CM)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "height",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza urefu"
+ },
+ "v_min": {
+ "value": "60",
+ "err": "Urefu lazima uwe sawasawa au zaidi ya 60 (CM)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Urefu lazima uwe sawasawa au chini ya 200 (CM)"
+ }
+ },
+ {
+ "key": "prompt_for_short_stature",
+ "type": "toaster_notes",
+ "text": "Mshauri mteja kujifungua kwenye Kituo cha Afya kutokana na hatari kubwa ya kupata uchungu pingamizi",
+ "openmrs_entity_id": "prompt_for_short_stature",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:height": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"145\")"
+ }
+ }
+ },
+ {
+ "key": "bmi",
+ "type": "edit_text",
+ "hint": "Kielezo cha Uzito wa Mwili (BMI)",
+ "read_only": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bmi",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza urefu"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza urefu"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_underweight",
+ "type": "toaster_notes",
+ "text": "Mshauri Mteja kuhusiana na hali yake ya uzito mdogo kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_underweight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:bmi": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"18.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_overweight",
+ "type": "toaster_notes",
+ "text": "Mshauri Mteja kuhusiana na hali yake ya uzito mkubwa kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_overweight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:bmi": {
+ "type": "numeric",
+ "ex": "greaterThanEqualTo(.,\"29\")"
+ }
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Shinikizo la Damu)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza thamani ya systolic "
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Thamani ya systolic lazima iwe sawasawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Thamani ya systolic lazima iwe sawasawa au chini ya 320"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Shinikizo la Damu)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza thamani ya diastolic"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Thamani ya diastolic lazima iwe sawasawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Thamani ya diastolic lazima iwe sawasawa au chini ya 200"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "Thamani ya diastolic lazima iwe chini ya thamani ya systolic"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya Shinikizo la damu ya juu kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Bainisha sababu za Shinikizo la damu ya chini na udhibiti kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pulse_rate",
+ "type": "edit_text",
+ "hint": "Kiwango cha Mapigo ya moyo (midundo kwa dakika moja)",
+ "openmrs_entity_id": "pulse_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiwango cha mapigo ya moyo "
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Kiwango cha mapigo ya moyo lazima kiwe sawasawa au zaidi ya 0 (bpm)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Kiwango cha mapigo ya moyo lazima kiwe sawasawa au chini ya 200 (bpm)"
+ }
+ },
+ {
+ "key": "prompt_for_Bradycardia",
+ "type": "toaster_notes",
+ "text": "Bainisha sababu za Mapigo hafifu ya moyo na udhibiti kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_Bradycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"60\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_Tachycardia",
+ "type": "toaster_notes",
+ "text": "Bainisha sababu za Tachycardia na njia za udhibiti kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_Tachycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"100\")"
+ }
+ }
+ },
+ {
+ "key": "temperature",
+ "type": "edit_text",
+ "hint": "Kiwango cha joto",
+ "openmrs_entity_id": "temperature",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiwango cha joto"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Kiwango cha joto lazima kiwe sawasawa au zaidi ya 10"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Kiwango cha joto lazima kiwe sawasawa au chini ya 50"
+ }
+ },
+ {
+ "key": "notify_client_has_fever",
+ "type": "toaster_notes",
+ "text": "Mfanyie Mama vipimo kwa ajili ya kubainisha sababu ya Homa na dhibiti hali hii kulingana na mwongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "notify_client_has_fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"37.8\")"
+ }
+ }
+ },
+ {
+ "key": "notify_client_has_hypothermia",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya Jotoridi la mwili la chini kuliko kawaida kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "notify_client_has_hypothermia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"36.5\")"
+ }
+ }
+ },
+ {
+ "key": "abdominal_scars",
+ "type": "native_radio",
+ "label": "Je, kuna kovu la upasuaji kwenye tumbo?",
+ "openmrs_entity_id": "abdominal_scars",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_abdominal_scars",
+ "type": "toaster_notes",
+ "text": "Mteja ashauriwe kujifungua Kituo cha Afya kwa sababu ya hatari ya kupasuka kwa mfuko wa uzazi",
+ "openmrs_entity_id": "prompt_for_abdominal_scars",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:abdominal_scars": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "abdominal_movement_with_respiration",
+ "type": "native_radio",
+ "label": "Je, tumbo linasogea wakati wa kupumua?",
+ "openmrs_entity_id": "abdominal_movement_with_respiration",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_abdominal_movement_with_respiration",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:abdominal_movement_with_respiration": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "abdominal_contour",
+ "type": "spinner",
+ "hint": "Umbo la Tumbo",
+ "label_info_title": "Umbo la Tumbo",
+ "label_info_text": "Chunguza umbo la tumbo",
+ "openmrs_entity_id": "abdominal_contour",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "Limevimba",
+ "Umbo la kawaida"
+ ],
+ "keys": [
+ "distended",
+ "normal_contour"
+ ],
+ "openmrs_choice_ids": {
+ "distended": "distended",
+ "normal_contour": "normal_contour"
+ }
+ },
+ {
+ "key": "fundal_height",
+ "type": "edit_text",
+ "openmrs_entity_id": "fundal_height",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Kimo cha mimba (CM)",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kimo cha mimba"
+ },
+ "v_min": {},
+ "v_max": {
+ "value": "50",
+ "err": "Kimo cha mimba lazima kiwe sawa au chini ya 50 CM"
+ }
+ },
+ {
+ "key": "lie",
+ "type": "spinner",
+ "openmrs_entity_id": "lie",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Mlalo wa mtoto tumboni",
+ "values": [
+ "Mlalo wa usawa",
+ "mlalo wa kiupande",
+ "Mlalo wa wima"
+ ],
+ "keys": [
+ "transverse",
+ "oblique",
+ "longitudinal"
+ ],
+ "openmrs_choice_ids": {
+ "transverse": "transverse",
+ "oblique": "oblique",
+ "longitudinal": "longitudinal"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_lie",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "presentation",
+ "type": "spinner",
+ "openmrs_entity_id": "presentation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Kitangulizi cha mtoto",
+ "values": [
+ "Makalio",
+ "Kichwa"
+ ],
+ "keys": [
+ "breech",
+ "cephalic"
+ ],
+ "openmrs_choice_ids": {
+ "breech": "breech",
+ "cephalic": "cephalic"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_presentation",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa hudama zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "fetal_heart_rate",
+ "type": "edit_text",
+ "hint": "Hesabu kiwango cha mapigo ya moyo wa mtoto (bpm)",
+ "openmrs_entity_id": "fetal_heart_rate",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiawango cha mapigo ya moyo ya mtoto"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Kiwango cha mapigo ya moyo wa mtoto lazima kiwe sawasawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Kiwango cha mapigo ya moyo wa mtoto lazima kiwe sawasawa au chini ya 300"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_fetal_distress",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "prompt_for_fetal_distress",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "abnormal_vaginal_discharge",
+ "type": "native_radio",
+ "label": "Kutokwa na uchafu usio wa kawaida ukeni",
+ "openmrs_entity_id": "abnormal_vaginal_discharge",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_vaginal_discharge",
+ "type": "toaster_notes",
+ "text": "Bainisha sababu za kutokwa na uchafu ukeni na dhibiti hali hii kulingana na Mouongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_vaginal_discharge",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:abnormal_vaginal_discharge": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "vaginal_sores",
+ "type": "native_radio",
+ "label": "Vidonda sehemu ya ukeni",
+ "openmrs_entity_id": "vaginal_sores",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_vaginal_sores",
+ "type": "toaster_notes",
+ "text": "Chunguza sababu ya vidonda ukeni na tibu kulingana na muongozo",
+ "openmrs_entity_id": "prompt_for_vaginal_sores",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:vaginal_sores": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "vaginal_swelling",
+ "type": "native_radio",
+ "label": "Kuvimba sehemu ya ukeni",
+ "openmrs_entity_id": "vaginal_swelling",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_vaginal_swelling",
+ "type": "toaster_notes",
+ "text": "Chunguza sababu ya uvimbe ukeni na tibu kulingana na muongozo",
+ "openmrs_entity_id": "prompt_for_vaginal_swelling",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:vaginal_swelling": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "obstetric_examination_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "obstetric_examination_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_tb_screening.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_tb_screening.json
new file mode 100644
index 0000000000..4a6b862434
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_tb_screening.json
@@ -0,0 +1,315 @@
+{
+ "count": "1",
+ "encounter_type": "ANC TB Screening",
+ "entity_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "Uchunguzi wa Awali wa Kifua Kikuu",
+ "fields": [
+ {
+ "key": "on_tb_treatment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "on_tb_treatment",
+ "type": "native_radio",
+ "label": "Je, Mteja huyu yupo katika Matibabu ya Kifua kikuu?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ]
+ },
+ {
+ "key": "tb_registration_number",
+ "type": "edit_text",
+ "openmrs_entity_id": "tb_registration_number",
+ "hint": "Namba ya Kliniki ya TB ya mteja",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "step1:on_tb_treatment": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba ya Kliniki ya TB"
+ }
+ },
+ {
+ "key": "tb_symptoms_screening",
+ "type": "check_box",
+ "label": "Tafadhali chagua kama Mteja ana dalili zifuatazo za Kifua Kikuu?",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "tb_symptoms_screening",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_cough",
+ "text": "Mteja anakohoa kwa wiki 2 na zaidi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_cough"
+ },
+ {
+ "key": "chk_sputum",
+ "text": "Mteja anakohoa makohozi yaliyochanganyika na damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_sputum"
+ },
+ {
+ "key": "chk_fevers",
+ "text": "Mteja amekuwa na Homa kwa zaidi ya wiki mbili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_fevers"
+ },
+ {
+ "key": "chk_weight_loss",
+ "text": "Mteja anapoteza Uzito",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_weight_loss"
+ },
+ {
+ "key": "chk_weight_loss_subsequent_visit",
+ "text": "Mteja amepungua uzito katika mfululizo mahudhulio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_weight_loss_subsequent_visit"
+ },
+ {
+ "key": "chk_excessive_sweating",
+ "text": "Mteja amekuwa akitoka na jasho jingi sana usiku kwa wiki mbili au zaidi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_excessive_sweating"
+ },
+ {
+ "key": "chk_none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mada"
+ },
+ "relevance": {
+ "step1:on_tb_treatment": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "investigate_for_tb",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "investigate_for_tb",
+ "type": "native_radio",
+ "label": "Fanya uchunguzi wa Kifua kikuu",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha TB hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo:"
+ },
+ "relevance": {
+ "step1:tb_symptoms_screening": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_cough",
+ "chk_sputum",
+ "chk_fevers",
+ "chk_weight_loss",
+ "chk_weight_loss_subsequent_visit",
+ "chk_excessive_sweating"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_tb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_tb_test",
+ "type": "spinner",
+ "hint": "Reason as to why the TB test was not conducted",
+ "values": [
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:investigate_for_tb": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_tb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_tb_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting TB test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_tb_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_other_treatment",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:investigate_for_tb": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_tb_treatment",
+ "type": "toaster_notes",
+ "text": "Mpe rufaa mteja kwa ajili ya Matibabu ya Kifua kikuu",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:investigate_for_tb": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "tb_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_status",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_tb_screening_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "tb_screening_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_screening_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_tt_vaccination.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_tt_vaccination.json
new file mode 100644
index 0000000000..db1a72a3f9
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_fv_tt_vaccination.json
@@ -0,0 +1,145 @@
+{
+ "count": "1",
+ "encounter_type": "Vaccination",
+ "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"
+ },
+ "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": "Chanjo ya Pepopunda-Diphtheria",
+ "fields": [
+ {
+ "key": "tt_vaccination",
+ "type": "native_radio",
+ "label": "Mama amepatiwa chanjo ya Pepopunda-Diphtheria (Td)?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt_vaccination",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ]
+ },
+ {
+ "key": "tt1_vaccination_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Toa dozi ya kwanza ya pepopunda-diphtheria (Td1) na mpatie mteja tarehe ya marudio ya chanjo kulingana na muongozo wa chanjo",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:tt_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "tt_vaccination_type",
+ "type": "check_box",
+ "label": "Chanjo ipi ya pepopunda-diphtheria (Td) iliyotolewa?",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt_vaccination_type",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "text": "Td1",
+ "key": "tt1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt1"
+ },
+ {
+ "key": "tt2",
+ "text": "Td2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt2"
+ },
+ {
+ "key": "tt3",
+ "text": "Td3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt3"
+ },
+ {
+ "key": "tt4",
+ "text": "Td4",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt4"
+ },
+ {
+ "key": "tt5",
+ "text": "Td5",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt5"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja au zaidi"
+ },
+ "relevance": {
+ "step1:tt_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "tt_vaccination_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt_vaccination_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_counselling.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_counselling.json
index d3245f8b91..e586668e50 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_counselling.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_counselling.json
@@ -15,11 +15,6 @@
"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",
@@ -53,133 +48,107 @@
"key": "counselling_given",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1379AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "counselling_given",
"type": "check_box",
"label": "Ushauri nasaa uliotolewa kwa mama na wanafamilia",
"label_text_style": "normal",
"text_color": "#C0C0C0",
- "exclusive": [
- "chk_none"
- ],
"options": [
{
"key": "chk_attended_anc_contacts",
- "text": "1. Kuhudhuria kliniki ya wajawazito mapema",
- "value": false,
+ "text": "Kuhudhuria kliniki ya wajawazito mapema",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161013AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_attended_anc_contacts"
},
{
"key": "chk_anc_danger_signs",
- "text": "2. Dalili za hatari wakati wa ujauzito",
- "value": false,
+ "text": "Dalili za hatari wakati wa ujauzito",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161050AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_anc_danger_signs"
},
{
"key": "chk_maternal_nutrition",
- "text": "3. Lishe kwa mama wakati wa ujauzito na kunyonyesha",
- "value": false,
+ "text": "Lishe kwa mama wakati wa ujauzito na kunyonyesha",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1380AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_maternal_nutrition"
},
{
"key": "chk_personal_delivery",
- "text": "4. Mpango binafsi wa kujifungua",
- "value": false,
+ "text": "Mpango binafsi wa kujifungua",
"openmrs_entity": "concept",
- "openmrs_entity_id": "5630AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_personal_delivery"
},
{
"key": "chk_hiv_aids",
- "text": "5. Umuhimu wa kupata ushauri nasaha na kupima VVU",
- "value": false,
+ "text": "Umuhimu wa kupata ushauri nasaha na kupima VVU",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_hiv_aids"
},
{
"key": "chk_pmtct_for_mother",
- "text": "6. Kuzuia mambukizi ya VVU kutoka kwa mama kwenda kwa mtoto",
- "value": false,
+ "text": "Kuzuia mambukizi ya VVU kutoka kwa mama kwenda kwa mtoto",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_pmtct_for_mother"
},
{
"key": "chk_preventing_malaria",
- "text": "7. Kuzuia malaria kwa wajawazito",
- "value": false,
+ "text": "Kuzuia malaria kwa wajawazito",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164884AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_preventing_malaria"
},
{
"key": "chk_physical_changes",
- "text": "8. Mabadiliko ya kimwili kwa mama aliyejifungua",
- "value": false,
+ "text": "Mabadiliko ya kimwili kwa mama aliyejifungua",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162093AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_physical_changes"
},
{
"key": "chk_pnc_danger_signs",
- "text": "10. Dalili za hatari mara baada ya kujifungua hadi arobaini ya uzazi",
- "value": false,
+ "text": "Dalili za hatari mara baada ya kujifungua hadi arobaini ya uzazi",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161541AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_pnc_danger_signs"
},
{
"key": "chk_care_of_infant",
- "text": "11. Huduma kwa mtoto mchanga mara baada ya kuzaliwa",
- "value": false,
+ "text": "Huduma kwa mtoto mchanga mara baada ya kuzaliwa",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160413AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_care_of_infant"
},
{
"key": "chk_infant_danger_signs",
- "text": "14. Dalili za hatari kwa mtoto mchanga",
- "value": false,
+ "text": "Dalili za hatari kwa mtoto mchanga",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161071AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_infant_danger_signs"
},
{
"key": "chk_hiv_exposed_infant",
- "text": "15. Ufuatiliaji wa mtoto aliyezaliwa na mama mwenye VVU",
- "value": false,
+ "text": "Ufuatiliaji wa mtoto aliyezaliwa na mama mwenye VVU",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164818AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_hiv_exposed_infant"
},
{
"key": "chk_breastfeeding",
- "text": "16. Unyonyeshaji wa maziwa ya mama",
- "value": false,
+ "text": "Unyonyeshaji wa maziwa ya mama",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1910AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_breastfeeding"
},
{
"key": "chk_exclusive_breast_feeding ",
- "text": "17. Njia ya uzazi wa mpango ya unyonyeshaji maziwa ya mama pekee kwa kipindi cha miezi sita baada ya kujifungua (LAM)",
- "value": false,
+ "text": "Njia ya uzazi wa mpango ya unyonyeshaji maziwa ya mama pekee kwa kipindi cha miezi sita baada ya kujifungua (LAM)",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_exclusive_breast_feeding"
},
{
"key": "chk_family_planning",
- "text": "18. Uzazi wa mpango",
- "value": false,
+ "text": "Uzazi wa mpango",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_family_planning"
},
{
"key": "chk_infection_prevention",
- "text": "24. Kuzuia maambukizi katika jamii",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1906AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_none",
- "text": "Hajatoa ushauri",
- "value": false,
+ "text": "Kuzuia maambukizi katika jamii",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_infection_prevention"
}
],
"v_required": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_danger_signs.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_danger_signs.json
index da1368a7ba..4a036c5b46 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_danger_signs.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_danger_signs.json
@@ -15,11 +15,6 @@
"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",
@@ -65,91 +60,78 @@
{
"key": "chk_fever",
"text": "Homa",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_bleeding_vaginally",
"text": "Damu kutoka ukeni",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "150802AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_server_headache",
"text": "Maumivu ya kichwa",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "139081AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_blurred_vision",
"text": "Kutoona vizuri",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "147104AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_convulsions",
"text": "Degedege/Mtukutiko wa mwili",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164483AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_difficulty_breathing",
"text": "Kushindwa kupumua",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "142373AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_severe_abdominal_pain",
"text": "Maumivu makali ya tumbo",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "165271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_loss_consciousness",
"text": "Kupoteza fahamu",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "135592AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_swelling",
"text": "Kuvimba uso na / au mikonos",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_early_labour",
"text": "Kupata uchungu mapema kabla ya miezi tisa",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "151687AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_vaginal_discharge",
"text": "Kutoka uchafu / majimaji ukeni yenye harufu mbaya",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "123395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_unusual_movement",
"text": "Kutocheza / kucheza kusiko kwa kawaida kwa mtoto aliye tumboni",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "113377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_none",
"text": "Hakuna",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_family_planning.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_family_planning.json
index 29e3070127..aed34f8cec 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_family_planning.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_family_planning.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_health_facility_visit.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_health_facility_visit.json
index 3b776cae3d..5692ecc0e4 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_health_facility_visit.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_health_facility_visit.json
@@ -15,11 +15,6 @@
"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",
@@ -122,63 +117,54 @@
{
"key": "chk_haemoglobin",
"text": "Wingi wa damu",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "21AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_urine_analysis_uti",
"text": "Kipimo cha maambukizi kwenye njia ya mkojo",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "302AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_urine_analysis_protein",
"text": "Kipimo cha kuangalia uwepo wa protini na sukari kwenye mkojo",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1875AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_hiv",
"text": "Kipimo cha VVU",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1356AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_syphilis",
"text": "Kipimo cha kaswende",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "299AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_malaria",
"text": "Kipimo cha malaria",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_tb",
"text": "Uchunguzi wa kifua kikuu",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164800AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_other",
"text": "Vipimo vingine",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_none",
"text": "Vipimo havijafanyika",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
@@ -210,49 +196,42 @@
{
"key": "chk_tetanus",
"text": "Chanjo ya pepopunda",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "84879AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_malaria",
"text": "Tiba kinga ya malaria wakati wa ujauzito (IPTp-SP)",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "105232AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_iron",
"text": "Dawa za kuongeza damu (FEFO)",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "773AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_albendazole",
"text": "Albendazole / Medandozle",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "159922AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_calcuim",
"text": "Calcium supplement",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "72650AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_other",
"text": "Dawa nyingine au chanjo nyingine",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_none",
"text": "Hajapewa dawa au chanjo yoyote",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_malaria.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_malaria.json
index 0c06e1a88d..0482438511 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_malaria.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_malaria.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_nutrition_status.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_nutrition_status.json
index 19cf849fc7..92c56b185c 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_nutrition_status.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_nutrition_status.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_observations.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_observations.json
index 3d710b6d9d..60e8d0b646 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_observations.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_observations.json
@@ -15,11 +15,6 @@
"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",
@@ -92,42 +87,36 @@
{
"key": "chk_ors",
"text": "ORS 5",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "351AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_zinc",
"text": "Zinc 10",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "86672AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_paracetamol",
"text": "Panadol",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "70116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_referred",
"text": "Amepewa rufaa",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "163762AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_other_treatment",
"text": "Matibabu mengine",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_none",
"text": "Hajapewa matibabu yoyote",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_remarks_and_comments.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_remarks_and_comments.json
index f21ae1b0a2..1309914eae 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_remarks_and_comments.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_hv_remarks_and_comments.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_member_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_member_registration.json
index e1c7f8a1ea..06efef8e97 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_member_registration.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_member_registration.json
@@ -15,11 +15,6 @@
"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",
@@ -174,21 +169,18 @@
{
"key": "chk_vaginally",
"text": "Njia ya kawaida",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_cesarean_section",
"text": "Njia ya upasuaji",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_miscarriage",
"text": "Mimba kuharibika",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
@@ -218,21 +210,18 @@
{
"key": "chk_vaginally",
"text": "Njia ya kawaida",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_cesarean_section",
"text": "Njia ya upasuaji",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_miscarriage",
"text": "Mimba kuharibika",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_member_transfer_in_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_member_transfer_in_registration.json
new file mode 100644
index 0000000000..3672f8b27d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_member_transfer_in_registration.json
@@ -0,0 +1,991 @@
+{
+ "count": "2",
+ "skip_blank_steps": true,
+ "encounter_type": "ANC Followup Client Registration",
+ "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"
+ },
+ "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": "Historia ya Matibabu na Upasuaji",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "is_transfer_in",
+ "type": "native_radio",
+ "label": "Client registration type",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_transfer_in",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "true",
+ "text": "On Transit",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "true"
+ },
+ {
+ "key": "false",
+ "text": "Continuing Client",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "false"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "pregnancy_confirmation_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_confirmation_status",
+ "type": "hidden",
+ "value": "Confirmed"
+ },
+ {
+ "key": "pregnancy_confirmation_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_confirmation_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "medical_surgical_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medical_surgical_history",
+ "type": "check_box",
+ "label": "Historia yoyote ya Matibabu na upasuaji ya Mgonjwa?",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "known_on_art",
+ "text": "Mtumiaji wa dawa za kufubaza maambukizi ya virusi vya Ukimwi (ART) kabla ya mimba hii",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_on_art"
+ },
+ {
+ "key": "diabetes_mellitus",
+ "text": "Kisukari",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "diabetes_mellitus"
+ },
+ {
+ "key": "sickle_cell_disease",
+ "text": "Ugonjwa wa Seli mundu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sickle_cell_disease"
+ },
+ {
+ "key": "heart_diseases",
+ "text": "Magonjwa ya moyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heart_diseases"
+ },
+ {
+ "key": "thyroid_diseases",
+ "text": "Magonjwa ya tezi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "thyroid_diseases"
+ },
+ {
+ "key": "blood_transfusion",
+ "text": "Kuongezewa damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_transfusion"
+ },
+ {
+ "key": "epilepsy",
+ "text": "Kifafa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "epilepsy"
+ },
+ {
+ "key": "previous_c_s",
+ "text": "Kujifungua kwa upasuaji",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "previous_c_s"
+ },
+ {
+ "key": "myomectomy",
+ "text": "Myomectomy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "myomectomy"
+ },
+ {
+ "key": "third_degree_tear",
+ "text": "Kuchanika msamba hatua ya tatu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "third_degree_tear"
+ },
+ {
+ "key": "repaired_fistula",
+ "text": "Fistula iliyotibiwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "repaired_fistula"
+ },
+ {
+ "key": "female_genital_mutilation",
+ "text": "Tohara kwa wanawake",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_genital_mutilation"
+ },
+ {
+ "key": "closely_spaced_pregnancy",
+ "text": "Mimba zilizokaribiana (chini ya miaka miwili)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "closely_spaced_pregnancy"
+ },
+ {
+ "key": "pregnant_more_than_four",
+ "text": "Kuwa mjamzito mara nne au zaidi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnant_more_than_four"
+ },
+ {
+ "key": "hx_hemorrhage",
+ "text": "Historia ya kutokwa damu nyingi baada ya kujifungua",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hx_hemorrhage"
+ },
+ {
+ "key": "history_of_high_blood_pressure",
+ "text": "Historia ya shinikizo la damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "history_of_high_blood_pressure"
+ },
+ {
+ "key": "anaemia",
+ "text": "Ugonjwa wa upungufu wa damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anaemia"
+ },
+ {
+ "key": "difficult_delivery",
+ "text": "Kuzalishwa kwa kuvutwa na kifaa au kuongezewa njia (Vacuum, episiotomy)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "difficult_delivery"
+ },
+ {
+ "key": "hx_abortions",
+ "text": "Historia ya kuharibika kwa mimba",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hx_abortions"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya Utambulisho CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Namba ya CTC inatakiwa kuwa (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza namba ya CTC ya mteja"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza namba ya CTC ya mteja"
+ },
+ "relevance": {
+ "step1:medical_surgical_history": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "known_on_art"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "gravida",
+ "type": "edit_text",
+ "hint": "Idadi ya ujauzito (Gravida)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gravida",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi ya ujauzito"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza idadi ya ujauzito"
+ },
+ "v_max": {
+ "value": "35",
+ "err": "Idadi ya ujauzito lazima iwe sawa au chini ya 35"
+ }
+ },
+ {
+ "key": "parity",
+ "type": "edit_text",
+ "hint": "Idadi ya mimba zilizofikia wiki 24 au zaidi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "parity",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba halali"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza namba halali"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:gravida)",
+ "err": "Namba lazima iwe chini ya idadi ya ujauzito"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_grand_multiparity",
+ "type": "toaster_notes",
+ "text": "Toa ushauri juu ya hatari ya kuchanika mfuko wa uzazi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "no_surv_children",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_surv_children",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya watoto walio hai",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi ya watoto walio hai"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi ya watoto walio hai"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "openmrs_entity_parent": "",
+ "value": 1
+ },
+ {
+ "key": "hiv",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "known_on_art",
+ "type": "hidden",
+ "openmrs_entity_id": "known_on_art",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "Usajili wa mahudhurio ya kliniki ya uzazi",
+ "fields": [
+ {
+ "key": "known_last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_last_menstrual_period",
+ "type": "date_picker",
+ "hint": "Tarehe ya kwanza ya hedhi ya mara ya mwisho (LNMP)",
+ "label_info_title": "Tarehe ya kwanza ya hedhi ya mara ya mwisho (LNMP)",
+ "label_info_text": "Tarehe ya kwanza ya hedhi ya mara ya mwisho = siku ya kwanza ya kipindi cha mwisho cha hedhi. Ikiwa tarehe halisi haijulikani, lakini kipindi cha mwezi kinajulikana, tumia siku ya 5 kwa mwanzo wa mwezi, siku ya 15 katikati ya mwezi na siku ya 25 kwa mwisho wa mwezi.",
+ "expanded": false,
+ "max_date": "today",
+ "min_date": "today-50w",
+ "v_required": {
+ "value": "true",
+ "err": "Tarehe ya kwanza ya hedhi ya mara ya mwisho inahitajika kujazwa"
+ }
+ },
+ {
+ "key": "last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_menstrual_period",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gest_age_note",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "edit_text",
+ "hint": "Umri wa Mimba kwa Wiki",
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "edd",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "edd",
+ "type": "edit_text",
+ "hint": "Tarehe anayotazamia Kujifungua",
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gest_age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "height",
+ "type": "edit_text",
+ "hint": "Urefu (CM)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "height",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza urefu"
+ },
+ "v_min": {
+ "value": "60",
+ "err": "Urefu lazima uwe sawasawa au zaidi ya 60 (CM)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Urefu lazima uwe sawasawa au chini ya 200 (CM)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza urefu"
+ }
+ },
+ {
+ "key": "prompt_for_short_stature",
+ "type": "toaster_notes",
+ "text": "Mshauri mteja kujifungua kwenye Kituo cha Afya kutokana na hatari kubwa ya kupata uchungu pingamizi",
+ "openmrs_entity_id": "prompt_for_short_stature",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step2:height": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"145\")"
+ }
+ }
+ },
+ {
+ "key": "has_the_client_received_ipt_doses_from_previous_facility",
+ "type": "native_radio",
+ "label": "Has the client has received any IPT doses in the previous clinic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_the_client_received_ipt_doses_from_previous_facility",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step2:gest_age_note": {
+ "type": "numeric",
+ "ex": "greaterThanEqualTo(.,\"13\")"
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy",
+ "type": "native_radio",
+ "label": "Please select the last IPT dose provided from the previous facility",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "malaria_preventive_therapy",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "ipt1",
+ "text": "IPT1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ipt1"
+ },
+ {
+ "key": "ipt2",
+ "text": "IPT2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ipt2"
+ },
+ {
+ "key": "ipt3",
+ "text": "IPT3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ipt3"
+ },
+ {
+ "key": "ipt4",
+ "text": "IPT4",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ipt4"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step2:has_the_client_received_ipt_doses_from_previous_facility": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "hiv",
+ "type": "native_radio",
+ "label": "Majibu ya Virusi vya Ukimwi ya mteja kutoka katika kituo alichotoka",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Mteja hajapimwa maambukizi ya Virusi vya Ukimwi katika kituo alichotoka",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hepatitis",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha homa ya ini kutoka katika kituo alichotoka?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hepatitis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "The Client was not tested for Hepatitis B in the previous clinic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "syphilis",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha Kaswende kutoka katika kituo alichotoka",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "The Client was not tested for Syphilis in the previous clinic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "is_test_at_32",
+ "type": "native_radio",
+ "label": "Je, hichi ni kipimo cha pili cha maambukizi ya virusi vya ukimwi?",
+ "openmrs_entity_id": "is_test_at_32",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya Utambulisho CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Namba ya CTC inatakiwa kuwa (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza namba ya CTC ya mteja"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza namba ya CTC ya mteja"
+ },
+ "relevance": {
+ "step2:hiv": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_test_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_number",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_test_at_32",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_at_32",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "abdominal_scars",
+ "type": "native_radio",
+ "label": "Je, kuna kovu la upasuaji kwenye tumbo?",
+ "openmrs_entity_id": "abdominal_scars",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jbu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_abdominal_scars",
+ "type": "toaster_notes",
+ "text": "Mteja ashauriwe kujifungua Kituo cha Afya kwa sababu ya hatari ya kupasuka kwa mfuko wa uzazi",
+ "openmrs_entity_id": "prompt_for_abdominal_scars",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step2:abdominal_scars": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "abdominal_movement_with_respiration",
+ "type": "native_radio",
+ "label": "Je, tumbo linasogea wakati wa kupumua?",
+ "openmrs_entity_id": "abdominal_movement_with_respiration",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_abdominal_movement_with_respiration",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step2:abdominal_movement_with_respiration": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "abnormal_vaginal_discharge",
+ "type": "native_radio",
+ "label": "Kutokwa na uchafu usio wa kawaida ukeni",
+ "openmrs_entity_id": "abnormal_vaginal_discharge",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_vaginal_discharge",
+ "type": "toaster_notes",
+ "text": "Bainisha sababu za kutokwa na uchafu ukeni na dhibiti hali hii kulingana na Mouongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_vaginal_discharge",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step2:abnormal_vaginal_discharge": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "vaginal_sores",
+ "type": "native_radio",
+ "label": "Vidonda sehemu ya ukeni",
+ "openmrs_entity_id": "vaginal_sores",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_vaginal_sores",
+ "type": "toaster_notes",
+ "text": "Chunguza sababu ya vidonda ukeni na tibu kulingana na muongozo",
+ "openmrs_entity_id": "prompt_for_vaginal_sores",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step2:vaginal_sores": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "vaginal_swelling",
+ "type": "native_radio",
+ "label": "Kuvimba sehemu ya ukeni",
+ "openmrs_entity_id": "vaginal_swelling",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_vaginal_swelling",
+ "type": "toaster_notes",
+ "text": "Chunguza sababu ya uvimbe ukeni na tibu kulingana na muongozo",
+ "openmrs_entity_id": "prompt_for_vaginal_swelling",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step2:vaginal_swelling": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_partner_community_followup_referral.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_partner_community_followup_referral.json
new file mode 100644
index 0000000000..8579a996e1
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_partner_community_followup_referral.json
@@ -0,0 +1,100 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "ANC Partner Community Followup Referral",
+ "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"
+ },
+ "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": "Rufaa ya Ufuatiliaji wa Mwenza wa Mama Mjamzito katika Ngazi ya Jamii",
+ "fields": [
+ {
+ "key": "toast_refer_to_chw",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Mteja atapewa rufaa kwa Mtoa huduma ngazi ya jamii kwa ajili ya ufuatiliaji",
+ "toaster_info_text": "Mteja atapewa rufaa kwenda kwa mtoa huduma ngazi ya jamii aliye kwenye kijiji chake kwa ajili ya ufuatiliaji. Ongeza taarifa zozote ambazo zinahitajika kwa ajili ya rufaa hii.",
+ "toaster_type": "info"
+ },
+ {
+ "key": "chw_location",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chw_location",
+ "type": "spinner",
+ "hint": "Chagua Eneo la WAJA/Mama Kinara",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua eneo alipo mama kinara"
+ }
+ },
+ {
+ "key": "anc_partner_followup_comment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anc_partner_followup_comment",
+ "type": "edit_text",
+ "hint": "Maoni yako",
+ "v_required": {
+ "value": "false",
+ "err": "Tafadhali jaza maoni yako hapa"
+ }
+ },
+ {
+ "key": "anc_partner_community_referral_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anc_partner_community_referral_date",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_community_followup_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_partner_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_partner_registration.json
new file mode 100644
index 0000000000..208347d28c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_partner_registration.json
@@ -0,0 +1,297 @@
+{
+ "count": "1",
+ "encounter_type": "Partner Registration",
+ "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"
+ },
+ "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": "Usajili wa Mwenza",
+ "fields": [
+ {
+ "key": "partner_surname",
+ "type": "edit_text",
+ "hint": "Jina la mwisho la mwenza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_surname",
+ "openmrs_entity_parent": "",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina la mwisho la mwenza"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza jina la mwisho la mwenza"
+ }
+ },
+ {
+ "key": "partner_first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza la mwenza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_first_name",
+ "openmrs_entity_parent": "",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza Jina la Kwanza la mwenza"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Jina la Kwanza la mwenza"
+ }
+ },
+ {
+ "key": "partner_middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati la mwenza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_middle_name",
+ "openmrs_entity_parent": "",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza Jina la Kati la mwenza"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Jina la Kati la mwenza"
+ }
+ },
+ {
+ "key": "partner_age",
+ "hint": "Umri wa mwenza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_age",
+ "openmrs_entity_parent": "",
+ "type": "edit_text",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza umri wa mwenza"
+ },
+ "v_min": {
+ "value": "11",
+ "err": "Umri lazima uwe sawasawa au zaidi ya 11"
+ },
+ "v_max": {
+ "value": "120",
+ "err": "Umri lazima uwe sawasawa au chini ya 120"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza umri wa mwenza"
+ }
+ },
+ {
+ "key": "partner_education",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_education",
+ "type": "native_radio",
+ "label": "Kiwango cha juu cha elimu mwenza alichokamilisha ",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "no_education",
+ "text": "Hajasoma",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_education"
+ },
+ {
+ "key": "primary",
+ "text": "Elimu ya msingi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "primary"
+ },
+ {
+ "key": "secondary",
+ "text": "Elimu ya sekondari",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "secondary"
+ },
+ {
+ "key": "tertiary",
+ "text": "Elimu ya juu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tertiary"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua kiwango cha juu cha elimu mwenza alichokamilisha"
+ }
+ },
+ {
+ "key": "partner_work",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_work",
+ "type": "check_box",
+ "label": "Kazi ya mwenza",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_farmer",
+ "text": "Mkulima",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_farmer"
+ },
+ {
+ "key": "chk_cs",
+ "text": "Mtumishi wa Serikali",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_cs"
+ },
+ {
+ "key": "chk_nurse",
+ "text": "Muuguzi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_nurse"
+ },
+ {
+ "key": "chk_teacher",
+ "text": "Mwalimu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_teacher"
+ },
+ {
+ "key": "chk_th",
+ "text": "Mganga wa tiba asili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_th"
+ },
+ {
+ "key": "chk_chw",
+ "text": "Muhudumu wa afya ngazi ya jamii (WAJA)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_chw"
+ },
+ {
+ "key": "chk_tba",
+ "text": "Mkunga wa jadi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_tba"
+ },
+ {
+ "key": "chk_chmis",
+ "text": "Wakusanyaji takrimu za afya ngazi ya jamii",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_chmis"
+ },
+ {
+ "key": "chk_cbd",
+ "text": "Msambazaji wa dawa na vifaa vya uzazi wa mpango ngazi ya Jamii",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_cbd"
+ },
+ {
+ "key": "chk_hbc",
+ "text": "Watoa huduma kwa wagonjwa majumbani",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_hbc"
+ },
+ {
+ "key": "chk_cimmci",
+ "text": "Watoa huduma za udhibiti wa magonjwa ya watoto ngazi ya jamii",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_cimmci"
+ },
+ {
+ "key": "chk_other",
+ "text": "Nyinginezo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_other"
+ },
+ {
+ "key": "chk_none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "partner_work_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_work_other",
+ "type": "edit_text",
+ "hint": "Kazi nyingine ya mwenza",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha kazi"
+ },
+ "relevance": {
+ "step1:partner_work": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "partner_registered",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_registered",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_registration_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_partner_testing.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_partner_testing.json
new file mode 100644
index 0000000000..f7683770f7
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_partner_testing.json
@@ -0,0 +1,636 @@
+{
+ "count": "1",
+ "encounter_type": "Partner Testing",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {
+ "hiv_testing_done": false,
+ "syphilis_testing_done": false,
+ "hepatitis_testing_done": false,
+ "partner_hiv_status": "",
+ "partner_hiv_test_at_32_done": false
+ },
+ "step1": {
+ "title": "Upimaji kwa Mwenza",
+ "fields": [
+ {
+ "key": "partner_hiv",
+ "type": "native_radio",
+ "label": "Matokeo ya Kipimo cha VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha VVU hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_partner_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_partner_hiv_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha VVU",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Anajulikana ana maambukizi",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "known_on_art",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "known_on_art": "known_on_art",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:partner_hiv": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_partner_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_partner_hiv_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha VVU",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_partner_hiv_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "register_for_hiv_services",
+ "type": "toaster_notes",
+ "text": "Mpe rufaa Mteja kwenda CTC kwa ajili ufuatiliaji na Matunzo",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:partner_hiv": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "partner_ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Namba ya CTC inatakiwa kuwa (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza namba ya CTC ya mteja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "couple_testing",
+ "type": "native_radio",
+ "label": "Je, mwenza alipima pamoja na Mama? (Couple testing)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "couple_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_syphilis",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha Kaswende",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_syphilis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha kaswende hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prescribe_anti_sy",
+ "type": "toaster_notes",
+ "text": "Mpe mwenza wa mama mjamzito dawa za Antibiotic kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:partner_syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_partner_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_partner_syphilis_test",
+ "type": "spinner",
+ "hint": "Sababu ya kipimo cha kaswende kutofanyika",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:partner_syphilis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_partner_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_partner_syphilis_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha kaswende",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_partner_syphilis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "partner_syphilis_treatment",
+ "type": "native_radio",
+ "label": "Je, matibabu ya Kaswende yalitolewa?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_syphilis_treatment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:partner_syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "partner_hepatitis",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha homa ya Ini",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hepatitis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha homa ya ini haikufanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_partner_hepatitis",
+ "type": "toaster_notes",
+ "text": "Mpatie Mteja dawa za kufubaza virusi vya Ukimwi (ARV) kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:partner_hepatitis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_partner_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_partner_hepatitis_test",
+ "type": "spinner",
+ "hint": "Sababu ya kipimo cha homa ya ini kutofanyika",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:partner_hepatitis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_partner_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_partner_hepatitis_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha homa ya ini",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_partner_hepatitis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "partner_other_stds",
+ "type": "native_radio",
+ "label": "Je, Mteja anajulikana kuwa na magonjwa mengine ya ngono?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_other_stds",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_other_stds_treatment",
+ "type": "native_radio",
+ "label": "Je, ARV zilitolewa kwa magonjwa mengine ya ngono?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_other_stds_treatment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:partner_other_stds": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "partner_reason_for_not_giving_medication_for_other_stds",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_reason_for_not_giving_medication_for_other_stds",
+ "type": "spinner",
+ "hint": "Sababu kwa nini matibabu hayakutolewa",
+ "values": [
+ "Dawa zimeisha",
+ "Mteja amekataa kuchukua dawa",
+ "Anamzio na dawa (Allegy)",
+ "Nyingine"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:partner_other_stds_treatment": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "partner_other_reason_for_not_giving_medication_for_other_stds",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_other_reason_for_not_giving_medication_for_other_stds",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutokutoa matibabu",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:partner_reason_for_not_giving_medication_for_other_stds": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "partner_hiv_test_at_32",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv_test_at_32",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_hiv_test_number",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv_test_number",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "gest_age",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_pregnancy_confirmation.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_pregnancy_confirmation.json
new file mode 100644
index 0000000000..397c9db1a2
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_pregnancy_confirmation.json
@@ -0,0 +1,567 @@
+{
+ "count": "3",
+ "skip_blank_steps": true,
+ "encounter_type": "Pregnancy Confirmation",
+ "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"
+ },
+ "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": "Uchambuzi wa wagonjwa au majeruhi",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "danger_signs",
+ "type": "check_box",
+ "label": "Mtoa huduma wa Afya atafanya uchunguzi ili kubaini wateja wenye dalili za hatari",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "danger_signs",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "bleeding_vag",
+ "text": "Kutokwa na damu ukeni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bleeding_vag"
+ },
+ {
+ "key": "headache_visual_disturbance",
+ "text": "Kichwa kuuma",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "headache_visual_disturbance"
+ },
+ {
+ "key": "severely_pale",
+ "text": "Kupauka sana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severely_pale"
+ },
+ {
+ "key": "dizziness",
+ "text": "Kizunguzungu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dizziness"
+ },
+ {
+ "key": "severe_vomiting",
+ "text": "Kutapika sana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_vomiting"
+ },
+ {
+ "key": "convulsion",
+ "text": "Degedege",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "convulsion"
+ },
+ {
+ "key": "looking_very_ill",
+ "text": "Kuwa mdhoofu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "looking_very_ill"
+ },
+ {
+ "key": "fever",
+ "text": "Homa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fever"
+ },
+ {
+ "key": "unconscious",
+ "text": "Kupoteza fahamu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unconscious"
+ },
+ {
+ "key": "severe_pain",
+ "text": "Maumivu makali",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_pain"
+ },
+ {
+ "key": "severe_breathing_difficulty",
+ "text": "Kupumua kwa shida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_breathing_difficulty"
+ },
+ {
+ "key": "in_labour",
+ "text": "Katika hali ya uchungu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "in_labour"
+ },
+ {
+ "key": "imminent_labour",
+ "text": "Hali ya Uchungu inayokaribu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "imminent_labour"
+ },
+ {
+ "key": "oedema_of_legs_and_sacrum",
+ "text": "Kuvimba kwa miguu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "oedema_of_legs_and_sacrum"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Chagua dalili za hatari"
+ }
+ },
+ {
+ "key": "task_id",
+ "type": "hidden",
+ "openmrs_entity_id": "task_id",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "danger_signs_present_toaster",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Dalili ya Hatari! Mpatie rufaa aende katika wodi ya dharura",
+ "text_color": "#CF0800",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:danger_signs": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "bleeding_vag",
+ "headache_visual_disturbance",
+ "severely_pale",
+ "severe_vomiting",
+ "severe_breathing_difficulty",
+ "convulsion",
+ "looking_very_ill",
+ "fever",
+ "unconscious",
+ "severe_pain",
+ "in_labour",
+ "imminent_labour",
+ "oedema_of_legs_and_sacrum",
+ "dizziness"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "Kuhakikisha ujauzito",
+ "next": "step3",
+ "fields": [
+ {
+ "key": "type_of_pregnancy_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_pregnancy_test",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Chagua aina ya kipimo cha Ujauzito kilichofanyika",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "fundal_palpation"
+ ],
+ "options": [
+ {
+ "key": "fundal_palpation",
+ "text": "Fundal Palpation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fundal_palpation"
+ },
+ {
+ "key": "upt",
+ "text": "Kipimo cha Mkojo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "upt"
+ },
+ {
+ "key": "uss",
+ "text": "Kumulika kwa Mashine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "uss"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua aina ya kipimo cha Ujauzito kilichofanyika"
+ }
+ },
+ {
+ "key": "upt",
+ "type": "native_radio",
+ "openmrs_entity_id": "upt",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "label": "Tafadhali chagua majibu ya kipimo cha mkojo",
+ "options": [
+ {
+ "text": "Chanya",
+ "key": "positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "text": "Hasi",
+ "key": "negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua majibu ya kipimo cha mkojo"
+ }
+ },
+ {
+ "key": "uss",
+ "type": "native_radio",
+ "openmrs_entity_id": "uss",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "label": "Tafadhali Chagua majibu ya Kumulika kwa mashine",
+ "options": [
+ {
+ "key": "present_gestation_sac",
+ "text": "Mfuko wa uzazi upo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "present_gestation_sac"
+ },
+ {
+ "key": "absent_gestation_sac",
+ "text": "Mfuko wa uzazi haupo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "absent_gestation_sac"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Chagua majibu ya Kumulika kwa mashine"
+ }
+ }
+ ]
+ },
+ "step3": {
+ "title": "Mwisho",
+ "fields": [
+ {
+ "key": "known_last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_last_menstrual_period",
+ "type": "date_picker",
+ "hint": "Tarehe ya kwanza ya hedhi ya mara ya mwisho (LNMP)",
+ "label_info_title": "Tarehe ya kwanza ya hedhi ya mara ya mwisho (LNMP)",
+ "label_info_text": "Tarehe ya kwanza ya hedhi ya mara ya mwisho = siku ya kwanza ya kipindi cha mwisho cha hedhi. Ikiwa tarehe halisi haijulikani, lakini kipindi cha mwezi kinajulikana, tumia siku ya 5 kwa mwanzo wa mwezi, siku ya 15 katikati ya mwezi na siku ya 25 kwa mwisho wa mwezi.",
+ "expanded": false,
+ "max_date": "today",
+ "min_date": "today-50w",
+ "v_required": {
+ "value": "true",
+ "err": "Tarehe ya kwanza ya hedhi ya mara ya mwisho inahitajika kujazwa"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "last_menstrual_period_unknown",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_menstrual_period_unknown",
+ "openmrs_data_type": "text",
+ "type": "check_box",
+ "options": [
+ {
+ "key": "lmp_unknown",
+ "text": "Tarehe ya kwanza ya hedhi ya mara ya mwisho haijulikani",
+ "text_size": "18px",
+ "value": "false",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lmp_unknown"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "fundal_height",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fundal_height",
+ "type": "edit_text",
+ "hint": "Kimo cha mimba (CM)",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza kimo cha mimba"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kimo cha mimba"
+ },
+ "v_min": {
+ "value": "12",
+ "err": "Kimo cha mimba lazima kiwe sawa au zaidi ya 12 CM"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Kimo cha mimba lazima kiwe sawa au chini ya 50 CM"
+ }
+ },
+ {
+ "key": "estimated_last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "estimated_last_menstrual_period",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Makadirio ya hedhi ya mwisho ilionekana lini",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_menstrual_period",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gest_age_note",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "edit_text",
+ "hint": "Umri wa Mimba kwa Wiki",
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "edd",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "edd",
+ "type": "edit_text",
+ "hint": "Tarehe anayotazamia Kujifungua",
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gest_age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "not_pregnant",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Mteja sio mjamzito. \nTafadhali muunganishe kwenye huduma za Uzazi wa Mpango",
+ "toaster_info_text": "Mteja sio mjamzito. Tafadhali muunganishe kwenye huduma za Uzazi wa Mpango",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "see_a_doctor",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Mpatie rufaa aende kufanyiwa uchunguzi wa Uzazi",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pregnancy_confirmation_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_confirmation_status",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pregnancy_confirmation_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_confirmation_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_pregnancy_outcome.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_pregnancy_outcome.json
index 1feab1a793..2f7332857e 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_pregnancy_outcome.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_pregnancy_outcome.json
@@ -4,6 +4,7 @@
"count": "1",
"encounter_type": "Pregnancy Outcome",
"entity_id": "",
+ "global": {},
"metadata": {
"start": {
"openmrs_entity_parent": "",
@@ -17,11 +18,6 @@
"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",
@@ -49,7 +45,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Matokeo ya ujauzito",
+ "title": "Matokeo ya Ujauzito",
"fields": [
{
"key": "relational_id",
@@ -58,11 +54,80 @@
"openmrs_entity_id": "relational_id",
"type": "hidden"
},
+ {
+ "key": "mothers_condition",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mothers_condition",
+ "type": "native_radio",
+ "label": "Hali ya Mama ya ki Afya",
+ "label_text_style": "bold",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "alive",
+ "text": "Yupo Mzima",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "alive",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "deceased",
+ "text": "Amefariki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "deceased",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua kipengele cha hali ya Mama"
+ }
+ },
+ {
+ "key": "date_of_death",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "date_of_death",
+ "type": "date_picker",
+ "hint": "Tarehe mama kufariki ",
+ "expanded": false,
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza tarehe ambayo mama kafariki"
+ },
+ "relevance": {
+ "step1:mothers_condition": {
+ "type": "string",
+ "ex": "equalTo(., \"deceased\")"
+ }
+ }
+ },
+ {
+ "key": "time_of_death",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "time_of_death",
+ "type": "time_picker",
+ "hint": "Muda mama kufariki ",
+ "expanded": false,
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza saa ambayo mama kafariki"
+ },
+ "relevance": {
+ "step1:mothers_condition": {
+ "type": "string",
+ "ex": "equalTo(., \"deceased\")"
+ }
+ }
+ },
{
"key": "preg_outcome",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161033AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "preg_outcome",
"type": "native_radio",
"label": "Matokeo ya ujauzito",
"label_text_style": "bold",
@@ -70,42 +135,37 @@
"options": [
{
"key": "born_alive",
- "text": "Mtoto amezaliwa hai",
- "value": false,
+ "text": "Mtoto alizaliwa mzima",
"openmrs_entity": "concept",
- "openmrs_entity_id": "151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "born_alive",
"openmrs_entity_parent": ""
},
{
"key": "born_alive_died",
- "text": "Mtoto amezaliwa hai, lakini akafariki",
- "value": false,
+ "text": "Mtoto alizaliwa hai, lakini akafariki baadaye",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164816AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "born_alive_died",
"openmrs_entity_parent": ""
},
{
"key": "still_born",
- "text": "Mtoto amezaliwa mfu",
- "value": false,
+ "text": "Mtoto alizaliwa akiwa amekwisha fariki",
"openmrs_entity": "concept",
- "openmrs_entity_id": "125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "still_born",
"openmrs_entity_parent": ""
},
{
"key": "alive_with_problem",
- "text": "Mtoto amezaliwa hai, lakini ana shida (mf. ulemavu, kupumua kwa shida, nk.)",
- "value": false,
+ "text": "Mtoto alizaliwa hai, lakini aamekutwa na matatizo (i.e: ulemavu, matatizo ya kupumua)",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "alive_with_problem",
"openmrs_entity_parent": ""
},
{
"key": "miscarriage",
- "text": "Mimba kuharibika",
- "value": false,
+ "text": "Mimba iliharibika",
"openmrs_entity": "concept",
- "openmrs_entity_id": "48AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "miscarriage",
"openmrs_entity_parent": ""
}
],
@@ -114,18 +174,123 @@
"err": "Tafadhali chagua matokeo ya ujauzito"
}
},
+ {
+ "key": "prompt_for_child_with_problem",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii kulingana na muongozo uliopo",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:preg_outcome": {
+ "type": "string",
+ "ex": "equalTo(., \"alive_with_problem\")"
+ }
+ }
+ },
+ {
+ "key": "sex_of_the_deceased_child",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sex_of_the_deceased_child",
+ "type": "spinner",
+ "hint": "Jinsi ya mtoto aliyefariki",
+ "values": [
+ "Me",
+ "Ke",
+ "Jinsi Tata"
+ ],
+ "keys": [
+ "Male",
+ "Female",
+ "Ambiguous"
+ ],
+ "openmrs_choice_ids": {
+ "Male": "Male",
+ "Female": "Female",
+ "Ambiguous": "Ambiguous"
+ },
+ "relevance": {
+ "step1:preg_outcome": {
+ "type": "string",
+ "ex": "equalTo(., \"born_alive_died\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select the sex"
+ }
+ },
+ {
+ "key": "reason_child_died",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_child_died",
+ "type": "spinner",
+ "hint": "Sababu Zilizopelekea Mtoto Kufariki",
+ "values": [
+ "Birth Asphyxia",
+ "Neonatal Respiratory Distress",
+ "Prematurity",
+ "Early Neonatal Sepsis",
+ "Sababu nyinginezo"
+ ],
+ "keys": [
+ "birth_asphyxia",
+ "neonatal_respiratory_distress",
+ "prematurity",
+ "early_neonatal_sepsis",
+ "others"
+ ],
+ "openmrs_choice_ids": {
+ "birth_asphyxia": "birth_asphyxia",
+ "neonatal_respiratory_distress": "neonatal_respiratory_distress",
+ "prematurity": "prematurity",
+ "early_neonatal_sepsis": "early_neonatal_sepsis",
+ "others": "others"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:preg_outcome": {
+ "type": "string",
+ "ex": "equalTo(., \"born_alive_died\")"
+ }
+ }
+ },
+ {
+ "key": "other_reasons_for_child_death",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reasons_for_child_death",
+ "type": "edit_text",
+ "hint": "Sababu nyingine zilizopelekea mtoto kufariki",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_child_died": {
+ "type": "string",
+ "ex": "equalTo(., \"others\")"
+ }
+ }
+ },
{
"key": "miscarriage_date",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "165248AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "miscarriage_date",
"type": "date_picker",
- "hint": "Tarehe ya kuharibika mimba",
+ "hint": "Tarehe ya mimba kuharibika",
"expanded": false,
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza tarehe mwanamke ameharibika mimba."
+ "err": "Tafadhali jaza tarehe ambayo Mimba ya Mama iliharibika/ilitoka"
},
"relevance": {
"rules-engine": {
@@ -136,17 +301,35 @@
}
},
{
- "key": "delivery_date",
- "openmrs_entity_parent": "",
+ "key": "hiv_status_question",
+ "type": "native_radio",
+ "label": "Hali ya Mama ya maambukizi ya VVU",
+ "openmrs_entity_id": "hiv_status_question",
"openmrs_entity": "concept",
- "openmrs_entity_id": "5599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "date_picker",
- "hint": "Tarehe ya kujifungua",
- "expanded": false,
- "max_date": "today",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "unknown",
+ "text": "Haijulikani",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unknown"
+ }
+ ],
"v_required": {
- "value": "true",
- "err": "Tafadhali ingiza tarehe mwanamke aliyejifungua"
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
},
"relevance": {
"rules-engine": {
@@ -157,28 +340,66 @@
}
},
{
- "key": "no_children",
- "openmrs_entity_parent": "",
+ "key": "risk_category",
+ "type": "native_radio",
+ "label": "Hali ya Hatari ya Mtoto mchanga kuaambukizwa VVU",
+ "openmrs_entity_id": "risk_category",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164894AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "select one",
- "type": "spinner",
- "hint": "Idadi ya watoto waliozaliwa hai",
- "values": [
- "1",
- "2+"
- ],
- "keys": [
- "1",
- "2+"
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "high",
+ "text": "Ipo Juu",
+ "openmrs_entity_id": "high",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "low",
+ "text": "Ipo Chini",
+ "openmrs_entity_id": "low",
+ "openmrs_entity": "concept"
+ }
],
- "openmrs_choice_ids": {
- "1": "159913AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "2+": "159914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
},
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_high_risk_results",
+ "type": "toaster_notes",
+ "text": "Mfanyie Mtoto kipimo cha VVU mara baada ya kuzaliwa. Mpe mtoto kinga ya ARV kwa wiki 6, ikifuatiwa na monoprophylaxis kwa kipindi cha wiki 6 nyingine, endelea kumfuatilia mtoto kulinganga na muongozo wa Wizara ya Afya.",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:risk_category": {
+ "type": "string",
+ "ex": "equalTo(., \"high\")"
+ }
+ }
+ },
+ {
+ "key": "delivery_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya Mama ya kujifungua",
+ "expanded": false,
+ "min_date": "today-42d",
+ "max_date": "today",
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo moja"
+ "err": "Tafadhali ingiza tarehe ya kujifungua ya Mama"
},
"relevance": {
"rules-engine": {
@@ -188,31 +409,38 @@
}
}
},
+ {
+ "key": "no_children",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_children",
+ "type": "hidden"
+ },
{
"key": "delivery_place",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1572AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "delivery_place",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Mahali alipojifungulia mama",
+ "hint": "Mahali ambapo Mama alijifungulia",
"values": [
- "Nyumbani",
- "Kituo cha kutolea huduma za afya",
- "Njiani kabla ya kufika kituoni",
- "Mahali pengine"
+ "Kwenye Kituo cha Afya",
+ "Amejifungua Njiani kabla ya kufika kwenye Kituo",
+ "Amejifungulia Nyumbani",
+ "Amejifungulia kwa Mkunga wa Jadi"
],
"keys": [
- "At home",
"At a health facility",
- "On the way to the health facility",
- "Other"
+ "Birth before Arrival (BBA)",
+ "At home",
+ "Traditional birth attendant"
],
"openmrs_choice_ids": {
- "At Home": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "At a health facility": "1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "On the way to the health facility": "1601AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Other": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "At a health facility": "At a health facility",
+ "Birth before Arrival (BBA)": "Birth before Arrival (BBA)",
+ "At home": "At home",
+ "Traditional birth attendant": "Traditional birth attendant"
},
"v_required": {
"value": "true",
@@ -230,14 +458,14 @@
"key": "delivery_home",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1573AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "delivery_home",
"type": "native_radio",
- "label": "Je, nani amemsaidia kujifungulia nyumbani?",
+ "label": "Nani alimsaidia Mama kujifungua nyumbani?",
"label_text_style": "bold",
"text_color": "#C0C0C0",
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo moja"
+ "err": "Tafadhali chagua"
},
"relevance": {
"rules-engine": {
@@ -249,27 +477,24 @@
"options": [
{
"key": "gave_birth_alone",
- "text": "Amejifungulia nyumbani pekee yake/bila mtu",
- "value": false,
+ "text": "Alijifungua nyumbani akiwa peke yake",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "gave_birth_alone"
},
{
"key": "gave_birth_with_help",
- "text": "Amejifungulia nyumbani akisaidiwa na mtu wa familia/rafiki/jirani",
- "value": false,
+ "text": "Alijifungua nyumbani akisaidiiwa na mwanafamilia/rafiki/jirani",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "gave_birth_with_help"
},
{
"key": "midwife_help",
- "text": "Amejifungulia nyumbani akisaidiwa na mkunga wa jadi",
- "value": false,
+ "text": "Alijifungua nyumbani akisaidiwa na mkunga wa jadi",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "midwife_help"
}
]
},
@@ -277,14 +502,14 @@
"key": "delivery_hf",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "159771AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "delivery_hf",
"type": "native_radio",
- "label": "Amejifungua kwenye kituo cha kutolea huduma ya afya. Je, amesindikizwa na nani?",
+ "label": "Mama alijifungua katika kituo cha afya. Nani aliongozana na mama hadi kituo cha afya?",
"label_text_style": "bold",
"text_color": "#C0C0C0",
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo moja"
+ "err": "Tafadhali chagua"
},
"relevance": {
"rules-engine": {
@@ -296,57 +521,51 @@
"options": [
{
"key": "facility_family_member",
- "text": "Amejifungulia katika kituo cha kutolea huduma za afya, na amesindikizwa na mwanafamilia.",
- "value": false,
+ "text": "Alisindikizwa na wanafamilia.",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "969AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "facility_family_member"
},
{
"key": "facility_midwife",
- "text": "Amejifungulia katika kituo cha kutolea huduma za afya, na amesindikizwa na mkunga wa jadi",
- "value": false,
+ "text": "Alisindikizwa na Mkunga wa Jadi",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "facility_midwife"
},
{
"key": "alone",
- "text": "Amejifungulia katika kituo cha kutolea huduma za afya, na amekuja pekee yake",
- "value": false,
+ "text": "Alikuja peke yake",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "alone"
},
{
"key": "other_pple",
- "text": "Amejifungulia katika kituo cha kutolea huduma ya afya, na amesindikizwa na watu wengine",
- "value": false,
+ "text": "Alisindikizwa na watu wengine",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1582AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "other_pple"
},
{
"key": "other_chw",
- "text": "Amejifungulia katika kituo cha kutolea huduma ya afya, na amesindikizwa na CHW",
- "value": false,
+ "text": "Alisindikizwa na Mtoa huduma ngazi ya Jamii",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "other_chw"
}
]
},
{
"key": "baby_label",
"type": "label",
- "text": "MALEZO YA MTOTO",
- "has_bg": true,
+ "text": "Taarifa za Mtoto",
"left_padding": "20dp",
"right_padding": "20dp",
- "text_size": "5sp",
+ "text_size": "7sp",
"text_color": "#000000",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"relevance": {
"rules-engine": {
@@ -357,317 +576,1046 @@
}
},
{
- "key": "temp_unique_id",
+ "key": "fam_name",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "temp_unique_id",
+ "openmrs_entity_id": "fam_name",
"type": "hidden"
},
{
- "key": "unique_id",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_identifier",
- "openmrs_entity_id": "opensrp_id",
- "type": "barcode",
- "barcode_type": "qrcode",
- "hint": "Boresha Afya ID",
- "scanButtonText": "Chukua QR code",
- "v_numeric": {
- "value": "true",
- "err": "Tafadhali ingiza namba halali"
- },
- "v_required": {
- "value": "true",
- "err": "Tafadhali ingiza namba cha KIPEKEE"
- },
- "calculation": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_calculation.yml"
- }
- }
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
- }
- }
- }
- },
- {
- "key": "surname",
+ "key": "no_immediate_new_born",
+ "type": "repeating_group",
+ "reference_edit_text_hint": "Idadi ya Wototo waliozaliwa",
+ "repeating_group_label": "Taarifa za Mtoto #",
"openmrs_entity_parent": "",
"openmrs_entity": "",
"openmrs_entity_id": "",
- "type": "edit_text",
- "hint": "Jina la mwisho (ukoo)",
- "edit_type": "name",
- "v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
- },
- "v_required": {
- "value": "true",
- "err": "Tafadhali ingiza jina la ukoo"
- },
+ "repeating_group_max": "4",
+ "expand_on_text_change": "true",
"relevance": {
"rules-engine": {
"ex-rules": {
"rules-file": "anc_pregnancy_outcome_relevance.yml"
}
}
- }
- },
- {
- "key": "same_as_fam_name_chk",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "openmrs_data_type": "text",
- "type": "check_box",
- "options": [
+ },
+ "value": [
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "15dp"
+ },
+ {
+ "key": "apgar_score_label",
+ "type": "label",
+ "text": "Alama ya APGAR ya Ujumla",
+ "text_size": "7sp",
+ "text_color": "#000000",
+ "label_info_title": "Alama ya APGAR ya Ujumlae",
+ "label_info_text": "0 - 6: Sio ya Kawaida \n7 - 10: Kawaida",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": ""
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "8dp"
+ },
{
- "key": "same_as_fam_name",
- "text": "Surname sawa na jina la ukoo",
+ "key": "apgar_score",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "apgar_score",
+ "type": "numbers_selector",
+ "number_of_selectors": "11",
+ "start_number": "0",
+ "max_value": "10",
"text_size": "18px",
- "value": "false"
- }
- ],
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ "text_color": "#000000",
+ "selected_text_color": "#ffffff",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka agpar score"
}
- }
- }
- },
- {
- "key": "fam_name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "fam_name",
- "type": "hidden"
- },
- {
- "key": "surname_calculation",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "last_name",
- "type": "hidden",
- "hint": "Jina la ukoo ni saww kama jina la ukoo ya familia",
- "calculation": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_calculation.yml"
+ },
+ {
+ "key": "apgar_score_calculated",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "apgar_score_calculated",
+ "type": "edit_text",
+ "hidden": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
}
- }
- }
- },
- {
- "key": "first_name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "first_name",
- "type": "edit_text",
- "hint": "Jina la kwanza",
- "edit_type": "name",
- "v_required": {
- "value": "true",
- "err": "Tafadhali ingiza jina la kwanza"
- },
- "v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ },
+ {
+ "key": "prompt_for_normal_apgar_score",
+ "type": "toaster_notes",
+ "text": "Alama ya APGAR ya Ujumla, Kawaida: {apgar_score}",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "positive",
+ "relevance": {
+ "step1:apgar_score": {
+ "type": "numeric",
+ "ex": "greaterThanEqualTo(.,\"7\")"
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
}
- }
- }
- },
- {
- "key": "middle_name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "middle_name",
- "type": "edit_text",
- "hint": "Jina la kati",
- "edit_type": "name",
- "v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ },
+ {
+ "key": "prompt_for_abnormal_apgar_score",
+ "type": "toaster_notes",
+ "text": "Alama ya APGAR ya Ujumla, Sio ya Kawaida: {apgar_score}. \nMtoto apewe huduma ya dharura",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:apgar_score": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"6\")"
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
}
- }
- }
- },
- {
- "key": "dob",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "birthdate",
- "type": "hidden",
- "calculation": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_calculation.yml"
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "15dp"
+ },
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "edit_text",
+ "hint": "Jina la Ukoo",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka Jina la Ukoo"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Ukoo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
}
- }
- }
- },
- {
- "key": "gender",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "gender",
- "type": "spinner",
- "hint": "Jinsi",
- "values": [
- "Me",
- "Ke"
- ],
- "keys": [
- "Male",
- "Female"
- ],
- "v_required": {
- "value": "true",
- "err": "Tafadhali ingiza jinsia"
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ },
+ {
+ "key": "same_as_fam_name_chk",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "openmrs_data_type": "text",
+ "type": "check_box",
+ "options": [
+ {
+ "key": "same_as_fam_name",
+ "text": "Jina la mwisho ni sawa na Jina la Ukoo",
+ "text_size": "18px",
+ "value": "false"
+ }
+ ]
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kwanza"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Ingiza jina sahihi"
+ }
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Ingiza jina sahihi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kati"
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "hidden"
+ },
+ {
+ "key": "gender",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Jinsi",
+ "values": [
+ "Me",
+ "Ke",
+ "Jinsia Tata"
+ ],
+ "keys": [
+ "Male",
+ "Female",
+ "Ambiguous"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Jinsi inahitajika kujazwa"
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Uzito (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza uzito"
+ },
+ "v_min": {
+ "value": "0.5",
+ "err": "Uzito lazima uwe sawasawa au zaidi ya 0.5 (KG)"
+ },
+ "v_max": {
+ "value": "6",
+ "err": "Uzito lazima uwe sawasawa au chini ya 7 (KG)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza uzito"
+ }
+ },
+ {
+ "key": "disabilities",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabilities",
+ "type": "spinner",
+ "hint": "Ulemavu wa kimwili",
+ "values": [
+ "Ndio",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "prompt_for_disabilities",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:disabilities": {
+ "type": "string",
+ "ex": "equalTo(.,\"Yes\")"
+ }
+ }
+ },
+ {
+ "key": "type_of_disability",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Aina ya ulemavu wa kimwili",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Ulemavu wa Kimwili na utembeaji",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Ulemavu wa uti wa mgongo",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Majeraha ya kichwa - Ulemavu wa Ubongo",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Ulemavu wa Maono",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Ulemavu wa Kusikia ",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Ulemavu wa Utambuzi au Kujifunza",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Matatizo ya Kisaikolojia",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Ulemavu usioonekana",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "early_bf_1hr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "early_bf_1hr",
+ "type": "spinner",
+ "hint": "Amenyonyeshwa ndani ya saa 1?",
+ "values": [
+ "Ndio",
+ "Hapana"
+ ],
+ "keys": [
+ "yes",
+ "no"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "yes",
+ "No": "no"
+ }
+ },
+ {
+ "key": "reason_for_not_breast_feeding_within_one_hour",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_breast_feeding_within_one_hour",
+ "type": "spinner",
+ "hint": "Sababu za kwanini mtoto hakunyonyeshwa ndani ya saa 1",
+ "values": [
+ "Mama alifariki",
+ "Mtoto hakuweza kunyonya",
+ "Mama alichagua kunywesha maziwa mbadala (RF)",
+ "Nyingine (Taja)"
+ ],
+ "keys": [
+ "mother_died",
+ "baby_unable_to_breast_feed",
+ "replacement_feeding",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "mother_died": "mother_died",
+ "baby_unable_to_breast_feed": "baby_unable_to_breast_feed",
+ "replacement_feeding": "replacement_feeding",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:early_bf_1hr": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_breast_feeding_within_one_hour",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_breast_feeding_within_one_hour",
+ "type": "edit_text",
+ "hint": "Sababu nyingine za kutokumnyonyesha mtoto",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_breast_feeding_within_one_hour": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "child_bcg_vaccination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_bcg_vaccination",
+ "type": "native_radio",
+ "label": "Je, Mtoto amepata chanjo ya BCG?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "prompt_for_bcg_vacc_not_provided",
+ "type": "toaster_notes",
+ "text": "Mpatie Mtoto chanjo ya BCG wakati wa udhulio la kwanza la PNC, au mara tuu chanjo ya BCG ikiwepo. BCG haiwezi kutolewa kwa Mtoto ambaye amezidi miezi 12",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_bcg_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_bcg_vacc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_bcg_vacc",
+ "type": "spinner",
+ "hint": "Sababu ya chanjo ya BCG kutotolewa",
+ "values": [
+ "Chanjo zimeisha",
+ "Amejifungua akiwa nyumbani"
+ ],
+ "keys": [
+ "out_of_stock_vaccine",
+ "home_delivery"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock_vaccine": "out_of_stock_vaccine",
+ "home_delivery": "home_delivery"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:child_bcg_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "child_opv0_vaccination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_opv0_vaccination",
+ "type": "native_radio",
+ "label": "Je, Mtoto amepata chanjo ya OPV0?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "prompt_for_opv0_vacc_not_provided",
+ "type": "toaster_notes",
+ "text": "Mpatie chanjo ya OPV 0 mtoto kwenye udhurio la kwanza la baada ya kujifungua(PNC) au mara tu chanjo ya OPV 0 itakapo kuwepo.OPV 0 haitakiwi kutolewa baada ya mtoto kufikisha siku 14",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_opv0_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
}
}
- }
- },
- {
- "key": "disabilities",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "159522AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "spinner",
- "hint": "Ulemavu",
- "values": [
- "Ndiyo",
- "Hapana"
],
- "keys": [
- "Yes",
- "No"
- ],
- "openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo moja"
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
- }
- }
+ "err": "Tafadhali jaza idadi ya watoto waliozaliwa hai"
}
},
{
- "key": "type_of_disability",
+ "key": "no_children_no",
+ "type": "repeating_group",
+ "reference_edit_text_hint": "Idadi ya watoto waliozaliwa Hai",
+ "repeating_group_label": "Taarifa ya Mtoto #",
"openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Aina ya ulemavu",
- "edit_type": "name",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "repeating_group_max": "4",
+ "expand_on_text_change": "true",
"relevance": {
"rules-engine": {
"ex-rules": {
"rules-file": "anc_pregnancy_outcome_relevance.yml"
}
}
- }
- },
- {
- "key": "early_bf_1hr",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "164819AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "spinner",
- "hint": "Unyonyeshaji wa mtoto ndani ya saa moja baada ya kujifungua?",
- "values": [
- "Ndiyo",
- "Hapana"
- ],
- "keys": [
- "Yes",
- "No"
- ],
- "openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ "value": [
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "edit_text",
+ "hint": "Jina la Ukoo",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "err": "Ingiza jina sahihi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Ukoo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
}
- }
- }
- },
- {
- "key": "vacc_birth",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "check_box",
- "label": "Chanjo gani alizopata mtoto?",
- "label_text_style": "normal",
- "text_color": "#C0C0C0",
- "exclusive": [
- "chk_none"
- ],
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ },
+ {
+ "key": "same_as_fam_name_chk",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "openmrs_data_type": "text",
+ "type": "check_box",
+ "options": [
+ {
+ "key": "same_as_fam_name",
+ "text": "Jina la mwisho ni sawa na Jina la Ukoo",
+ "text_size": "18px",
+ "value": "false"
+ }
+ ]
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kwanza"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "err": "Ingiza jina sahihi"
}
- }
- },
- "options": [
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "err": "Ingiza jina sahihi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kati"
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "hidden"
+ },
+ {
+ "key": "gender",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Jinsi",
+ "values": [
+ "Me",
+ "Ke",
+ "Jinsia Tata"
+ ],
+ "keys": [
+ "Male",
+ "Female",
+ "Ambiguous"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Jinsi inahitajika"
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Uzito (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza uzito"
+ },
+ "v_min": {
+ "value": "1.5",
+ "err": "Uzito lazima uwe sawasawa au zaidi ya 0.5 (KG)"
+ },
+ "v_max": {
+ "value": "7",
+ "err": "Uzito lazima uwe sawasawa au chini ya 7 (KG)"
+ }
+ },
+ {
+ "key": "disabilities",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabilities",
+ "type": "spinner",
+ "hint": "Ulemavu wa kimwili",
+ "values": [
+ "Ndio",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "prompt_for_disabilities",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:disabilities": {
+ "type": "string",
+ "ex": "equalTo(.,\"Yes\")"
+ }
+ }
+ },
+ {
+ "key": "type_of_disability",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Aina ya ulemavu wa kimwili",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Ulemavu wa Kimwili na utembeaji",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Ulemavu wa uti wa mgongo",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Majeraha ya kichwa - Ulemavu wa Ubongo",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Ulemavu wa Maono",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Ulemavu wa Kusikia ",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Ulemavu wa Utambuzi au Kujifunza",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Matatizo ya Kisaikolojia",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Ulemavu usioonekana",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "early_bf_1hr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "early_bf_1hr",
+ "type": "spinner",
+ "hint": "Amenyonyeshwa ndani ya saa 1?",
+ "values": [
+ "Ndio",
+ "Hapana"
+ ],
+ "keys": [
+ "yes",
+ "no"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "yes",
+ "No": "no"
+ }
+ },
+ {
+ "key": "reason_for_not_breast_feeding_within_one_hour",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_breast_feeding_within_one_hour",
+ "type": "spinner",
+ "hint": "Sababu za kwanini mtoto hakunyonyeshwa ndani ya saa 1",
+ "values": [
+ "Mama alifariki",
+ "Mtoto hakuweza kunyonya",
+ "Mama alichagua kunywesha maziwa mbadala (RF)",
+ "Nyingine (Taja)"
+ ],
+ "keys": [
+ "mother_died",
+ "baby_unable_to_breast_feed",
+ "replacement_feeding",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "mother_died": "mother_died",
+ "baby_unable_to_breast_feed": "baby_unable_to_breast_feed",
+ "replacement_feeding": "replacement_feeding",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:early_bf_1hr": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
{
- "key": "chk_none",
- "text": "Hajapata chanjo",
- "value": false,
+ "key": "other_reason_for_not_breast_feeding_within_one_hour",
+ "openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "other_reason_for_not_breast_feeding_within_one_hour",
+ "type": "edit_text",
+ "hint": "Sababu nyingine za kutokumnyonyesha mtoto",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_breast_feeding_within_one_hour": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
},
{
- "key": "chk_opv_0",
- "text": "OPV 0",
- "value": false,
+ "key": "child_bcg_vaccination",
+ "openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "child_bcg_vaccination",
+ "type": "native_radio",
+ "label": "Je, Mtoto amepata chanjo ya BCG?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
},
{
- "key": "chk_bcg",
- "text": "BCG",
- "value": false,
+ "key": "prompt_for_bcg_vacc_not_provided",
+ "type": "toaster_notes",
+ "text": "Mpatie Mtoto chanjo ya BCG wakati wa udhulio la kwanza la PNC, au mara tuu chanjo ya BCG ikiwepo. BCG haiwezi kutolewa kwa Mtoto ambaye amezidi miezi 12",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_bcg_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_bcg_vacc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_bcg_vacc",
+ "type": "spinner",
+ "hint": "Sababu ya chanjo ya BCG kutotolewa",
+ "values": [
+ "Chanjo zimeisha",
+ "Amejifungua akiwa nyumbani"
+ ],
+ "keys": [
+ "out_of_stock_vaccine",
+ "home_delivery"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock_vaccine": "out_of_stock_vaccine",
+ "home_delivery": "home_delivery"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:child_bcg_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "child_opv0_vaccination",
+ "openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "child_opv0_vaccination",
+ "type": "native_radio",
+ "label": "Je, Mtoto amepata chanjo ya OPV 0?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "prompt_for_opv0_vacc_not_provided",
+ "type": "toaster_notes",
+ "text": "Mpatie chanjo ya OPV 0 mtoto kwenye udhurio la kwanza la baada ya kujifungua (PNC) au mara tu chanjo ya OPV 0 itakapo kuwepo.OPV 0 haitakiwi kutolewa baada ya mtoto kufikisha siku 14",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_opv0_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
}
],
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo angalau moja"
+ "err": "Tafadhali jaza idadi ya watoto waliozaliwa hai"
+ }
+ },
+ {
+ "key": "hiv",
+ "type": "hidden",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_outcome_calculation.yml"
+ }
+ }
}
}
]
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_referral_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_referral_form.json
new file mode 100644
index 0000000000..42bf097abf
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_referral_form.json
@@ -0,0 +1,421 @@
+{
+ "count": "1",
+ "encounter_type": "ANC Referral",
+ "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": "ANC referral form",
+ "fields": [
+ {
+ "key": "chw_referral_hf_anc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1759AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_referral_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "problem_hf_anc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "163182AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "check_box",
+ "label": "Halai/tatizo la mteja",
+ "label_text_style": "bold",
+ "options": [
+ {
+ "key": "Vaginal_bleeding",
+ "text": "Kutokwa na damu ukeni",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "147232AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Discoloured_or_watery_liquid_vaginal_discharge_with_a_bad_smell",
+ "text": "Kutokwa na majimaji yenye rangirangi na yenye harufu mbaya kutoka ukeni",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "123396AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "High_blood_pressure",
+ "text": "Sinikizo la juu la damu",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "113088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Severe_abdominal_pain",
+ "text": "Maumivu makali ya tumbo",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "165271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Severe_anaemia",
+ "text": "Kupungukiwa kwa damu nyingi",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "162044AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Convulsions",
+ "text": "Degedege",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "113054AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "No_movement_unusual_movement_for_a_child_in_the_womb",
+ "text": "Hakuna uchezaji/uchezaji usio wakawaida wa mtoto tumboni",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "113377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Pregnancy_pains_before_9_months",
+ "text": "Kujiskia uchungu kabla ya miezi 9",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "153316AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Early_age_pregnancy_below_18_years",
+ "text": "Mimba ya umri mdogo (chini ya miaka 18)",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "163119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "A_severe_headache_dizziness",
+ "text": "Maumivu makali ya kichwa/kizunguzungu",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "139081AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Swelling_of_the_face_andor_hands",
+ "text": "Kuvimba uso na/au mikono",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Fever",
+ "text": "Homa",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Shivering_trembling",
+ "text": "Kutetemeka ",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "158359AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Nausea_and_Vomiting",
+ "text": "Kichefuchefu na kutapika",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "133473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Water_sack_broke_before_contractions",
+ "text": "Maji kupasuka kabla ya mkazo",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "129211AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Cord_prolapse",
+ "text": "Kutokeza kwa kamba ya kitovu",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "128419AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "HIV_care_and_support_services",
+ "text": "Huduma za matunzo na usaidizi wa VVU",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "159811AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Family_planning_services",
+ "text": "Huduma za uzazi wa mpango",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "5271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "PMTCT_for_mothers",
+ "text": "PMTCT kwa akina mama",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "160538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Fistula",
+ "text": "Fistula",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "160854AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Difficultly_breathing",
+ "text": "Kupumua kwa shida",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "142373AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Breast_engorgement",
+ "text": "Matiti kujaa",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "118620AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Blurred_vision",
+ "text": "Uoni hafifu",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "147104AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Perineum_tear",
+ "text": "Kuchanika kwa msamba",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "136938AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Pregnancy_confirmation",
+ "text": "Uthibitisho wa ujauzito",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "152305AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Other_symptoms",
+ "text": "Dalili zingine",
+ "value": false,
+ "ignore": true,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali bainisha sababu ya kupata rufaa ya ANC"
+ }
+ },
+ {
+ "key": "problem_hf_anc_other",
+ "type": "edit_text",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
+ "edit_type": "name",
+ "hint": "Dalili zingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha dalili nyingine"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_referral_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "service_before_anc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "check_box",
+ "is_problem": false,
+ "label": "Usimamizi kabla ya rufaa uliyotolewa",
+ "label_text_style": "bold",
+ "exclusive": [
+ "None"
+ ],
+ "options": [
+ {
+ "key": "ORS",
+ "text": "ORS",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "351AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Panadol",
+ "text": "Panadol",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "70116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Other_treatment",
+ "text": "Matibabu mengine",
+ "value": false,
+ "ignore": true,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "None",
+ "text": "Hakuna",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Sehemu ya usimamizi kabla ya rufaa inahitajika"
+ }
+ },
+ {
+ "key": "service_before_anc_other",
+ "type": "edit_text",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
+ "is_problem": false,
+ "edit_type": "name",
+ "hint": "Matitabu mengine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha matibabu mengine"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_referral_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "referral_date_anc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_referral_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "referral_time_anc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_referral_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_birth_review_and_emergency_plan.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_birth_review_and_emergency_plan.json
new file mode 100644
index 0000000000..8b2e38be31
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_birth_review_and_emergency_plan.json
@@ -0,0 +1,291 @@
+{
+ "count": "1",
+ "encounter_type": "Emergency Plan",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {
+ "delivery_place_identified": false,
+ "transport_identified": false,
+ "birth_companion_identified": false,
+ "emergency_funds_identified": false,
+ "household_support_identified": false,
+ "blood_donor_identified": false
+ },
+ "step1": {
+ "title": "Pitia na Hakiki Mpango wa Kujifungua na Dharura",
+ "fields": [
+ {
+ "key": "delivery_place",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_place",
+ "openmrs_entity_parent": "",
+ "label": "Kituo cha Afya cha Kujifungulia Kimetambulika?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "text": "Kimetambulika na Kuandaliwa",
+ "key": "prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "text": "Bado Hakijatabmulika",
+ "key": "not_prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "name_of_hf",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "name_of_hf",
+ "buttonText": "Select Health Facility",
+ "sort": true,
+ "maxSelectable": 1,
+ "dialogTitle": "Health Facility",
+ "searchHint": "Type Health Facility Name",
+ "options": [
+ ],
+ "type": "multi_select_list",
+ "v_required": {
+ "value": true,
+ "err": "Please select the health facility"
+ },
+ "relevance": {
+ "step1:delivery_place": {
+ "type": "string",
+ "ex": "equalTo(., \"prepared\")"
+ }
+ }
+ },
+ {
+ "key": "transport",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "transport",
+ "openmrs_entity_parent": "",
+ "label": "Andaa Njia ya Usafiri",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "text": "Njia ya Usafiri Imetambuliwa",
+ "key": "prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "text": "Njia ya Usafiri Haijatambuliwa",
+ "key": "not_prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "birth_companion",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "birth_companion",
+ "openmrs_entity_parent": "",
+ "label": "Andaa Mwenzi wa kujifungua na kuarifiwa",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "text": "Mwenzi wa kujifungua ametambulika na kuarifiwa",
+ "key": "prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "text": "Hajatambulika na kuarifiwa",
+ "key": "not_prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "emergency_funds",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "emergency_funds",
+ "openmrs_entity_parent": "",
+ "label": "Andaa hela kwa ajili ya kujifungua na mahitaji mengine",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "prepared",
+ "text": "Zimeandaliwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "key": "not_prepared",
+ "text": "Bado Hazijaandaliwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "household_support",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "household_support",
+ "openmrs_entity_parent": "",
+ "label": "Andaa Msaada wa Mlezi wa Kaya",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "text": "Ameandaliwa",
+ "key": "prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "text": "Bado hajaandaliwa",
+ "key": "not_prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "blood_donor",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_donor",
+ "openmrs_entity_parent": "",
+ "label": "Tayarisha mtu wa kutoa damu",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "prepared",
+ "text": "Ametayarishwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "key": "not_prepared",
+ "text": "Bado Hajatayarishwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_consultation.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_consultation.json
new file mode 100644
index 0000000000..a5f3878fe6
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_consultation.json
@@ -0,0 +1,707 @@
+{
+ "count": "1",
+ "encounter_type": "ANC Consultation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Mashauriano ya ANC",
+ "fields": [
+ {
+ "key": "examination_findings",
+ "type": "check_box",
+ "label": "Matokeo ya Uchunguzi kwenye hudhurio la leo",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "examination_findings",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "puffy_face",
+ "text": "Uso umevimba",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "puffy_face"
+ },
+ {
+ "key": "pallor",
+ "text": "Kupauka (jicho, viganja, ncha ya ulimi, fizi)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pallor"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_examination_findings",
+ "type": "toaster_notes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prompt_for_examination_findings",
+ "openmrs_entity_parent": "",
+ "text": "Tafadhali mpatie Mteja huduma ya dharura kuhusiana na hali hii ya upungufu wa damu na moyo/figo kushindwa kufanya kazi vizuri. Bainisha sababu na dhibiti hali hii kulingana na mwongozo wa Wizara ya Afya.",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:examination_findings": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "pallor",
+ "puffy_face"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "gest_age_consultation",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age_consultation",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "height",
+ "type": "edit_text",
+ "hint": "Urefu (CM)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "height",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza urefu"
+ },
+ "v_min": {
+ "value": "60",
+ "err": "Urefu lazima uwe sawasawa au zaidi ya 60 (CM)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Urefu lazima uwe sawasawa au chini ya 200 (CM)"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "height_calculated",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "height_calculated",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_short_stature",
+ "type": "toaster_notes",
+ "text": "Mshauri mteja kujifungua kwenye Kituo cha Afya kutokana na hatari kubwa ya kupata uchungu pingamizi",
+ "openmrs_entity_id": "prompt_for_short_stature",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:height": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"145\")"
+ }
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Uzito (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza uzito"
+ },
+ "v_min": {
+ "value": "20",
+ "err": "Uzito lazima uwe sawasawa au zaidi ya 20 (KG)"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Uzito lazima uwe sawasawa au chini ya 300 (KG)"
+ }
+ },
+ {
+ "key": "bmi",
+ "type": "edit_text",
+ "hint": "Kielezo cha Uzito wa Mwili (BMI)",
+ "read_only": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bmi",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza urefu"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza urefu"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_underweight",
+ "type": "toaster_notes",
+ "text": "Mshauri Mteja kuhusiana na hali yake ya uzito mdogo kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_underweight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:bmi": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"18.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_overweight",
+ "type": "toaster_notes",
+ "text": "Mshauri Mteja kuhusiana na hali yake ya uzito mkubwa kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_overweight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:bmi": {
+ "type": "numeric",
+ "ex": "greaterThanEqualTo(.,\"29\")"
+ }
+ }
+ },
+ {
+ "key": "fundal_height",
+ "type": "edit_text",
+ "openmrs_entity_id": "fundal_height",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Kimo cha mimba (CM)",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kimo cha mimba"
+ },
+ "v_min": {},
+ "v_max": {
+ "value": "50",
+ "err": "Kimo cha mimba lazima kiwe sawa au chini ya 50 CM"
+ }
+ },
+ {
+ "key": "fetal_heart_rate",
+ "type": "edit_text",
+ "hint": "Hesabu kiwango cha mapigo ya moyo wa mtoto (bpm)",
+ "openmrs_entity_id": "fetal_heart_rate",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiwango cha mapigo ya moyo wa mtoto"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Kiwango cha mapigo ya moyo wa mtoto lazima kiwe sawasawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Kiwango cha mapigo ya moyo wa mtoto lazima kiwe sawasawa au chini ya 300"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_fetal_distress",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "prompt_for_fetal_distress",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "lie",
+ "type": "spinner",
+ "openmrs_entity_id": "lie",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Mlalo wa mtoto",
+ "values": [
+ "Usawa",
+ "Kiupande",
+ "Wima"
+ ],
+ "keys": [
+ "transverse",
+ "oblique",
+ "longitudinal"
+ ],
+ "openmrs_choice_ids": {
+ "transverse": "transverse",
+ "oblique": "oblique",
+ "longitudinal": "longitudinal"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_lie",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "presentation",
+ "type": "spinner",
+ "openmrs_entity_id": "presentation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Kitangulizi cha mtoto",
+ "values": [
+ "Makalio",
+ "Kichwa"
+ ],
+ "keys": [
+ "breech",
+ "cephalic"
+ ],
+ "openmrs_choice_ids": {
+ "breech": "breech",
+ "cephalic": "cephalic"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_presentation",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:presentation": {
+ "type": "string",
+ "ex": "equalTo(., \"breech\")"
+ }
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Shinikizo la Damu)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza thamani ya systolic"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Thamani ya systolic lazima iwe sawasawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Thamani ya systolic lazima iwe sawasawa au chini ya 320"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Shinikizo la Damu)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza thamani ya diastoli"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Thamani ya diastolic lazima iwe sawasawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Thamani ya diastolic lazima iwe sawasawa au chini ya 200"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "Thamani ya diastolic lazima iwe chini ya thamani ya systolic"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya Shinikizo la damu ya juu kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Bainisha sababu za Shinikizo la damu ya chini na udhibiti kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pulse_rate",
+ "type": "edit_text",
+ "hint": "Kiwango cha Mapigo ya moyo (Midundo kwa dakika)",
+ "openmrs_entity_id": "pulse_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kasi ya mapigo ya moyo"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Kiwango cha mpigo lazima kiwe sawasawa au zaidi ya 0 (bpm)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Kiwango cha mpigo lazima kiwe sawasawa au chini ya 200 (bpm)"
+ }
+ },
+ {
+ "key": "prompt_for_Bradycardia",
+ "type": "toaster_notes",
+ "text": "Bainisha sababu za Mapigo hafifu ya moyo na udhibiti kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_Bradycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"60\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_Tachycardia",
+ "type": "toaster_notes",
+ "text": "Bainisha sababu za Tachycardia na njia za udhibiti kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_Tachycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"100\")"
+ }
+ }
+ },
+ {
+ "key": "temperature",
+ "type": "edit_text",
+ "hint": "Halijoto (\u2103)",
+ "openmrs_entity_id": "temperature",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza halijoto"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Halijoto lazima liwe sawasawa au zaidi ya 10"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Halijoto lazima liwe sawasawa au chini ya 50"
+ }
+ },
+ {
+ "key": "notify_client_has_fever",
+ "type": "toaster_notes",
+ "text": "Mfanyie Mama vipimo kwa ajili ya kubainisha sababu ya Homa na dhibiti hali hii kulingana na mwongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "notify_client_has_fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"37.8\")"
+ }
+ }
+ },
+ {
+ "key": "notify_client_has_hypothermia",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya Jotoridi la mwili la chini kuliko kawaida kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "notify_client_has_hypothermia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"36.5\")"
+ }
+ }
+ },
+ {
+ "key": "breast",
+ "type": "native_radio",
+ "label": "Matiti",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breast",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "SIo kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_breasts",
+ "type": "toaster_notes",
+ "text": "Mfanyie Mama uchunguzi wa matiti ilikuweza kugundua kama ana 'Mastitis' au 'Breast lump'. Mpatie Antibiotic kama ana 'Mastitis' na dhibiti hali hii kulingana na mwongozo wa Wizara ya Afya. Mpe rufaa kwa huduma/matibabu zaidi kama ana 'Breast lump'",
+ "openmrs_entity_id": "prompt_for_breasts",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:breast": {
+ "type": "string",
+ "ex": "equalTo(.,\"abnormal\")"
+ }
+ }
+ },
+ {
+ "key": "lymph_node_under_arm",
+ "type": "native_radio",
+ "label": "Nodi ya limfu (kwenye kwapa)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lymph_node_under_arm",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "Sio kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_lymph_under_the_arm",
+ "type": "toaster_notes",
+ "text": "Tafadhali mpe rufaa mteja kwa huduma/matibabu zaidi",
+ "openmrs_entity_id": "prompt_for_lymph_under_the_arm",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:lymph_node_under_arm": {
+ "type": "string",
+ "ex": "equalTo(.,\"abnormal\")"
+ }
+ }
+ },
+ {
+ "key": "lymph_node_cervical",
+ "type": "native_radio",
+ "label": "Nodi ya limfu (Kwenye Shingo)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lymph_node_cervical",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "Sio kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_lymph_cervical",
+ "type": "toaster_notes",
+ "text": "Tafadhali mpe rufaa mteja kwa huduma/matibabu zaidi",
+ "openmrs_entity_id": "prompt_for_lymph_cervical",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:lymph_node_cervical": {
+ "type": "string",
+ "ex": "equalTo(.,\"abnormal\")"
+ }
+ }
+ },
+ {
+ "key": "consultation_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "consultation_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_lab_test.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_lab_test.json
new file mode 100644
index 0000000000..838e132d2b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_lab_test.json
@@ -0,0 +1,1232 @@
+{
+ "count": "1",
+ "encounter_type": "ANC Lab Tests",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "ANC Vipimo Vya Maabara",
+ "fields": [
+ {
+ "key": "hb_level_test",
+ "type": "native_radio",
+ "label": "Kipimo wa Kiwango cha damu (HB)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "Kipimo cha kiwango cha damu (HB) kimefanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha kiwango cha damu (HB) hakijafanyika",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "hb_level",
+ "type": "edit_text",
+ "hint": "Kiwango cha damu (HB) (g/dl)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiwango cha damu (HB)"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Kiwango cha damu (HB) lazima kiwe sawasawa au zaidi ya 0 (g/dl)"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Kiwango cha damu (HB) lazima kiwe sawasawa au chini ya20 (g/dl)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka thamani"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_severe_anaemia_treatment",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya upungufu mkubwa wa damu kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_severe_anaemia_treatment",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hb_level": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"8.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_moderate_anaemia_management",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya ukosefu wa damu kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_moderate_anaemia_management",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hb_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha kiwango cha HB ",
+ "values": [
+ "Cuvette Cartridges Hazipo Kituoni",
+ "Mashine ya Kupimwa wingi wa damu (Haemoque) haifanyi kazi",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja amekataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "stock_out_of_cuvettes_cartridges": "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order": "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_hb_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_hb_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Sababu nyingine ya kutofanya kipimo cha kiwango cha damu (HB)",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hb_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "blood_for_glucose_test",
+ "type": "native_radio",
+ "label": "Kipimo cha sukari kwenye damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_for_glucose_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "Kipimo cha sukari kwenye damu kimefanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha sukari kwenye damu hakijafanyika",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "type_of_blood_for_glucose_test",
+ "type": "native_radio",
+ "label": "Aina ya kipimo cha sikari kwenye damu kilichofanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_blood_for_glucose_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "rbg",
+ "text": "Kipimo cha wingi wa sukari mwilini (rbg)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rbg",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "gtt",
+ "text": "Kipimo cha kugundua jinsi sukari mwilini inavyoratibiwa (GTT)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gtt"
+ },
+ {
+ "key": "fbg",
+ "text": "Kipimo cha sukari (asubuhi) kabla ya kula chochote",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fbg"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:blood_for_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "blood_for_glucose",
+ "type": "edit_text",
+ "hint": "sukari kwenye damu (mmol/L)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_for_glucose",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza sukari kwenye damu (mmol/L)"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Sukari kwenye damu lazima iwe sawasawa au zaidi ya 0 (mmol/L)"
+ },
+ "v_max": {
+ "value": "45",
+ "err": "Sukari kwenye damu lazima iwe sawasawa au chini ya 45 (mmol/L)"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sukari kwenye damu (mmol/L)"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_gestational_diabetes_mellitus",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya Gestational diabetes mellitus kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_gestational_diabetes_mellitus",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_hypoglycaemia",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya hypoglycaemia kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_hypoglycaemia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_blood_glucose_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_blood_glucose_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha sukari kwenye damu",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine"
+ ],
+ "keys": [
+ "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_are_out_of_stock": "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:blood_for_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_blood_glucose_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_blood_glucose_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Sababu nyingine ya kutofanya kipimo cha sukari kwenye damu",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_blood_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "glucose_in_urine",
+ "type": "native_radio",
+ "label": "Sukari kwenye mkojo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "glucose_in_urine",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha sukari kwenye mkojo hakijafanyika",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_glucose_in_urine",
+ "type": "toaster_notes",
+ "text": "Angalia kiasi cha sukari katika damu ili kumuepusha Mteja na Ugonjwa wa kisukari wakati wa Ujauzito",
+ "openmrs_entity_id": "prompt_for_glucose_in_urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:glucose_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_glucose_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_glucose_in_urine_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha sukari kwenye mkojo",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine"
+ ],
+ "keys": [
+ "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_are_out_of_stock": "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:glucose_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_glucose_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_glucose_in_urine_test",
+ "type": "edit_text",
+ "hint": "Sababbu ya kutofanya kipimo cha sukari kwenye mkojo",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "protein_in_urine",
+ "type": "native_radio",
+ "label": "Protini kwenye mkojo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "protein_in_urine",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha protini kwenye mkojo hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_protein_in_urine",
+ "type": "toaster_notes",
+ "text": "Tafadhali fuatilia shinikizo la damu kwa Mteja ili uweze kuepusha na hatari ya Kifafa cha mimba, bainisha dalili za UTI dhibiti viashiria vya Proteinuria kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_protein_in_urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:protein_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_protein_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_protein_in_urine_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha protini kwenye mkojo",
+ "values": [
+ "Vifaa vuya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine"
+ ],
+ "keys": [
+ "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_are_out_of_stock": "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:protein_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_protein_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_protein_in_urine_test",
+ "type": "edit_text",
+ "hint": "Sababu nyingine ya kutofanya kipimo cha protini kwenye mkojo",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Taadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_protein_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "blood_group",
+ "type": "spinner",
+ "hint": "Kundi la damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_group",
+ "openmrs_entity_parent": "",
+ "values": [
+ "A",
+ "B",
+ "AB",
+ "O",
+ "Kipimo cha kundi la damu haijafanyika"
+ ],
+ "keys": [
+ "A",
+ "B",
+ "AB",
+ "O",
+ "test_not_conducted"
+ ],
+ "openmrs_choice_ids": {
+ "A": "A",
+ "B": "B",
+ "AB": "AB",
+ "O": "O",
+ "test_not_conducted": "test_not_conducted"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_blood_group_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_blood_group_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha kundi la damu",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja amekataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_are_out_of_stock": "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:blood_group": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_blood_group_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_blood_group_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha kundi la damu",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_blood_group_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "rh_factor",
+ "type": "native_radio",
+ "label": "Rh",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rh_factor",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_rh_factor",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:rh_factor": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "hiv",
+ "type": "native_radio",
+ "label": "Matokeo ya Kipimo cha VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha VVU hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hiv_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha VVU ",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:hiv": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_hiv_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu nyingine ya kutofanya kipimo cha VVU",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hiv_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "register_pmtct",
+ "type": "toaster_notes",
+ "text": "Msajili Mteja kwenye PMTCT kwa ajili ya matunzo na ufuatiliaji",
+ "openmrs_entity_id": "register_pmtct",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hiv": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prescribe_arv",
+ "type": "toaster_notes",
+ "text": "Mpatie Mteja dawa za kufubaza virusi vya Ukimwi (ARV) kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prescribe_arv",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hiv": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_counselling_before_testing",
+ "type": "native_radio",
+ "label": "Je, Mteja alipewa ushauri nasaha kabla ya kupima VVU?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_counselling_before_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_counselling_after_testing",
+ "type": "native_radio",
+ "label": "Je, Mteja alipewa ushauri nasaha baada ya kupima VVU?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_counselling_after_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "syphilis",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha kaswende",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha kaswende hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prescribe_anti_sy",
+ "type": "toaster_notes",
+ "text": "Muagizie mteja dawa za antibiotiki (Kiuavijasumu)",
+ "openmrs_entity_id": "prescribe_anti_sy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "syphilis_treatment",
+ "type": "native_radio",
+ "label": "Je, matibabu ya Kaswende yalitolewa?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis_treatment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_syphilis_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha kaswende",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_syphilis_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha kaswende",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_syphilis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "hepatitis",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha homa ya ini",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hepatitis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha homa ya ini hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prescribe_arv_hepb_at_above_twenty_eight",
+ "type": "toaster_notes",
+ "text": "Mpatie Mteja dawa za kufubaza virusi vya Ukimwi (ARV) kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prescribe_arv_hepb_at_above_twenty_eight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "counsel_arv_hepb_below_twenty_eight",
+ "type": "toaster_notes",
+ "text": "To ushauri kwa Mama mwenye ujauzito wa wiki 28 kuhusiana na matumizi ya dawa za kufubaza virusi vya Ukimwi (ARV)",
+ "openmrs_entity_id": "counsel_arv_hepb_below_twenty_eight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hepatitis_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha homa ya ini",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:hepatitis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_hepatitis_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu zingine za kutofanya kipimo cha kaswende",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hepatitis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_test_at_32",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_at_32",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_test_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_number",
+ "type": "hidden"
+ },
+ {
+ "key": "date_anc_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "date_anc_hiv_test",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "lab_test_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lab_test_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_malaria_investigation_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_malaria_investigation_form.json
new file mode 100644
index 0000000000..a9b4d1cfd7
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_malaria_investigation_form.json
@@ -0,0 +1,606 @@
+{
+ "count": "1",
+ "encounter_type": "Malaria Investigation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {
+ },
+ "step1": {
+ "title": "Uchunguzi wa Malaria",
+ "fields": [
+ {
+ "key": "client_on_malaria_medication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_on_malaria_medication",
+ "type": "native_radio",
+ "label": "Je, Mteja anatumia dawa za Malaria?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "malaria_symptoms_screening",
+ "type": "check_box",
+ "label": "Tafadhali chagua kama mteja ana mojawapo ya dalili zifuatazo za Malaria",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "malaria_symptoms_screening",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "fever_and_chills",
+ "text": "Homa na baridi",
+ "openmrs_entity_id": "fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "headache",
+ "text": "Maumivu ya kichwa",
+ "openmrs_entity_id": "headache",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "pallor",
+ "text": "Kupauka",
+ "opemrs_entity_id": "pallor",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "diarrhea",
+ "text": "Kuhara",
+ "openmrs_entity_id": "diarrhea",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "nausea_and_vomiting",
+ "text": "Kichefuchefu na Kutapika",
+ "openmrs_entity_id": "nausea_and_vomiting",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "joint_pains",
+ "text": "Maumivu ya Viungo",
+ "openmrs_entity_id": "joint_pains",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "body_ache",
+ "text": "Maumivu ya Mwili",
+ "openmrs_entity_id": "body_ache",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "poor_appetite",
+ "text": "Hamu ya kula hafifu",
+ "openmrs_entity_id": "poor_appetite",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "body_weakness",
+ "text": "Udhaifu wa Mwili",
+ "openmrs_entity_id": "body_weakness",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "enlarged_spleen",
+ "text": "Wengu Uliopanuliwa",
+ "openmrs_entity_id": "enlarged_spleen",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "none",
+ "text": "Hakuna kati ya zilizo hapo juu",
+ "openmrs_entity_id": "none",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "relevance": {
+ "step1:client_on_malaria_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "mRDT_for_malaria",
+ "type": "native_radio",
+ "label": "Majibu ya kipimo cha Malaria",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mRDT_for_malaria",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha Malaria hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "step1:malaria_symptoms_screening": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "fever_and_chills",
+ "headache",
+ "pallor",
+ "diarrhea",
+ "nausea_and_vomiting",
+ "joint_pains",
+ "body_ache",
+ "poor_appetite",
+ "body_weakness",
+ "enlarged_spleen"
+ ]
+ }
+ ]
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_mRDT",
+ "type": "toaster_notes",
+ "text": "Mpatie dawa za malaria na tibu kulingana na muongozo",
+ "openmrs_entity_id": "prompt_for_mRDT",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:mRDT_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_further_management",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "prompt_for_mRDT",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:mRDT_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_malaria_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_malaria_test",
+ "type": "spinner",
+ "hint": "Sababu ya kipimo cha malaria kutokufanyika",
+ "values": [
+ "Vifaa vya kupima vimeisha",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja alikataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:mRDT_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_malaria_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_malaria_test",
+ "type": "edit_text",
+ "hint": "Elezea sababu ya Kutokufanyika kwa kipimo cha Malaria",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_malaria_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy",
+ "type": "hidden",
+ "openmrs_entity_id": "malaria_preventive_therapy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy_ipt1",
+ "type": "native_radio",
+ "openmrs_entity_id": "malaria_preventive_therapy_ipt1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Dawa za kinga za malaria",
+ "options": [
+ {
+ "key": "ipt1",
+ "text": "IPT1",
+ "openmrs_entity_id": "ipt1",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "medication_not_given",
+ "text": "Hajapewa dawa za Malaria",
+ "openmrs_entity_id": "medication_not_given",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Chagua dawa kwa ajili ya kinga ya malaria"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy_ipt2",
+ "type": "native_radio",
+ "openmrs_entity_id": "malaria_preventive_therapy_ipt2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Dawa za kinga za malaria",
+ "options": [
+ {
+ "key": "ipt2",
+ "text": "IPT2",
+ "openmrs_entity_id": "ipt2",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "medication_not_given",
+ "text": "Hajapewa dawa za Malaria",
+ "openmrs_entity_id": "medication_not_given",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Chagua dawa kwa ajili ya kinga ya malaria"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy_ipt3",
+ "type": "native_radio",
+ "openmrs_entity_id": "malaria_preventive_therapy_ipt3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Dawa za kinga za malaria",
+ "options": [
+ {
+ "key": "ipt3",
+ "text": "IPT3",
+ "openmrs_entity_id": "ipt3",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "medication_not_given",
+ "text": "Hajapewa dawa za Malaria",
+ "openmrs_entity_id": "medication_not_given",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Chagua dawa kwa ajili ya kinga ya malaria"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy_ipt4",
+ "type": "native_radio",
+ "openmrs_entity_id": "malaria_preventive_therapy_ipt4",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Dawa za kinga za malaria",
+ "options": [
+ {
+ "key": "ipt4",
+ "text": "IPT4",
+ "openmrs_entity_id": "ipt4",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "medication_not_given",
+ "text": "Hajapewa dawa za Malaria",
+ "openmrs_entity_id": "medication_not_given",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Chagua dawa kwa ajili ya kinga ya malaria"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_malaria_medication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_malaria_medication",
+ "type": "spinner",
+ "hint": "Sababu ya kutokupewa dawa za Malaria",
+ "values": [
+ "Bidhaa zimeisha",
+ "Mteja amekataa kuchukua dawa",
+ "Anamzio na dawa (Allegy)",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_reason_malaria_medication_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_malaria_medication_not_given",
+ "type": "edit_text",
+ "hint": "Elezea sababu ya mteja kutokupewa dawa za kujikinga na Malaria",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_malaria_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "llin_provision",
+ "type": "native_radio",
+ "openmrs_entity_id": "llin_provision",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Je, Mteja alipewa LLINs (vyandarua vya muda mrefu)?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_llin",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_llin",
+ "type": "spinner",
+ "hint": "Sababu ya mteja kutokupewa chandarua cha muda mrefu (LLINs)",
+ "values": [
+ "Bidhaa zimeisha",
+ "Mteja alikataa",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "the_client_refused",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "the_client_refused": "the_client_refused",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:llin_provision": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_llin_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_llin_not_given",
+ "type": "edit_text",
+ "hint": "Elezea sababu ya mteja kutokupewa chandarua cha muda mrefu (LLINs)",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_providing_llin": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "malaria_investigation_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "malaria_investigation_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_pharmacy.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_pharmacy.json
new file mode 100644
index 0000000000..7f01cb8cfa
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_pharmacy.json
@@ -0,0 +1,335 @@
+{
+ "count": "1",
+ "encounter_type": "Medication and Supplements",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Dawa na Virutubisho",
+ "fields": [
+ {
+ "key": "pharmacy",
+ "type": "label",
+ "text": "Mtoa huduma ampatie dawa ya prophylactic na virutubishi",
+ "text_color": "#000000",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "iron_folate_supplements",
+ "type": "native_radio",
+ "label": "Vidonge vya Madini ya chuma",
+ "openmrs_entity_id": "iron_folate_supplements",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "text": "FeFo",
+ "key": "FeFo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "FeFo"
+ },
+ {
+ "text": "folic",
+ "key": "Foliki Asidi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "folic"
+ },
+ {
+ "text": "Hajapewa dawa ya vidonge vya madini ya chuma",
+ "key": "medication_not_given",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_not_given"
+ }
+ ]
+ },
+ {
+ "key": "reason_for_giving_folic_acid",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_giving_folic_acid",
+ "type": "spinner",
+ "hint": "Sababu kwanini amepewa Foliki Asidi badala ya FEFO",
+ "values": [
+ "Bidhaa zimeisha",
+ "Selimundu",
+ "Nyingine (Taja)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "sickle_cell",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "sickle_cell": "sickle_cell",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:iron_folate_supplements": {
+ "type": "string",
+ "ex": "equalTo(., \"folic\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_giving_folic_acid",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_giving_folic_acid",
+ "type": "edit_text",
+ "hint": "Elezea sababu nyingine ya kupewa dawa za Foliki Asidi ",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_giving_folic_acid": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_iron_folate_supplements",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_iron_folate_supplements",
+ "type": "spinner",
+ "hint": "Sababu ya kutopewa vidonge vya madini ya chuma",
+ "values": [
+ "Bidhaa zimeisha",
+ "Mteja amekataa kuchukua dawa",
+ "Anamzio na dawa (Allegy)",
+ "Nyingine"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "step1:iron_folate_supplements": {
+ "type": "string",
+ "ex": "equalTo(., \"medication_not_given\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_fefo_medication_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_fefo_medication_not_given",
+ "type": "edit_text",
+ "hint": "Elezea sababu nyingine yakutokupewa dawa ya FEFO",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_fefo_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "deworming",
+ "type": "check_box",
+ "label": "Dawa ya minyoo",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "deworming",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "mebendazole",
+ "albendazole",
+ "medication_not_given"
+ ],
+ "options": [
+ {
+ "text": "Mebendazole(500Mg)",
+ "key": "mebendazole",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mebendazole"
+ },
+ {
+ "text": "Albendazole(400Mg)",
+ "key": "albendazole",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "albendazole"
+ },
+ {
+ "text": "Hajapewa dawa ya minyoo",
+ "key": "medication_not_given",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_not_given"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_pharmacy_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_deworming_medication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_deworming_medication",
+ "type": "spinner",
+ "hint": "Sababu ya kutopewa dawa ya minyoo",
+ "values": [
+ "Bidhaa zimeisha",
+ "Mteja amekataa kuchukua dawa",
+ "Anamzio na dawa (Allegy)",
+ "Nyingine"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:deworming": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "medication_not_given"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "other_reason_deworming_medication_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_deworming_medication_not_given",
+ "type": "edit_text",
+ "hint": "Sababu nyingine",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_deworming_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "medication_purchased_externally_and_used_under_clinician_supervision",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_purchased_externally_and_used_under_clinician_supervision",
+ "label": "Je, mteja alinunua dawa/virutubisho nje ya kituo na kuzitumia?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio"
+ },
+ {
+ "key": "no",
+ "text": "Hapana"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_pharmacy_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pharmacy_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pharmacy_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_pregnancy_status.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_pregnancy_status.json
new file mode 100644
index 0000000000..ff2a9508d0
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_pregnancy_status.json
@@ -0,0 +1,188 @@
+{
+ "count": "1",
+ "encounter_type": "Pregnancy Status",
+ "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"
+ },
+ "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": "Hali ya Ujauzito",
+ "fields": [
+ {
+ "key": "pregnancy_status",
+ "type": "native_radio",
+ "label": "Hali ya mimba",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_status",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "viable",
+ "text": "Bado ana ujauzito",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "viable"
+ },
+ {
+ "key": "spontaneous_abortion",
+ "text": "Mimba imeharibika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spontaneous_abortion"
+ },
+ {
+ "key": "intrauterine_fetal_death",
+ "text": "Mtoto amefia tumboni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "intrauterine_fetal_death"
+ }
+ ]
+ },
+ {
+ "key": "reg_cpac",
+ "type": "toaster_notes",
+ "text": "Tafadhali mpatie mteja matibabu stahiki kutokana na kuharibika/ kutoka kwa mimba kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:pregnancy_status": {
+ "type": "string",
+ "ex": "equalTo(.,\"spontaneous_abortion\")"
+ }
+ }
+ },
+ {
+ "key": "still_birth",
+ "type": "toaster_notes",
+ "text": "Mshauri Mteja kuhusiana na njia za Uzazi wa Mpango na mpatie njia ambayo amechagua mwenyewe",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:pregnancy_status": {
+ "type": "string",
+ "ex": "equalTo(.,\"intrauterine_fetal_death\")"
+ }
+ }
+ },
+ {
+ "key": "pregnancy_status_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_status_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ },
+ {
+ "key": "delivery_place",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_place",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "hint": "Mahali ambapo Mama alijifungulia",
+ "values": [
+ "Kwenye Kituo cha Afya",
+ "Amejifungua Njiani kabla ya kufika kwenye Kituo",
+ "Amejifungulia Nyumbani",
+ "Amejifungulia kwa Mkunga wa Jadi"
+ ],
+ "keys": [
+ "At a health facility",
+ "Birth before Arrival (BBA)",
+ "At home",
+ "Traditional birth attendant"
+ ],
+ "openmrs_choice_ids": {
+ "At a health facility": "At a health facility",
+ "Birth before Arrival (BBA)": "Birth before Arrival (BBA)",
+ "At home": "At home",
+ "Traditional birth attendant": "Traditional birth attendant"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua chaguo moja"
+ },
+ "relevance": {
+ "step1:pregnancy_status": {
+ "type": "string",
+ "ex": "equalTo(.,\"intrauterine_fetal_death\")"
+ }
+ }
+ },
+ {
+ "key": "delivery_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya Mama kujifungua",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today",
+ "relevance": {
+ "step1:pregnancy_status": {
+ "type": "string",
+ "ex": "equalTo(.,\"intrauterine_fetal_death\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua tarehe ya kujifungua"
+ }
+ },
+ {
+ "key": "preg_outcome",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "type": "hidden",
+ "openmrs_entity_id": "preg_outcome",
+ "value": "still_born",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_pregnancy_status_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_triage.json b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_triage.json
new file mode 100644
index 0000000000..dfaddb613f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/anc_rv_triage.json
@@ -0,0 +1,389 @@
+{
+ "count": "1",
+ "encounter_type": "Triage",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uchambuzi wa wagonjwa au majeruhi",
+ "fields": [
+ {
+ "key": "gest_age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "hint": "Umri wa Ujauzito kwa Wiki",
+ "type": "edit_text",
+ "editable": true,
+ "read_only": true
+ },
+ {
+ "key": "edd",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "edd",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_triage_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_menstrual_period",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_triage_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "rapid_examination",
+ "type": "check_box",
+ "label": "Tathmini hali ya jumla ya mwanamke mara tu unapofika kwenye kliniki ya ujauzito",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rapid_examination",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "facial_expression",
+ "text": "Muonekano wa sura (muonekano wa maumivu)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facial_expression"
+ },
+ {
+ "key": "pallor",
+ "text": "Kupauka",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pallor"
+ },
+ {
+ "key": "sweating",
+ "text": "Kutokwa jasho",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sweating"
+ },
+ {
+ "key": "shivering",
+ "text": "Kutetemeka",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "shivering"
+ },
+ {
+ "key": "difficulty_in_breathing",
+ "text": "Kupumua kwa shida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "difficulty_in_breathing"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_rapid_examination",
+ "type": "toaster_notes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prompt_for_rapid_examination",
+ "openmrs_entity_parent": "",
+ "text": "Tafadhali mpatie Mteja msaada na uangalizi wa karibu na mpe rufaa kwa ajili ya matibabu ya dharura",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:rapid_examination": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "pallor",
+ "sweating",
+ "shivering",
+ "difficulty_in_breathing",
+ "facial_expression"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "reasons_to_clinic",
+ "type": "native_radio",
+ "label": "Kwa nini ulikuja kliniki leo?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_to_clinic",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "text": "Nimezingatia ratiba ya mahudhurio",
+ "key": "routine_visit",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "routine_visit"
+ },
+ {
+ "text": "Mgonjwa/Wasiwasi",
+ "key": "sick_concerned",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sick_concerned"
+ }
+ ]
+ },
+ {
+ "key": "client_concern",
+ "type": "edit_text",
+ "edit_type": "text",
+ "hint": "Wasiwasi wako ni nini?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_concern",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_triage_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "danger_signs",
+ "type": "check_box",
+ "label": "Uliza, angalia, na uhisi kama mwanamke ana:",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "danger_signs",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "bleeding_vag",
+ "text": "Kutokwa na damu ukeni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bleeding_vag"
+ },
+ {
+ "key": "headache_visual_disturbance",
+ "text": "Maumivu ya kichwa na changamoto ya kuona",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "headache_visual_disturbance"
+ },
+ {
+ "key": "severely_pale",
+ "text": "Kupauka sana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severely_pale"
+ },
+ {
+ "key": "severe_vomiting",
+ "text": "Kutapika sana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_vomiting"
+ },
+ {
+ "key": "convulsion",
+ "text": "Degedege",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "convulsion"
+ },
+ {
+ "key": "looking_very_ill",
+ "text": "Kuonekana mgonjwa sana (mchovu, kusinzia), ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "looking_very_ill"
+ },
+ {
+ "key": "fever",
+ "text": "Homa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fever"
+ },
+ {
+ "key": "unconscious",
+ "text": "Kupoteza fahamu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unconscious"
+ },
+ {
+ "key": "severe_pain",
+ "text": "Maumivu makali",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_pain"
+ },
+ {
+ "key": "severe_breathing_difficulty",
+ "text": "Kupumua kwa shida sana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_breathing_difficulty"
+ },
+ {
+ "key": "in_labour",
+ "text": "Kusikia uchungu wa kujifungua",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "in_labour"
+ },
+ {
+ "key": "imminent_labour",
+ "text": "Kujifungua hivi karibuni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "imminent_labour"
+ },
+ {
+ "key": "reduced_fetal_movement",
+ "text": "Kupungua au kutosikia mtoto akicheza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reduced_fetal_movement"
+ },
+ {
+ "key": "sacrum_oedema",
+ "text": "Edema ya uso na sacrum",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sacrum_oedema"
+ },
+ {
+ "key": "other",
+ "text": "Nyingine (Bainisha)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ]
+ },
+ {
+ "key": "is_emergency",
+ "type": "toaster_notes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_emergency",
+ "openmrs_entity_parent": "",
+ "text": "Toa huduma ya dharura kwa Mteja",
+ "toaster_type": "warning",
+ "toaster_info": "Mteja anaonyesha ishara moja au zaidi ya dharura na anahitaji huduma ya dharura",
+ "relevance": {
+ "step1:danger_signs": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "bleeding_vag",
+ "headache_visual_disturbance",
+ "severely_pale",
+ "severe_vomiting",
+ "severe_breathing_difficulty",
+ "convulsion",
+ "looking_very_ill",
+ "fever",
+ "unconscious",
+ "severe_pain",
+ "in_labour",
+ "imminent_labour",
+ "reduced_fetal_movement",
+ "sacrum_oedema"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "other_danger_signs",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_danger_signs",
+ "type": "edit_text",
+ "hint": "Dalili za hatari nyingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha dalili za hatari nyingine"
+ },
+ "relevance": {
+ "step1:danger_signs": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_triage_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "triage_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "triage_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_condom_distribution_outside.json b/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_condom_distribution_outside.json
new file mode 100644
index 0000000000..e7792fe5da
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_condom_distribution_outside.json
@@ -0,0 +1,416 @@
+{
+ "count": "1",
+ "encounter_type": "CDP Distribution Outside Facility",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Condom Distribution",
+ "fields": [
+ {
+ "key": "number_of_condoms_available",
+ "type": "toaster_notes",
+ "text": "",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_brand",
+ "label": "Chagua chapa ya kondomu",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "public_sc",
+ "text": "Public sector condom",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "public_sc"
+ },
+ {
+ "key": "dume",
+ "text": "Dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dume"
+ },
+ {
+ "key": "salama",
+ "text": "Salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "salama"
+ },
+ {
+ "key": "familia",
+ "text": "Familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "familia"
+ },
+ {
+ "key": "others",
+ "text": "Nyingine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua chapa ya kondomu"
+ }
+ },
+ {
+ "key": "male_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom_brand",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "female_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom_brand",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_condom_brand",
+ "type": "edit_text",
+ "hint": "Chapa nyingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka chapa nyingine ya kondomu"
+ },
+ "relevance": {
+ "step1:condom_brand": {
+ "type": "string",
+ "ex": "equalTo(., \"others\")"
+ }
+ }
+ },
+ {
+ "key": "condom_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_public_sc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_public_sc",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kiume zilizotolewa (vipande)",
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_public_sc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_public_sc",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kike zilizotolewa (vipande)",
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_dume",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kiume zilizotolewa (vipande)",
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_dume",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kike zilizotolewa (vipande)",
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_salama",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kiume zilizotolewa (vipande)",
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_salama",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kike zilizotolewa (vipande)",
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_familia",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kiume zilizotolewa (vipande)",
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_familia",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kike zilizotolewa (vipande)",
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_other",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kiume zilizotolewa (vipande)",
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_other",
+ "type": "hidden",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": { "value": "true", "err": "Please enter the number" },
+ "v_required": { "value": "true", "err": "Please enter the number" },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms_offset",
+ "type": "hidden",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": { "value": "true", "err": "Please enter the number" },
+ "v_required": { "value": "true", "err": "Please enter the number" },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms_offset",
+ "type": "hidden",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": { "value": "true", "err": "Please enter the number" },
+ "v_required": { "value": "true", "err": "Please enter the number" },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "quantity_response",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "quantity_response",
+ "type": "hidden",
+ "hint": "Number of condoms distributed (Pieces)",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "stock_event_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stock_event_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "condom_restock_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_restock_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_condom_distribution_within.json b/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_condom_distribution_within.json
new file mode 100644
index 0000000000..dc56c2264f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_condom_distribution_within.json
@@ -0,0 +1,651 @@
+{
+ "count": "1",
+ "encounter_type": "CDP Distribution Within Facility",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Condom Distribution",
+ "fields": [
+ {
+ "key": "condom_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_type",
+ "label": "Chagua aina ya kondomu",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "male_condom",
+ "text": "Male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom"
+ },
+ {
+ "key": "female_condom",
+ "text": "Female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the condom type"
+ }
+ },
+ {
+ "key": "number_of_condoms_available",
+ "type": "toaster_notes",
+ "text": "",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_brand",
+ "label": "Chagua chapa ya kondomu",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "public_sc",
+ "text": "Public sector condom",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "public_sc"
+ },
+ {
+ "key": "dume",
+ "text": "Dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dume"
+ },
+ {
+ "key": "salama",
+ "text": "Salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "salama"
+ },
+ {
+ "key": "familia",
+ "text": "Familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "familia"
+ },
+ {
+ "key": "others",
+ "text": "Others",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the condom brand"
+ }
+ },
+ {
+ "key": "male_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom_brand",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "female_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom_brand",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_condom_brand",
+ "type": "edit_text",
+ "hint": "Other condom brand",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the other condom brand"
+ },
+ "relevance": {
+ "step1:condom_brand": {
+ "type": "string",
+ "ex": "equalTo(., \"others\")"
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_public_sc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_public_sc",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za kiume zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_public_sc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_public_sc",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za kike zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_dume",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za kiume zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_dume",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za kike zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_salama",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za kiume zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_salama",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za kike zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_familia",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za kiume zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_familia",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za kike zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_other",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za kiume zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_other",
+ "type": "hidden",
+ "hint": "Idadi ya Kondomu za kike zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms_offset",
+ "type": "hidden",
+ "hint": "Idadi ya Kondomu za kiume zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms_offset",
+ "type": "hidden",
+ "hint": "Idadi ya Kondomu za kike zilizosambazwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "quantity_response",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "quantity_response",
+ "type": "hidden",
+ "hint": "Number of condoms distributed (Pieces)",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "stock_event_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stock_event_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "condom_restock_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_restock_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "condom_restock_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_restock_date",
+ "type": "date_picker",
+ "hint": "Condom distribution date",
+ "expanded": false,
+ "min_date": "today-1m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the distribution date"
+ }
+ },
+ {
+ "key": "stock_event_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stock_event_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "point_of_service",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "point_of_service",
+ "label": "Chagua kituo cha huduma",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "ctc",
+ "text": "kliniki ya tiba na matunzo(CTC)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc"
+ },
+ {
+ "key": "rch_clinic",
+ "text": "kliniki ya mama na mtoto(RCH)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rch_clinic"
+ },
+ {
+ "key": "opd",
+ "text": "idara ya wagonjwa wa nje(OPD)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "opd"
+ },
+ {
+ "key": "tb_clinic",
+ "text": "Kliniki ya kifua kikuu(TB)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_clinic"
+ },
+ {
+ "key": "outreach",
+ "text": "Ufatiliyaji(OUTREACH)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach"
+ },
+ {
+ "key": "other",
+ "text": "Nyingine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua kituo cha huduma"
+ }
+ },
+ {
+ "key": "other_pos",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_pos",
+ "type": "edit_text",
+ "hint": "Sehemu nyingine ya huduma",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza chapa nyingine ya kondomu"
+ },
+ "relevance": {
+ "step1:point_of_service": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "distributing_person_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "distributing_person_name",
+ "type": "edit_text",
+ "hint": "Jina la mtu aliyesambaza kondomu",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina sahihi"
+ },
+ "v_required": { "value": "true", "err": "Tafadhali weka jina" }
+ },
+ {
+ "key": "distributing_person_position",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "distributing_person_position",
+ "type": "edit_text",
+ "hint": "Cheo cha mtu anayesambaza ",
+ "v_required": { "value": "true", "err": "Tafadhali weka cheo" }
+ },
+ {
+ "key": "distributing_person_phone",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "distributing_person_phone",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya mtu anayesambaza",
+ "edit_type": "number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba lazima iwe jumla ya tarakimu 10 kwa urefu"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Nambari lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka nambari ya simu"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_facility_order_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_facility_order_form.json
new file mode 100644
index 0000000000..5d97dd54cc
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_facility_order_form.json
@@ -0,0 +1,149 @@
+{
+ "count": "1",
+ "encounter_type": "CDP Order From Facility",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Maombi Ya kondomu",
+ "fields": [
+ {
+ "key": "condom_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_type",
+ "label": "Chagua aina ya kondomu",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "male_condom",
+ "text": "kiume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom"
+ },
+ {
+ "key": "female_condom",
+ "text": "kike",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua aina ya kondomu"
+ }
+ },
+ {
+ "key": "other_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_condom_brand",
+ "type": "edit_text",
+ "hint": "Chapa nyingine ya kondomu",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza chapa nyingine ya kondomu"
+ },
+ "relevance": {
+ "step1:condom_brand": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "requested_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "requested_condoms",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu zilizoagizwa",
+ "edit_type": "number",
+ "v_required": { "value": "true", "err": "Tafadhali weka nambari" },
+ "v_numeric": { "value": "true", "err": "Tafadhali weka nambari" }
+ },
+ {
+ "key": "receiving_order_facility",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_order_facility",
+ "buttonText": "Chagua Kituo",
+ "sort": true,
+ "maxSelectable": 1,
+ "dialogTitle": "Chagua Kituo Cha Afya Kinachopokea Maombi",
+ "searchHint": "Ingiza Jina La Kituo Cha Afya",
+ "options": [],
+ "type": "multi_select_list",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua kituo cha afya"
+ }
+ },
+ {
+ "key": "request_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "request_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": { "rules-file": "cdp_condom_order_calculation.yml" }
+ }
+ }
+ },
+ {
+ "key": "condom_order_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_order_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": { "rules-file": "cdp_condom_order_calculation.yml" }
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_receive_condom_facility.json b/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_receive_condom_facility.json
new file mode 100644
index 0000000000..f39beeb205
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_receive_condom_facility.json
@@ -0,0 +1,195 @@
+{
+ "count": "1",
+ "encounter_type": "CDP Receive From Facility",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Kupokea kondomu kutoka kwenye kituo",
+ "fields": [
+ {
+ "key": "condom_receive_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_receive_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya kupokea kondomu",
+ "expanded": false,
+ "min_date": "today-1m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka tarehe ya kupokea"
+ }
+ },
+ {
+ "key": "receiving_person_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_name",
+ "type": "edit_text",
+ "hint": "Jina la mtu aliyepokea kondomu",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": { "value": "true", "err": "Tafadhali weka jina" }
+ },
+ {
+ "key": "receiving_person_position",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_position",
+ "type": "edit_text",
+ "hint": "Cheo cha mtu aliyepokea kondomu",
+ "v_required": { "value": "true", "err": "Tafadhali jaza nafasi" }
+ },
+ {
+ "key": "receiving_person_phone",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_phone",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya mtu aliyepokea Kondomu",
+ "edit_type": "number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Nambari lazima iwe jumla ya tarakimu 10 kwa urefu"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Nambari lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka nambari ya simu"
+ }
+ },
+ {
+ "key": "condom_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": { "rules-file": "cdp_receive_condom_calculation.yml" }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms_offset",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": { "rules-file": "cdp_receive_condom_calculation.yml" }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms_offset",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": { "rules-file": "cdp_receive_condom_calculation.yml" }
+ }
+ }
+ },
+ {
+ "key": "batch_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "batch_number",
+ "type": "edit_text",
+ "hint": "Namba ya kundi(batch number)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka nambari ya bachi"
+ }
+ },
+ {
+ "key": "expiry_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "expiry_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya mwisho wa matumizi",
+ "expanded": false,
+ "min_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Tarehe ya kumalizika muda inahitajika"
+ }
+ },
+ {
+ "key": "stock_event_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stock_event_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": { "rules-file": "cdp_receive_condom_calculation.yml" }
+ }
+ }
+ },
+ {
+ "key": "condom_restock_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_restock_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": { "rules-file": "cdp_receive_condom_calculation.yml" }
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_receive_condom_from_organizations.json b/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_receive_condom_from_organizations.json
new file mode 100644
index 0000000000..024e61080c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/cdp_receive_condom_from_organizations.json
@@ -0,0 +1,449 @@
+{
+ "count": "1",
+ "encounter_type": "CDP Restock",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Kupokea Kondomu Kutoka Kwenye Mashirika",
+ "fields": [
+ {
+ "key": "condom_receive_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_receive_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya kupokea kondomu",
+ "expanded": false,
+ "min_date": "today-1m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka tarehe ya kupokea"
+ }
+ },
+ {
+ "key": "condom_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_type",
+ "type": "check_box",
+ "label": "Chagua aina ya kondomu",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "male_condom",
+ "text": "Kiume",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom"
+ },
+ {
+ "key": "female_condom",
+ "text": "Kike",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua aina ya kondomu"
+ }
+ },
+ {
+ "key": "male_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom_brand",
+ "label": "Chagua chapa ya kondomu za kiume",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "public_sc",
+ "text": "Public sector condom",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "public_sc"
+ },
+ {
+ "key": "dume",
+ "text": "Dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dume"
+ },
+ {
+ "key": "salama",
+ "text": "Salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "salama"
+ },
+ {
+ "key": "familia",
+ "text": "Familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "familia"
+ },
+ {
+ "key": "other",
+ "text": "Nyingine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua chapa ya kondomu"
+ },
+ "relevance": {
+ "step1:condom_type": { "ex-checkbox": [{ "or": ["male_condom"] }] }
+ }
+ },
+ {
+ "key": "other_male_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_male_condom_brand",
+ "type": "edit_text",
+ "hint": "Chapa nyingine ya kondomu",
+ "v_required": { "value": "true", "err": "Tafadhali weka chapa" },
+ "relevance": {
+ "step1:male_condom_brand": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "restocked_male_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms_offset",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kiume zilizoongezwa (vipande)",
+ "edit_type": "number",
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "step1:condom_type": { "ex-checkbox": [{ "or": ["male_condom"] }] }
+ }
+ },
+ {
+ "key": "female_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom_brand",
+ "label": "Chagua chapa ya kondomu za kike",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "public_sc",
+ "text": "Public sector condom",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "public_sc"
+ },
+ {
+ "key": "dume",
+ "text": "Dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dume"
+ },
+ {
+ "key": "salama",
+ "text": "Salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "salama"
+ },
+ {
+ "key": "familia",
+ "text": "Familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "familia"
+ },
+ {
+ "key": "other",
+ "text": "Nyingine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua chapa ya kondomu "
+ },
+ "relevance": {
+ "step1:condom_type": { "ex-checkbox": [{ "or": ["female_condom"] }] }
+ }
+ },
+ {
+ "key": "other_female_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_female_condom_brand",
+ "type": "edit_text",
+ "hint": "Chapa nyingine ya kondomu",
+ "v_required": { "value": "true", "err": "Tafadhali weka chapa" },
+ "relevance": {
+ "step1:female_condom_brand": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "restocked_female_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms_offset",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kike zilizoongezwa (vipande)",
+ "edit_type": "number",
+ "v_required": { "value": "true", "err": "Tafadhali weka namba" },
+ "v_numeric": { "value": "true", "err": "Tafadhali weka namba" },
+ "relevance": {
+ "step1:condom_type": { "ex-checkbox": [{ "or": ["female_condom"] }] }
+ }
+ },
+ {
+ "key": "issuing_organization",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "issuing_organization",
+ "label": "Chagua shirika linalotoa",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "MSD",
+ "text": "MSD",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "MSD"
+ },
+ {
+ "key": "PSI",
+ "text": "PSI",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "PSI"
+ },
+ {
+ "key": "T-MARC",
+ "text": "T-MARC",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "T-MARC"
+ },
+ {
+ "key": "other",
+ "text": "Shirika Jingine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": { "value": "true", "err": "Tafadhali chagua shirika" }
+ },
+ {
+ "key": "other_issuing_organization",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_issuing_organization",
+ "type": "edit_text",
+ "hint": "Shirika jingine linalotoa",
+ "v_required": { "value": "true", "err": "Tafadhali weka jina" },
+ "relevance": {
+ "step1:issuing_organization": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "batch_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "batch_number",
+ "type": "edit_text",
+ "hint": "Namba ya kundi (Batch number)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka namba ya kundi (Batch number)"
+ }
+ },
+ {
+ "key": "expiry_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "expiry_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya mwisho wa matumizi",
+ "expanded": false,
+ "min_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Tarehe ya mwisho wa matumizi inahitajika"
+ }
+ },
+ {
+ "key": "delivering_person_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivering_person_name",
+ "type": "edit_text",
+ "hint": "Jina la mtu anayetoa kondomu",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": { "value": "true", "err": "Tafadhali weka jina" }
+ },
+ {
+ "key": "delivering_person_position",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivering_person_position",
+ "type": "edit_text",
+ "hint": "Cheo cha mtu anayetoa kondomu",
+ "v_required": { "value": "true", "err": "Tafadhali weka cheo" }
+ },
+ {
+ "key": "delivering_person_phone",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivering_person_phone",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya mtu anayetoa kondomu",
+ "edit_type": "number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba lazima iwe na tarakimu 10 "
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba ya simu" }
+ },
+ {
+ "key": "receiving_person_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_name",
+ "type": "edit_text",
+ "hint": "Jina la mtu anayepokea kondomu",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": { "value": "true", "err": "Tafadhali weka jina" }
+ },
+ {
+ "key": "receiving_person_position",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_position",
+ "type": "edit_text",
+ "hint": "Cheo cha mtu anayepokea kondomu",
+ "v_required": { "value": "true", "err": "Tafadhali weka cheo" }
+ },
+ {
+ "key": "receiving_person_phone",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_phone",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya mtu anayepokea kondomu",
+ "edit_type": "number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba lazima iwe na tarakimu 10 "
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ },
+ "v_required": { "value": "true", "err": "Tafadhali weka namba ya simu" }
+ },
+ {
+ "key": "stock_event_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stock_event_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_receive_condom_msd_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "condom_restock_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_restock_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_receive_condom_msd_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/child_enrollment.json b/opensrp-chw-hf/src/main/assets/json.form-sw/child_enrollment.json
index bd7e9a982f..abe3d7a080 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/child_enrollment.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/child_enrollment.json
@@ -16,11 +16,6 @@
"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",
@@ -52,61 +47,40 @@
}
},
"step1": {
- "title": "Ongeza mtoto chini ya miaki 5",
+ "title": "Sajili Mtoto chini ya miaka 5",
"fields": [
- {
- "key": "sync_location_id",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "sync_location_id",
- "type": "spinner",
- "hint": "Chagua eneo la CHW",
- "v_required": {
- "value": "true",
- "err": "Tafadhali chagua eneo la CHW"
- }
- },
- {
- "key": "photo",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "choose_image",
- "uploadButtonText": "Chukua picha ya muhusika"
- },
{
"key": "unique_id",
"openmrs_entity_parent": "",
"openmrs_entity": "person_identifier",
"openmrs_entity_id": "opensrp_id",
- "type": "barcode",
- "barcode_type": "qrcode",
- "hint": "Boresha Afya ID",
- "scanButtonText": "Chukua QR code",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Namba ya Utambulisho ya Kituoni",
"v_numeric": {
"value": "true",
- "err": "Tafadhali ingiza namba halali"
+ "err": "Tafadhali ingiza namba ya utambulisho iliyo sahihi"
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza namba ya kipekee"
+ "err": "Tafadhali ingiza namba ya kipekee ya utambulisho"
}
},
{
"key": "surname",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "edit_text",
- "hint": "Jina la mwisho (ukoo)",
+ "hint": "Jina la mwisho",
"edit_type": "name",
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza jina la ukoo"
+ "err": "Tafadhali ingiza jina la mwisho"
},
"relevance": {
"rules-engine": {
@@ -119,7 +93,7 @@
{
"key": "same_as_fam_name",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"openmrs_data_type": "text",
"type": "check_box",
@@ -130,7 +104,7 @@
"options": [
{
"key": "same_as_fam_name",
- "text": "Jina la ukoo ni sawa na jina la familia",
+ "text": "Jina la mwisho ni sawa na jina la familia",
"text_size": "18px",
"value": "false"
}
@@ -139,7 +113,7 @@
{
"key": "fam_name",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "label",
"hidden": "true"
@@ -150,7 +124,7 @@
"openmrs_entity": "person",
"openmrs_entity_id": "last_name",
"type": "hidden",
- "hint": "Jina la ukoo ni sawa na jina la famili",
+ "hint": "Surname as Family name",
"calculation": {
"rules-engine": {
"ex-rules": {
@@ -166,16 +140,16 @@
"openmrs_entity_id": "first_name",
"openmrs_data_type": "text",
"type": "edit_text",
- "hint": "Jina la kwanza",
+ "hint": "Jina la Kwanza",
"expanded": false,
"edit_type": "name",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza jina la kwanza"
+ "err": "Tafadhali ingiza Jina la Kwanza"
},
"v_regex": {
- "value": "[A-Za-z\\s\\-]*",
- "err": "Tafadhali ingiza jina halali"
+ "value": "[A-Za-z\\s\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
}
},
{
@@ -185,16 +159,16 @@
"openmrs_entity_id": "middle_name",
"openmrs_data_type": "text",
"type": "edit_text",
- "hint": "Jina la kati",
+ "hint": "Jina la Kati",
"expanded": false,
"edit_type": "name",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza jina la kati"
+ "err": "Tafadhali ingiza Jina la Kati"
},
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
}
},
{
@@ -206,7 +180,7 @@
"hint": "Tarehe ya kuzaliwa",
"expanded": false,
"duration": {
- "label": "Age"
+ "label": "Umri"
},
"min_date": "today-5y",
"max_date": "today",
@@ -233,11 +207,18 @@
"options": [
{
"key": "dob_unknown",
- "text": "Tarehe ya kuzaliwa haijulikani?",
+ "text": "Tarehe ya kuzaliwa haijulikani",
"text_size": "18px",
"value": "false"
}
- ]
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family-child-relevance.yml"
+ }
+ }
+ }
},
{
"key": "age",
@@ -248,15 +229,15 @@
"hint": "Umri",
"v_numeric": {
"value": "true",
- "err": "Nambari lazima ianze na 0 na lazima iwe jumla ya nambari 10 kwa urefu"
+ "err": "Namba lazima ianze na 0 na iwe na jumla ya tarakimu 10 kwa urefu"
},
"v_min": {
"value": "0",
- "err": "Umri lazima uwe sawa au mkubwa kuliko 0"
+ "err": "Umri lazima uwe sawasawa au zaidi ya 0"
},
"v_max": {
"value": "5",
- "err": "Umri lazima uwe sawa au chini ya 5"
+ "err": "Umri lazima uwe sawasawa au chini ya 5"
},
"relevance": {
"rules-engine": {
@@ -276,29 +257,29 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "insurance_provider",
"type": "spinner",
- "hint": "Bima ya afya unaotumia",
+ "hint": "Mtoa huduma ya bima ya afya",
"values": [
- "Bima ya afya ya jamii (CHF)",
- "Bima ya afya ya jamii ulioboreshwa (iCHF)",
- "National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "Mfuko wa Afya ya Jamii (CHF)/(iCHF)",
+ "Mfuko wa Taifa wa Hifadhi ya Jamii - Manufaa ya Bima ya Afya ya Jamii (SHIB)",
+ "Mfuko wa Taifa wa Bima ya Afya (NHIF)",
"Tiba Kwa Kadi (TIKA)",
- "AAR Healthcare",
- "Strategies Insurance",
+ "Huduma ya afya AAR",
+ "Bima ya Strategies",
"Milvik Tanzania Ltd (BIMA Mkononi)",
- "Britam Insurance Tanzania",
- "Jubilee Insurance",
- "Resolutions Insurance",
- "Reliance Insurance",
- "Bima ya afya nyingezo",
+ "Bima ya afya ya Britam",
+ "Bima ya afya ya Jubilee",
+ "Bima ya afya ya Resolutions",
+ "Bima ya afya ya Reliance",
+ "Nyingine",
"Hakuna"
],
"keys": [
"Community Health Fund (CHF)",
- "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
"Tiba Kwa Kadi (TIKA)",
- "AAR Healthcare",
- "Strategies Insurance",
+ "Huduma ya afya AAR",
+ "Bima ya Strategies",
"Milvik Tanzania Ltd (BIMA Mkononi)",
"Britam Insurance Tanzania",
"Jubilee Insurance",
@@ -309,11 +290,11 @@
],
"openmrs_choice_ids": {
"Community Health Fund (CHF)": "Community_Health_Fund",
- "iCHF": "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
"Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
- "AAR Healthcare": "AAR_Healthcare",
- "AAR Strategies Insurance": "Strategies_Insurance",
+ "Huduma ya afya AAR": "Huduma_ya_afya_AAR",
+ "Bima ya Strategies": "Bima_ya_Strategies",
"Milvik Tanzania Ltd (BIMA Mkononi)": "BIMA_Mkononi",
"Britam Insurance Tanzania": "Britam_Insurance_Tanzania",
"Jubilee Insurance": "Jubilee_Insurance",
@@ -324,7 +305,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza bima"
+ "err": "Tafadhali ingiza mtoa huduma ya bima ya afya"
}
},
{
@@ -333,10 +314,10 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Other_Health_Insurance_Type",
"type": "edit_text",
- "hint": "Bima ya afya mwingine unaotumia",
+ "hint": "Mtoa huduma ya bima ya afya mwingine",
"v_required": {
"value": "true",
- "err": "Tafadhali taja bima"
+ "err": "Tafadhali bainisha mtoa huduma ya bima"
},
"relevance": {
"rules-engine": {
@@ -352,10 +333,10 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Health_Insurance_Number",
"type": "edit_text",
- "hint": "Namba ya bima ya afya umaotumia",
+ "hint": "Namba ya bima ya afya ya mteja",
"v_required": {
"value": "true",
- "err": "Tafadhali ongeza nambari ya bima ya afya"
+ "err": "Tafadhali jaza namba ya bima ya afya ya mteja"
},
"relevance": {
"rules-engine": {
@@ -389,9 +370,9 @@
"key": "disabilities",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "disabilities",
"type": "spinner",
- "hint": "Hali ya ulemavu",
+ "hint": "Ulemavu wa kimwili",
"values": [
"Ndiyo",
"Hapana"
@@ -401,8 +382,8 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
@@ -413,10 +394,62 @@
"key": "type_of_disability",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "edit_type": "name",
- "hint": "Aina ya ulemavu",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "label": "Aina ya Ulemavu",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Ulemavu wa Kimwili na utembeaji",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Ulemavu wa uti wa mgongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Majeraha ya kichwa - ulemavu wa ubongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Ulemavu wa Kuona",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Ulemavu wa Kusikia ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Ulemavu wa Utambuzi au Kujifunza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Matatizo ya Kisaikolojia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Ulemavu usioonekana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -426,16 +459,16 @@
},
"v_required": {
"value": true,
- "err": "Tafadhali ingiza aina ya ulemavu wa mwili"
+ "err": "Tafadhali chagua aina ya ulemavu wa kimwili"
}
},
{
"key": "birth_cert_available",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "165406AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "birth_cert_available",
"type": "spinner",
- "hint": "Cheti cha kuzaliwa",
+ "hint": "Je, Mtoto amesajiliwa au ana cheti cha kuzaliwa",
"values": [
"Ndiyo",
"Hapana"
@@ -445,17 +478,24 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family-child-relevance.yml"
+ }
+ }
}
},
{
"key": "birth_regist_number",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "birth_regist_number",
"type": "edit_text",
- "hint": "Namba ya cheti cha kuzaliwa",
+ "hint": "Namba ya cheti cha kuzaliwa cha mtoto",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -468,11 +508,11 @@
"key": "rhc_card",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164147AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "rhc_card",
"type": "spinner",
- "hint": "Je, mtoto ana RCH kadi namba moja/kitabu cha ukuaji wa mtoto?",
+ "hint": "Je, mtoto ana kadi ya RCH 1/kijitabu cha ukuaji wa mtoto?",
"values": [
- "Ndiyo",
+ "Nidyo",
"Hapana"
],
"keys": [
@@ -480,19 +520,19 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
}
},
{
"key": "nutrition_status",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "163301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "nutrition_status",
"type": "spinner",
- "hint": "Hali ya lishe ya mtoto",
+ "hint": "Hali ya lishe",
"values": [
- "Kijani",
+ "KIjani",
"Kijivu/Njano",
"Nyekundu"
],
@@ -502,13 +542,13 @@
"Red"
],
"openmrs_choice_ids": {
- "Green": "160909AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Grey": "163639AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Red": "127778AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Green": "Green",
+ "Grey": "Grey",
+ "Red": "Red"
},
"v_required": {
"value": "true",
- "err": "Tafadhali toa hali ya lishe ya watoto"
+ "err": "Tafadhali bainisha hali ya lishe ya mtoto"
},
"relevance": {
"rules-engine": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_deworming.json b/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_deworming.json
index cb75ecc92d..4d3afbced8 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_deworming.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_deworming.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Dozi ya {0} ya dawa ya minyoo",
+ "title": "Deworming {0} dose",
"fields": [
{
"key": "deworming{0}_date",
@@ -56,12 +56,12 @@
"openmrs_entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "date_picker",
"image": "ic_form_deworming",
- "hint": "Dawa ya minyoo ya {0} lilifanyika lini?",
+ "hint": "Je, dawa ya minyoo {0} ilitolewa lini?",
"min_date": "today-120y",
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza tarehe ya dozi ya dawa ya minyoo"
+ "err": "Tafadhali ingiza tarehe ya kupewa dawa ya minyoo"
}
}
]
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_malaria_prevention.json b/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_malaria_prevention.json
new file mode 100644
index 0000000000..ec9871d6ca
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_malaria_prevention.json
@@ -0,0 +1,141 @@
+{
+ "count": "1",
+ "encounter_type": "Malaria Prevention",
+ "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": "Malaria Prevention",
+ "fields": [
+ {
+ "key": "fam_llin_1m5yr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "hint": "Je, mtoto ana chandarua chenye dawa inayodumu kwa muda mrefu (LLIN)?",
+ "values": [
+ "Ndiyo ",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua chaguo moja"
+ }
+ },
+ {
+ "key": "llin_2days_1m5yr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "hint": "Je, mtoto alilala chini ya chandarua (LLIN) jana usiku?",
+ "values": [
+ "Ndiyo",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua chaguo moja"
+ },
+ "relevance": {
+ "step1:fam_llin_1m5yr": {
+ "type": "string",
+ "ex": "equalTo(., \"Yes\")"
+ }
+ }
+ },
+ {
+ "key": "llin_condition_1m5yr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "hint": "Hali ya chandarua (LLIN)",
+ "values": [
+ "Nduzi",
+ "Mbaya"
+ ],
+ "keys": [
+ "Okay",
+ "Bad"
+ ],
+ "openmrs_choice_ids": {
+ "Okay": "159405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "Bad": "159407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "step1:fam_llin_1m5yr": {
+ "type": "string",
+ "ex": "equalTo(., \"Yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_nutrition_status.json b/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_nutrition_status.json
new file mode 100644
index 0000000000..41e31bffd3
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_nutrition_status.json
@@ -0,0 +1,82 @@
+{
+ "count": "1",
+ "encounter_type": "Home Visit - Nutrition Status",
+ "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": "Nutrition status",
+ "fields": [
+ {
+ "key": "nutrition_status_1m5yr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "163301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "hint": "Hali ya lishe",
+ "values": [
+ "Kawaida",
+ "Wastani",
+ "Mbaya"
+ ],
+ "keys": [
+ "Normal",
+ "Moderate",
+ "Severe"
+ ],
+ "openmrs_choice_ids": {
+ "Normal": "1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "Moderate": "1499AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "Severe": "1500AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua chaguo moja"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_vaccine_card_received.json b/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_vaccine_card_received.json
new file mode 100644
index 0000000000..d77ad963e3
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_vaccine_card_received.json
@@ -0,0 +1,72 @@
+{
+ "count": "1",
+ "encounter_type": "Child vaccine card received",
+ "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": "Child vaccine card received",
+ "fields": [
+ {
+ "key": "child_vaccine_card",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "164147AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "image": "form_received_card",
+ "hint": "Je, mtoto alipokea kadi yake ya chanjo?",
+ "values": [
+ "Ndiyo",
+ "Hapana"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_vitamin_a.json b/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_vitamin_a.json
index 486e785d25..3908129cdb 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_vitamin_a.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/child_hv_vitamin_a.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Dozi ya Vitamini A ya {0}",
+ "title": "Vitamin A {0} dose",
"fields": [
{
"key": "vitamin_a{0}_date",
@@ -56,12 +56,12 @@
"openmrs_entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "date_picker",
"image": "ic_form_vitamin",
- "hint": "Dozi ya Vitamini A ya {0} ilifanyika lini?",
+ "hint": "Dozi ya Vitamini A {0} ilifanywa lini?",
"min_date": "today-120y",
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza tarehe ya dozi ya Vitamini A"
+ "err": "Tafadhali ingiza tarehe ya kupewa dozi ya Vitamini A"
}
}
]
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/child_referral_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/child_referral_form.json
new file mode 100644
index 0000000000..9913f61dbd
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/child_referral_form.json
@@ -0,0 +1,354 @@
+{
+ "count": "1",
+ "encounter_type": "Sick Child Referral",
+ "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"
+ },
+ "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": "Sick child form",
+ "fields": [
+ {
+ "key": "chw_referral_hf_child",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1759AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "child_referral_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "referral_problem_child",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "163182AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "check_box",
+ "label": "Tatizo la kiafya / hali",
+ "label_text_style": "bold",
+ "options": [
+ {
+ "key": "Fast_breathing_and_difficulty_with_breathing",
+ "text": "Kupumua kwa haraka na kwa shida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "142373AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Umbilical_cord_navel_bleeding",
+ "text": "Kutokwa damu kwenye kitovu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "123844AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Excessive_crying",
+ "text": "Kulia kupita kiasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "140944AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Convulsions",
+ "text": "Degedege",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "113054AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Unable_to_breastfeed_or_swallow",
+ "text": "Kushindwa kukunyonya au kumeza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "159861AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Neck_stiffness",
+ "text": "Kukaza kwa shingo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "112721AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Fever",
+ "text": "Homa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Bloating",
+ "text": "Tumbo kujaa ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "147132AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Redness_around_the_umbilical_cord_foul_smelling_discharge_from_the_umbilical_cord",
+ "text": "Kuwa na wekundu eneo la kitovu, kutokwa kwa majimaji yenye harufu mbaaya kutoka kwenye kitovu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "132407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Bacterial_conjunctivitis",
+ "text": "Kuvimba kwa jicho inayosababishwa na bakteria",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "148026AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Severe_anaemia",
+ "text": "Kupungukiwa kwa damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "162044AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Severe_abdominal_pain",
+ "text": "Maumivu makali ya tumbo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "165271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Pale_or_jaundiced",
+ "text": "Kupauka au kuwa na rangi ya njano usoni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "136443AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Cyanosis_blueness_of_lips",
+ "text": "Mdomo kuwa na rangi ya bluu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "143050AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Skin_rash_pustules",
+ "text": "Vipele kwenye ngozi /pustules",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "512AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Diarrhea",
+ "text": "Ulemavu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "142412AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Vomiting",
+ "text": "Kutapika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "122983AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Disabilities",
+ "text": "Ulemavu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Premature_baby",
+ "text": "Mtoto",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "159908AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Care_of_HIV_exposed_infant",
+ "text": "Utunzaji wa mtoto aliyeambukizwa VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "164818AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Immunisation",
+ "text": "Kupata chanjo ya kinga",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Other_symptom",
+ "text": "Dalili nyingine",
+ "ignore": true,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali bainisha tatizo la kiafya"
+ }
+ },
+ {
+ "key": "referral_problem_child_other",
+ "type": "edit_text",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "163182AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "edit_type": "name",
+ "hint": "Dalili nyingine",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "child_referral_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "service_before_child",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "check_box",
+ "label": "Usimamizi uliyotolewa kabla ya kutoa rufaa ",
+ "label_text_style": "bold",
+ "is_problem": false,
+ "exclusive": [
+ "None"
+ ],
+ "options": [
+ {
+ "key": "ORS",
+ "text": "ORS",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "351AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Panadol",
+ "text": "Panadol",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "70116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Other_treatment",
+ "text": "Matibabu mengine",
+ "ignore": true,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "None",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Sehemu ya usimamizi wa kabla ya rufaa kutolewa inahitajika"
+ }
+ },
+ {
+ "key": "service_before_child_other",
+ "type": "edit_text",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "edit_type": "name",
+ "hint": "Other treatment",
+ "is_problem": false,
+ "v_required": {
+ "value": "true",
+ "err": "Please specify other treatment"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "child_referral_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "referral_date_child",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "child_referral_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "referral_time_child",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referral_time_child",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "child_referral_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/child_sick_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/child_sick_form.json
index 41920fcc98..15fbda4927 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/child_sick_form.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/child_sick_form.json
@@ -54,7 +54,7 @@
}
},
"step1": {
- "title": "Ufualitliaji wa mtoto mgonjwa",
+ "title": "Sick Child Follow-up",
"fields": [
{
"key": "date_sickchild",
@@ -80,7 +80,7 @@
"hint": "Uzito (kg)",
"v_required": {
"value": "true",
- "err": "Tafadahili ingiza uzito"
+ "err": "Tafadhali ingiza uzito wa mtoto"
}
},
{
@@ -90,10 +90,10 @@
"openmrs_entity_id": "5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
"edit_type": "number",
- "hint": "Urefu/Kimo (sm)",
+ "hint": "Urefu (cm)",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza urefu"
+ "err": "Tafadhali ingiza urefu wa mtoto"
}
},
{
@@ -102,7 +102,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "142412AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Mtoto anaharisha?",
+ "label": "Je, mtoto anaharisha?",
"options": [
{
"key": "Yes",
@@ -121,7 +121,7 @@
],
"v_required": {
"value": "true",
- "err": "Tafadhali onesha ikiwa mtoto ana kuhara"
+ "err": "Tafadhali onyesha ikiwa mtoto anaharisha"
}
},
{
@@ -130,7 +130,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "5984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Ameharisha kwa muda gani?",
+ "label": "Muda wa kuhara",
"options": [
{
"key": "Less_than_24_hours",
@@ -144,7 +144,7 @@
"openmrs_entity": "",
"openmrs_entity_id": "1072AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Siku"
+ "text": "Siku kadhaa"
}
],
"relevance": {
@@ -165,33 +165,33 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "1497AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Upungufu wa maji na chumvichumvi mwilini",
+ "label": "Hali ya kukosa maji mwilini",
"options": [
{
"key": "No_dehydration",
"openmrs_entity": "",
"openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Hakuna upungufu"
+ "text": "Hakosi maji mwilini"
},
{
"key": "Some_dehydration",
"openmrs_entity": "",
"openmrs_entity_id": "1499AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Kuna kiasi cha upungufu"
+ "text": "Anakosa kiasi cha maji mwilini"
},
{
"key": "Severe_dehydration",
"openmrs_entity": "",
"openmrs_entity_id": "1500AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Kuna upungufu mkubwan"
+ "text": "Anakosa maji mengi sana mwilini"
}
],
"v_required": {
"value": "true",
- "err": "Tafadhali chagua hali ya upungufu wa maji mwilini ya mtoto"
+ "err": "Tafadhali chagua hali ya mtoto kukosa maji mwilini"
}
},
{
@@ -200,13 +200,13 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "1729AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Dalili za ziada zinazohusiana na kuharisha",
+ "label": "Dalili zingine zinazohusiana na kuhara",
"combine_checkbox_option_values": "true",
"options": [
{
"key": "Bloody_diarrhoea",
"openmrs_choice_id": "138868AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Damu kwenye kinyesi",
+ "text": "Kuharisha damu",
"value": false
},
{
@@ -224,7 +224,7 @@
{
"key": "Other",
"openmrs_choice_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Dalili zingine",
+ "text": "Nyingine",
"value": false
},
{
@@ -255,28 +255,28 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "1271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Vipimo vilivyoagizwa",
+ "label": "Uchunguzi ulioamriwa",
"options": [
{
"key": "Blood_test",
"openmrs_entity": "",
"openmrs_entity_id": "1019AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Vipimo vya damu"
+ "text": "Kipimo cha damu"
},
{
"key": "Stool_test",
"openmrs_entity": "",
"openmrs_entity_id": "161451AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Vipimo vya kinyesi"
+ "text": "Kipimo cha kinyesi"
},
{
"key": "Other_investigation",
"openmrs_entity": "",
"openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Vipimo vingine"
+ "text": "Uchunguzi mwingine"
},
{
"key": "None",
@@ -288,7 +288,7 @@
],
"v_required": {
"value": "true",
- "err": "Tafadhali chagua uchunguzi umeamuru"
+ "err": "Tafadhali chagua uchunguzi ulioamriwa"
}
},
{
@@ -298,7 +298,7 @@
"openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Vipimo vingine vilivyoangizwa",
+ "hint": "Uchunguzi mwingine uliyoamriwa",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -308,7 +308,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza uchunguzi mwingine umeamuru"
+ "err": "Tafadhali ingiza uchunguzi mwingine uliyoamriwa"
}
},
{
@@ -318,7 +318,7 @@
"openmrs_entity_id": "161577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Matokeo ya vipimo",
+ "hint": "Matokeo ya uchunguzi",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -328,7 +328,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza matokeo ya vipimo"
+ "err": "Tafadhali ingiza matokeo ya uchunguzi "
}
},
{
@@ -338,10 +338,10 @@
"openmrs_entity_id": "161602AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Diagnosis (Utambuzi)",
+ "hint": "Diagnosis",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza diagnosis"
+ "err": "Tafadhali ingiza utambuzi"
}
},
{
@@ -350,19 +350,19 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "1767AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Matibabu ya kuharisha",
+ "label": "Matibabu kwa ajili ya kuhara",
"combine_checkbox_option_values": "true",
"options": [
{
"key": "ORS_solution",
"openmrs_choice_id": "351AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "ORS",
+ "text": "Mchanganyiko wa ORS",
"value": false
},
{
"key": "IV_infusion_drip",
"openmrs_choice_id": "162651AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Maji kwa njia ya mshipa",
+ "text": "Dripu ya maji",
"value": false
},
{
@@ -374,7 +374,7 @@
{
"key": "Other_treatments",
"openmrs_choice_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Matibabu mengineyo",
+ "text": "Matibabu mengine",
"value": false
},
{
@@ -396,7 +396,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali onyesha matibabu uliyopewa"
+ "err": "Tafadhali ionyesha matibabu yaliyotolewa"
}
},
{
@@ -406,7 +406,7 @@
"openmrs_entity_id": "diarrhea_treat_ors",
"openmrs_entity_parent": "",
"edit_type": "number",
- "hint": "Kiasi cha mchanganyiko wa ORS (ml)",
+ "hint": "Kiasi cha mchanganyiko wa ORS (ml)",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -416,7 +416,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza kiasi cha mchanganyiko wa ORS"
+ "err": "Tafahdali ingiza kiasi cha mchanganyiko wa ORS iliyotolewa"
}
},
{
@@ -426,7 +426,7 @@
"openmrs_entity_id": "diarrhea_treat_rehydration",
"openmrs_entity_parent": "",
"edit_type": "number",
- "hint": "Maji kwa njia ya mshipa (mls)",
+ "hint": "Dripu ya maji (mls)",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -436,7 +436,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza maji kwa njia ya mshipa"
+ "err": "Tafadhali ingiza kiasi cha dripu za maji"
}
},
{
@@ -446,7 +446,7 @@
"openmrs_entity_id": "diarrhea_treat_zinc",
"openmrs_entity_parent": "",
"edit_type": "number",
- "hint": "Zinki (mg)",
+ "hint": "Zinc (mg)",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -456,7 +456,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza kiasi cha Zinki"
+ "err": "Tafadhali ingiza kiasi cha Zinc iliyotolewa"
}
},
{
@@ -465,25 +465,25 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "160742AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Dawa anazo ondoka nazo",
+ "label": "Dawa zilizotolewa kwwenda nazo nyumbani",
"combine_checkbox_option_values": "true",
"options": [
{
"key": "ORS_Packs",
"openmrs_choice_id": "351AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "ORS (Pks)",
+ "text": "Pakiti za ORS",
"value": false
},
{
"key": "Zinc_pills",
"openmrs_choice_id": "86672AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Zinki (vidonge)",
+ "text": "Zinc (vidonge)",
"value": false
},
{
"key": "Other_drugs",
"openmrs_choice_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Dawa nyingineyo",
+ "text": "Dawa zingine",
"value": false
}
],
@@ -496,7 +496,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali chagua dawa zilizopelekwa nyumbani"
+ "err": "Tafadhali ingiza dawa zilizotolewa kwenda nazo nyumbani"
}
},
{
@@ -506,10 +506,10 @@
"openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Matibabu kutokana na utambuzi ambayo siyo kuharisha",
+ "hint": "Matibabu kutokana na utambuzi usiyo wa kuhara",
"v_required": {
"value": "true",
- "err": "Tafadhali ongeza matibabu kutokana na utambuzi ambayo siyo kuharisha"
+ "err": "Tafadhali ingiza matibabu kutokana na utambuzi usiyo wa kuhara"
}
},
{
@@ -519,7 +519,7 @@
"openmrs_entity_id": "1785AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
"edit_type": "number",
- "hint": "Muda wa kukaa DTC (dakika)",
+ "hint": "Muda uliyotumika kwenye DTC (mins)",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -529,7 +529,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza muda wa kukaa DTC (dakika)"
+ "err": "Tafadhali onyesha kiasi cha muda uliyotumika kwa kipimo cha dakika"
}
},
{
@@ -545,7 +545,7 @@
"openmrs_entity": "",
"openmrs_entity_id": "160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Ameruhusiwa"
+ "text": "Ametolewa"
},
{
"key": "Referred",
@@ -566,14 +566,14 @@
"openmrs_entity": "",
"openmrs_entity_id": "1654AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Amekufa"
+ "text": "Amefariki"
}
],
"v_required": {
"value": "true",
- "err": "Tafadhali chagua matokeo kwenye uwezeshajiy"
+ "err": "Tafadhali chagua matokeo kwenye kituo"
}
}
]
}
-}
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_register.json b/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_register.json
index f220cf0520..ecf008a534 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_register.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_register.json
@@ -16,11 +16,6 @@
"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",
@@ -52,38 +47,21 @@
}
},
"step1": {
- "title": "Taarifa ya familia",
+ "title": "Family Details",
"fields": [
- {
- "key": "fam_name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "first_name",
- "type": "edit_text",
- "hint": "Jina la familia (ukoo)",
- "edit_type": "name",
- "v_required": {
- "value": "true",
- "err": "Tafadhali ingiza jina la familia (ukoo)"
- },
- "v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
- }
- },
{
"key": "unique_id",
"openmrs_entity_parent": "",
"openmrs_entity": "person_identifier",
"openmrs_entity_id": "opensrp_id",
"hidden": "true",
- "type": "barcode",
+ "type": "edit_text",
"barcode_type": "qrcode",
- "hint": "ID *",
+ "hint": "Kitambulisho",
"scanButtonText": "Scan QR Code",
"v_numeric": {
"value": "true",
- "err": "Tafadhali ingiza namba halali"
+ "err": "Ingiza namba ya kitambulisho kwa usahihi"
}
},
{
@@ -92,10 +70,10 @@
"openmrs_entity": "person_address",
"openmrs_entity_id": "cityVillage",
"type": "edit_text",
- "hint": "Kijiji / mtaa",
+ "hint": "Jina la Eneo",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza kijiji au jiji"
+ "err": "Tafadhali ingiza jina eneo au mji"
}
},
{
@@ -104,28 +82,20 @@
"openmrs_entity": "person_address",
"openmrs_entity_id": "landmark",
"type": "edit_text",
- "hint": "Alama ya eneo la makazi"
- },
- {
- "key": "gps",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "text",
- "type": "gps"
+ "hint": "Eneo maarufu"
},
{
"key": "nearest_facility",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "nearest_facility",
"openmrs_data_type": "text",
"type": "tree",
- "hint": "Kituo cha karibu cha kutolea huduma za afya",
+ "hint": "Kituo cha afya kilichopo karibu",
"tree": [],
"v_required": {
"value": true,
- "err": "Tafadhali ingiza kituo cha afya kilicho karibu"
+ "err": "Tafadhali ingiza kituo cha afya kilichopo karibu"
}
}
]
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_child.json b/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_child.json
index 47d0728d2a..7151e72c5c 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_child.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_child.json
@@ -52,12 +52,12 @@
}
},
"step1": {
- "title": "Ondoa mtoto chini ya miaki 5",
+ "title": "Remove Child Under 5",
"fields": [
{
"key": "spacer",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "spacer",
"spacer_height": "10sp"
@@ -65,7 +65,7 @@
{
"key": "details",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "label",
"text": "",
@@ -75,13 +75,13 @@
"key": "divider1",
"type": "h_line",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": ""
},
{
"key": "spacer",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "spacer",
"spacer_height": "15dp"
@@ -93,11 +93,11 @@
"openmrs_entity_id": "160417AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Sababu ya kuiondoa",
+ "hint": "Sababu",
"values": [
- "Kifo",
+ "Amefariki",
"Amehama",
- "Sababu nyingine"
+ "Nyinginezo"
],
"keys": [
"Died",
@@ -114,10 +114,29 @@
"Other": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
},
+ {
+ "key": "other_reason_for_removing_the_client",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_removing_the_client",
+ "type": "edit_text",
+ "hint": "Sababu Nyinginezo",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu nyinginezo"
+ },
+ "relevance": {
+ "step1:remove_reason": {
+ "type": "string",
+ "ex": "equalTo(., \"Other\")"
+ }
+ }
+ },
{
"key": "dob",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "spacer",
"expanded": false,
@@ -131,20 +150,20 @@
"openmrs_entity_id": "164133AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "text",
"type": "date_picker",
- "label": "Tarehe aliyohama",
- "hint": "Tarehe aliyohama",
+ "label": "Date moved away",
+ "hint": "Tarehe ya kuhamishwa",
"expanded": false,
"min_date": "",
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Ingiza tarehe ambayo mwanachama alihama"
+ "err": "Weka tarehe ambayo mwanachama alihama"
},
"constraints": [
{
"type": "date",
"ex": "greaterThanEqualTo(., step1:dob)",
- "err": "Tarehe ya kuhamishwa haiwezi kuwa kabla ya tarehe ya kuzaliwa"
+ "err": "Moved away date cannot be before date of birth"
}
],
"relevance": {
@@ -161,20 +180,20 @@
"openmrs_entity_id": "1543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "text",
"type": "date_picker",
- "label": "Tarehe ya kifo",
+ "label": "Date of death",
"hint": "Tarehe ya kifo",
"expanded": false,
"min_date": "",
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Ingiza tarehe ya kifo"
+ "err": "Weka tarehe ya kifo"
},
"constraints": [
{
"type": "date",
"ex": "greaterThanEqualTo(., step1:dob)",
- "err": "Tarehe ya kifo haiwezi kutokea kabla ya tarehe ya kuzaliwa"
+ "err": "Date of death can't occur before date of birth"
}
],
"relevance": {
@@ -187,10 +206,10 @@
{
"key": "age_at_death",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
- "label": "Umri wakati anafariki",
- "hint": "Umri wakati anafariki",
+ "label": "Age at death",
+ "hint": "Umri wakati wa kifo",
"type": "edit_text",
"read_only": "true",
"relevance": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_family.json b/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_family.json
index 84b8a4047e..a07872252e 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_family.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_family.json
@@ -52,12 +52,12 @@
}
},
"step1": {
- "title": "Ondoa familia",
+ "title": "Remove Family",
"fields": [
{
"key": "spacer",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "spacer",
"spacer_height": "30sp"
@@ -65,7 +65,7 @@
{
"key": "fam_name",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "label",
"text": "",
@@ -74,7 +74,7 @@
{
"key": "details",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "label",
"text": "",
@@ -84,13 +84,13 @@
"key": "divider1",
"type": "h_line",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": ""
},
{
"key": "spacer",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "spacer",
"spacer_height": "20sp"
@@ -104,7 +104,7 @@
"type": "spinner",
"hint": "Sababu ya kufungwa",
"values": [
- "Kaya imehama",
+ "Uhamisho",
"Nyingine"
],
"keys": [
@@ -130,7 +130,7 @@
"hint": "Sababu nyingine",
"v_required": {
"value": "true",
- "err": "Ingiza sababu ya kufungwa"
+ "err": "Weka sababu ya kufungwa"
},
"relevance": {
"step1:closure_reason_fam": {
@@ -146,7 +146,7 @@
"openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Kaya imehama",
+ "hint": "Uhamisho wa kaya",
"values": [
"Ndani ya wilaya",
"Nje ya wilaya"
@@ -157,7 +157,7 @@
],
"v_required": {
"value": "true",
- "err": "Ingiza sababu ya kufungwa"
+ "err": "Weka sababu ya kufungwa"
},
"relevance": {
"step1:closure_reason_fam": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_member.json b/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_member.json
index a95ae42246..6d8bca0380 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_member.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/family_details_remove_member.json
@@ -52,12 +52,12 @@
}
},
"step1": {
- "title": "Ondoa mwanafamilia",
+ "title": "Remove Family Member",
"fields": [
{
"key": "spacer",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "spacer",
"spacer_height": "10sp"
@@ -65,7 +65,7 @@
{
"key": "details",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "label",
"text": "",
@@ -75,13 +75,13 @@
"key": "divider1",
"type": "h_line",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": ""
},
{
"key": "spacer",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "spacer",
"spacer_height": "15dp"
@@ -93,15 +93,15 @@
"openmrs_entity_id": "160417AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Sababu ya kuiondoa",
+ "hint": "Sababu ya kumuondoa",
"v_required": {
"value": "true",
- "err": "Chagua sababu ya kuondoa rekodi ya familia"
+ "err": "Chagua sababu ya kuondoa taarifa za wana familia"
},
"values": [
"Kifo",
"Amehama",
- "Sababu nyingine"
+ "Nyingine"
],
"keys": [
"Death",
@@ -114,10 +114,29 @@
"Other": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
},
+ {
+ "key": "other_reason_for_removing_the_client",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_removing_the_client",
+ "type": "edit_text",
+ "hint": "Sababu Nyinginezo",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu nyinginezo"
+ },
+ "relevance": {
+ "step1:remove_reason": {
+ "type": "string",
+ "ex": "equalTo(., \"Other\")"
+ }
+ }
+ },
{
"key": "dob",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "spacer",
"expanded": false,
@@ -131,20 +150,20 @@
"openmrs_entity_id": "164133AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "text",
"type": "date_picker",
- "label": "Tarehe aliyohama",
- "hint": "Tarehe aliyohama",
+ "label": "Date moved away",
+ "hint": "Tarehe ya kuahama",
"expanded": false,
"min_date": "",
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Ingiza tarehe ambayo mwanachama alihama"
+ "err": "Ingiza tarehe ambayo mwanafamilia alihama"
},
"constraints": [
{
"type": "date",
"ex": "greaterThanEqualTo(., step1:dob)",
- "err": "Tarehe iliyohamishwa imetokea kabla ya tarehe ya kuzaliwa"
+ "err": "Date moved away occur before date of birth"
}
],
"relevance": {
@@ -161,20 +180,20 @@
"openmrs_entity_id": "1543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "text",
"type": "date_picker",
- "label": "Tarehe ya kifo",
- "hint": "Tarehe ya kifo",
+ "label": "Date of death",
+ "hint": "Tarehe ya Kifo",
"expanded": false,
"min_date": "today-80y",
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Ingiza tarehe ya kifo"
+ "err": "Ingiza tarehe ya Kifo ya mwanafamilia"
},
"constraints": [
{
"type": "date",
"ex": "greaterThanEqualTo(., step1:dob)",
- "err": "Tarehe ya kifo haiwezi kutokea kabla ya tarehe ya kuzaliwa"
+ "err": "Date of death can't occur before date of birth"
}
],
"relevance": {
@@ -188,10 +207,10 @@
{
"key": "age_at_death",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
- "label": "Umri wakati anafariki",
- "hint": "Umri wakati anafariki",
+ "label": "Age at death",
+ "hint": "Umri wa mwanafamilia wakati anafariki",
"type": "edit_text",
"read_only": "true",
"relevance": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/family_member_register.json b/opensrp-chw-hf/src/main/assets/json.form-sw/family_member_register.json
index 6b3b6b4476..fb45e188a8 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/family_member_register.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/family_member_register.json
@@ -16,11 +16,6 @@
"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",
@@ -52,61 +47,40 @@
}
},
"step1": {
- "title": "Ongeza Mwanachama wa Familia",
+ "title": "Sajili mwanafamilia",
"fields": [
- {
- "key": "sync_location_id",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "sync_location_id",
- "type": "spinner",
- "hint": "Chagua eneo la CHW",
- "v_required": {
- "value": "true",
- "err": "Tafadhali chagua eneo la CHW"
- }
- },
- {
- "key": "photo",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "choose_image",
- "uploadButtonText": "Chukua picha ya muhusika"
- },
{
"key": "unique_id",
"openmrs_entity_parent": "",
"openmrs_entity": "person_identifier",
"openmrs_entity_id": "opensrp_id",
- "type": "barcode",
- "barcode_type": "qrcode",
- "hint": "Boresha Afya ID",
- "scanButtonText": "Chukua QR code",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Namba ya kitambulisho ya kituo",
"v_numeric": {
"value": "true",
- "err": "Tafadhali ingiza namba halali"
+ "err": "Tafadhali weka kitambulisho halali"
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza namba ya kipekee"
+ "err": "Tafadhali weka kitambulisho cha KIPEKEE"
}
},
{
"key": "surname",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "last_name",
"type": "edit_text",
- "hint": "Jina la mwisho (ukoo)",
+ "hint": "Jina la Ukoo",
"edit_type": "name",
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza jina la ukoo"
+ "err": "Tafadhali weka Jina la Ukoo"
},
"relevance": {
"rules-engine": {
@@ -119,7 +93,7 @@
{
"key": "same_as_fam_name",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"openmrs_data_type": "text",
"type": "check_box",
@@ -130,7 +104,7 @@
"options": [
{
"key": "same_as_fam_name",
- "text": "Jina la ukoo ni sawa na jina la familia",
+ "text": "Jina la Ukoo sawa na jina la familia",
"text_size": "18px",
"value": "false"
}
@@ -139,7 +113,7 @@
{
"key": "fam_name",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "label",
"hidden": "true"
@@ -150,7 +124,7 @@
"openmrs_entity": "person",
"openmrs_entity_id": "last_name",
"type": "hidden",
- "hint": "Jina la ukoo ni sawa na jina la familia",
+ "hint": "Surname as Family name",
"calculation": {
"rules-engine": {
"ex-rules": {
@@ -165,15 +139,15 @@
"openmrs_entity": "person",
"openmrs_entity_id": "first_name",
"type": "edit_text",
- "hint": "Jina la kwanza",
+ "hint": "Jina la Kwanza",
"edit_type": "name",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza jina la kwanza"
+ "err": "Tafadhali ingiza Jina la Kwanza"
},
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza Jina la Kwanza"
}
},
{
@@ -182,15 +156,15 @@
"openmrs_entity": "person",
"openmrs_entity_id": "middle_name",
"type": "edit_text",
- "hint": "Jina la kati",
+ "hint": "Jina la Kati",
"edit_type": "name",
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza jina la kati"
+ "err": "Tafadhali weka Jina la Kati"
}
},
{
@@ -199,16 +173,16 @@
"openmrs_entity": "person",
"openmrs_entity_id": "birthdate",
"type": "date_picker",
- "hint": "Tarehe ya kuzaliwa",
+ "hint": "Tarehe ya kuzaliwa (DOB)",
"expanded": false,
"duration": {
- "label": "Age"
+ "label": "Umri"
},
"min_date": "today-120y",
"max_date": "today-5y",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza tarehe ya kuzaliwa"
+ "err": "Tafadhali weka tarehe ya kuzaliwa"
},
"relevance": {
"rules-engine": {
@@ -221,7 +195,7 @@
{
"key": "age_calculated",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "hidden",
"calculation": {
@@ -242,11 +216,18 @@
"options": [
{
"key": "dob_unknown",
- "text": "Tarehe ya kuzaliwa haijulikani?",
+ "text": "Tarehe ya kuzaliwa Haijulikani",
"text_size": "18px",
"value": "false"
}
- ]
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_member_relevance.yml"
+ }
+ }
+ }
},
{
"key": "age",
@@ -255,13 +236,18 @@
"openmrs_entity_id": "age",
"type": "edit_text",
"hint": "Umri",
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "Weka umri halali"
+ },
"v_numeric": {
"value": "true",
- "err": "Tafadhali ingiza umri"
+ "err": "Nambari lazima ianze na 0 na lazima iwe jumla ya tarakimu 10 kwa urefu"
},
"v_min": {
"value": "5",
- "err": "Umri lazima uwe sawa au mkubwa kuliko 5"
+ "err": "Umri lazima uwe sawa au zaidi ya 5"
},
"v_max": {
"value": "120",
@@ -276,7 +262,99 @@
},
"v_required": {
"value": true,
- "err": "Tafadhali ingiza umri"
+ "err": "Tafadhali weka umri"
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Jinsi",
+ "values": [
+ "Me",
+ "Ke"
+ ],
+ "keys": [
+ "Male",
+ "Female"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza jinsi"
+ }
+ },
+ {
+ "key": "marital_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "marital_status",
+ "type": "spinner",
+ "hint": "Hali ya Ndoa ya Mteja?",
+ "values": [
+ "Hajaoa/Hajaolewa",
+ "Ameoa/Ameolewa",
+ "Ameachwa",
+ "Mjane/Mgane",
+ "Kuishi pamoja bila ndoa"
+ ],
+ "keys": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "openmrs_choice_ids": {
+ "Single": "Single",
+ "Married": "Married",
+ "Divorced": "Divorced",
+ "Widowed": "Widowed",
+ "Cohabitation": "Cohabitation"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba lazima iwe jumla ya tarakimu 10 kwa urefu"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ }
+ },
+ {
+ "key": "other_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_phone_number",
+ "type": "edit_text",
+ "hint": "Namba nyingine ya simu",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba lazima iwe jumla ya tarakimu 10 kwa urefu"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
}
},
{
@@ -285,7 +363,8 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "id_avail",
"type": "check_box",
- "label": "Je, ana kitambulisho chochote kati ya hivi??",
+ "combine_checkbox_option_values": "true",
+ "label": "Je, una kitambulisho chochote kati ya vifuatavyo?",
"label_text_style": "normal",
"text_color": "#C0C0C0",
"exclusive": [
@@ -295,35 +374,24 @@
{
"key": "chk_national_id",
"text": "Kitambulisho cha taifa",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_national_id"
},
{
"key": "chk_voters_id",
"text": "Kitambulisho cha mpiga kura",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_voters_id"
},
{
"key": "chk_drivers_license",
- "text": "Leseni ya dereva",
- "value": false,
+ "text": "Leseni ya udereva",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_drivers_license"
},
- {
- "key": "chk_passport",
- "text": "Hati ya kusafiria",
- "value": false,
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "chk_passport"
- },
{
"key": "chk_none",
"text": "Hakuna",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_none"
}
@@ -342,8 +410,24 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "National_ID",
"type": "edit_text",
- "hint": "Namba ya kitambulisho cha taifa",
- "edit_type": "name",
+ "mask": "########-#####-#####-##",
+ "mask_hint": "12345678912345678912",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya kitambulisho cha taifa k.m 12345678-91234-56789-12",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "23",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza namba halali"
+ },
+ "v_regex": {
+ "value": "^\\d{8}-\\d{5}-\\d{5}-\\d{2}$",
+ "err": "Namba ya kitambulisho cha kitaifa inapaswa kuwa ya umbizo (XXXXXXXX-XXXXX-XXXXX-XX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza namba halali"
+ },
"relevance": {
"step1:id_avail": {
"ex-checkbox": [
@@ -362,8 +446,24 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Voter_Registration_Number",
"type": "edit_text",
- "hint": "Namba ya kitambulisho cha mpiga kura",
- "edit_type": "name",
+ "mask": "T-####-####-###-#",
+ "mask_hint": "123456789123",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya kitambulisho cha mpiga kura k.m T-1234-5678-912-3",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza namba halali"
+ },
+ "v_regex": {
+ "value": "^T-\\d{4}-\\d{4}-\\d{3}-\\d{1}$",
+ "err": "Namba ya usajili wa mpiga kura inapaswa kuwa ya umbizo (T-XXXX-XXXX-XXX-X)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza namba halali"
+ },
"relevance": {
"step1:id_avail": {
"ex-checkbox": [
@@ -382,8 +482,24 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Driver_License_Number",
"type": "edit_text",
- "hint": "Namba ya leseni ya udereva",
- "edit_type": "name",
+ "mask": "##########",
+ "mask_hint": "1234567891",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya leseni ya udereva k.m 1234567891",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "10",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza namba halali"
+ },
+ "v_regex": {
+ "value": "^([0-9]{10})",
+ "err": "Namba ya leseni ya udereva inapaswa kuwa ya umbizo (XXXXXXXXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza namba halali"
+ },
"relevance": {
"step1:id_avail": {
"ex-checkbox": [
@@ -396,67 +512,47 @@
}
}
},
- {
- "key": "passport",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "Passport_Number",
- "type": "edit_text",
- "hint": "Namba ya hati ya kusafiria",
- "edit_type": "name",
- "relevance": {
- "step1:id_avail": {
- "ex-checkbox": [
- {
- "or": [
- "chk_passport"
- ]
- }
- ]
- }
- }
- },
{
"key": "insurance_provider",
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Health_Insurance_Type",
"type": "spinner",
- "hint": "Bima ya afya unaotumia",
+ "hint": "Mtoa huduma ya bima ya afya",
"values": [
- "Bima ya afya ya jamii (CHF)",
- "Bima ya afya ya jamii ulioboreshwa (iCHF)",
- "National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "Mfuko wa Afya ya Jamii",
+ "Mfuko wa Taifa wa Hifadhi ya Jamii - Manufaa ya Bima ya Afya ya Jamii (SHIB)",
+ "Mfuko wa Taifa wa Bima ya Afya (NHIF)",
"Tiba Kwa Kadi (TIKA)",
- "AAR Healthcare",
- "Strategies Insurance",
+ "AAR Huduma ya Afya",
+ "Bima ya afya Strategies",
"Milvik Tanzania Ltd (BIMA Mkononi)",
- "Britam Insurance Tanzania",
- "Jubilee Insurance",
- "Resolutions Insurance",
- "Reliance Insurance",
- "Bima ya afya nyingezo",
+ "Bima ya afya ya Britam Tanzania",
+ "Bima ya afya Jubilee",
+ "Bima ya afya ya Resolutions ",
+ "Bima ya afya ya Reliance",
+ "Nyinginezo",
"Hakuna"
],
"keys": [
"Community Health Fund (CHF)",
- "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
"Tiba Kwa Kadi (TIKA)",
"AAR Healthcare",
"Strategies Insurance",
"Milvik Tanzania Ltd (BIMA Mkononi)",
- "Britam Insurance Tanzania",
- "Jubilee Insurance",
- "Resolutions Insurance",
- "Reliance Insurance",
+ "Bima ya afya ya Britam",
+ "Bima ya afya ya Jubilee",
+ "Bima ya afya ya Resolutions",
+ "Bima ya afya ya Reliance",
"Other",
"None"
],
"openmrs_choice_ids": {
"Community Health Fund (CHF)": "Community_Health_Fund",
- "iCHF": "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
"Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
"AAR Healthcare": "AAR_Healthcare",
"AAR Strategies Insurance": "Strategies_Insurance",
@@ -470,7 +566,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza bima"
+ "err": "Tafadhali ingiza mtoa huduma wa bima"
}
},
{
@@ -479,10 +575,10 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Other_Health_Insurance_Type",
"type": "edit_text",
- "hint": "Bima ya afya mwingine unaotumia",
+ "hint": "Mtoa huduma mwingine wa bima ya afya",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza bima"
+ "err": "Tafadhali bainisha mtoa huduma wa bima"
},
"relevance": {
"rules-engine": {
@@ -498,10 +594,10 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Health_Insurance_Number",
"type": "edit_text",
- "hint": "Namba ya bima ya afya umaotumia",
+ "hint": "Namba ya bima ya afya ya mteja",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza namba ya mfuko wa bima ya afya umaotumia"
+ "err": "Tafadhali jaza namba ya bima ya afya ya mteja"
},
"relevance": {
"rules-engine": {
@@ -511,30 +607,10 @@
}
}
},
- {
- "key": "sex",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "gender",
- "type": "spinner",
- "hint": "Jinsi",
- "values": [
- "Me",
- "Ke"
- ],
- "keys": [
- "Male",
- "Female"
- ],
- "v_required": {
- "value": "true",
- "err": "Tafadhali ingiza jinsi"
- }
- },
{
"key": "wra",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "hidden",
"calculation": {
@@ -548,7 +624,7 @@
{
"key": "mra",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "hidden",
"calculation": {
@@ -563,11 +639,11 @@
"key": "preg_1yr",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160692AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "preg_1yr",
"type": "spinner",
- "hint": "Je, amejifungua ndani ya mwaka 1?",
+ "hint": "Je, mwanamke amejifungua katika mwaka 1 uliopita?",
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
"keys": [
@@ -575,8 +651,8 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
@@ -594,11 +670,11 @@
"key": "disabilities",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "disabilities",
"type": "spinner",
- "hint": "Hali ya ulemavu",
+ "hint": "Ulemavu wa kimwili",
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
"keys": [
@@ -606,8 +682,8 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
@@ -616,15 +692,64 @@
},
{
"key": "type_of_disability",
- "openmrs_entity_parent": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Aina ya ulemavu",
- "v_required": {
- "value": "true",
- "err": "Tafadhali ingiza aina ya ulemavu"
- },
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Aina ya ulemavu",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Ulemavu wa mwili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Ulemavu wa Uti wa Mgongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Majeraha ya Kichwa - Ulemavu wa Ubongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Ulemavu wa Maono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Ulemavu wa Kusikia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Ulemavu wa Utambuzi au Kujifunza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Matatizo ya Kisaikolojia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Ulemavu Usioonekana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -636,12 +761,12 @@
{
"key": "is_primary_caregiver",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_primary_caregiver",
"type": "spinner",
- "hint": "Ni mlezi mkuu wa familia?",
+ "hint": "Je, ana mlezi mkuu?",
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
"keys": [
@@ -653,150 +778,51 @@
"err": "Tafadhali chagua moja"
}
},
- {
- "key": "phone_number",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Namba ya simu",
- "v_numeric": {
- "value": "true",
- "err": "Nambari lazima iwe jumla ya nambari 10 kwa urefu"
- },
- "v_regex": {
- "value": "(0[0-9]{9})|\\s*",
- "err": "Nambari lazima iwe na nambari 10 na lazima ianze na 0."
- },
- "v_required": {
- "value": false,
- "err": "Tafadhali taja numbe ya simu"
- }
- },
- {
- "key": "other_phone_number",
- "openmrs_entity_parent": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Namba za simu nyingine",
- "v_numeric": {
- "value": "true",
- "err": "Nambari lazima iwe jumla ya nambari 10 kwa urefu"
- },
- "v_regex": {
- "value": "(0[0-9]{9})|\\s*",
- "err": "Nambari lazima iwe na nambari 10 na lazima ianze na 0."
- }
- },
{
"key": "service_provider",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1542AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "check_box",
- "label": "Aina ya kazi anayojishughulisha",
+ "openmrs_entity_id": "service_provider",
+ "type": "native_radio",
+ "label": "Kazi ya mwanafamilia",
"label_text_style": "normal",
"text_color": "#C0C0C0",
- "exclusive": [
- "chk_none"
- ],
"options": [
{
- "key": "chk_farmer",
- "text": "Mkulima",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_cs",
- "text": "Mtumishi wa serikali",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "162944AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_nurse",
- "text": "Muuguzi",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_teacher",
- "text": "Mwalimu",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "162946AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_th",
- "text": "Waganga wa tiba asilia (THs)",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1821AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_chw",
- "text": "Wahudumu wa afya ngazi ya jamii–WAJA",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_tba",
- "text": "Wakunga wa jadi (TBAs)",
- "value": false,
+ "key": "chk_self_employed",
+ "text": "Amejiajiri",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_self_employed"
},
{
- "key": "chk_chmis",
- "text": "Wakusanyaji takwimu za afya katika jamii (cHIMS)",
- "value": false,
+ "key": "chk_employed",
+ "text": "Ameajiriwa",
"openmrs_entity": "concept",
- "openmrs_entity_id": "163334AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_employed"
},
{
- "key": "chk_cbd",
- "text": "Wasambazaji wa dawa na vifaa vya uzazi wa mpango katika jamii (CBD)",
- "value": false,
+ "key": "chk_unemployed",
+ "text": "Hajaajiriwa",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1744AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_unemployed"
},
{
- "key": "chk_hbc",
- "text": "Watoa huduma kwa wagonjwa majumbani (HBC)",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "161359AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_cimmci",
- "text": "Watoa huduma za udhibiti wa magonjwa ya watoto kwa uwiano katika jamii (cIMCI)",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "163096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_other",
- "text": "Nyingine",
- "value": false,
+ "key": "chk_farmer",
+ "text": "Mkulima",
"openmrs_entity": "concept",
- "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_farmer"
},
{
- "key": "chk_none",
- "text": "Hakuna",
+ "key": "chk_traditional_healer",
+ "text": "Mtoa huduma ya Tiba Asili",
"value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_traditional_healer"
}
],
"v_required": {
"value": "true",
- "err": "Tafadhali chagua angalau moja"
+ "err": "Tafadhali chagua moja"
}
},
{
@@ -805,7 +831,8 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Community_Leader",
"type": "check_box",
- "label": "Una jukumu lolote la uongozi kwenye ngazi ya jamii?",
+ "combine_checkbox_option_values": "true",
+ "label": "Una nafasi yoyote ya uongozi katika jamii?",
"label_text_style": "normal",
"text_color": "#C0C0C0",
"exclusive": [
@@ -815,42 +842,36 @@
{
"key": "chk_religious",
"text": "Kiongozi wa dini",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Religious_Leader"
},
{
"key": "chk_traditional",
- "text": "Kiongozi wa kimila",
- "value": false,
+ "text": "Kiongozi wa jadi",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Traditional_leader"
},
{
"key": "chk_political",
"text": "Kiongozi wa kisiasa",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Political_leader"
},
{
"key": "chk_influential",
- "text": "Mtu mwenye ushawishi kwenye jamii",
- "value": false,
+ "text": "Kiongozi mwenye ushawishi",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Influential_Leader"
},
{
"key": "chk_other",
"text": "Nyinginezo",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Other_Community_Leader_Type"
},
{
"key": "chk_none",
"text": "Hakuna",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Not_a_Community_Leader"
}
@@ -866,11 +887,11 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Other_Community_Leader_Type_Name",
"type": "edit_text",
- "hint": "Taja hayo majukumu mengine",
+ "hint": "Taja nafasi nyingine katika jamii",
"edit_type": "name",
"v_required": {
"value": "true",
- "err": "Tafadhali taja jukumu"
+ "err": "Tafadhali bainisha jukumu"
},
"relevance": {
"step1:leader": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/family_planning_change_method.json b/opensrp-chw-hf/src/main/assets/json.form-sw/family_planning_change_method.json
index 83f5f9bdf6..b4d7632bb7 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/family_planning_change_method.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/family_planning_change_method.json
@@ -18,11 +18,6 @@
"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",
@@ -54,7 +49,7 @@
}
},
"step1": {
- "title": "Badilisha au acha fomu ya uzazi wa mpango",
+ "title": "Change or Stop FP form",
"next": "step2",
"fields": [
{
@@ -84,7 +79,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "164901AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Sababu za kuacha kutumia njia za uzazi wa mpango ya sasa",
+ "label": "Sababu ya mwanamke kusitisha njia yake ya sasa ya kupanga uzazi",
"options": [
{
"key": "side_effects",
@@ -98,36 +93,35 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "160571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Anataka mimba"
+ "text": "Anataka kushika mimba"
},
{
"key": "doesnt_want_to_use_anymore",
"openmrs_entity": "concept",
"openmrs_entity_id": "164260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Hataki kutumia sasa"
+ "text": "Hataki kutumia tena"
},
{
"key": "menopause",
"openmrs_entity": "concept",
"openmrs_entity_id": "134346AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Kukoma kwa uzazi"
+ "text": "Kukoma hedhi"
},
{
"key": "decided_to_change_method",
"openmrs_entity": "concept",
"openmrs_entity_id": "163494AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "value": false,
- "text": "Aliamua kubadilisha mpango wa uzazi"
+ "text": "Iliamua kubadilisha mbinu"
},
{
"key": "others",
"openmrs_entity": "concept",
"openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Nyingine"
+ "text": "Wengine"
}
],
"v_required": {
@@ -145,7 +139,7 @@
"hint": "Sababu nyingine",
"v_required": {
"value": "true",
- "err": "Ingiza sababu nyingine"
+ "err": "Inatakiwa"
},
"relevance": {
"rules-engine": {
@@ -165,7 +159,7 @@
"hint": "Madhara",
"v_required": {
"value": "true",
- "err": "Ingiza madhara"
+ "err": "Inatakiwa"
},
"relevance": {
"rules-engine": {
@@ -178,7 +172,7 @@
]
},
"step2": {
- "title": "Njia ya uzazi wa mpango",
+ "title": "Family planning method",
"fields": [
{
"key": "fp_method_accepted",
@@ -186,32 +180,19 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_method_accepted",
"type": "spinner",
- "hint": "Njia za uzazi wa mpango selectedd",
+ "hint": "Mbinu ya kupanga uzazi imechaguliwa",
"values": [
"Kondomu ya kiume",
"Kondomu ya kike",
- "Vidonge vya kumeza vyenye vichocheo viwili (COC)",
- "Vidonge vya kumeza vyenye vichocheo kimoja (POP)",
- "Shanga",
- "Sindano",
- "Kitanzi",
- "Kipandikizi cha miaka 3",
- "Vipandikizi vya miaka 5",
- "Kufunga kizazi mwanamke",
- "Kufunga kizazi mwanamme"
- ],
- "keys": [
- "Male condom",
- "Female condom",
"COC",
"POP",
- "Standard day method",
- "Injectable",
+ "Njia ya kawaida ya siku",
+ "Sindano",
"IUCD",
"Implanon - NXT",
- "Jadelle",
- "Female sterilization",
- "Male sterilization"
+ "Kijiti",
+ "Kufunga kizazi kwa mwanamke",
+ "Kufunga kizazi kwa mwanaume"
],
"openmrs_choice_ids": {
"Male condom": "164813AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
@@ -238,7 +219,6 @@
}
}
},
-
{
"key": "no_condoms",
"openmrs_entity_parent": "190AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
@@ -246,18 +226,18 @@
"openmrs_entity_id": "no_condoms",
"type": "edit_text",
"edit_type": "number",
- "hint": "Amepata vipande vya kondpmu vingapi?",
+ "hint": "Je, alipewa kondomu ngapi?",
"v_required": {
"value": "true",
- "err": "Sawa au kubwa kuliko 0"
+ "err": "Sawa au zaidi ya 0"
},
"v_numeric_integer": {
"value": "true",
- "err": "Lazima iwe nambari iliyo na mviringo"
+ "err": "Must be a rounded number"
},
"v_min": {
"value": "0",
- "err": "Nambari lazima iwe sawa au kubwa kuliko 0"
+ "err": "Nambari lazima iwe sawa au zaidi ya 0"
},
"relevance": {
"rules-engine": {
@@ -289,18 +269,18 @@
"openmrs_entity_id": "163171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "edit_text",
"edit_type": "number",
- "hint": "Amepata saiko ngapi?",
+ "hint": "Je, alipewa mizunguko mingapi ya vidonge?",
"v_required": {
"value": "true",
- "err": "Sawa au kubwa kuliko 0"
+ "err": "Sawa au zaidi ya 0"
},
"v_numeric_integer": {
"value": "true",
- "err": "Lazima iwe nambari iliyo na mviringo"
+ "err": "Weka umri halali"
},
"v_min": {
"value": "0",
- "err": "Nambari lazima iwe sawa au kubwa kuliko 0"
+ "err": "Nambari lazima iwe sawa au zaidi ya 0"
},
"relevance": {
"rules-engine": {
@@ -316,7 +296,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_cocpop",
"type": "date_picker",
- "hint": "Je, alianza au anapanga kuanza vidonge vya kumeza vyenye vichocheo viwili au kimoja lini?",
+ "hint": "Je, ni lini alianza au alipanga kuanza kutumia COC/POP?",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -327,7 +307,7 @@
},
"v_required": {
"value": "true",
- "err": "Ingiza tarehe ambao anapanga kuanza vidonge vya kumeza vyenye vichocheo viwili au kimoja"
+ "err": "Inatakiwa"
}
},
{
@@ -336,15 +316,11 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "counselling_use",
"type": "spinner",
- "hint": "Je, mteja ameshauri jinsi ya kutumia njia za uzazi wa mpango aliyochagua?",
+ "hint": "Je, alishauriwa jinsi ya kutumia njia ya kupanga uzazi?",
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
- "keys": [
- "Yes",
- "No"
- ],
"openmrs_choice_ids": {
"Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -367,7 +343,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "162881AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "date_picker",
- "hint": "Tarehe ya sindano iliyopita",
+ "hint": "Tarehe ya sindano ya mwisho",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -378,7 +354,7 @@
},
"v_required": {
"value": "true",
- "err": "Tarehe ya sindano iliyopita"
+ "err": "Inatakiwa"
}
},
{
@@ -387,7 +363,7 @@
"openmrs_entity": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_id": "next_injection_due_date",
"type": "edit_text",
- "hint": "Tarehe ya sindano ijayo:",
+ "hint": "Sindano inayofuata inastahili:",
"read_only": "true",
"value": "0",
"relevance": {
@@ -411,7 +387,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_iucd",
"type": "date_picker",
- "hint": "Tarehe ya kuweka kitanzi",
+ "hint": "Tarehe ya kuwekwa kwa IUCD",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -422,7 +398,7 @@
},
"v_required": {
"value": "true",
- "err": "Ingiza tarehe ya kuweka kitanzi"
+ "err": "Inatakiwa"
}
},
{
@@ -445,7 +421,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_implant_nxt",
"type": "date_picker",
- "hint": "Tarehe ya kuweka kipandikizi cha miaka 3",
+ "hint": "Tarehe ya kuingizwa kwa Implanon - NXT",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -456,7 +432,7 @@
},
"v_required": {
"value": "true",
- "err": "Ingiza tarehe ya kuweka kipandikizi cha miaka 3"
+ "err": "Inahitajika "
}
},
{
@@ -479,7 +455,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_implant_jad",
"type": "date_picker",
- "hint": "Tarehe ya kuweka vipandikizi vya miaka 5",
+ "hint": "Tarehe ya kuingizwa kwa Kijiti",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -490,7 +466,7 @@
},
"v_required": {
"value": "true",
- "err": "Ingiza tarehe ya kuweka vipandikizi vya miaka 5"
+ "err": "Inahitajika"
}
},
{
@@ -513,7 +489,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_female_ster",
"type": "date_picker",
- "hint": "Tarehe y kufunga kizazi mwanmke",
+ "hint": "Tarehe ya Kufunga kizazi kwa mwanamke",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -524,7 +500,7 @@
},
"v_required": {
"value": "true",
- "err": "Ingiza tarehe y kufunga kizazi mwanmke"
+ "err": "Inahitajika"
}
},
{
@@ -533,7 +509,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_male_ster",
"type": "date_picker",
- "hint": "Tarehe ya kufunga kizazi mwanamume ya mume wake",
+ "hint": "Tarehe ya Kufunga kizazi kwa mwanaume",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -544,7 +520,7 @@
},
"v_required": {
"value": "true",
- "err": "Ingiza tarehe ya kufunga kizazi mwanamume ya mume wake"
+ "err": "Inahitajika"
}
},
{
@@ -568,8 +544,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Tarehe ya sindano ijayo: {next_injection_due_date}",
- "toaster_info_text": "Tarehe ya sindano ijayo: {next_injection_due_date}",
+ "text": "Muda wa kudunga sindano inayofuata: {next_injection_due_date}",
+ "toaster_info_text": "Muda wa kudunga sindano inayofuata: {next_injection_due_date}",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -592,8 +568,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Mwambie mwanamke achunguze dalili zifuatazo:\n- Kutokwa (usaha, damu) kwenye tovuti ya sindano\n- SPumba au mkono wa zabuni kwenye tovuti ya sindano",
- "toaster_info_text": "Mwambie mwanamke achunguze dalili zifuatazo:\n- Kutokwa (usaha, damu) kwenye tovuti ya sindano\n- SPumba au mkono wa zabuni kwenye tovuti ya sindano",
+ "text": "Mwambie mwanamke aangalie dalili zifuatazo: - Kutoa usaha (usaha, damu) kwenye tovuti ya sindano - Kuvimba au mkono mwororo kwenye tovuti ya sindano.",
+ "toaster_info_text": "Mwambie mwanamke aangalie dalili zifuatazo: - Kutoa usaha (usaha, damu) kwenye tovuti ya sindano - Kuvimba au mkono mwororo kwenye tovuti ya sindano.",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -609,8 +585,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Tarehe kutoa: {iucd_removal}",
- "toaster_info_text": "Tarehe kutoa: {iucd_removal}",
+ "text": "Tarehe ya kuondolewa: {iucd_removal}",
+ "toaster_info_text": "Tarehe ya kuondolewa: {iucd_removal}",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -633,8 +609,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Mwambie mwanamke achunguze yafuatayo na anaweza kurudi ikiwa kuna yoyote: \n- Ikiwa na kinga ya nje au IUCD ndani ya uke\n- Muongozi wa kuangalia IUCD kwenye pedi yake mara atakibadilisha\n- Ima ni mimes ina ukaguzi unakadiriwa ili kuona ikiwa IUCD inafukuzwa",
- "toaster_info_text": "Mwambie mwanamke achunguze yafuatayo na anaweza kurudi ikiwa kuna yoyote: \n- Ikiwa na kinga ya nje au IUCD ndani ya uke\n- Muongozi wa kuangalia IUCD kwenye pedi yake mara atakibadilisha\n- Ima ni mimes ina ukaguzi unakadiriwa ili kuona ikiwa IUCD inafukuzwa",
+ "text": "Mwambie mwanamke aangalie mambo yafuatayo: - Kutokea kwa kamba nje au IUCD kwenye uke - Wakati wa hedhi, angalia IUCD kwenye pedi yake - Wakati wa hedhi, ikiwa imeganda, kagua kama IUCD imetolewa.",
+ "toaster_info_text": "Mwambie mwanamke aangalie mambo yafuatayo: - Kutokea kwa kamba nje au IUCD kwenye uke - Wakati wa hedhi, angalia IUCD kwenye pedi yake - Wakati wa hedhi, ikiwa imeganda, kagua kama IUCD imetolewa.",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -650,8 +626,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Tarehe kutoa: {implanon_nxt_removal}",
- "toaster_info_text": "Tarehe kutoa: {implanon_nxt_removal}",
+ "text": "Tarehe ya kuondolewa: {implanon_nxt_removal}",
+ "toaster_info_text": "Tarehe ya kuondolewa: {implanon_nxt_removal}",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -674,8 +650,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Tarehe kutoa: {jadelle_removal}",
- "toaster_info_text": "Tarehe kutoa: {jadelle_removal}",
+ "text": "Tarehe ya kuondolewa: {jadelle_removal}",
+ "toaster_info_text": "Tarehe ya kuondolewa: {jadelle_removal}",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -698,8 +674,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Mwambie mwanamke achungushe yafuatayo na arudi ikiwa kuna yoyote. \n- Kama kunakuwa na fimbo nje. \n- Mkono wa kuvimba na / au kutokwa kwa tovuti",
- "toaster_info_text": "Mwambie mwanamke achungushe yafuatayo na arudi ikiwa kuna yoyote. \n- Kama kunakuwa na fimbo nje. \n- Mkono wa kuvimba na / au kutokwa kwa tovuti",
+ "text": "Mwambie mwanamke aangalie yafuatayo na arudi kama yapo. - Ikiwa fimbo imechomoza - mkono umevimba au umevimba na/au kutokwa kwenye tovuti ya kuingizwa.",
+ "toaster_info_text": "Mwambie mwanamke aangalie yafuatayo na arudi kama yapo. - Ikiwa fimbo imechomoza - mkono umevimba au umevimba na/au kutokwa kwenye tovuti ya kuingizwa.",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -715,8 +691,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Mwambie mwanamke arudi ikiwa:\n- Kuvimba, zabuni na kutokwa na maji machafu",
- "toaster_info_text": "Mwambie mwanamke arudi ikiwa:\n- Kuvimba, zabuni na kutokwa na maji machafu",
+ "text": "Mwambie mwanamke huyo arudi ikiwa: - Amevimba, na ametokwa na usaha kwenye tovuti ya chale",
+ "toaster_info_text": "Mwambie mwanamke huyo arudi ikiwa: - Amevimba, na ametokwa na usaha kwenye tovuti ya chale",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -732,8 +708,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Tumia kondomu kwa miezi mitatu kuzuia ujazito",
- "toaster_info_text": "Tumia kondomu kwa miezi mitatu kuzuia ujazito",
+ "text": "Mshauri mwanamke kutumia kondomu kwa muda wa miezi 3 ya kwanza ili kuzuia mimba",
+ "toaster_info_text": "Mshauri mwanamke kutumia kondomu kwa muda wa miezi 3 ya kwanza ili kuzuia mimba",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -745,4 +721,4 @@
}
]
}
-}
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/family_register.json b/opensrp-chw-hf/src/main/assets/json.form-sw/family_register.json
index 8cf3cff798..57ffae93e9 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/family_register.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/family_register.json
@@ -1,6 +1,4 @@
{
- "validate_on_submit": true,
- "show_errors_on_submit": false,
"count": "2",
"encounter_type": "Family Registration",
"entity_id": "",
@@ -18,11 +16,6 @@
"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",
@@ -54,7 +47,7 @@
}
},
"step1": {
- "title": "Taarifa ya familia",
+ "title": "Taarifa za familia",
"next": "step2",
"fields": [
{
@@ -63,15 +56,49 @@
"openmrs_entity": "person",
"openmrs_entity_id": "first_name",
"type": "edit_text",
- "hint": "Taarifa ya familia",
+ "hint": "Jina la Ukoo",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza Jina la Ukoo"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
+ }
+ },
+ {
+ "key": "client_first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza la Mkuu wa Kaya",
"edit_type": "name",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza jina la ukoo"
+ "err": "Tafadhali ingiza Jina la Kwanza"
},
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina la ukoo"
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina kwa usahihi"
+ }
+ },
+ {
+ "key": "client_middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati la mkuu wa kaya",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Ingiza jina kwa usahihi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza Jina la Kati la mkuu wa kaya"
}
},
{
@@ -80,13 +107,13 @@
"openmrs_entity": "person_identifier",
"openmrs_entity_id": "opensrp_id",
"hidden": "true",
- "type": "barcode",
+ "type": "edit_text",
"barcode_type": "qrcode",
- "hint": "ID",
- "scanButtonText": "Chukua QR code",
+ "hint": "Kitambulisho",
+ "scanButtonText": "Scan QR Code",
"v_numeric": {
"value": "true",
- "err": "Tafadhali ingiza namba halali"
+ "err": "Tafadhali Ingiza namba ya kitambulisho"
}
},
{
@@ -96,14 +123,10 @@
"openmrs_entity_id": "cityVillage",
"type": "edit_text",
"edit_type": "name",
- "hint": "Kijiji / mtaa",
+ "hint": "Jina la Eneo",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza kijiji au jiji"
- },
- "v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali la kijiji"
+ "err": "Tafadhali ingiza jina la eneo"
}
},
{
@@ -112,25 +135,16 @@
"openmrs_entity": "person_address",
"openmrs_entity_id": "landmark",
"type": "edit_text",
- "edit_type": "name",
- "hint": "Alama ya eneo la makazi",
+ "hint": "Maelezo ya eneo la makazi",
"v_required": {
"value": true,
- "err": "Tafadhali ingiza maelezo ya alama au eneo la makazi"
+ "err": "Tafadhali ingiza jina eneo la makazi"
}
},
- {
- "key": "gps",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "text",
- "type": "gps"
- },
{
"key": "spacer",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "spacer",
"spacer_height": "15dp"
@@ -141,10 +155,10 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "sync_location_id",
"type": "spinner",
- "hint": "Chagua eneo la CHW",
+ "hint": "Chagua eneo la WAJA",
"v_required": {
"value": "true",
- "err": "Tafadhali chagua eneo la CHW"
+ "err": "Tafadhali chagua eneo la WAJA"
}
}
]
@@ -152,30 +166,22 @@
"step2": {
"title": "Mkuu wa kaya",
"fields": [
- {
- "key": "photo",
- "openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
- "type": "choose_image",
- "uploadButtonText": "Chukua picha ya muhusika / kiongozi wa familia"
- },
{
"key": "unique_id",
"openmrs_entity_parent": "",
"openmrs_entity": "person_identifier",
"openmrs_entity_id": "opensrp_id",
"type": "edit_text",
- "hint": "ID",
+ "hint": "Kitambulisho",
"value": "0",
"read_only": "true",
"v_numeric": {
"value": "true",
- "err": "Tafadhali ingiza namba halali"
+ "err": "Ingiza namba ya kitambulisho iliyosahihi"
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza namba"
+ "err": "Tafadhali ingiza namba ya kitambulisho"
}
},
{
@@ -184,15 +190,23 @@
"openmrs_entity": "person",
"openmrs_entity_id": "first_name",
"type": "edit_text",
- "hint": "Jina la kwanza",
+ "hint": "Jina la Kwanza",
"edit_type": "name",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza jina la kwanza"
+ "err": "Tafadhali ingiza Jina la Kwanza"
},
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Ingiza jina sahihi"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_calculation.yml"
+ }
+ }
}
},
{
@@ -201,29 +215,37 @@
"openmrs_entity": "person",
"openmrs_entity_id": "middle_name",
"type": "edit_text",
- "hint": "Jina la kati",
+ "hint": "Jina la Kati",
"edit_type": "name",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza jina la kati"
+ "err": "Tafadhali ingiza Jina la Kati"
},
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_calculation.yml"
+ }
+ }
}
},
{
"key": "surname",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
- "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_name",
"type": "edit_text",
- "hint": "Jina la familia (ukoo)",
+ "hint": "Jina la Ukoo",
"edit_type": "name",
"read_only": "true",
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Tafadhali ingiza jina halali"
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
},
"calculation": {
"rules-engine": {
@@ -239,7 +261,7 @@
"openmrs_entity": "person",
"openmrs_entity_id": "birthdate",
"type": "date_picker",
- "hint": "Tarehe ya kuzaliwa",
+ "hint": "Tarehe ya Kuzaliwa",
"expanded": false,
"duration": {
"label": "Age"
@@ -261,7 +283,7 @@
{
"key": "age_calculated",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "hidden",
"calculation": {
@@ -286,7 +308,14 @@
"text_size": "18px",
"value": "false"
}
- ]
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
+ }
},
{
"key": "age",
@@ -297,15 +326,15 @@
"hint": "Umri",
"v_numeric": {
"value": "true",
- "err": "Nambari lazima ianze na 0 na lazima iwe jumla ya nambari 10 kwa urefu"
+ "err": ""
},
"v_min": {
"value": "15",
- "err": "Umri lazima uwe sawa au mkubwa kuliko 15"
+ "err": "Umri unapaswa kuwa sawa au kubwa kuliko 15"
},
"v_max": {
"value": "120",
- "err": "Umri lazima uwe sawa au chini ya 120"
+ "err": "Umri unapaswa kuwa sawa au chini 120"
},
"relevance": {
"rules-engine": {
@@ -316,7 +345,83 @@
},
"v_required": {
"value": true,
- "err": "Tafadhali ingiza umri"
+ "err": "Tafadhali ingiza Umri"
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Jinsi",
+ "values": [
+ "Me",
+ "Ke"
+ ],
+ "keys": [
+ "Male",
+ "Female"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza jinsi ya mteja"
+ }
+ },
+ {
+ "key": "marital_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "marital_status",
+ "type": "spinner",
+ "hint": "Hali ya Ndoa ya Mteja?",
+ "values": [
+ "Hajaoa/Hajaolewa",
+ "Ameoa/Ameolewa",
+ "Ameachiwa",
+ "Mjane/Mgane",
+ "Kuishi pamoja bila ndoa"
+ ],
+ "keys": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "openmrs_choice_ids": {
+ "Single": "Single",
+ "Married": "Married",
+ "Divorced": "Divorced",
+ "Widowed": "Widowed",
+ "Cohabitation": "Cohabitation"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba inatakiwa iwe na tarakimu 10"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Nambari lazima iwe na tarakimu 10 na lazima ianze na 06 u 07."
}
},
{
@@ -325,7 +430,8 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "id_avail",
"type": "check_box",
- "label": "Je, ana kitambulisho chochote kati ya hivi?",
+ "label": "Je una kitambulisho kimojawapo kati ya hivi?",
+ "combine_checkbox_option_values": "true",
"label_text_style": "normal",
"text_color": "#C0C0C0",
"exclusive": [
@@ -334,49 +440,61 @@
"options": [
{
"key": "chk_national_id",
- "text": "Kitambulisho cha taifa",
- "value": false,
+ "text": "Kitambulisho cha Taifa",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_national_id"
},
{
"key": "chk_voters_id",
"text": "Kitambulisho cha mpiga kura",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_voters_id"
},
{
"key": "chk_drivers_license",
- "text": "Leseni ya dereva",
- "value": false,
+ "text": "Leseni ya udereva",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_drivers_license"
},
- {
- "key": "chk_passport",
- "text": "Hati ya kusafiria",
- "value": false,
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "chk_passport"
- },
{
"key": "chk_none",
"text": "Hakuna",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_none"
}
- ]
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
+ }
},
{
"key": "national_id",
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "National_ID",
- "type": "edit_text",
- "hint": "Namba ya kitambulisho cha taifa",
- "edit_type": "name",
+ "type": "mask_edit_text",
+ "mask": "########-#####-#####-##",
+ "mask_hint": "12345678912345678912",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya Kitambulisho cha Taifa mfn:12345678-91234-56789-12",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "^\\d{8}-\\d{5}-\\d{5}-\\d{2}$",
+ "err": "Namba ya kitambulisho inatakiwa kuandikwa kama ifuatavyo:(XXXXXXXX-XXXXX-XXXXX-XX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_max_length": {
+ "value": "23",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid national id"
+ },
"relevance": {
"step2:id_avail": {
"ex-checkbox": [
@@ -394,9 +512,25 @@
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Voter_Registration_Number",
- "type": "edit_text",
- "hint": "Namba ya kitambulisho cha mpiga kura",
- "edit_type": "name",
+ "type": "mask_edit_text",
+ "mask": "T-####-####-###-#",
+ "mask_hint": "123456789123",
+ "allowed_chars": "0123456789",
+ "hint": "N Namba ya mpiga kura mfano:T-1234-5678-912-3",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "^T-\\d{4}-\\d{4}-\\d{3}-\\d{1}$",
+ "err": "Namba ya mpiga kura inatakiwa kuandikwa kwa utaratibu huu:(T-XXXX-XXXX-XXX-X)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid voters registration"
+ },
"relevance": {
"step2:id_avail": {
"ex-checkbox": [
@@ -414,9 +548,25 @@
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Driver_License_Number",
- "type": "edit_text",
- "hint": "Namba ya leseni ya udereva",
- "edit_type": "name",
+ "type": "mask_edit_text",
+ "mask": "##########",
+ "mask_hint": "1234567891",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya leseni ya udereva mfano:1234567891",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "10",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid drivers license number"
+ },
+ "v_regex": {
+ "value": "^([0-9]{10})",
+ "err": "Namba ya leseni ya udereva inatakiwa kuandikwa katika mfumo huu: (XXXXXXXXXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
"relevance": {
"step2:id_avail": {
"ex-checkbox": [
@@ -429,52 +579,32 @@
}
}
},
- {
- "key": "passport",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "Passport_Number",
- "type": "edit_text",
- "hint": "Namba ya hati ya kusafiria",
- "edit_type": "name",
- "relevance": {
- "step2:id_avail": {
- "ex-checkbox": [
- {
- "or": [
- "chk_passport"
- ]
- }
- ]
- }
- }
- },
{
"key": "insurance_provider",
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Health_Insurance_Type",
"type": "spinner",
- "hint": "Bima ya afya unaotumia",
+ "hint": "Mtoa huduma bima ya Afya",
"values": [
- "Bima ya afya ya jamii (CHF)",
- "Bima ya afya ya jamii ulioboreshwa (iCHF)",
+ "Community Health Fund (CHF)/(iCHF)",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
"Tiba Kwa Kadi (TIKA)",
"AAR Healthcare",
"Strategies Insurance",
"Milvik Tanzania Ltd (BIMA Mkononi)",
- "Britam Insurance Tanzania",
- "Jubilee Insurance",
- "Resolutions Insurance",
- "Reliance Insurance",
- "Bima ya afya nyingezo",
+ "Bima ya afya ya Britam",
+ "Bima ya afya ya Jubilee ",
+ "Bima ya afya ya Reliance",
+ "Bima ya afya ya Reliance",
+ "Nyingine",
"Hakuna"
],
"keys": [
"Community Health Fund (CHF)",
- "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
"Tiba Kwa Kadi (TIKA)",
"AAR Healthcare",
"Strategies Insurance",
@@ -488,8 +618,8 @@
],
"openmrs_choice_ids": {
"Community Health Fund (CHF)": "Community_Health_Fund",
- "iCHF": "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
"Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
"AAR Healthcare": "AAR_Healthcare",
"AAR Strategies Insurance": "Strategies_Insurance",
@@ -503,7 +633,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza mfuko wa bima"
+ "err": "Tafadhali ingiza mtoa huduma wa Bima ya Afya"
}
},
{
@@ -512,10 +642,10 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Other_Health_Insurance_Type",
"type": "edit_text",
- "hint": "Bima ya afya mwingine unaotumia",
+ "hint": "Bima ya Afya nyingine",
"v_required": {
"value": "true",
- "err": "Tafadhali taja bima"
+ "err": "Tafadhali bainisha Bima ya Afya nyingine"
},
"relevance": {
"rules-engine": {
@@ -531,10 +661,10 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Health_Insurance_Number",
"type": "edit_text",
- "hint": "Namba ya bima ya afya unaotumia",
+ "hint": "Namba ya bima ya afya ya mteja",
"v_required": {
"value": "true",
- "err": "Tafadhali ongeza nambari ya bima ya afya"
+ "err": "Tafadhali jaza namba ya bima ya afya ya mteja"
},
"relevance": {
"rules-engine": {
@@ -544,30 +674,10 @@
}
}
},
- {
- "key": "sex",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "gender",
- "type": "spinner",
- "hint": "Jinsi",
- "values": [
- "Me",
- "Ke"
- ],
- "keys": [
- "Male",
- "Female"
- ],
- "v_required": {
- "value": "true",
- "err": "Please enter the sex"
- }
- },
{
"key": "wra",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "hidden",
"calculation": {
@@ -581,7 +691,7 @@
{
"key": "mra",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "hidden",
"values": ""
@@ -590,9 +700,9 @@
"key": "preg_1yr",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160692AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "preg_1yr",
"type": "spinner",
- "hint": "Je, amejifungua ndani ya mwaka 1?",
+ "hint": "Je mama amejifungua ndani ya mwaka mmoja uliopoita?",
"values": [
"Ndiyo",
"Hapana"
@@ -602,12 +712,12 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
- "err": "Tafadhali chagua ikiwa mwanamke amejifungua katika mwaka 1 uliopita"
+ "err": "Je mama amejifungua ndani ya mwaka mmoja uliopoita?"
},
"relevance": {
"rules-engine": {
@@ -621,9 +731,9 @@
"key": "disabilities",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "disabilities",
"type": "spinner",
- "hint": "Hali ya ulemavu",
+ "hint": "Ulemavu wa viungo",
"values": [
"Ndiyo",
"Hapana"
@@ -633,8 +743,8 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
@@ -643,163 +753,133 @@
},
{
"key": "type_of_disability",
- "openmrs_entity_parent": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Aina ya ulemavu",
- "v_required": {
- "value": "true",
- "err": "Tafadhali ingiza aina ya ulemavu"
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "family_register_relevance.yml"
- }
- }
- }
- },
- {
- "key": "phone_number",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Namba ya simu",
- "v_numeric": {
- "value": "true",
- "err": "Nambari lazima iwe jumla ya nambari 10 kwa urefu"
- },
- "v_regex": {
- "value": "(0[0-9]{9})|\\s*",
- "err": "Nambari lazima iwe na nambari 10 na lazima ianze na 0."
- }
- },
- {
- "key": "other_phone_number",
- "openmrs_entity_parent": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Namba za simu nyingine",
- "v_numeric": {
- "value": "true",
- "err": "Nambari lazima iwe jumla ya nambari 10 kwa urefu"
- },
- "v_regex": {
- "value": "(0[0-9]{9})|\\s*",
- "err": "Nambari lazima iwe na nambari 10 na lazima ianze na 0."
- }
- },
- {
- "key": "service_provider",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1542AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "type_of_disability",
"type": "check_box",
- "label": "Aina ya kazi anayojishughulisha",
+ "label": "Aina ya Ulemavu",
+ "combine_checkbox_option_values": "true",
"label_text_style": "normal",
"text_color": "#C0C0C0",
- "exclusive": [
- "chk_none"
- ],
"options": [
{
- "key": "chk_farmer",
- "text": "Mkulima",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_cs",
- "text": "Mtumishi wa serikali",
- "value": false,
+ "key": "physical_impairments",
+ "text": "Ulemavu wa viungo vya mwili",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162944AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "physical_impairments"
},
{
- "key": "chk_nurse",
- "text": "Muuguzi",
- "value": false,
+ "key": "spinal_cord_disability",
+ "text": "Ulemavu wa Uti wa mgongo",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "spinal_cord_disability"
},
{
- "key": "chk_teacher",
- "text": "Mwalimu",
- "value": false,
+ "key": "brain_disability",
+ "text": "Ulemavu wa akili",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162946AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "brain_disability"
},
{
- "key": "chk_th",
- "text": "Waganga wa tiba asilia (THs)",
- "value": false,
+ "key": "vision_disability",
+ "text": "Ulemavu wa macho",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1821AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "vision_disability"
},
{
- "key": "chk_chw",
- "text": "Wahudumu wa afya ngazi ya jamii–WAJA",
- "value": false,
+ "key": "hearing_disability",
+ "text": "Ulemavu wa kusikia",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "hearing_disability"
},
{
- "key": "chk_tba",
- "text": "Wakunga wa jadi (TBAs)",
- "value": false,
+ "key": "learning_disabilities",
+ "text": "Ulemavu katika kusitambua au kujifunza vitu",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "learning_disabilities"
},
{
- "key": "chk_chmis",
- "text": "Wakusanyaji takwimu za afya katika jamii (cHIMS)",
- "value": false,
+ "key": "psychological_disorders",
+ "text": "Ulemavu wa Kisaikologia",
"openmrs_entity": "concept",
- "openmrs_entity_id": "163334AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "psychological_disorders"
},
{
- "key": "chk_cbd",
- "text": "Wasambazaji wa dawa na vifaa vya uzazi wa mpango katika jamii (CBD)",
- "value": false,
+ "key": "invisible_disabilities",
+ "text": "Ulemavu usioonekana",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1744AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu nyingine",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba ya simu inatakiwa kuwa na tarakimu 10"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ }
+ },
+ {
+ "key": "service_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_provider",
+ "type": "native_radio",
+ "label": "Kazi ya Mkuu wa Kaya",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
{
- "key": "chk_hbc",
- "text": "Watoa huduma kwa wagonjwa majumbani (HBC)",
- "value": false,
+ "key": "chk_self_employed",
+ "text": "Amejiajiri",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161359AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_self_employed"
},
{
- "key": "chk_cimmci",
- "text": "Watoa huduma za udhibiti wa magonjwa ya watoto kwa uwiano katika jamii (cIMCI)",
- "value": false,
+ "key": "chk_employed",
+ "text": "Ameajiriwa",
"openmrs_entity": "concept",
- "openmrs_entity_id": "163096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_employed"
},
{
- "key": "chk_other",
- "text": "Nyingine",
- "value": false,
+ "key": "chk_unemployed",
+ "text": "Hajaajiriwa",
"openmrs_entity": "concept",
- "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_unemployed"
},
{
- "key": "chk_none",
- "text": "Hakuna",
- "value": false,
+ "key": "chk_farmer",
+ "text": "Mkulima",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_farmer"
}
],
"v_required": {
"value": "true",
"err": "Tafadhali chagua angalau moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
}
},
{
@@ -808,7 +888,8 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Community_Leader",
"type": "check_box",
- "label": "Una jukumu lolote la uongozi kwenye ngazi ya jamii?",
+ "label": "Je ana uongozi wowote katika Jamii?",
+ "combine_checkbox_option_values": "true",
"label_text_style": "normal",
"text_color": "#C0C0C0",
"exclusive": [
@@ -817,43 +898,37 @@
"options": [
{
"key": "chk_religious",
- "text": "Kiongozi wa dini",
- "value": false,
+ "text": "Kiongozi wa kidini",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Religious_Leader"
},
{
"key": "chk_traditional",
- "text": "Kiongozi wa kimila",
- "value": false,
+ "text": "Kiongozi wa jadi",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Traditional_leader"
},
{
"key": "chk_political",
"text": "Kiongozi wa kisiasa",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Political_leader"
},
{
"key": "chk_influential",
- "text": "Mtu mwenye ushawishi kwenye jamii",
- "value": false,
+ "text": "Kiongozi mwenye ushawishi katika jamii",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Influential_Leader"
},
{
"key": "chk_other",
- "text": "Nyinginezo",
- "value": false,
+ "text": "Nyingine",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Other_Community_Leader_Type"
},
{
"key": "chk_none",
"text": "Hakuna",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Not_a_Community_Leader"
}
@@ -861,6 +936,13 @@
"v_required": {
"value": "true",
"err": "Tafadhali chagua angalau moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
}
},
{
@@ -869,11 +951,11 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Other_Community_Leader_Type_Name",
"type": "edit_text",
- "hint": "Taja hayo majukumu mengine",
+ "hint": "Taja uongozi mwingine alionao katika jamii",
"edit_type": "name",
"v_required": {
"value": "true",
- "err": "Tafadhali taja jukumu"
+ "err": "Tafadhali bainisha uongozi alionao"
},
"relevance": {
"step2:leader": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/female_family_planning_change_method.json b/opensrp-chw-hf/src/main/assets/json.form-sw/female_family_planning_change_method.json
index c9734ce298..e80b2881f9 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/female_family_planning_change_method.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/female_family_planning_change_method.json
@@ -18,11 +18,6 @@
"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",
@@ -119,7 +114,6 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "163494AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "value": false,
"text": "Aliamua kubadilisha mpango wa uzazi"
},
{
@@ -238,7 +232,6 @@
}
}
},
-
{
"key": "no_condoms",
"openmrs_entity_parent": "190AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
@@ -411,7 +404,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_iucd",
"type": "date_picker",
- "hint": "Tarehe ya kuweka kitanzi",
+ "hint": "Tarehe ya kuweka kitanzi",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -592,7 +585,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Mwambie mwanamke achunguze dalili zifuatazo:\n- Kutokwa (usaha, damu) kwenye tovuti ya sindano\n- SPumba au mkono wa zabuni kwenye tovuti ya sindano",
+ "text": "Mwambie mwanamke achunguze dalili zifuatazo:\n- Kutokwa (usaha, damu) kwenye tovuti ya sindano\n- SPumba au mkono wa zabuni kwenye tovuti ya sindano",
"toaster_info_text": "Mwambie mwanamke achunguze dalili zifuatazo:\n- Kutokwa (usaha, damu) kwenye tovuti ya sindano\n- SPumba au mkono wa zabuni kwenye tovuti ya sindano",
"toaster_type": "info",
"relevance": {
@@ -674,7 +667,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Tarehe kutoa: {jadelle_removal}",
+ "text": "Tarehe kutoa: {jadelle_removal}",
"toaster_info_text": "Tarehe kutoa: {jadelle_removal}",
"toaster_type": "info",
"relevance": {
@@ -732,7 +725,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Tumia kondomu kwa miezi mitatu kuzuia ujazito",
+ "text": "Tumia kondomu kwa miezi mitatu kuzuia ujazito",
"toaster_info_text": "Tumia kondomu kwa miezi mitatu kuzuia ujazito",
"toaster_type": "info",
"relevance": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/female_family_planning_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/female_family_planning_registration.json
index a894287b41..e84f5bc518 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/female_family_planning_registration.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/female_family_planning_registration.json
@@ -18,11 +18,6 @@
"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",
@@ -128,8 +123,7 @@
"options": [
{
"key": "pregnant_option",
- "text": "Hakikisha kwamba yeye siyo mjamzito",
- "value": false
+ "text": "Hakikisha kwamba yeye siyo mjamzito"
}
]
},
@@ -265,8 +259,7 @@
"openmrs_entity_parent": "190AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_condom",
- "type": "edit_text",
- "hidden": true,
+ "type": "hidden",
"calculation": {
"rules-engine": {
"ex-rules": {
@@ -329,7 +322,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "counselling_use",
"type": "spinner",
- "hint": "Je, mteja ameshauri jinsi ya kutumia njia za uzazi wa mpango aliyochagua?",
+ "hint": "Je, mteja ameshauri jinsi ya kutumia njia za uzazi wa mpango aliyochagua?",
"values": [
"Ndiyo",
"Hapana"
@@ -360,7 +353,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "162881AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "date_picker",
- "hint": "Tarehe ya sindano iliyopita",
+ "hint": "Tarehe ya sindano iliyopita",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -428,7 +421,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_implant_nxt",
"type": "date_picker",
- "hint": "Tarehe ya kuweka kipandikizi cha miaka 3",
+ "hint": "Tarehe ya kuweka kipandikizi cha miaka 3",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -462,7 +455,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_implant_jad",
"type": "date_picker",
- "hint": "Tarehe ya kuweka vipandikizi vya miaka 5",
+ "hint": "Tarehe ya kuweka vipandikizi vya miaka 5",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -516,7 +509,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_male_ster",
"type": "date_picker",
- "hint": "Tarehe ya kufunga kizazi mwanamume",
+ "hint": "Tarehe ya kufunga kizazi mwanamume",
"max_date": "today",
"relevance": {
"rules-engine": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_counseling.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_counseling.json
new file mode 100644
index 0000000000..d447b2f1b9
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_counseling.json
@@ -0,0 +1,264 @@
+{
+ "count": "1",
+ "encounter_type": "Provide FP Counseling",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "global": {},
+ "step1": {
+ "title": "Toa Ushauri wa Uzazi wa Mpango",
+ "fields": [
+ {
+ "key": "provide_counseling_notes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provide_counseling_notes",
+ "type": "toaster_notes",
+ "text": "Toa ushauri kuhusu chaguo la uzazi wa mpango kwa kuzingatia taarifa sahihi",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": ""
+ },
+ {
+ "key": "client_counseled_with_her_partner",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_counseled_with_her_partner",
+ "type": "native_radio",
+ "label": "Je, mteja alipewa ushauri pamoja na mwenzi wake?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_counseling_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_agreed_on_fp_choice",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_agreed_on_fp_choice",
+ "type": "native_radio",
+ "label": "Je, mteja amekubaliana na chaguo la uzazi wa mpango?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ }
+ },
+ {
+ "key": "selected_fp_method_after_counseling_female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "selected_fp_method_after_counseling_female",
+ "type": "native_radio",
+ "label": "Mteja Amechagua njia gani ya uzazi wa mpango baada ya ushauri",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "pop",
+ "text": "POP",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pop"
+ },
+ {
+ "key": "coc",
+ "text": "COC",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "coc"
+ },
+ {
+ "key": "injectable",
+ "text": "Sindano",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "injectable"
+ },
+ {
+ "key": "condom",
+ "text": "Kondomu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom"
+ },
+ {
+ "key": "jadelle",
+ "text": "Kuweka Vipandikizi (Jadelle)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jadelle"
+ },
+ {
+ "key": "implanon",
+ "text": "Kuweka Vipandikizi (Implanon)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "implanon"
+ },
+ {
+ "key": "iucd",
+ "text": "IUCD",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iucd"
+ },
+ {
+ "key": "sdm",
+ "text": "SDM",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sdm"
+ },
+ {
+ "key": "lam",
+ "text": "LAM",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lam"
+ },
+ {
+ "key": "vasectomy",
+ "text": "Kufunga mirija ya uzazi (Vasectomy)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vasectomy"
+ },
+ {
+ "key": "btl",
+ "text": "BTL",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "btl"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_counseling_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "selected_fp_method_after_counseling_male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "selected_fp_method_after_counseling_male",
+ "type": "native_radio",
+ "label": "Mteja Amechagua njia gani ya uzazi wa mpango baada ya ushauri",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "condom",
+ "text": "Kondomu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom"
+ },
+ {
+ "key": "vasectomy",
+ "text": "Kufunga mirija ya uzazi (Vasectomy)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vasectomy"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_counseling_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "selected_fp_method_after_counseling",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "selected_fp_method_after_counseling",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "selected_fp_method_after_counseling_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_ecp_screening.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_ecp_screening.json
new file mode 100644
index 0000000000..5421863bed
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_ecp_screening.json
@@ -0,0 +1,251 @@
+{
+ "count": "1",
+ "encounter_type": "FP ECP Screening",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "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": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Kustahili kwa ECP",
+ "fields": [
+ {
+ "key": "provide_counseling_notes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provide_counseling_notes",
+ "type": "toaster_notes",
+ "text": "Toa ushauri wa ECP kwa mteja",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": ""
+ },
+ {
+ "key": "ecp_counseling_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ecp_counseling_provided",
+ "type": "native_radio",
+ "label": "Je, ushauri wa ECP ulitolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Inahitajika"
+ }
+ },
+ {
+ "key": "type_of_incident",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_incident",
+ "type": "native_radio",
+ "label": "Aina ya tukio",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "raped",
+ "text": "Alibakwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "raped"
+ },
+ {
+ "key": "incorrect",
+ "text": "Matumizi yasiyofaa/kupasuka/kutoka kwa kondomu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "incorrect"
+ },
+ {
+ "key": "missed_days",
+ "text": "Siku 3 au zaidi za kutotumia dozi za COC au saa 3 au zaidi za kutotumia dozi za POP",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "missed_days"
+ },
+ {
+ "key": "iucd_expelled",
+ "text": "IUCD Kutolewa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iucd_expelled"
+ },
+ {
+ "key": "missed_weeks",
+ "text": "Wiki 4 au zaidi za kutofuata matumizi ya depo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "missed_weeks"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Inahitajika"
+ }
+ },
+ {
+ "key": "specify_other_incident",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_incident",
+ "type": "edit_text",
+ "hint": "Taja tukio lingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Taja "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_eligible_for_ecp_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "when_did_incidence_occur",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "when_did_incidence_occur",
+ "type": "native_radio",
+ "label": "Tukio hilo lilitokea lini?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "1_3_days",
+ "text": "1-3 siku",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1_3_days"
+ },
+ {
+ "key": "4_5_days",
+ "text": "4-5 siku",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "4_5_days"
+ },
+ {
+ "key": "more_than_5_days",
+ "text": "Zaidi ya siku 5",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "more_than_5_days"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Inahitajika"
+ }
+ },
+ {
+ "key": "provide_ecp_incidence_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provide_ecp_incidence_prompt",
+ "type": "toaster_notes",
+ "text": "Toa ECP kwa mteja",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_eligible_for_ecp_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_to_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_to_prompt",
+ "type": "toaster_notes",
+ "text": "Mwombe mteja arudi baada ya siku 14",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_eligible_for_ecp_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "ecp_eligibility",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ecp_eligibility",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_eligible_for_ecp_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_enrollment.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_enrollment.json
new file mode 100644
index 0000000000..29e92039e2
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_enrollment.json
@@ -0,0 +1,147 @@
+
+{
+ "count": "1",
+ "encounter_type": "Family Planning Registration",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Usajili wa Uzazi wa Mpango",
+ "fields": [
+ {
+ "key": "client_used_fp_before",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_used_fp_before",
+ "type": "native_radio",
+ "label": "Je, mteja amewahi kutumia njia yoyote ya uzazi wa mpango?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ }
+ },
+ {
+ "key": "fp_registration_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_registration_number",
+ "type": "mask_edit_text",
+ "mask": "####/###",
+ "mask_hint": "1234567",
+ "allowed_chars": "0123456789",
+ "hint": "Nambari ya Usajili wa Mteja",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{4}/\\d{3})?",
+ "err": "Nambari ya usajili wa mteja inapaswa kuwa ya muundo wa (XXXX/XXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali ingiza Nambari ya Usajili wa Mteja iliyo sahihi"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Nambari ya Usajili wa Mteja iliyo sahihi"
+ }
+ },
+ {
+ "key": "client_level_education",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_level_education",
+ "type": "native_radio",
+ "label": "Kiwango cha Elimu ya Mteja",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "primary",
+ "text": "Shule ya msingi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "primary"
+ },
+ {
+ "key": "secondary",
+ "text": "Shule ya sekondari",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "secondary"
+ },
+ {
+ "key": "college_university",
+ "text": "Chuo Kikuu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "college_university"
+ },
+ {
+ "key": "no_any",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_any"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_followup_visit_method_continuation.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_followup_visit_method_continuation.json
new file mode 100644
index 0000000000..764c71784a
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_followup_visit_method_continuation.json
@@ -0,0 +1,128 @@
+{
+ "count": "1",
+ "encounter_type": "Continue with the method",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "global": {},
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Endelea na njia",
+ "fields": [
+ {
+ "key": "method_expired",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "method_expired",
+ "type": "native_radio",
+ "label": "Je, njia ya uzazi wa mpango imeisha muda wake?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ }
+ },
+ {
+ "key": "client_want_continue_fp",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_want_continue_fp",
+ "type": "native_radio",
+ "label": "Je, mteja anataka kuendelea na njia ya uzazi wa mpango?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ }
+ },
+ {
+ "key": "method_expired_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "method_expired_prompt",
+ "type": "toaster_notes",
+ "text": "Ondoa njia ya uzazi wa mpango",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_continue_with_the_method_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_followup_visit_method_satisfaction.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_followup_visit_method_satisfaction.json
new file mode 100644
index 0000000000..1111e6198b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_followup_visit_method_satisfaction.json
@@ -0,0 +1,436 @@
+{
+ "count": "1",
+ "encounter_type": "Satisfaction of FP Method",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Kuridhika na Njia ya Uzazi wa Mpango",
+ "fields": [
+ {
+ "key": "client_satisfied_with_fp_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_satisfied_with_fp_method",
+ "type": "native_radio",
+ "label": "Je, mteja ameridhika na njia ya uzazi wa mpango?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ }
+ },
+ {
+ "key": "reason_for_dissatisfaction",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_dissatisfaction",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Sababu ya kutokuridhika",
+ "hint": "Sababu ya kutokuridhika",
+ "options": [
+ {
+ "key": "side_effects",
+ "text": "Maudhi madogo madogo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "side_effects"
+ },
+ {
+ "key": "complication",
+ "text": "Matatizo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "complication"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu za kutokuridhika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "side_effects",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "side_effects",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Maudhi madogo madogo",
+ "hint": "Maudhi madogo madogo",
+ "options": [
+ {
+ "key": "heavy_bleeding",
+ "text": "Kutokwa damu kwa wingi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heavy_bleeding"
+ },
+ {
+ "key": "severe_headache",
+ "text": "Maumivu makali ya kichwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_headache"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Taja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "side_effects_specify_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "side_effects_specify_other",
+ "type": "edit_text",
+ "hint": "Taja Maudhi madogo madogo",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali (Taja)"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "complication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "complication",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Madhara",
+ "hint": "Madhara",
+ "options": [
+ {
+ "key": "severe_lower",
+ "text": "Maumivu makali ya Tumbo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_lower"
+ },
+ {
+ "key": "severe_chest",
+ "text": "Maumivu makali ya kifua",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_chest"
+ },
+ {
+ "key": "pregnancy",
+ "text": "Ujauzito",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua madhara"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "complication_specify_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "complication_specify_other",
+ "type": "edit_text",
+ "hint": "Taja madhara",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Taja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "specify_other_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_method",
+ "type": "edit_text",
+ "hint": "Taja hali nyingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Taja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dissatisfaction_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dissatisfaction_prompt",
+ "type": "toaster_notes",
+ "text": "Tenda kulingana na Mwongozo wa Uendeshaji (SOP)",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_want_to_switch_stop",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_want_to_switch_stop",
+ "type": "native_radio",
+ "label": "Je, mteja anataka kubadilisha au kuacha",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "switch",
+ "text": "Kubadilisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "switch"
+ },
+ {
+ "key": "stop",
+ "text": "Kusitisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stop"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Taja"
+ }
+ },
+ {
+ "key": "client_want_to_switch_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_want_to_switch_prompt",
+ "type": "toaster_notes",
+ "text": "Toa ushauri wa uzazi wa mpango kwa ajili ya chaguo lililobainika",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "jadelle_removed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jadelle_removed",
+ "type": "native_radio",
+ "label": "Kipandikizi(Jadelle) imeondolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "implanon_removed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "implanon_removed",
+ "type": "native_radio",
+ "label": "Kipandikizi(Implanon) imeondolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "iud_removed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iud_removed",
+ "type": "native_radio",
+ "label": "IUD imeondolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_followup_visit_vitals.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_followup_visit_vitals.json
new file mode 100644
index 0000000000..a27ab0e25f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_followup_visit_vitals.json
@@ -0,0 +1,230 @@
+{
+ "count": "1",
+ "encounter_type": "Vitals",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Vipimo muhimu",
+ "fields": [
+ {
+ "key": "weight",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "entity_id": "",
+ "type": "edit_text",
+ "hint": "Uzito (KG)",
+ "edit_type": "number",
+ "look_up": "true",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza uzito"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Uzito lazima uwe sawasawa au zaidi ya 20 (KG)"
+ },
+ "v_min": {
+ "value": "20",
+ "err": "Uzito lazima uwe sawasawa au zaidi ya 20kg (KG)"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Uzito lazima uwe sawasawa au chini ya 300 (KG)"
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Shinikizo la Damu)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza thamani ya systolic"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Namba ya systolic lazima iwe sawasawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Namba ya systolic lazima iwe sawasawa au chini ya 320"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba ya systolic (Shinikizo la Damu)"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Shinikizo la Damu)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba ya diastolic"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Namba ya diastolic lazima iwe sawasawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Namba ya diastolic lazima iwe sawasawa au chini ya 200"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba ya diastolic (Shinikizo la Damu)"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "Namba ya diastolic lazima iwe chini ya namba ya systolic"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya Shinikizo la damu ya juu kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_vitals_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Bainisha sababu za Shinikizo la damu ya chini na udhibiti kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_vitals_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "last_normal_menstruation_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_normal_menstruation_period",
+ "type": "date_picker",
+ "min_date": "today-5y",
+ "max_date": "today",
+ "expanded": false,
+ "hint": "Tarehe ya Mwisho ya Hedhi ya Kawaida (LNMP)",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "client_have_any_complain",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_have_any_complain",
+ "type": "native_radio",
+ "label": "Je, mteja ana malalamiko yoyote?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ }
+ },
+ {
+ "key": "specify_other_complain",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_complain",
+ "type": "edit_text",
+ "hint": "Taja malalamiko mengine ya wateja",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali (Taja)"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_vitals_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_gynecological_history.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_gynecological_history.json
new file mode 100644
index 0000000000..5733b97120
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_gynecological_history.json
@@ -0,0 +1,199 @@
+{
+ "count": "1",
+ "encounter_type": "Gynecological history",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Historia ya uzazi",
+ "fields": [
+ {
+ "key": "menarche",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "menarche",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Hedhi",
+ "v_min": {
+ "value": "9",
+ "err": "Umri wa kuanza kutokwa na damu ya hedhi lazima uwe sawa au zaidi ya miaka 9"
+ },
+ "v_max": {
+ "value": "16",
+ "err": "Umri wa kuanza kutokwa na damu ya hedhi lazima uwe sawa au chini ya miaka 17"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza umri wa kuanza kutokwa na damu ya hedhi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja"
+ }
+ },
+ {
+ "key": "lnmp",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lnmp",
+ "type": "date_picker",
+ "expanded": false,
+ "hint": "L.N.M.P",
+ "max_date": "today",
+ "min_date": "today-50w",
+ "v_required": {
+ "value": "true",
+ "err": "Please select date"
+ }
+ },
+ {
+ "key": "mp_duration",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mp_duration",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Muda wa Hedhi",
+ "v_min": {
+ "value": "2",
+ "err": "Muda wa Mzunguko wa Hedhi lazima uwe sawa au zaidi ya siku 2"
+ },
+ "v_max": {
+ "value": "7",
+ "err": "Muda wa Mzunguko wa Hedhi lazima uwe sawa au chini ya siku 7"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza muda wa mzunguko wa hedhi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja"
+ }
+ },
+ {
+ "key": "blood_loss",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_loss",
+ "type": "native_radio",
+ "label": "Upotevu wa damu",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "heavy",
+ "text": "Sio Kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heavy"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja"
+ }
+ },
+ {
+ "key": "cycle_length",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cycle_length",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Urefu wa mzunguko",
+ "v_min": {
+ "value": "23",
+ "err": "Urefu wa mzunguko lazima uwe sawa au zaidi ya siku 23"
+ },
+ "v_max": {
+ "value": "35",
+ "err": "Urefu wa mzunguko lazima uwe sawa au chini ya siku 35"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza urefu wa mzunguko"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja"
+ }
+ },
+ {
+ "key": "dysmenorrhoea",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dysmenorrhoea",
+ "type": "native_radio",
+ "label": "Maumivu wakati wa Hedhi (Dysmenorrhoea)",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Chagua"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_medical_eligibility_criteria.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_medical_eligibility_criteria.json
new file mode 100644
index 0000000000..4215f31b16
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_medical_eligibility_criteria.json
@@ -0,0 +1,201 @@
+{
+ "count": "1",
+ "encounter_type": "Medical eligibility criteria",
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Vigezo vya kustahiki matibabu",
+ "fields": [
+ {
+ "key": "client_category_after_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_category_after_screening",
+ "type": "native_radio",
+ "label": "Chagua kategoria ya mteja baada ya kukagua",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "category_1",
+ "text": "Kategoria 1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_1"
+ },
+ {
+ "key": "category_2",
+ "text": "Kategoria 2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_2"
+ },
+ {
+ "key": "category_3",
+ "text": "Kategoria 3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_3"
+ },
+ {
+ "key": "category_4",
+ "text": "Kategoria 4",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_4"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ }
+ },
+ {
+ "key": "category_1_notes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_1_notes",
+ "type": "toaster_notes",
+ "text": "Toa njia katika hali yoyote",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "category_2_notes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_2_notes",
+ "type": "toaster_notes",
+ "text": "Kwa ujumla kutumia; faida ni kubwa kuliko hatari",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "category_3_notes_first",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_3_notes_first",
+ "type": "toaster_notes",
+ "text": "Kwa ujumla usitumie; hatari ni kubwa kuliko faida",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "category_3_notes_second",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_3_notes_second",
+ "type": "toaster_notes",
+ "text": "Mteja hafai kwa njia ya uzazi wa mpango, toa ushauri kuhusu njia nyingine",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "category_4_notes_first",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_4_notes_first",
+ "type": "toaster_notes",
+ "text": "Njia haipaswi kutumika",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "category_4_notes_second",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_4_notes_second",
+ "type": "toaster_notes",
+ "text": "Mteja hafai kwa njia ya uzazi wa mpango, toa ushauri kuhusu njia nyingine",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_medical_history.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_medical_history.json
new file mode 100644
index 0000000000..16e524b0a1
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_medical_history.json
@@ -0,0 +1,198 @@
+{
+ "count": "1",
+ "encounter_type": "Medical History",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Historia ya Matibabu",
+ "fields": [
+ {
+ "key": "client_medical_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_medical_history",
+ "openmrs_data_type": "select one",
+ "combine_checkbox_option_values": "true",
+ "type": "check_box",
+ "label": "Je, mteja ana historia ya matibabu yoyote kati ya yafuatayo?",
+ "hint": "Je, mteja ana historia ya matibabu yoyote kati ya yafuatayo?",
+ "options": [
+ {
+ "key": "headache",
+ "text": "Maumivu ya Kichwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "headache"
+ },
+ {
+ "key": "jaundice",
+ "text": "Ngozi ya Manjano (Jaundice)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jaundice"
+ },
+ {
+ "key": "heart_disease",
+ "text": "Ugonjwa wa Moyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heart_disease"
+ },
+ {
+ "key": "high_blood_pressure",
+ "text": "Shinikizo la Damu Kubwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "high_blood_pressure"
+ },
+ {
+ "key": "diabetes",
+ "text": "Kisukari",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "diabetes"
+ },
+ {
+ "key": "breast_lump",
+ "text": "Buje la matiti",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breast_lump"
+ },
+ {
+ "key": "severe_varicose_veins",
+ "text": "Mshipa wa Varicose Ulivyozorota",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_varicose_veins"
+ },
+ {
+ "key": "anti_conversant",
+ "text": "Madhara kwa conversant",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anti_conversant"
+ },
+ {
+ "key": "ant_tb_drugs",
+ "text": "Madhara kwa dawa za TB",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ant_tb_drugs"
+ },
+ {
+ "key": "on_art",
+ "text": "Anatumia ARV",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "on_art"
+ },
+ {
+ "key": "other",
+ "text": "Hali nyingine yoyote mbaya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "exclusive": [
+ "none"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua historia ya matibabu ya mteja"
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Weka CTC ID",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Nambari ya CTC inapaswa kuwa ya muundo (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka Nambari sahihi ya CTC"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka Nambari sahihi ya CTC"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "specify_other_condition",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_condition",
+ "type": "edit_text",
+ "hint": "Bainisha hali nyingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_history_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_obstetric_history.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_obstetric_history.json
new file mode 100644
index 0000000000..680e35d16c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_obstetric_history.json
@@ -0,0 +1,454 @@
+{
+ "count": "1",
+ "encounter_type": "Obstestric History",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Historia ya Ujauzito",
+ "fields": [
+ {
+ "key": "number_of_pregnancies",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_pregnancies",
+ "hint": "Idadi jumla ya Ujauzito",
+ "type": "edit_text",
+ "v_min": {
+ "value": "0",
+ "err": "Namba ya Ujauzito lazima iwe sawa au kubwa kuliko 0"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Namba ya Ujauzito lazima iwe sawa au chini ya 20"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza thamani ya ujauzito"
+ }
+ },
+ {
+ "key": "number_of_miscarriages",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_miscarriages",
+ "hint": "Idadi ya Mimba Zilizoharibika",
+ "type": "edit_text",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Namba ya Mimba Zilizoharibika lazima iwe sawa au kubwa kuliko 0"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Namba ya Mimba Zilizoharibika lazima iwe sawa au chini ya 20"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza thamani ya mimba zilizoharibika"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(., step1:number_of_pregnancies)",
+ "err": "Jumla ya thamani ya mimba zilizoharibika lazima iwe chini ya jumla ya thamani ya ujauzito"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_still_births",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_still_births",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Watoto Waliokufa Kabla ya Kuzaliwa",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Taja"
+ },
+ "v_max_length": {
+ "value": "2",
+ "is_fixed_size": "true",
+ "err": "Tafadhali ingiza idadi sahihi ya watoto waliofariki kabla ya kuzaliwa"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(., step1:number_of_pregnancies)",
+ "err": "Idadi jumla ya watoto waliokufa kabla ya kuzaliwa lazima iwe chini au sawa na idadi jumla ya ujauzito"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+
+ },
+ {
+ "key": "number_live_births",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_live_births",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Watoto Walioko Hai Waliozaliwa",
+ "v_min": {
+ "value": "0",
+ "err": "Namba ya Watoto Waliozaliwa Hai lazima iwe sawa au kubwa kuliko 0"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Namba ya Watoto Waliozaliwa Hai lazima iwe sawa au chini ya 20"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba ya watoto waliozaliwa hai"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Taja"
+ },
+ "v_max_length": {
+ "value": "2",
+ "is_fixed_size": "true",
+ "err": "Tafadhali ingiza idadi sahihi ya watoto waliozaliwa hai"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(., step1:number_of_pregnancies)",
+ "err": "Namba jumla ya watoto waliozaliwa hai lazima iwe chini au sawa na namba jumla ya ujauzito"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_children_alive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_children_alive",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Watoto Wanaoishi",
+ "v_min": {
+ "value": "0",
+ "err": "Namba ya watoto walio hai lazima iwe sawa au kubwa kuliko 0."
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Namba ya watoto walio hai lazima iwe sawa au chini ya 20.\""
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza thamani ya watoto walio hai"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Taja"
+ },
+ "v_max_length": {
+ "value": "2",
+ "is_fixed_size": "true",
+ "err": "Tafadhali ingiza idadi sahihi ya watoto walio hai"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(., step1:number_of_pregnancies)",
+ "err": "Idai jumla ya watoto walio hai lazima iwe chini au sawa na idadi jumla ya ujauzito."
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "date_last_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "date_last_delivery",
+ "type": "date_picker",
+ "expanded": false,
+ "max_date": "today",
+ "hint": "Tarehe ya Kujifungua Mara ya mwisho",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Chagua"
+ },
+
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "mode_of_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mode_of_delivery",
+ "type": "native_radio",
+ "label": "Njia ya Kujifungua",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "svd",
+ "text": "SVD",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "svd"
+ },
+ {
+ "key": "cs",
+ "text": "CS",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cs"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "place_of_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_of_delivery",
+ "type": "native_radio",
+ "label": "Mahali pa kujifungulia",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "facility",
+ "text": "Kituoni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facility"
+ },
+ {
+ "key": "home_delivery",
+ "text": "Kujifungulia Nyumbani",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "home_delivery"
+ },
+ {
+ "key": "birth_before_arrival",
+ "text": "Kujifungua Kabla ya Kufika Huduma ya Matibabu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "birth_before_arrival"
+ },
+ {
+ "key": "tba",
+ "text": "TBA",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tba"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "outcome",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outcome",
+ "type": "native_radio",
+ "label": "Outcome",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "alive",
+ "text": "Hai",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "alive"
+ },
+ {
+ "key": "death",
+ "text": "Kifo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "death"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "type_of_child_death",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_child_death",
+ "type": "native_radio",
+ "label": "Type of death",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "fsb",
+ "text": "FSB",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fsb"
+ },
+ {
+ "key": "msb",
+ "text": "MSB",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "msb"
+ },
+ {
+ "key": "early_neonatal_death",
+ "text": "Early neonatal death",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "early_neonatal_death"
+ },
+ {
+ "key": "late_neonatal_death",
+ "text": "Late neonatal death",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "late_neonatal_death"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "is_client_breastfeeding",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_client_breastfeeding",
+ "type": "native_radio",
+ "label": "Je, mteja ananyonyesha?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_past_obstetric_history.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_past_obstetric_history.json
new file mode 100644
index 0000000000..edbf8fe06f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_past_obstetric_history.json
@@ -0,0 +1,65 @@
+{
+ "count": "1",
+ "encounter_type": "Past Obstetric History",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Historia ya Ujauzito wa Zamani",
+ "fields": [
+ {
+ "key": "past_obstetric_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "past_obstetric_history",
+ "text": "Historia ya Ujauzito wa Zamani",
+ "type": "expansion_panel",
+ "content_form": "fp_method_screening_past_obstetric_history_sub_form",
+ "container": "anc_test"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_physical_examination.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_physical_examination.json
new file mode 100644
index 0000000000..fcf2370bc8
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_physical_examination.json
@@ -0,0 +1,376 @@
+{
+ "count": "1",
+ "encounter_type": "Physical examination",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Uchunguzi wa kimwili",
+ "fields": [
+ {
+ "key": "weight",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "entity_id": "",
+ "type": "edit_text",
+ "hint": "Uzito (KG)",
+ "edit_type": "number",
+ "look_up": "true",
+ "v_min": {
+ "value": "20",
+ "err": "Uzito lazima uwe sawasawa au zaidi ya 20 (KG)"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Uzito lazima uwe sawasawa au chini ya 300 (KG)"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza uzito"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza uzito (KG)"
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Shinikizo la Damu)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza thamani ya systolic"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Thamani ya systolic lazima iwe sawasawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Thamani ya systolic lazima iwe sawasawa au chini ya 320"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza thamani ya systolic"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Shinikizo la Damu)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza thamani ya diastolic"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Thamani ya diastolic lazima iwe sawasawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Thamani ya diastolic lazima iwe sawasawa au chini ya 200"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza thamani ya diastolic"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "Thamani ya diastolic lazima iwe chini ya thamani ya systolic"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya Shinikizo la damu ya juu kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_physical_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Bainisha sababu za Shinikizo la damu ya chini na udhibiti kulingana na muongozo kutoka Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_physical_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "anaemia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anaemia",
+ "type": "native_radio",
+ "label": "Anaemia",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "jaundice",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jaundice",
+ "type": "native_radio",
+ "label": "Homa ya manjano",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "thyroid_enlarged",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "thyroid_enlarged",
+ "type": "native_radio",
+ "label": "Tezi kuongezeka",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "chest_movement",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chest_movement",
+ "type": "native_radio",
+ "label": "Mwenendo wa Kifua",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "symmetrical",
+ "text": "Simetrikali",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "symmetrical"
+ },
+ {
+ "key": "asymmetric",
+ "text": "Isiyo simetriki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "asymmetric"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "breast_condition",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breast_condition",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Hali ya Matiti",
+ "hint": "Hali ya Matiti",
+ "options": [
+ {
+ "key": "lamp",
+ "text": "Buje",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lamp"
+ },
+ {
+ "key": "sore",
+ "text": "Kidonda",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sore"
+ },
+ {
+ "key": "discoloration",
+ "text": "Kubadilika rangi ya ngozi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "discoloration"
+ },
+ {
+ "key": "blood_discharge",
+ "text": "Chuchu kutokwa damu/usaha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_discharge"
+ },
+ {
+ "key": "absess",
+ "text": "Jipu katika chuchu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "absess"
+ },
+ {
+ "key": "other",
+ "text": "Mengineyo (Taja)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "exclusive": [
+ "none"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua hali ya matiti"
+ }
+ },
+ {
+ "key": "specify_other_condition",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_condition",
+ "type": "edit_text",
+ "hint": "Taja sababu nyingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Taja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_physical_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "breast_condition_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breast_condition_prompt",
+ "type": "toaster_notes",
+ "text": "Rejelea mteja kwa usimamizi zaidi",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_physical_examination_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_vaginal_examination.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_vaginal_examination.json
new file mode 100644
index 0000000000..6dcbb2fa63
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_method_screening_vaginal_examination.json
@@ -0,0 +1,281 @@
+{
+ "count": "1",
+ "encounter_type": "Vaginal examination",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Uchunguzi wa uke",
+ "fields": [
+ {
+ "key": "speculum_exam_label",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "speculum_exam_label",
+ "type": "label",
+ "text": "Uchunguzi wa speculum",
+ "hint_on_text": false,
+ "text_color": "#2980b9",
+ "text_size": "7sp"
+ },
+ {
+ "key": "cervix",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cervix",
+ "type": "native_radio",
+ "label": "Mlango wa kizazi",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "Sio kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "discharge",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "discharge",
+ "type": "native_radio",
+ "label": "Utokaji wa damu",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "growth",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "growth",
+ "type": "native_radio",
+ "label": "Ukuaji",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "speculum_exam_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "speculum_exam_prompt",
+ "type": "toaster_notes",
+ "text": "Dhibiti kulingana na SOP",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_vaginal_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "digital_exam",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "digital_exam",
+ "type": "label",
+ "text": "Uchunguzi wa kidijiti",
+ "hint_on_text": false,
+ "text_color": "#2980b9",
+ "text_size": "7sp"
+ },
+ {
+ "key": "uterine_size",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "uterine_size",
+ "type": "native_radio",
+ "label": "Ukubwa wa mfuko wa kizazi",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "Sio kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "uterine_position",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "uterine_position",
+ "type": "native_radio",
+ "label": "Mahali pa kizazi",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "midline",
+ "text": "Katikati",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "midline"
+ },
+ {
+ "key": "retroverted",
+ "text": "Kupinduliwa Kinyume na Kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "retroverted"
+ },
+ {
+ "key": "anteverted",
+ "text": "Kuelekezwa Kinyume na Kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anteverted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "adnexa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "adnexa",
+ "type": "native_radio",
+ "label": "Sehemu za Kando za Kizazi (Adnexa)",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "painful",
+ "text": "Kuna maumivu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "painful"
+ },
+ {
+ "key": "painless",
+ "text": "Bila maumivu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "painless"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "digital_exam_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "digital_exam_prompt",
+ "type": "toaster_notes",
+ "text": "Dhibiti kulingana na SOP",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_vaginal_examination_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_other_services_offered.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_other_services_offered.json
new file mode 100644
index 0000000000..1055d57a27
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_other_services_offered.json
@@ -0,0 +1,94 @@
+{
+ "count": "1",
+ "encounter_type": "Other services offered",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Huduma zingine zilizotolewa",
+ "fields": [
+ {
+ "key": "other_services_offered",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_services_offered",
+ "openmrs_data_type": "select one",
+ "combine_checkbox_option_values": "true",
+ "type": "check_box",
+ "label": "Huduma zingine zilizotolewa",
+ "hint": "Huduma zingine zilizotolewa",
+ "options": [
+ {
+ "key": "hts",
+ "text": "HTS",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hts"
+ },
+ {
+ "key": "cervical_cancer",
+ "text": "Saratani ya mlango wa kizazi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cervical_cancer"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "exclusive": [
+ "no"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ }
+
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_other_services_offered_cervical_cancer.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_other_services_offered_cervical_cancer.json
new file mode 100644
index 0000000000..ecbd7e166c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_other_services_offered_cervical_cancer.json
@@ -0,0 +1,179 @@
+{
+ "count": "1",
+ "encounter_type": "Cervical Cancer",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Mlango wa kizazi",
+ "fields": [
+ {
+ "key": "counseling_cervical_cancer_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "counseling_cervical_cancer_provided",
+ "type": "native_radio",
+ "label": "Je, ushauri kuhusu saratani ya mlango wa kizazi ulitolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "client_eligible_for_via",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_eligible_for_via",
+ "type": "native_radio",
+ "label": "Je, mteja anastahili uchunguzi kwa kutumia SIKI?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "via_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "via_results",
+ "type": "native_radio",
+ "label": "Majibu ya uchunguzi baada ya kutumia SIKI",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_cervical_cancer_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_eligible_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_eligible_prompt",
+ "type": "toaster_notes",
+ "text": "Mpe mteja kwa usimamizi zaidi",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_cervical_cancer_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "via_results_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "via_results_prompt",
+ "type": "toaster_notes",
+ "text": "Dhibiti kulingana na SOP",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_cervical_cancer_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_other_services_offered_hts.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_other_services_offered_hts.json
new file mode 100644
index 0000000000..436b5c2c47
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_other_services_offered_hts.json
@@ -0,0 +1,281 @@
+{
+ "count": "1",
+ "encounter_type": "HTS",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "global": {},
+ "step1": {
+ "title": "HTS",
+ "fields": [
+ {
+ "key": "client_hiv_test_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_hiv_test_results",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha VVU cha mteja",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "client_referred_to_ctc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_referred_to_ctc",
+ "type": "native_radio",
+ "label": "Je, Mteja amepewa rufaa kwenda kliniki ya huduma ya tiba na matunzo ya VVU?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Nambari ya CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Nambari ya CTC inapaswa kuwa ya muundo (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza nambari sahihi ya ctc"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza nambari sahihi ya ctc"
+ },
+ "relevance": {
+ "step1:client_referred_to_ctc": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "partner_tested_for_hiv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_tested_for_hiv",
+ "type": "native_radio",
+ "label": "Je, mwenza wa mteja alipimwa kipimo cha VVU?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_hiv_test_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv_test_results",
+ "type": "native_radio",
+ "label": "Matokeo ya kipimo cha VVU cha Mwenza",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_referred_to_ctc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_referred_to_ctc",
+ "type": "native_radio",
+ "label": "Je, Mwenza Amepewa rufaa kwenda kliniki ya huduma ya tiba na matunzo ya VVU?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Nambari ya CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Nambari ya CTC inapaswa kuwa ya muundo (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza nambari sahihi ya ctc"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza nambari sahihi ya ctc"
+ },
+ "relevance": {
+ "step1:partner_referred_to_ctc": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_point_of_service_delivery.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_point_of_service_delivery.json
new file mode 100644
index 0000000000..cef6af70c6
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_point_of_service_delivery.json
@@ -0,0 +1,177 @@
+{
+ "count": "1",
+ "encounter_type": "Point of Service Delivery",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Rekodi Sehemu Huduma Ilipotolewa",
+ "fields": [
+ {
+ "key": "point_of_service_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "point_of_service_delivery",
+ "type": "native_radio",
+ "label": "Sehemu Huduma Ilipotolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "facility",
+ "text": "kituoni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facility"
+ },
+ {
+ "key": "outreach",
+ "text": "Njia ya mkoba(outreach)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "service_delivery_point_facility",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_delivery_point_facility",
+ "type": "native_radio",
+ "label": "Chagua eneo la utoaji wa huduma",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "rch",
+ "text": "RCH",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rch"
+ },
+ {
+ "key": "ctc",
+ "text": "CTC",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_point_of_service_delivery_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "service_delivery_point_outreach",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_delivery_point_outreach",
+ "type": "native_radio",
+ "label": "Chagua eneo la utoaji wa huduma",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "static",
+ "text": "Sehemu moja ya msingi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "static"
+ },
+ {
+ "key": "community",
+ "text": "Jumuiya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_point_of_service_delivery_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "family_planning_education_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "family_planning_education_provided",
+ "type": "native_radio",
+ "label": "Je, elimu ya afya ya uzazi wa mpango ilitolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_provision_of_ecp.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_provision_of_ecp.json
new file mode 100644
index 0000000000..23dd8b12db
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_provision_of_ecp.json
@@ -0,0 +1,127 @@
+{
+ "count": "1",
+ "encounter_type": "FP ECP Provision",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "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": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Toa ECP",
+ "fields": [
+ {
+ "key": "was_ecp_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "was_ecp_provided",
+ "type": "native_radio",
+ "label": "Je, ECP ilikutolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Inahitajika"
+ }
+ },
+ {
+ "key": "type_of_ecp_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_ecp_provided",
+ "type": "native_radio",
+ "label": "Aina gani ya ECP iliyotolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "coc",
+ "text": "COC",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "coc"
+ },
+ {
+ "key": "pop",
+ "text": "POP",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pop"
+ },
+ {
+ "key": "postinor",
+ "text": "Postinor 2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "postinor"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Inahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_ecp_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_provision_of_method.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_provision_of_method.json
new file mode 100644
index 0000000000..f4c2fbde5d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_provision_of_method.json
@@ -0,0 +1,614 @@
+{
+ "count": "1",
+ "encounter_type": "Provide FP method",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "global": {},
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Toa njia ya FP",
+ "fields": [
+ {
+ "key": "pop",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pop",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya mizunguko ya Vidonge vya Uzazi wa Mpango (POP)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Namba ya POP lazima iwe sawasawa au chini ya 50"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "coc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "coc",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya mizunguko ya Vidonge vya Uzazi wa Mpango (COC)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Namba ya COC lazima iwe sawasawa au chini ya 50"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "injection_administered",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "injection_administered",
+ "type": "native_radio",
+ "label": "Sindano imetolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_provided_condom",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_provided_condom",
+ "type": "native_radio",
+ "label": "Je, mteja alipewa kondomu?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ }
+ },
+ {
+ "key": "type_of_condom_collected",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_condom_collected",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Chagua aina ya kondomu iliyotolewa",
+ "hint": "Chagua aina ya kondomu iliyotolewa",
+ "options": [
+ {
+ "key": "male",
+ "text": "Mwanaume",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male"
+ },
+ {
+ "key": "female",
+ "text": "Mwanamke",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua aina ya kondomu iliyotolewa"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_male_condoms_collected",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_male_condoms_collected",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Taja idadi (Mwanaume)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_female_condoms_collected",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_female_condoms_collected",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Taja idadi (Mwanamke)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "jadelle_inserted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jadelle_inserted",
+ "type": "native_radio",
+ "label": "Jadelle imepandikizwa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "implanon_inserted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "implanon_inserted",
+ "type": "native_radio",
+ "label": "Implanon imepandikizwa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "iucd_inserted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iucd_inserted",
+ "type": "native_radio",
+ "label": "IUCD imepandikizwa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "cycle_beads_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cycle_beads_provided",
+ "type": "native_radio",
+ "label": "Mzunguko wa shanga umetolewa (SDM)?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_counseled_on_lam",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_counseled_on_lam",
+ "type": "native_radio",
+ "label": "Je, mteja amefundishwa kuhusu vigezo vya LAM?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "vasectomy",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vasectomy",
+ "type": "native_radio",
+ "label": "Je, utaratibu wa Vasectomy umefanyika?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "btl",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "btl",
+ "type": "native_radio",
+ "label": "Je, utaratibu wa BTL umefanyika?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "post_instruction_fp_method_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "post_instruction_fp_method_provided",
+ "type": "native_radio",
+ "label": "Je, maelekezo ya baada ya utoaji yalitolewa kuhusu njia ya uzazi wa mpango iliyotolewa?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Chagua"
+ }
+ },
+ {
+ "key": "next_appointment_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "next_appointment_date",
+ "type": "date_picker",
+ "min_date": "today",
+ "max_date": "today+5y",
+ "expanded": false,
+ "hint": "Chagua tarehe ya miadi",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Chagua"
+ }
+ },
+ {
+ "key": "reasons_for_not_providing_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_not_providing_method",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Sababu za kutokutoa njia",
+ "hint": "Sababu za kutokutoa njia",
+ "options": [
+ {
+ "key": "out_of_stock",
+ "text": "Hakuna bidhaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_stock"
+ },
+ {
+ "key": "client_changed_mind",
+ "text": "Mteja alibadilisha mawazo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_changed_mind"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu za kutokutoa njia"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "specify_other_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_method",
+ "type": "edit_text",
+ "hint": "Taja sababu nyingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Taja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "counsel_for_other_methods",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "counsel_for_other_methods",
+ "type": "toaster_notes",
+ "text": "Toa ushauri kwa njia nyingine za uzazi wa mpango",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_fp_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_fp_method",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_refill_condom.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_refill_condom.json
new file mode 100644
index 0000000000..fe3ff64582
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_refill_condom.json
@@ -0,0 +1,124 @@
+{
+ "count": "1",
+ "encounter_type": "Refill pills/condom",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Jaza dawa/kondomu",
+ "fields": [
+ {
+ "key": "condom_refilled",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_refilled",
+ "openmrs_data_type": "select one",
+ "combine_checkbox_option_values": "true",
+ "type": "check_box",
+ "label": "Kondomu",
+ "hint": "Kondomu",
+ "options": [
+ {
+ "key": "male",
+ "text": "Mwanaume",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male"
+ },
+ {
+ "key": "female",
+ "text": "Mwanamke",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua aina ya kondomu itakayojazwa"
+ }
+ },
+ {
+ "key": "number_male_condoms_refilled",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_male_condoms_refilled",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Taja idadi (Mwanaume)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_refill_condom_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_female_condoms_refilled",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_female_condoms_refilled",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Taja idadi (Mwanamke)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_refill_condom_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/fp_set_appointment_date.json b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_set_appointment_date.json
new file mode 100644
index 0000000000..1f832efcce
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/fp_set_appointment_date.json
@@ -0,0 +1,70 @@
+{
+ "count": "1",
+ "encounter_type": "Set appointment date",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Weka tarehe ya miadi",
+ "fields": [
+ {
+ "key": "next_appointment_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "next_appointment_date",
+ "type": "date_picker",
+ "min_date": "today",
+ "max_date": "today+5y",
+ "expanded": false,
+ "hint": "Chagua tarehe ya miadi",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hei_arv_prescription_high_or_low_risk_infant.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_arv_prescription_high_or_low_risk_infant.json
new file mode 100644
index 0000000000..eddc8626cf
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_arv_prescription_high_or_low_risk_infant.json
@@ -0,0 +1,196 @@
+{
+ "count": "1",
+ "encounter_type": "HEI ARV prophylaxis for low risk infants",
+ "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"
+ },
+ "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": "Maagizo ya dawa za ARV",
+ "fields": [
+ {
+ "key": "prompt_for_nvp_syrup",
+ "type": "toaster_notes",
+ "text": "Tafadhali mpatie Mtoto NVP Syrup",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "provided_nvp_syrup",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_nvp_syrup",
+ "type": "native_radio",
+ "label": "Je, Mtoto amepatiwa NVP Syrup?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ }
+ },
+ {
+ "key": "number_of_nvp_days_dispensed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_nvp_days_dispensed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Siku Iliyotolewa",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi ya siku iliyotolewa"
+ },
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba halali"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Idadi ya siku iliyotolewa inatakiwa iwe zaidi ya 0"
+ },
+ "v_max": {
+ "value": "180",
+ "err": "Idadi ya siku iliyotolewa inatakiwa iwe sawa na au chini ya 180"
+ },
+ "relevance": {
+ "step1:provided_nvp_syrup": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_nvp_syrup",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_nvp_syrup",
+ "type": "native_radio",
+ "label": "Tafadhali bainisha sababu",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "out_of_stock",
+ "text": "Dawa zimekwisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_stock"
+ },
+ {
+ "key": "medication_expired",
+ "text": "Dawa zimekwisha muda wa matumizi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_expired"
+ },
+ {
+ "key": "home_delivery",
+ "text": "Amejifungua akiwa nyumbani",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "home_delivery"
+ },
+ {
+ "key": "other",
+ "text": "Nyingine (Bainisha)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:provided_nvp_syrup": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_providing_nvp_syrup",
+ "type": "edit_text",
+ "hint": "Tafadhali bainisha sababu zingine",
+ "openmrs_entity_id": "other_reason_for_not_providing_nvp_syrup",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali bainisha sababu zingine"
+ },
+ "relevance": {
+ "step1:reason_for_not_providing_nvp_syrup": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "type": "hidden"
+ },
+ {
+ "key": "prophylaxis_arv_for_high_and_low_risk_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prophylaxis_arv_for_high_and_low_risk_given",
+ "type": "hidden",
+ "value": "true"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hei_arv_prescription_high_risk_infant.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_arv_prescription_high_risk_infant.json
new file mode 100644
index 0000000000..3eb623567c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_arv_prescription_high_risk_infant.json
@@ -0,0 +1,243 @@
+{
+ "count": "1",
+ "encounter_type": "HEI ARV prophylaxis for high risk infants",
+ "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"
+ },
+ "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": "Maagizo ya dawa za ARV",
+ "fields": [
+ {
+ "key": "prompt_for_azt_nvp_syrup",
+ "type": "toaster_notes",
+ "text": "Tafadhali mpatie Mtoto AZT+3TC+NVP Syrup",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "provided_azt_nvp_syrup",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_azt_nvp_syrup",
+ "type": "native_radio",
+ "label": "Je, Mtoto amepatiwa AZT+3TC+NVP Syrup",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ }
+ },
+ {
+ "key": "provided_other_combinations",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_other_combinations",
+ "type": "native_radio",
+ "label": "Je Mtoto amepatisha mchanganyiko mwingine wa dawa?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:provided_azt_nvp_syrup": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "specify_the_combinations",
+ "type": "edit_text",
+ "hint": "Tafadhali bainisha mchanganyiko mwingine wa dawa",
+ "openmrs_entity_id": "specify_the_combinations",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please specify the combinations"
+ },
+ "relevance": {
+ "step1:provided_other_combinations": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "number_of_azt_nvp_days_dispensed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_azt_nvp_days_dispensed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Siku Iliyotolewa",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi ya siku iliyotolewa"
+ },
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba halali"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Idadi ya siku iliyotolewa inatakiwa iwe zaidi ya 0"
+ },
+ "v_max": {
+ "value": "180",
+ "err": "Idadi ya siku iliyotolewa inatakiwa iwe sawa na au chini ya 180"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_arv_prescription_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_other_combination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_other_combination",
+ "type": "native_radio",
+ "label": "Tafadhali bainisha sababu",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "out_of_stock",
+ "text": "Dawa zimekwisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_stock"
+ },
+ {
+ "key": "medication_expired",
+ "text": "Muda wa matumizi wa dawa umeisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_expired"
+ },
+ {
+ "key": "other",
+ "text": "Nyingine (Bainisha)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:provided_other_combinations": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_providing_other_combination",
+ "type": "edit_text",
+ "hint": "Tafadhali bainisha sababu nyingine",
+ "openmrs_entity_id": "other_reason_for_not_providing_other_combination",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali bainisha sababu nyingine"
+ },
+ "relevance": {
+ "step1:reason_for_not_providing_other_combination": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "type": "hidden"
+ },
+ {
+ "key": "prophylaxis_arv_for_high_risk_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prophylaxis_arv_for_high_risk_given",
+ "type": "hidden",
+ "value": "true"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hei_baseline_investigation.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_baseline_investigation.json
new file mode 100644
index 0000000000..054197ceaa
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_baseline_investigation.json
@@ -0,0 +1,288 @@
+{
+ "count": "1",
+ "encounter_type": "HEI Baseline Investigation",
+ "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"
+ },
+ "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": "Uchunguzi wa Vipimo vya Awali",
+ "fields": [
+ {
+ "key": "followup_status",
+ "openmrs_entity_id": "followup_status",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Aina ya Hudhurio",
+ "type": "spinner",
+ "values": [
+ "Mtoto na Mama (IM)",
+ "Mtoto mchanga pamoja na mlezi mwingine (IC)",
+ "Transit (O)",
+ "Lost to Followup"
+ ],
+ "keys": [
+ "infant_and_mother",
+ "infant_with_other_caregiver",
+ "transfer_out",
+ "lost_to_followup"
+ ],
+ "openmrs_choice_ids": {
+ "infant_and_mother": "infant_and_mother",
+ "infant_with_other_caregiver": "infant_with_other_caregiver",
+ "transfer_out": "transfer_out",
+ "lost_to_followup": "lost_to_followup"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua aina ya hudhurio"
+ }
+ },
+ {
+ "key": "name_of_hf",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "name_of_hf",
+ "buttonText": "Select Health Facility",
+ "sort": true,
+ "maxSelectable": 1,
+ "dialogTitle": "Jina la Kliniki Aliyohamishwa",
+ "searchHint": "Andika jina la kliniki/hospitali",
+ "options": [
+ ],
+ "type": "multi_select_list",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua jina la kliniki"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "health_status",
+ "openmrs_entity_id": "health_status",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Hali ya Kiafya",
+ "type": "spinner",
+ "values": [
+ "Tumbo la kuhara",
+ "DEAR Draining Ears",
+ "Homa",
+ "KS Kaposi Sarcoma",
+ "Utapiamlo",
+ "OC Oesophageal Candidiasis",
+ "Nimonia",
+ "Ugonjwa wa ngozi",
+ "Kandidiasis ya mdomo",
+ "Kifua kikuu",
+ "Nzuri",
+ "LN Lymphadenopathy"
+ ],
+ "keys": [
+ "diarrhoea",
+ "draining_ears",
+ "fever",
+ "kaposi_sarcoma",
+ "malnutrition",
+ "oesophageal_candidiasis",
+ "pneumonia",
+ "skin_disease",
+ "thrush",
+ "tuberculosis",
+ "well",
+ "lymphadenopathy"
+ ],
+ "openmrs_choice_ids": {
+ "diarrhoea": "diarrhoea",
+ "draining_ears": "draining_ears",
+ "fever": "fever",
+ "kaposi_sarcoma": "kaposi_sarcoma",
+ "malnutrition": "malnutrition",
+ "oesophageal_candidiasis": "oesophageal_candidiasis",
+ "pneumonia": "pneumonia",
+ "skin_disease": "skin_disease",
+ "thrush": "thrush",
+ "tuberculosis": "tuberculosis",
+ "well": "well",
+ "lymphadenopathy": "lymphadenopathy"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua hali ya afya"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_health_status",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "infant_feeding_practice",
+ "openmrs_entity_id": "infant_feeding_practice",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Lishe ya Mtoto",
+ "type": "spinner",
+ "values": [
+ "EBF: Maziwa ya Mama pekee",
+ "RF: Maziwa mbadala",
+ "MF: Maziwa ya Mama na maziwa mbadala",
+ "BF + additional food: Maziwa ya Mama na vyakula vingine vya ziada",
+ "RF + additional food: Maziwa mbadala na vyakula vingine vya ziada",
+ "SBF: Mtoto ameacha kabisa maziwa ya Mama"
+ ],
+ "keys": [
+ "ebf",
+ "rf",
+ "mf",
+ "bf+",
+ "rf+",
+ "sbf"
+ ],
+ "openmrs_choice_ids": {
+ "ebf": "ebf",
+ "rf": "rf",
+ "mf": "mf",
+ "bf+": "bf+",
+ "rf+": "rf+",
+ "sbf": "sbf"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua lishe ya afya"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Uzito (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza uzito"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Uzito lazima uwe sawasawa au zaidi ya 0 (KG)"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Uzito lazima uwe sawasawa au chini ya 20 (KG)"
+ },
+ "v_max_length": {
+ "value": "5",
+ "is_fixed_size": "true",
+ "err": "Tafadhali ingiza uzito"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza uzito"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "followup_visit_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "followup_visit_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_followup_visit_date_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "type": "hidden"
+ },
+ {
+ "key": "actual_age",
+ "type": "hidden",
+ "openmrs_entity_id": "actual_age",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hei_community_followup_referral.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_community_followup_referral.json
new file mode 100644
index 0000000000..8ebddc01f7
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_community_followup_referral.json
@@ -0,0 +1,134 @@
+{
+ "count": "1",
+ "encounter_type": "HEI Community Followup",
+ "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"
+ },
+ "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": "Rufaa ya HEI ya Ufuatiliaji wa Jamii",
+ "fields": [
+ {
+ "key": "last_client_visit_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_client_visit_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya Udhurio la Mwisho Kituoni",
+ "expanded": false,
+ "max_date": "today",
+ "editable": false,
+ "read_only": true,
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha tarehe ya udhurio la mwisho kituoni"
+ }
+ },
+ {
+ "key": "reasons_for_issuing_community_referral",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_issuing_community_referral",
+ "type": "native_radio",
+ "label": "Sababu ya kutuma rufaa ya Ufuatiliaji Ngazi ya Jamii",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "missed_appointment",
+ "text": "Amekosa kwenye miadi yake",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "missed_appointment"
+ },
+ {
+ "key": "lost_to_followup",
+ "text": "Mteja amepotea katika Ufuatiliaji",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lost_to_followup"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select reason for issuing the referral"
+ }
+ },
+ {
+ "key": "mother_champion_location",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mother_champion_location",
+ "type": "spinner",
+ "hint": "Chagua Eneo la Mama Kinara",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua eneo alipo mama kinara"
+ }
+ },
+ {
+ "key": "comment_pmtct_community_followup",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment_pmtct_community_followup",
+ "type": "edit_text",
+ "hint": "Maoni"
+ },
+ {
+ "key": "pmtct_community_referral_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct_community_referral_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_community_followup_referral_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "child_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_name",
+ "type": "hidden"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hei_dna_pcr_sample_collection.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_dna_pcr_sample_collection.json
new file mode 100644
index 0000000000..8e9cfb2dc7
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_dna_pcr_sample_collection.json
@@ -0,0 +1,176 @@
+{
+ "count": "1",
+ "encounter_type": "HEI DNA PCR Sample Collection",
+ "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"
+ },
+ "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": "Kuchukua Sampuli ya DNA-PCR",
+ "fields": [
+ {
+ "key": "clinician_name",
+ "type": "edit_text",
+ "hint": "Jina la mtoa huduma wa Afya",
+ "openmrs_entity_id": "clinician_name",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza Jina la mtoa huduma wa Afya"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Jina la mtoa huduma wa Afya"
+ }
+ },
+ {
+ "key": "clinician_position",
+ "type": "spinner",
+ "hint": "Cheo cha Mtoa huduma wa Afya",
+ "openmrs_entity_id": "clinician_position",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "Afisa Matibabu",
+ "Msaidizi wa Afisa Matibabu",
+ "Afisa wa Kliniki",
+ "Afisa wa Kliniki msaidizi",
+ "Nesi",
+ "Mfanyakazi wa Maabara"
+ ],
+ "keys": [
+ "medical_officer",
+ "assistant_medical_officer",
+ "clinical_officer",
+ "assistant_clinical_officer",
+ "nurse",
+ "laboratory_personnel"
+ ],
+ "openmrs_choice_ids": {
+ "medical_officer": "medical_officer",
+ "assistant_medical_officer": "assistant_medical_officer",
+ "clinical_officer": "clinical_officer",
+ "assistant_clinical_officer": "assistant_clinical_officer",
+ "nurse": "nurse",
+ "laboratory_personnel": "laboratory_personnel"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza cheo cha mtoa huduma wa Afya"
+ }
+ },
+ {
+ "key": "clinician_phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya Mtoa huduma wa Afya",
+ "edit_type": "number",
+ "openmrs_entity_id": "clinician_phone_number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba ya simu lazima iwe na tarakimu 10 na lazima ianze na 06 au 07"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba ya simu lazima iwe na tarakimu 10 na lazima ianze na 06 au 07"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Namba ya simu ya Mtoa huduma wa Afya"
+ }
+ },
+ {
+ "key": "sample_collection_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya kuchukua sampuli ya kipimo cha DNA-PCR",
+ "openmrs_entity_id": "sample_collection_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "min_date": "today-5y",
+ "max_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza tarehe ya kuchukua sampuli ya kipimo cha DNA-PCR"
+ }
+ },
+ {
+ "key": "dna_pcr_collection_time",
+ "type": "time_picker",
+ "hint": "Muda wa kuchukua sampuli ya kipimo cha DNA-PCR",
+ "openmrs_entity_id": "dna_pcr_collection_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Muda wa kuchukua sampuli ya kipimo cha DNA-PCR"
+ }
+ },
+ {
+ "key": "sample_id",
+ "type": "edit_text",
+ "hint": "ID ya Sampuli kwa ajili kipimo cha DNA-PCR",
+ "edit_type": "number",
+ "openmrs_entity_id": "sample_id",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza ID ya Sampuli kwa ajili kipimo cha DNA-PCR"
+ }
+ },
+ {
+ "key": "type_of_hiv_test",
+ "type": "hidden",
+ "openmrs_entity_id": "type_of_hiv_test",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "value": "DNA PCR"
+ },
+ {
+ "key": "test_at_age",
+ "type": "hidden",
+ "openmrs_entity_id": "test_at_age",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hei_hiv_test_results.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_hiv_test_results.json
new file mode 100644
index 0000000000..e35f9f648d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_hiv_test_results.json
@@ -0,0 +1,333 @@
+{
+ "count": "1",
+ "encounter_type": "HEI HIV Test Results",
+ "entity_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "Majibu ya kipimo cha VVU",
+ "fields": [
+ {
+ "key": "sample_id",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sample_id",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "hiv_test_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_status",
+ "type": "native_radio",
+ "label": "Chagua majibu ya kipimo",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ }
+ },
+ {
+ "key": "confirmation_hiv_test_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "confirmation_hiv_test_result",
+ "type": "native_radio",
+ "label": "Je, haya ni majibu ya kuhakiki?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "relevance": {
+ "step1:hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_confirm_hiv_results",
+ "type": "toaster_notes",
+ "text": "Fanya kipimo kingine cha DNA PCR kwa mtoto ili kudhibitisha hali ya maambukizi ya VVU",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:confirmation_hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_hiv_test_results",
+ "type": "toaster_notes",
+ "text": "Mtoto ana maambukizi ya VVU, Mpe rufaa aende kwenye Kliniki ya tiba na matunzo",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:confirmation_hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_test_result_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_result_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya kupokea majibu",
+ "expanded": false,
+ "min_date": "today-3y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua Tarehe ya kupokea majibu"
+ }
+ },
+ {
+ "key": "results_provided_to_parents",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "results_provided_to_parents",
+ "type": "native_radio",
+ "label": "Je, wazazi wamepewa majibu ya kipimo?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_hiv_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_test_result_to_parent_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_result_to_parent_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya majibu kupewa mzazi",
+ "expanded": false,
+ "min_date": "today-3y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua Tarehe ya majibu kupewa mzazi"
+ },
+ "relevance": {
+ "step1:results_provided_to_parents": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_provide_results_to_parents",
+ "type": "toaster_notes",
+ "text": "Wapatie wazazi majibu ya kipimo",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:confirmation_hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "linkage_to_ctc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "linkage_to_ctc",
+ "type": "native_radio",
+ "label": "Je, Mtoto ameunganishwa na huduma za CTC?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:confirmation_hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "CTC Namba inafuata utaratibu huu"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC Number"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhri ingiza Namba sahihi ya CTC"
+ },
+ "relevance": {
+ "step1:linkage_to_ctc": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_linkage_to_ctc",
+ "type": "toaster_notes",
+ "text": "Muunganishe mtoto kwenye huduma za CTC na toa namba ya CTC",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:linkage_to_ctc": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "type_of_hiv_test",
+ "type": "hidden",
+ "openmrs_entity_id": "type_of_hiv_test",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "value": "Antibody Test"
+ },
+ {
+ "key": "test_at_age",
+ "type": "hidden",
+ "openmrs_entity_id": "test_at_age",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "actual_age",
+ "type": "hidden",
+ "openmrs_entity_id": "actual_age",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hei_number_edit.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_number_edit.json
new file mode 100644
index 0000000000..6ae1a1ffb6
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_number_edit.json
@@ -0,0 +1,81 @@
+{
+ "count": "1",
+ "encounter_type": "Edit HEI Number",
+ "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"
+ },
+ "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": "Rekodi Namba ya HEI",
+ "fields": [
+ {
+ "key": "hei_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hei_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######-C##",
+ "mask_hint": "1234567891234567",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya HEI",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6}-C\\d{2})?",
+ "err": "Namba ya HEI Inatakiwa kuwa mfano (XX-XX-XXXX-XXXXXX-CXX)"
+ },
+ "v_max_length": {
+ "value": "21",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka namba sahihi ya HEI"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi ya HEI"
+ }
+ },
+ {
+ "key": "previous_hei_number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "previous_hei_number",
+ "openmrs_entity_parent": "",
+ "type": "hidden"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hei_number_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_number_registration.json
new file mode 100644
index 0000000000..988fbc070d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_number_registration.json
@@ -0,0 +1,74 @@
+{
+ "count": "1",
+ "encounter_type": "HEI Number Registration",
+ "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"
+ },
+ "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": "Rekodi Namba ya HEI",
+ "fields": [
+ {
+ "key": "hei_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hei_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######-C##",
+ "mask_hint": "1234567891234567",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya HEI",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6}-C\\d{2})?",
+ "err": "Namba ya HEI Inatakiwa kuwa mfano (XX-XX-XXXX-XXXXXX-CXX)"
+ },
+ "v_max_length": {
+ "value": "21",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka namba sahihi ya HEI"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi ya HEI"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hei_rv_ctx.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_rv_ctx.json
new file mode 100644
index 0000000000..d80bf199a2
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hei_rv_ctx.json
@@ -0,0 +1,173 @@
+{
+ "count": "1",
+ "encounter_type": "HEI CTX Prescription",
+ "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"
+ },
+ "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": "Kupatiwa Dawa ya CTX",
+ "fields": [
+ {
+ "key": "prescribed_ctx",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prescribed_ctx",
+ "type": "native_radio",
+ "label": "Je, Mtoto huyu amepatiwa CTX?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ }
+ },
+ {
+ "key": "number_of_ctx_days_dispensed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_ctx_days_dispensed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Siku Iliyotolewa",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi ya siku iliyotolewa"
+ },
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba halali"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Idadi ya siku iliyotolewa inatakiwa iwe zaidi ya 0"
+ },
+ "v_max": {
+ "value": "180",
+ "err": "Idadi ya siku iliyotolewa inatakiwa iwe sawa na au chini ya 180"
+ },
+ "relevance": {
+ "step1:prescribed_ctx": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_prescribing_ctx",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_prescribing_ctx",
+ "type": "native_radio",
+ "label": "Sababu za kutompatia Mtoto dawa",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "out_of_stock",
+ "text": "CTX zimeisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_stock"
+ },
+ {
+ "key": "medication_expired",
+ "text": "Muda wa matumizi ya CTX umeisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_expired"
+ },
+ {
+ "key": "other",
+ "text": "Nyingine (Bainisha)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:prescribed_ctx": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_prescribing_ctx",
+ "type": "edit_text",
+ "hint": "Tafadhali bainisha sababu nyingine",
+ "openmrs_entity_id": "other_reason_for_not_prescribing_ctx",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali bainisha sababu nyingine"
+ },
+ "relevance": {
+ "step1:reason_for_not_prescribing_ctx": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "type": "hidden"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_client_update_ctc_number.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_client_update_ctc_number.json
new file mode 100644
index 0000000000..1928040b79
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_client_update_ctc_number.json
@@ -0,0 +1,83 @@
+{
+ "form": "Update CTC Number",
+ "count": "1",
+ "encounter_type": "Update CTC Number",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_index_contact_ctc_enrollment_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Jaza Namba ya CTC",
+ "fields": [
+ {
+ "name": "ctc_number",
+ "type": "masked_edit_text",
+ "properties": {
+ "hint": "Namba ya CTC, mfano: 12-34-5678-912345",
+ "type": "Care and Treatment Clinic registration number (CTC Number)",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "input_type": "number",
+ "allowed_chars": "0123456789"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "Namba ya CTC inatakiwa kuwa (XX-XX-XXXX-XXXXXX)."
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza namba ya CTC ya mteja"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_community_followup_referral.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_community_followup_referral.json
new file mode 100644
index 0000000000..2fbff9698f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_community_followup_referral.json
@@ -0,0 +1,151 @@
+{
+ "form": "HIV Community Followup",
+ "count": "1",
+ "encounter_type": "HIV Community Followup",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_community_followup_referral_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Rufaa ya ufuatiliaji wa wateja wa VVU katika ngazi ya jamii",
+ "fields": [
+ {
+ "name": "reasons_for_issuing_community_referral",
+ "type": "radio_group",
+ "properties": {
+ "text": "Sababu za kutoa rufaa ya ufuatiliaji wa wateja kwenye Jamii"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_issuing_community_referral",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "missed_appointment",
+ "text": "Amekosa kwenye miadi",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "missed_appointment",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "lost_to_followup",
+ "text": "Amepotea kwenye ufuatiliaji",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lost_to_followup",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "Other",
+ "text": "Nyinginezo",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua sababu za kutoa rufaa ya ufuatiliaji katika ngazi ya jamii",
+ "dependent_calculations": [
+ "hiv_community_referral_date"
+ ]
+ },
+ {
+ "name": "reason_for_issuing_community_referral_other",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Sababu nyinginezo",
+ "type": "name"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_issuing_community_referral_other",
+ "openmrs_entity_parent": "reasons_for_issuing_community_referral"
+ },
+ "required_status": "true:Tafadhali jaza sababu zinginezo",
+ "subjects": "reasons_for_issuing_community_referral:map"
+ },
+ {
+ "name": "last_client_visit_date",
+ "type": "datetime_picker",
+ "properties": {
+ "hint": "Tarehe ya mwisho ya hudhurio la mteja CTC",
+ "type": "date_picker",
+ "display_format": "dd/MM/yyyy",
+ "max_date": "today"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_client_visit_date",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Tafadhali chagua tarehe ya mwisho ya ya mteja kuhudhuria kliniki",
+ "subjects": "reasons_for_issuing_community_referral:map"
+ },
+ {
+ "name": "comment_hiv_community_followup",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Toa maoni"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment_hiv_community_followup",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_clients_contacts_registration_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_clients_contacts_registration_form.json
new file mode 100644
index 0000000000..07fb383750
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_clients_contacts_registration_form.json
@@ -0,0 +1,955 @@
+{
+ "count": "2",
+ "encounter_type": "Family 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"
+ },
+ "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": ""
+ }
+ },
+ "global": {},
+ "step1": {
+ "title": "Taarifa za Mteja",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "fam_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "fam_name",
+ "type": "edit_text",
+ "hint": "Jina la Ukoo",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Ukoo"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka Jina la Ukoo"
+ }
+ },
+ {
+ "key": "client_first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kwanza"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ }
+ },
+ {
+ "key": "client_middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kati"
+ }
+ },
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "hidden": "true",
+ "type": "edit_text",
+ "barcode_type": "qrcode",
+ "hint": "Nambari ya utambulisho",
+ "scanButtonText": "Scan QR Code",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali weka namba ya utambulisho"
+ }
+ },
+ {
+ "key": "fam_village",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "cityVillage",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Jina la eneo",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jina la eneo"
+ }
+ },
+ {
+ "key": "landmark",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "landmark",
+ "type": "edit_text",
+ "hint": "Alama/Maelezo ya eneo la nyumba",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka alama/maelezo ya eneo."
+ }
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "15dp"
+ },
+ {
+ "key": "sync_location_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "sync_location_id",
+ "type": "spinner",
+ "hint": "Chagua eneo la WAJA",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua eneo la WAJA"
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "Taarifa za Mteja",
+ "fields": [
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Kituoni ID",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali weka kitambulisho cha KIPEKEE"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka kitambulisho cha KIPEKEE"
+ }
+ },
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "last_name",
+ "type": "edit_text",
+ "hint": "Jina la Ukoo",
+ "edit_type": "name",
+ "read_only": true,
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Ukoo"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kwanza"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kati"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "hidden",
+ "hint": "Tarehe ya kuzaliwa",
+ "expanded": false,
+ "duration": {
+ "label": "Umri"
+ },
+ "min_date": "today-120y",
+ "max_date": "today-5y",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza tarehe ya kuzaliwa"
+ }
+ },
+ {
+ "key": "age_calculated",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob_unknown",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdateApprox",
+ "type": "hidden",
+ "label": "",
+ "value": "true",
+ "options": [
+ {
+ "key": "dob_unknown",
+ "text": "DOB unknown?",
+ "text_size": "18px",
+ "value": "true"
+ }
+ ]
+ },
+ {
+ "key": "age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "age",
+ "type": "edit_text",
+ "hint": "Umri",
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Weka umri halali"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Weka umri halali"
+ },
+ "v_max": {
+ "value": "120",
+ "err": "Umri lazima uwe sawa au chini ya 120"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza umri"
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Jinsi",
+ "values": [
+ "Me",
+ "Ke"
+ ],
+ "keys": [
+ "Male",
+ "Female"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza jinsi"
+ }
+ },
+ {
+ "key": "wra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "mra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Nambari ya simu ya mteja",
+ "v_numeric": {
+ "value": "true",
+ "err": "Nambari lazima iwe jumla ya tarakimu 10 kwa urefu"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Nambari lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ },
+ "v_required": {
+ "value": false,
+ "err": "Tafadhali taja nambari ya simu"
+ }
+ },
+ {
+ "key": "other_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_phone_number",
+ "type": "edit_text",
+ "hint": "Nambari nyingine ya simu",
+ "v_numeric": {
+ "value": "true",
+ "err": "Nambari lazima iwe jumla ya tarakimu 10 kwa urefu"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Nambari lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ },
+ "v_required": {
+ "value": false,
+ "err": "Tafadhali bainisha nambari nyingine ya simu"
+ }
+ },
+ {
+ "key": "relationship_under_15_for_possible_children",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Uhusiano",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "biological_child",
+ "text": "Mtoto wa kumzaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "biological_child"
+ },
+ {
+ "key": "siblings",
+ "text": "Ndugu wa kuzaliwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "siblings"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Uhusiano unahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_under_15",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Uhusiano",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "siblings",
+ "text": "Ndugu wa kuzaliwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "siblings"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Uhusiano unahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_above_15_to_18_possible_children",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Uhusiano",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "biological_child",
+ "text": "Biological child",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "biological_child"
+ },
+ {
+ "key": "non_biological_child",
+ "text": "Non-Biological child living in the same household",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "non_biological_child"
+ },
+ {
+ "key": "siblings",
+ "text": "Siblings",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "siblings"
+ },
+ {
+ "key": "sexual_partner",
+ "text": "Mwenzi wa kingono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ },
+ {
+ "key": "needle_sharing_partner",
+ "text": "Mshirika wa kujidunga",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_sharing_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Uhusiano unahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_above_15_to_18",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Relationship",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "siblings",
+ "text": "Siblings",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "siblings"
+ },
+ {
+ "key": "sexual_partner",
+ "text": "Mshiriki wa kingono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ },
+ {
+ "key": "needle_sharing_partner",
+ "text": "Mshiriki wa kujidunga",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_sharing_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Uhusiano unahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_above_18_possible_parents_female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Uhusiano",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "biological_mother",
+ "text": "Mama Mzazi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "biological_mother"
+ },
+ {
+ "key": "sexual_partner",
+ "text": "Mwenzi wa kingono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ },
+ {
+ "key": "needle_sharing_partner",
+ "text": "Mshirika wa kujidunga",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_sharing_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Uhusiano unahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_above_18_possible_parents_male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Relationship",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "biological_father",
+ "text": "Baba Mzazi (Kama mama amefariki)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "biological_father"
+ },
+ {
+ "key": "sexual_partner",
+ "text": "Mshiriki wa kingono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ },
+ {
+ "key": "needle_sharing_partner",
+ "text": "Mshiriki wa kujidunga",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_sharing_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Uhusiano unahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_above_18",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Uhusiano",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "sexual_partner",
+ "text": "Mshiriki wa kingono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ },
+ {
+ "key": "needle_sharing_partner",
+ "text": "Mshiriki wa kujidunga",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_sharing_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Uhusiano unahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gbv_analysis",
+ "type": "toaster_notes",
+ "text": "Fanya Uchambuzi wa unyanyasaji wa kijinsia",
+ "text_color": "#1199F9",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "physical_abuse",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_abuse",
+ "type": "native_radio",
+ "label": "Je, mtajwa amewahi kukupiga au kukunyanyasa kimwili?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Jibu la swali hili linahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "threatened_to_be_hurt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "threatened_to_be_hurt",
+ "type": "native_radio",
+ "label": "Je, Mtajwa amewahi kutishia kukupiga au kukuumiza?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Jibu la swali hili linahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "sexual_assault",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_assault",
+ "type": "native_radio",
+ "label": "Je, mtajwa amewahi kutumia nguvu au kukushawishi kufanya ngono bila kupenda kwako?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Jibu la swali hili linahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "fearful_of_contact_client",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fearful_of_contact_client",
+ "type": "native_radio",
+ "label": "Je, unatishika au unamuogopa mshiriki wako wa kingono?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Jibu la swali hili linahitajika"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "additional_details",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fearful_of_contact_client",
+ "type": "native_radio",
+ "label": "Je, una maelezo yoyote ya ziada kuhusu ukatili ambao umefanyiwa?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_ipv_service",
+ "type": "toaster_notes",
+ "text": "Refer the client for post-IPV Services\n\nDiscuss with the client on the appropriate referral to communicate with Index Contact",
+ "openmrs_entity_id": "prompt_for_ipv_service",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "how_to_notify_the_contact_client",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "how_to_notify_the_contact_client",
+ "type": "native_radio",
+ "label": "Jinsi ya kuwasiliana na mteja wa mshirika wako wa kingono",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "client_referral",
+ "text": "Rufaa ya Mteja",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_referral"
+ },
+ {
+ "key": "provider_referral",
+ "text": "Rufaa ya Mtoa huduma",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provider_referral"
+ },
+ {
+ "key": "contract_referral",
+ "text": "Rufaa ya Mkataba",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "contract_referral"
+ },
+ {
+ "key": "dual_referral",
+ "text": "Ufuatiliaji kwa njia mbili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dual_referral"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Jibu la swali hili linahitajika"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_community_followup_referral.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_community_followup_referral.json
new file mode 100644
index 0000000000..d640fe916f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_community_followup_referral.json
@@ -0,0 +1,102 @@
+{
+ "form": "HIV Index Contact Community Followup Referral",
+ "count": "1",
+ "encounter_type": "HIV Index Contact Community Followup Referral",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_index_contact_community_followup_referral_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Ufuatiliaji wa wenza wa Kingono au wa Kujidunga wa mshirika katika jamii",
+ "fields": [
+ {
+ "name": "toast_refer_to_chw",
+ "type": "toast_notification",
+ "properties": {
+ "notification_type": "info",
+ "dismissible": "no",
+ "title": "Mteja atapewa rufaa kwenda kwa mtoa huduma ya afya ngazi ya jamii",
+ "text": "Mteja anapewa rufaa kwenda kwa mtoa huduma wa afya ngazi ya jamii katika kijiji cha mteja kwa ajili ya ufuatiliaji.\n\n Ongeza maoni ya ziada yatakayo kwenda kwa mtoa huduma wa afya ngazi ya jamii\n\nHifadhi fomu ya rufaa kwajili ya kutuma rufaa",
+ "background_color": "#082455",
+ "text_color": "#EBEE2F"
+ }
+ },
+ {
+ "name": "chw_referral_hf",
+ "type": "spinner",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chw_referral_hf",
+ "openmrs_entity_parent": ""
+ },
+ "properties": {
+ "text": "Eneo la Waja"
+ },
+ "options": [],
+ "required_status": "yes:Tafadhali chagua",
+ "dependent_calculations": [
+ "hiv_index_contact_community_followup_referral_date",
+ "refer_to_chw"
+ ]
+ },
+ {
+ "name": "comment",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Maoni"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_ctc_enrollment.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_ctc_enrollment.json
new file mode 100644
index 0000000000..23ee7c598c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_ctc_enrollment.json
@@ -0,0 +1,120 @@
+{
+ "form": "HIV Index Contact CTC Enrollment",
+ "count": "1",
+ "encounter_type": "Update HIV Index Contact Testing Followup",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_index_contact_ctc_enrollment_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Majibu ya mshirika wa kingono/wakujidunga",
+ "fields": [
+ {
+ "name": "ctc_number",
+ "type": "masked_edit_text",
+ "properties": {
+ "hint": "Namba ya CTC, mfano: 12-34-5678-912345",
+ "type": "Care and Treatment Clinic registration number (CTC Number)",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "input_type": "number",
+ "allowed_chars": "0123456789"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "Namba ya CTC inatakiwa kuwa (XX-XX-XXXX-XXXXXX)."
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza namba ya CTC ya mteja"
+ },
+ {
+ "name": "comment",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Toa maoni"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ },
+ {
+ "name": "place_where_test_was_conducted",
+ "type": "text_input_edit_text",
+ "properties": {
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_where_test_was_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "subjects": "place_where_test_was_conducted:map"
+ },
+ {
+ "name": "test_results",
+ "type": "text_input_edit_text",
+ "properties": {
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_results",
+ "openmrs_entity_parent": ""
+ },
+ "subjects": "test_results:map"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_followup.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_followup.json
new file mode 100644
index 0000000000..4faf0bf802
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_followup.json
@@ -0,0 +1,483 @@
+{
+ "form": "HIV Index Contact Testing Followup",
+ "count": "1",
+ "encounter_type": "HIV Index Contact Testing Followup",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_index_contact_followup_for_non_sex_partner_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Majibu ya mshirika wa kingono/wakujidunga",
+ "fields": [
+ {
+ "name": "has_the_client_been_reached",
+ "type": "radio_group",
+ "properties": {
+ "text": "Je, mteja amepatikana?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_the_client_been_reached",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Ndio",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "Hapana",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua jibu",
+ "dependent_calculations": [
+ "relationship"
+ ]
+ },
+ {
+ "name": "eligibility_for_testing",
+ "type": "radio_group",
+ "properties": {
+ "text": "Je, mteja ana kidhi vigezo vya upimaji wa VVU?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "eligibility_for_testing",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Ndio",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "Hapana",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua jibu",
+ "subjects": "has_the_client_been_reached:map"
+ },
+ {
+ "name": "has_the_contact_client_been_tested",
+ "type": "radio_group",
+ "properties": {
+ "text": "Je, amepimwa VVU?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_the_contact_client_been_tested",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Ndio",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "Hapana",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua jibu",
+ "subjects": "has_the_client_been_reached:map, eligibility_for_testing:map"
+ },
+ {
+ "name": "reasons_conducting_testing_for_index_contact",
+ "type": "spinner",
+ "properties": {
+ "text": "Sababu ya kutofanya kipimo cha VVU"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_conducting_testing_for_index_contact",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "test_kits_are_out_of_stock",
+ "text": "Vifaa vya kupima vimeisha",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_kits_are_out_of_stock",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "the_client_refused_to_be_tested",
+ "text": "Mteja alikataa kupimwa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "the_client_refused_to_be_tested",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "we_are_still_counselling_the_client",
+ "text": "Tunaendelea kumshauri mteja",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "we_are_still_counselling_the_client",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Nyingine",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali ingiza sababu",
+ "subjects": "eligibility_for_testing:map,has_the_contact_client_been_tested:map,has_the_client_been_reached:map"
+ },
+ {
+ "name": "other_reason_for_not_testing",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Sababu nyingine ya kutofanya kipimo cha VVU"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_testing",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "yes:Please enter the reason",
+ "subjects": "reasons_conducting_testing_for_index_contact:map,eligibility_for_testing:map,has_the_contact_client_been_tested:map,has_the_client_been_reached:map"
+ },
+ {
+ "name": "test_results",
+ "type": "radio_group",
+ "properties": {
+ "text": "Ni nini matokeo ya kipimo cha VVU?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_results",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "positive",
+ "text": "Ana VVU",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "negative",
+ "text": "Hana VVU",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua matokeo ya vipimo vya VVU",
+ "subjects": "has_the_contact_client_been_tested:map, eligibility_for_testing:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "place_where_test_was_conducted",
+ "type": "radio_group",
+ "properties": {
+ "text": "Mahali alikopimia mteja"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_where_test_was_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "outpatient_department",
+ "text": "Idara ya wagonjwa wa nje",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "inpatient_department",
+ "text": "Idara ya wagonjwa waliolazwa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "inpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "community_based_hiv_testing_service",
+ "text": "Huduma za upimaji nyumbani",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_based_hiv_testing_service",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "ctc",
+ "text": "CTC",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outreach_services",
+ "text": "Huduma ya mkoba (outreach services)",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach_services",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Kwingineko",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua jibu sahihi",
+ "subjects": "test_results:map, eligibility_for_testing:map, has_the_contact_client_been_tested:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "client_test_date",
+ "type": "datetime_picker",
+ "properties": {
+ "hint": "Tarehe ya kupima ya mteja",
+ "type": "date_picker",
+ "display_format": "dd/MM/yyyy",
+ "max_date": "today"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_test_date",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Tafadhali jaza tarehe ya upimaji wa VVU wa mteja",
+ "subjects": "test_results:map, eligibility_for_testing:map, has_the_contact_client_been_tested:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "toast_enroll_the_client_to_prep",
+ "type": "toast_notification",
+ "properties": {
+ "notification_type": "info",
+ "dismissible": "no",
+ "title": "Mteja anatakiwa kusajiliwa kwenye KVP/PrEP",
+ "text": "Mteja ni mshirika wa kingono wa mteja wa VVU, anatakiwa kusajiliwa kwenye huduma ya KVP/PrEP",
+ "background_color": "#082455",
+ "text_color": "#EBEE2F"
+ },
+ "subjects": "relationship:text, test_results:map, has_the_contact_client_been_tested:map, eligibility_for_testing:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "enrolled_to_clinic",
+ "type": "radio_group",
+ "properties": {
+ "text": "Je, mteja amesajiliwa kwenye kliniki ya VVU?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_to_clinic",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Ndio",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "Hapana",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza jibu",
+ "subjects": "test_results:map, eligibility_for_testing:map, has_the_contact_client_been_tested:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "reasons_for_ineligibility_for_testing",
+ "type": "spinner",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_ineligibility_for_testing",
+ "openmrs_entity_parent": ""
+ },
+ "properties": {
+ "text": "Sababu zinazomfanya mteja asifanyiwe kipimo cha HIV"
+ },
+ "options": [
+ {
+ "name": "known_positive",
+ "text": "Mteja tayari amekwisha pima na ana VVU",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Nyingine",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes: Tafadhali Chagua",
+ "subjects": "has_the_client_been_reached:map,eligibility_for_testing:map"
+ },
+ {
+ "name": "other_reason_for_ineligibility",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Nyingine"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_ineligibility",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "yes: Tafadhali jaza sababu nyingine",
+ "subjects": "reasons_for_ineligibility_for_testing:map, eligibility_for_testing:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "ctc_number",
+ "type": "masked_edit_text",
+ "properties": {
+ "hint": "Namba ya CTC, mfano: 12-34-5678-912345",
+ "type": "Care and Treatment Clinic registration number (CTC Number)",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "input_type": "number",
+ "allowed_chars": "0123456789"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "Namba ya CTC inatakiwa kuwa (XX-XX-XXXX-XXXXXX)."
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza namba ya CTC ya mteja",
+ "subjects": "enrolled_to_clinic:map, reasons_for_ineligibility_for_testing:map, eligibility_for_testing:map, test_results:map, has_the_contact_client_been_tested:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "comment",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Toa maoni"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_followup_for_negative_clients.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_followup_for_negative_clients.json
new file mode 100644
index 0000000000..14b43ccd11
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_followup_for_negative_clients.json
@@ -0,0 +1,341 @@
+{
+ "form": "HIV Index Contact Testing Followup",
+ "count": "1",
+ "encounter_type": "HIV Index Contact Testing Followup",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_index_contact_followup_for_negative_non_sex_partners_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Ufuatiliaji wa mshirika ambaye hajaathirika",
+ "fields": [
+ {
+ "name": "place_where_test_was_conducted",
+ "type": "radio_group",
+ "properties": {
+ "text": "Amepimiwa Wapi?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_where_test_was_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "tb_clinic_outpatient",
+ "text": "Kiliniki ya Kifua Kikuu (Wateja wa Nje)",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_clinic_outpatient",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "sexual_transmitted_diseases_clinic",
+ "text": "Kliniki ya magonjwa ya zinaa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_transmitted_diseases_clinic",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outpatient_department",
+ "text": "Idara ya wagonjwa wa njee",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "inpatient_department",
+ "text": "Idara ya wagonjwa wa ndani",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "inpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "blood_transfusion_service",
+ "text": "Huduma za uchagiaji damu",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_transfusion_service",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "community_based_hiv_testing_service",
+ "text": "Huduma ya kujipima mwenyewe",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_based_hiv_testing_service",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "voluntary_patients",
+ "text": "Mteja wakujitolea",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "voluntary_patients",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "family_planning_clinic",
+ "text": "Kiliniki ya uzazi wa mpango",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "family_planning_clinic",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "ctc",
+ "text": "CTC",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "men_circumcision",
+ "text": "Tohara ya wanaume",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "men_circumcision",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outreach_services",
+ "text": "Huduma ya Mkoba",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach_services",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "reproductive_an_child_health",
+ "text": "Afya ya mama na mtoto",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reproductive_an_child_health",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Mengineo",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "dependent_calculations": [
+ "eligibility_for_testing"
+ ],
+ "required_status": "yes:Please select the answer"
+ },
+ {
+ "name": "when_the_test_was_conducted",
+ "type": "datetime_picker",
+ "properties": {
+ "hint": "Lini mshiriki wa mteja alipimwa virusi vya ukimwi?",
+ "type": "date_picker",
+ "display_format": "dd/MM/yyyy"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "when_the_test_was_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "dependent_calculations": [
+ "relationship",
+ "months_after_last_test"
+ ],
+ "required_status": "true:Tafadhali chagua tarehe aliyopimwa virusi?"
+ },
+ {
+ "name": "toast_enroll_the_client_to_prep",
+ "type": "toast_notification",
+ "properties": {
+ "notification_type": "info",
+ "dismissible": "no",
+ "title": "Mteja anatakiwa anzishiwe KVP/PREP",
+ "text": "Mteja ni mshiriki wa kingono wa muathirika wa ukimwi, Anatakiwa kuanzishiwa KVP/PREP",
+ "background_color": "#082455",
+ "text_color": "#EBEE2F"
+ },
+ "subjects": "relationship:text, when_the_test_was_conducted:number , months_after_last_test:number"
+ },
+ {
+ "name": "toast_client_eligible_for_testing",
+ "type": "toast_notification",
+ "properties": {
+ "notification_type": "info",
+ "dismissible": "no",
+ "title": "Mteja anatakiwa kupimwa tena Ukimwi",
+ "text": "Mteja amepimwa miezi mitatu iliyopita. Mteja anatakiwa kupima tena virusi vya ukimwi",
+ "background_color": "#082455",
+ "text_color": "#EBEE2F"
+ },
+ "subjects": "when_the_test_was_conducted:number, months_after_last_test:number"
+ },
+ {
+ "name": "test_results",
+ "type": "radio_group",
+ "properties": {
+ "text": "Majibu ya Vipimo vya Ukimwi?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_results",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "negative",
+ "text": "Hasi",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "positive",
+ "text": "Chanya",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the test results",
+ "subjects": "when_the_test_was_conducted:number, months_after_last_test:number"
+ },
+ {
+ "name": "enrolled_to_clinic",
+ "type": "radio_group",
+ "properties": {
+ "text": "Mteja amenazishwa kwenye kiliniki ya tiba na matunzo?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_to_clinic",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Ndio",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "Hapana",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali jibu swali hili",
+ "subjects": "when_the_test_was_conducted:number, test_results:map, months_after_last_test:number"
+ },
+ {
+ "name": "ctc_number",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Jaza numbari ya CTC ya mteja",
+ "type": "Care and Treatment Clinic registration number (CTC Number)"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "Namba ya CTC iliyojazwa si sahihi."
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza namba ya CTC ya mteja",
+ "subjects": "when_the_test_was_conducted:number, months_after_last_test:number, enrolled_to_clinic:map, test_results:map "
+ },
+ {
+ "name": "comment",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Maoni"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_followup_for_positive_clients.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_followup_for_positive_clients.json
new file mode 100644
index 0000000000..dd9559e64b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_index_contact_followup_for_positive_clients.json
@@ -0,0 +1,296 @@
+{
+ "form": "HIV Index Contact Testing Followup",
+ "count": "1",
+ "encounter_type": "HIV Index Contact Testing Followup",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_index_contact_followup_for_positive_clients_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Index Client Contact HIV Outcome",
+ "fields": [
+ {
+ "name": "place_where_test_was_conducted",
+ "type": "radio_group",
+ "properties": {
+ "text": "Alikopimia mteja"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_where_test_was_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "tb_clinic_outpatient",
+ "text": "kliniki ya kifua kikuu(wagonjwa wa njee)",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_clinic_outpatient",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "sexual_transmitted_diseases_clinic",
+ "text": "kiliniki ya magonjwa ya zinaa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_transmitted_diseases_clinic",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outpatient_department",
+ "text": "Idara ya wagonjwa wa njee",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "inpatient_department",
+ "text": "Idara ya wagonjwa wa ndani",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "inpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "blood_transfusion_service",
+ "text": "Huduma ya uchangiaji wa damu",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_transfusion_service",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "community_based_hiv_testing_service",
+ "text": "Huduma ya kujipima mwenyewe nyumbani",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_based_hiv_testing_service",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "voluntary_patients",
+ "text": "Wateja wakujitolea",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "voluntary_patients",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "family_planning_clinic",
+ "text": "Kiliniki ya uzazi salama",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "family_planning_clinic",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "ctc",
+ "text": "CTC",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "men_circumcision",
+ "text": "Tohara kwa wanaume",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "men_circumcision",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outreach_services",
+ "text": "Huduma ya Mkoba",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach_services",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "reproductive_an_child_health",
+ "text": "Afya ya uzazi na mtoto",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reproductive_an_child_health",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Mengineo",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer",
+ "dependent_calculations": [
+ "eligibility_for_testing",
+ "test_results"
+ ]
+ },
+ {
+ "name": "willing_to_start_medication",
+ "type": "radio_group",
+ "properties": {
+ "text": "je mshirika muathirika yuko teyari kuanza dawa?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "willing_to_start_medication",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Ndio",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "Hapana",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer"
+ },
+ {
+ "name": "enrolled_to_clinic",
+ "type": "radio_group",
+ "properties": {
+ "text": "Je mteja ameandikishwa kwenye kilinic ya matunzo na tiba?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_to_clinic",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Ndio",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "Hapana",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer",
+ "subjects": "willing_to_start_medication:map"
+ },
+ {
+ "name": "ctc_number",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Ingiza number ya mteja wa CTC",
+ "type": "Care and Treatment Clinic registration number (CTC Number)"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "Namba ya CTC iliyojazwa si sahihi."
+ }
+ ],
+ "required_status": "yes:Please specify client's CTC number",
+ "subjects": "willing_to_start_medication:map, enrolled_to_clinic:map"
+ },
+ {
+ "name": "comment",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Maoni"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_outcome.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_outcome.json
new file mode 100644
index 0000000000..1f116a048d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_outcome.json
@@ -0,0 +1,270 @@
+{
+ "form": "HIV Outcome",
+ "count": "1",
+ "encounter_type": "HIV Outcome",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_outcome_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Matokeo ya Vipimo vya VVU",
+ "fields": [
+ {
+ "name": "action_taken_hiv_problems",
+ "type": "radio_group",
+ "properties": {
+ "text": "Hatua zilizochukuliwa kwenye kituo"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "action_taken_hiv_problems",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "no_action_taken",
+ "text": "Hajapimwa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_action_taken",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "tested",
+ "text": "Amepimwa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tested",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "referred",
+ "text": "Amepewa rufaa",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referred",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select action taken",
+ "dependent_calculations": [
+ "hiv_facility_visit_date"
+ ]
+ },
+ {
+ "name": "reason_no_action_was_taken",
+ "type": "radio_group",
+ "properties": {
+ "text": "Sababu ya kutopata matibabu"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_no_action_was_taken",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "known_positive",
+ "text": "Inajulikana chanya",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "client_declined",
+ "text": "Mteja amekataa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_declined",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "test_not_required_based_on_risk_assessment",
+ "text": "Kipimo hakijafanyika kutokana na tathmini ya hatari",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_required_based_on_risk_assessment",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select action taken",
+ "subjects": "action_taken_hiv_problems:map",
+ "dependent_calculations": [
+ "test_results_calculation"
+ ]
+ },
+ {
+ "name": "test_results",
+ "type": "radio_group",
+ "properties": {
+ "text": "Chagua matokeo ya vipimo vya VVU"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_results",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "positive",
+ "text": "Ana VVU",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "negative",
+ "text": "Hana VVU",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua matokeo ya vipimo vya VVU",
+ "subjects": "action_taken_hiv_problems:map"
+ },
+ {
+ "name": "enrolled_to_clinic",
+ "type": "radio_group",
+ "properties": {
+ "text": "Je, mteja amesajiliwa kwenye kliniki ya VVU?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_to_clinic",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Ndio",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "Hapana",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza jibu sahihi",
+ "subjects": "test_results:map, action_taken_hiv_problems:map"
+ },
+ {
+ "name": "ctc_number",
+ "type": "masked_edit_text",
+ "properties": {
+ "hint": "Namba ya CTC, mfano: 12-34-5678-912345",
+ "type": "name",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "input_type": "number",
+ "allowed_chars": "0123456789"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "Namba ya CTC inatakiwa kuwa (XX-XX-XXXX-XXXXXX)."
+ }
+ ],
+ "required_status": "true:Tafadhali jaza namba ya CTC ya mteja",
+ "subjects": "reason_no_action_was_taken:map, enrolled_to_clinic:map,test_results:map, action_taken_hiv_problems:map"
+ },
+ {
+ "name": "prompt_for_ctc_enrollment",
+ "type": "toast_notification",
+ "properties": {
+ "notification_type": "info",
+ "dismissible": "no",
+ "text": "Endelea na ushauri mpaka mteja atakapokuwa tayari kuanzishiwa dawa",
+ "background_color": "#082455",
+ "text_color": "#EBEE2F"
+ },
+ "subjects": "enrolled_to_clinic:map, test_results:map, action_taken_hiv_problems:map"
+ },
+ {
+ "name": "comment_hiv_problems",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Toa maoni"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment_hiv_problems",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_registration.json
new file mode 100644
index 0000000000..1857f2bc37
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hiv_registration.json
@@ -0,0 +1,267 @@
+{
+ "form": "HIV Registration form",
+ "count": "1",
+ "encounter_type": "HIV Registration",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_registration_form_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Usajili wa wateja wa VVU",
+ "fields": [
+ {
+ "name": "new_or_current_hiv_client",
+ "type": "radio_group",
+ "properties": {
+ "text": "Je, mteja aliyesajiliwa ni mpya au alikuwepo kwenye huduma ya VVU?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "new_or_current_hiv_client",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "new",
+ "text": "Mteja mpya wa VVU",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "new",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "existing",
+ "text": "Mteja aliyepo kwenye huduma ya VVU",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "existing",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua jibu"
+ },
+ {
+ "name": "place_where_test_was_conducted",
+ "type": "radio_group",
+ "properties": {
+ "text": "Mahali mteja alipopimia VVU"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_where_test_was_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "tb_clinic_outpatient",
+ "text": "Kliniki ya kifua kikuu (wagonjwa wa nje)",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_clinic_outpatient",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "sexual_transmitted_diseases_clinic",
+ "text": "Kliniki ya magonjwa ya ngono",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_transmitted_diseases_clinic",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outpatient_department",
+ "text": "Idara ya wagonjwa wa nje",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "inpatient_department",
+ "text": "Idara ya wagonjwa waliolazwa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "inpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "blood_transfusion_service",
+ "text": "Huduma ya damu salama",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_transfusion_service",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "community_based_hiv_testing_service",
+ "text": "Huduma za upimaji nyumbani",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_based_hiv_testing_service",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "voluntary_patients",
+ "text": "Wateja wanaokwenda kwa hiari yao",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "voluntary_patients",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "family_planning_clinic",
+ "text": "Kliniki ya uzazi wa mpango",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "family_planning_clinic",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "ctc",
+ "text": "Kituo cha huduma ya tiba na matunzo ya UKIMWI",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "men_circumcision",
+ "text": "Wakati wa tohara ya wanaume",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "men_circumcision",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outreach_services",
+ "text": "Huduma ya mkoba (outreach services)",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach_services",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "reproductive_an_child_health",
+ "text": "Kliniki ya Mama, Baba na Mtoto",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reproductive_an_child_health",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Sehemu nyingine",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua jibu sahihi"
+ },
+ {
+ "name": "place_where_test_was_conducted_other",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Nyingine",
+ "type": "name"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_where_test_was_conducted_other",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Tafadhali jaza sehemu nyingine",
+ "subjects": "place_where_test_was_conducted:map"
+ },
+ {
+ "name": "ctc_number",
+ "type": "masked_edit_text",
+ "properties": {
+ "hint": "Namba ya CTC, mfano: 12-34-5678-912345",
+ "type": "Namba ya CTC",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "input_type": "number",
+ "allowed_chars": "0123456789"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "Namba ya CTC inatakiwa kuwa (XX-XX-XXXX-XXXXXX)."
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza namba ya CTC ya mteja",
+ "dependent_calculations": [
+ "hiv_registration_date",
+ "client_hiv_status_during_registration",
+ "test_results"
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_issue_kits.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_issue_kits.json
new file mode 100644
index 0000000000..ed582f82b6
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_issue_kits.json
@@ -0,0 +1,605 @@
+{
+ "count": "1",
+ "encounter_type": "Self Testing Kits Issue",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Ugawaji wa Vitepe vya Jipime",
+ "fields": [
+ {
+ "key": "pre_test_counselling_and_instructions",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pre_test_counselling_and_instructions",
+ "label": "Je mteja amepata elimu na ushauri kabla ya kupima",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "self_test_kit_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "self_test_kit_given",
+ "label": "Je mteja alipewa kitendanishi cha jipime",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "kit_code",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "kit_code",
+ "type": "edit_text",
+ "hint": "Msimbo wa kitepe",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_kit_batch_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_kit_batch_number",
+ "type": "edit_text",
+ "hint": "Namba ya kundi (Batch number) ya kitepe cha mteja",
+ "v_required": {
+ "value": true,
+ "err": "Please fill the batch number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_kit_expiry_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_kit_expiry_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya mwisho wa matumizi ya kitepe cha mteja",
+ "expanded": false,
+ "min_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Please select the Expiry date"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_testing_approach",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_testing_approach",
+ "label": "Njia za upimaji wa mteja ",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "assisted_testing_on_site",
+ "text": "Kwa Usaidizi ktk eneo la upimaji",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "assisted_testing_on_site"
+ },
+ {
+ "key": "assisted_testing_off_site",
+ "text": "Kwa Usaidizi nje ya eneo la upimaji",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "assisted_testing_off_site"
+ },
+ {
+ "key": "unassisted_testing_on_site",
+ "text": "Bila Usaidizi ndani ya eneo la upimaji",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unassisted_testing_on_site"
+ },
+ {
+ "key": "unassisted_testing_off_site",
+ "text": "Bila Usaidizi nje ya eneo la upimaji",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unassisted_testing_off_site"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "extra_kits_required",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "extra_kits_required",
+ "label": "Je mteja anahitaji vitepe kwa ajili ya rafiki rika au mshirika ngono",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "extra_kits_issued_for",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "extra_kits_issued_for",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Vitepe vya ziada vilivyotolewa kwa ajili ya",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "peer_friend",
+ "text": "Rafiki rika",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "peer_friend"
+ },
+ {
+ "key": "sexual_partner",
+ "text": "Mshirika wa kingono",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ },
+ "relevance": {
+ "step1:extra_kits_required": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "peer_friend_kit_code",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "peer_friend_kit_code",
+ "type": "edit_text",
+ "hint": "msimbo wa kitepe cha rafiki rika",
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "peer_friend"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "peer_friend_kit_batch_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "peer_friend_kit_batch_number",
+ "type": "edit_text",
+ "hint": "Namba ya kundi (Batch number) ya kitepe cha rafiki rika",
+ "v_required": {
+ "value": true,
+ "err": "Please fill the batch number"
+ },
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "peer_friend"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "peer_friend_kit_expiry_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "peer_friend_kit_expiry_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya mwisho wa matumizi ya kitepe cha rafiki rika",
+ "expanded": false,
+ "min_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Please select the Expiry date"
+ },
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "peer_friend"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "sexual_partner_kit_code",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner_kit_code",
+ "type": "edit_text",
+ "hint": "msimbo wa kitepe cha mshirika wa kingono",
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "sexual_partner"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "sexual_partner_kit_batch_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner_kit_batch_number",
+ "type": "edit_text",
+ "hint": "Namba ya kundi (Batch number) ya kitepe cha mshirika wa ngono",
+ "v_required": {
+ "value": true,
+ "err": "Please fill the batch number"
+ },
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "sexual_partner"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "sexual_partner_kit_expiry_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner_kit_expiry_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya mwisho wa matumizi ya kitepe cha mshirika wa ngono",
+ "expanded": false,
+ "min_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Please select the Expiry date"
+ },
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "sexual_partner"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "condoms_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condoms_given",
+ "label": "Je mteja alipewa kondomu",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ }
+ },
+ {
+ "key": "type_of_issued_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_issued_condoms",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Chagua aina ya kondomu zilizotolewa",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "male_condoms",
+ "text": "kondomu za kiume",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms"
+ },
+ {
+ "key": "female_condoms",
+ "text": "kondomu za kike",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ },
+ "relevance": {
+ "step1:condoms_given": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "number_of_male_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_male_condoms_issued",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kiume zilizotolewa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba sahihi"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "idadi ni lazima iwe sawa sawa au kubwa kuliko 0"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza namba"
+ },
+ "relevance": {
+ "step1:type_of_issued_condoms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "male_condoms"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_of_female_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_female_condoms_issued",
+ "type": "edit_text",
+ "hint": "Idadi aa kondomu za kike zilizotolewa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba sahihi"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "idadi ni lazima iwe sawa sawa au kubwa kuliko 0"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza namba"
+ },
+ "relevance": {
+ "step1:type_of_issued_condoms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "female_condoms"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "sms_notification_service",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sms_notification_service",
+ "label": "Je mteja amekubali kuingia kwenye huduma za SMS",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "collection_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "collection_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_mobilization_session.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_mobilization_session.json
new file mode 100644
index 0000000000..9c5019c76b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_mobilization_session.json
@@ -0,0 +1,216 @@
+{
+ "count": "1",
+ "encounter_type": "HIVST Mobilization Session",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uhamasishaji wa Vipindi vya Jipime",
+ "fields": [
+ {
+ "key": "mobilization_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobilization_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya uhamasishaji",
+ "expanded": false,
+ "min_date": "today-6m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza tarehe ya uhamasishaji"
+ }
+ },
+ {
+ "key": "female_clients_reached",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_clients_reached",
+ "type": "edit_text",
+ "hint": "Idadi ya wateja wa kike waliofikiwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza numbari sahihi"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Tarakimu ulioingiza inatakiwa iwe sawa au kubuwa kuliko 0"
+ },
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "Idadi ya wateja wa kike waliofikiwa haitakiwi kuzidi 999"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza nambar"
+ }
+ },
+ {
+ "key": "male_clients_reached",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_clients_reached",
+ "type": "edit_text",
+ "hint": "Idadi ya wateja wa kiume waliofikiwa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza numbari sahihi"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Tarakimu ulioingiza inatakiwa iwe sawa au kubuwa kuliko 0"
+ },
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "Idadi ya wateja wa kiume waliofikiwa haitakiwi kuzidi 999"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza nambar"
+ }
+ },
+ {
+ "key": "gps",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gps",
+ "openmrs_data_type": "text",
+ "type": "gps"
+ },
+ {
+ "key": "female_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms_issued",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kike zilizotolewa (Vipande)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza numbari sahihi"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Tarakimu ulioingiza inatakiwa iwe sawa au kubuwa kuliko 0"
+ },
+ "v_max_length": {
+ "value": "4",
+ "is_fixed_size": "true",
+ "err": "Idadi ya kondomu za kike zilizotolewa haitakiwi kuzidi 9999"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza nambar"
+ }
+ },
+ {
+ "key": "male_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms_issued",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za kiume zilizotolewa (Vipande)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza numbari sahihi"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Tarakimu ulioingiza inatakiwa iwe sawa au kubuwa kuliko 0"
+ },
+ "v_max_length": {
+ "value": "4",
+ "is_fixed_size": "true",
+ "err": "Idadi ya kondomu za kiume zilizotolewa haitakiwi kuzidi 9999"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza nambar"
+ }
+ },
+ {
+ "key": "kit_used_in_demonstration",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "kit_used_in_demonstration",
+ "label": "Je kitepe kilitumika kwajili ya kufundishia",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali changuwa jibu "
+ }
+ },
+ {
+ "key": "kit_code",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "kit_code",
+ "type": "edit_text",
+ "hint": "Msimbo wa kitepe",
+ "relevance": {
+ "step1:kit_used_in_demonstration": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_registration.json
new file mode 100644
index 0000000000..78156a4dc0
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_registration.json
@@ -0,0 +1,290 @@
+{
+ "count": "1",
+ "encounter_type": "Self Testing Registration",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "HIVST Enrollment",
+ "fields": [
+ {
+ "key": "client_testing_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_testing_history",
+ "label": "Historia ya Upimaji wa mteja",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "new_client",
+ "text": "Mteja mpya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "new_client"
+ },
+ {
+ "key": "returning_client",
+ "text": "Mteja wa marudio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "returning_client"
+ },
+ {
+ "key": "known_positive",
+ "text": "Tayari ana maambukizi ya VVU",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Chaguwa jibu"
+ }
+ },
+ {
+ "key": "client_group",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_group_female_15_24",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group_female_15_24",
+ "label": "Chagua Kundi la Mteja ",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "fsw",
+ "text": "Mwanamke anayefanya biashara ya ngono",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fsw"
+ },
+ {
+ "key": "pwid",
+ "text": "Wajidunga dawa za kulevya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "prisoners",
+ "text": "Mfungwa/Mahabusu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoners"
+ },
+ {
+ "key": "agyw",
+ "text": "Kijana rika balehe ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "agyw"
+ },
+ {
+ "key": "others",
+ "text": "Makundi mengine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_group_female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group_female",
+ "label": "Chagua Kundi la Mteja ",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "fsw",
+ "text": "Mwanamke anayefanya biashara ya ngono",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fsw"
+ },
+ {
+ "key": "pwid",
+ "text": "Wakujidunga",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "prisoners",
+ "text": "Mfungwa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoners"
+ },
+ {
+ "key": "others",
+ "text": "Makundi mengine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_group_male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group_male",
+ "label": "chagua Kundi la Mteja ",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "msm",
+ "text": "Mwanaume anayefanya ngono na mwanaume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "msm"
+ },
+ {
+ "key": "pwid",
+ "text": "Wajidunga dawa za kulevya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "prisoners",
+ "text": "Mfungwa/Mahabusu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoners"
+ },
+ {
+ "key": "others",
+ "text": "Makundi mengine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Chaguwa jibu sahihi"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_group",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_group",
+ "type": "edit_text",
+ "hint": "Kundi Jingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jina la kundi jingine"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "known_positive_during_reg",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive_during_reg",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_results.json b/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_results.json
new file mode 100644
index 0000000000..b9a1e1f3af
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/hivst_results.json
@@ -0,0 +1,346 @@
+{
+ "count": "1",
+ "encounter_type": "Self Testing Results",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Rekodi Matokeo ya Jipime",
+ "fields": [
+ {
+ "key": "has_the_client_been_found",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_the_client_been_found",
+ "label": "Je Mteja amepatikana?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "disclose_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disclose_result",
+ "label": "Mteja ametoa majibu yake",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_test_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_test_result",
+ "label": "Chagua majibu ya vipimo vya mteja",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "reactive",
+ "text": "Viashiria Vipo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reactive"
+ },
+ {
+ "key": "non_reactive",
+ "text": "Hana viashiria",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "non_reactive"
+ },
+ {
+ "key": "invalid",
+ "text": "Jibu batili",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invalid"
+ },
+ {
+ "key": "wastage",
+ "text": "Upotevu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "wastage"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "peer_test_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "peer_test_result",
+ "label": "chagua majibu ya rafiki rika",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "reactive",
+ "text": "Viashiria Vipo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reactive"
+ },
+ {
+ "key": "non_reactive",
+ "text": "Hana viashiria",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "non_reactive"
+ },
+ {
+ "key": "invalid",
+ "text": "Jibu Batili",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invalid"
+ },
+ {
+ "key": "wastage",
+ "text": "Upotevu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "wastage"
+ },
+ {
+ "key": "not_returned",
+ "text": "Majibu hayajarudi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_returned"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "sexual_partner_test_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner_test_result",
+ "label": "chagua majibu ya mshirika wa kingono",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "reactive",
+ "text": "Viashiria Vipo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reactive"
+ },
+ {
+ "key": "non_reactive",
+ "text": "Hana viashiria",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "non_reactive"
+ },
+ {
+ "key": "invalid",
+ "text": "Majibu batili",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invalid"
+ },
+ {
+ "key": "wastage",
+ "text": "Upotevu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "wastage"
+ },
+ {
+ "key": "not_returned",
+ "text": "Majibu hayajarudi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_returned"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chaguaa jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hivst_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hivst_result",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_referral_for_peer_or_sexual_partner",
+ "type": "toaster_notes",
+ "text": "Mshauri mteja amshawishi rafiki rika/mshirika wa ngono kutembelea kituo cha afya kwa ajili ya kipimo cha uhakiki",
+ "toaster_info_text": "Mshauri mteja amshawishi rafiki rika/mshirika wa ngono kutembelea kituo cha afya kwa ajili ya kipimo cha uhakiki",
+ "toaster_info_title": "Mshauri mteja",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "register_to_hts",
+ "type": "hidden",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "register_to_hts",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "result_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "result_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_cervical_cancer_screening.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_cervical_cancer_screening.json
new file mode 100644
index 0000000000..aeada328ec
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_cervical_cancer_screening.json
@@ -0,0 +1,88 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Cervical Cancer Screening",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uchunguzi wa Saratani ya Shingo ya Kizazi",
+ "fields": [
+ {
+ "key": "cervical_cancer_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cervical_cancer_screening",
+ "type": "native_radio",
+ "label": "Je, mteja alipimwa Saratani ya Shingo ya Kizazi?",
+ "options": [
+ {
+ "key": "screened",
+ "text": " Amechunguzwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "screened"
+ },
+ {
+ "key": "not_screened",
+ "text": " Hajachunguzwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_provided"
+ },
+ {
+ "key": "referred",
+ "text": "Amepewa rufaa kwa ajili ya matibabu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referred"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": " Tafadhali chagua jibu"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_client_status.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_client_status.json
new file mode 100644
index 0000000000..804fe7eb5a
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_client_status.json
@@ -0,0 +1,183 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Client Status",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Hali ya Mteja",
+ "fields": [
+ {
+ "key": "client_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_status",
+ "label": " Aina ya tembeleo",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "new_client",
+ "text": "Mteja Mpya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "new_visit"
+ },
+ {
+ "key": "transfer_in",
+ "text": "Mteja amehamia kutoka kituo kingine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "transfer_in"
+ },
+ {
+ "key": "return",
+ "text": "Mteja amerudi kwa matibabu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "return"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "other_kvp_category",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_kvp_category",
+ "type": "check_box",
+ "label": "Aina nyingine ya Makundi Maalum",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "pwud",
+ "text": "Watumiaji wa dawa za kulevya kwa njia nyingine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwud"
+ },
+ {
+ "key": "pwid",
+ "text": "Mjidunga dawa za kulevya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "fsw",
+ "text": "Mwanamke anayefanya biashara ya ngono",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fsw"
+ },
+ {
+ "key": "msm",
+ "text": "Mwanaume anayefanya ngono na mwanaume mwenzie",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "msm"
+ },
+ {
+ "key": "agyw",
+ "text": "Msichana rika balehe na mwanamke kijana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "agyw"
+ },
+ {
+ "key": "prisoner",
+ "text": "Mfungwa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner"
+ },
+ {
+ "key": "rumandee",
+ "text": "Mahabusu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rumandee"
+ },
+ {
+ "key": "mobile_population",
+ "text": "Makundi ya watu wanao hamahama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobile_population"
+ },
+ {
+ "key": "serodiscordant_couple",
+ "text": "Mwenza mwenye majibu kinzani",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "serodiscordant_couple"
+ },
+ {
+ "key": "other_vulnerable_population",
+ "text": "Makundi mengine hatarishi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_vulnerable_population"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_condom_provision.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_condom_provision.json
new file mode 100644
index 0000000000..a2e0c497ae
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_condom_provision.json
@@ -0,0 +1,178 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Condom Provision",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Ugawaji Kondomu",
+ "fields": [
+ {
+ "key": "condoms_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condoms_given",
+ "label": "Je, mteja alipewa kondomu?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "type_of_issued_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_issued_condoms",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Chagua aina ya kondomu iliyotolewa",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "male_condoms",
+ "text": "Kondomu za Kiume",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms"
+ },
+ {
+ "key": "female_condoms",
+ "text": "Kondomu za Kike",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "step1:condoms_given": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "number_of_male_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_male_condoms_issued",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za Kiume zilizotolewa (pisi)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali weka nambari halali"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Nambari lazima iwe sawa au zaidi ya 0"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka nambari"
+ },
+ "relevance": {
+ "step1:type_of_issued_condoms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "male_condoms"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_of_female_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_female_condoms_issued",
+ "type": "edit_text",
+ "hint": "Idadi ya kondomu za Kike zilizotolewa (pisi)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali weka nambari halali"
+ },
+ "v_min": {
+ "value": "0",
+ "err": " Nambari lazima iwe sawa au zaidi ya 0"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka nambari"
+ },
+ "relevance": {
+ "step1:type_of_issued_condoms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "female_condoms"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_female_family_planning_services.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_female_family_planning_services.json
new file mode 100644
index 0000000000..c646d99137
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_female_family_planning_services.json
@@ -0,0 +1,153 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Family Planning",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uzazi wa Mpango",
+ "fields": [
+ {
+ "key": "family_planning_service",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "family_planning_service",
+ "type": "native_radio",
+ "label": "Huduma ya uzazi wa mpango alizopewa",
+ "options": [
+ {
+ "key": "pill",
+ "text": "Vidonge",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pill"
+ },
+ {
+ "key": "injectable",
+ "text": "Sindano",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "injectable"
+ },
+ {
+ "key": "implanon",
+ "text": "kijiti cha miaka 3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "implanon"
+ },
+ {
+ "key": "jadelle",
+ "text": "Kijiti cha miaka 5",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jadelle"
+ },
+ {
+ "key": "iucd",
+ "text": "Kitanzi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iucd"
+ },
+ {
+ "key": "traditional",
+ "text": "Njia ya asili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "traditional"
+ },
+ {
+ "key": "tube_ligation",
+ "text": "Kufunga uzazi ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tube_ligation"
+ },
+ {
+ "key": "referral",
+ "text": "Rufaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referral"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ },
+ {
+ "key": "refused",
+ "text": "Amekata",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "refused"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "condom_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_provided",
+ "label": "Je mteja alipewa condom kama njia ya uzazi wa mtango",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_gbv_analysis.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_gbv_analysis.json
new file mode 100644
index 0000000000..3bed8402e8
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_gbv_analysis.json
@@ -0,0 +1,88 @@
+{
+ "count": "1",
+ "encounter_type": "KVP GBV Analysis",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uchunguzi wa Ukatili wa Kijinsia",
+ "fields": [
+ {
+ "key": "gbv_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gbv_screening",
+ "type": "native_radio",
+ "label": "Uchunguzi wa ukatili wa kijinsia (kimatendo, kisaikolojia, kihisia)",
+ "options": [
+ {
+ "key": "case_reported",
+ "text": "Mteja hajaripoti ukatili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "case_reported"
+ },
+ {
+ "key": "case_not_reported",
+ "text": "Mteja ameripoti ukatili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "case_not_reported"
+ },
+ {
+ "key": "received_post_gbv_care",
+ "text": "Amepata huduma kuhusu ukatili wa kijinsia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "received_post_gbv_care"
+ },
+ {
+ "key": "referred",
+ "text": "Amepewa rufaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referred"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_health_education.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_health_education.json
new file mode 100644
index 0000000000..1d9506276c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_health_education.json
@@ -0,0 +1,154 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Health Education",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Elimu ya Afya",
+ "fields": [
+ {
+ "key": "health_education_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "health_education_provided",
+ "type": "check_box",
+ "label": "Elimu ya afya iliotolewa kwa mteja",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "sti",
+ "text": "Magonjwa ya ngono",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sti"
+ },
+ {
+ "key": "hbv_hcv",
+ "text": "Homa ya ini B&C",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hbv_hcv"
+ },
+ {
+ "key": "tb",
+ "text": "Kifua kikuu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb"
+ },
+ {
+ "key": "gbv",
+ "text": "Ukatili wa kijinsia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gbv"
+ },
+ {
+ "key": "pep",
+ "text": "PEP",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pep"
+ },
+ {
+ "key": "prep",
+ "text": "PrEP",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep"
+ },
+ {
+ "key": "vmmc",
+ "text": "Huduma za tohara",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vmmc"
+ },
+ {
+ "key": "cacx",
+ "text": "Saratani ya shingo ya kizazi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cacx"
+ },
+ {
+ "key": "drug_use_disorder",
+ "text": "Athari za dawa za kulevya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_use_disorder"
+ },
+ {
+ "key": "hiv_aids",
+ "text": "VVU na UKIMWI",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_aids"
+ },
+ {
+ "key": "others",
+ "text": "Nyinginezo (Taja)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": " Tafadhali chagua angalau moja"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_hepatitis.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_hepatitis.json
new file mode 100644
index 0000000000..d8bebeeab2
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_hepatitis.json
@@ -0,0 +1,126 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Hepatitis",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uchunguzi wa Homa ya Ini B&C",
+ "fields": [
+ {
+ "key": "hep_b_testing",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hep_b_testing",
+ "type": "native_radio",
+ "label": "Mteja alipimwa homa ya ini B",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Amepima na ana maambukizi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "positive_and_referred",
+ "text": "Amepima anamaambukizi na amepewa rufaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive_and_referred"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "not_tested",
+ "text": "Hajapimwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_tested"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jubu"
+ }
+ },
+ {
+ "key": "hep_c_testing",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hep_c_testing",
+ "type": "native_radio",
+ "label": "Mteja amepimwa homa ya ini c",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Amepima na ana maambukizi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "positive_and_referred",
+ "text": "Amepima anamaambukizi na amepewa rufaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive_and_referred"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "not_tested",
+ "text": "Hajapimwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_tested"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jubu"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_hts.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_hts.json
new file mode 100644
index 0000000000..d51241d97f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_hts.json
@@ -0,0 +1,383 @@
+{
+ "count": "1",
+ "encounter_type": "KVP HTS",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Ushauri Nasaha na Upimaji",
+ "fields": [
+ {
+ "key": "previous_hiv_testing_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "previous_hiv_testing_method",
+ "label": "Mbinu ya awali ya kupima VVU",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "hivst",
+ "text": "Kajipima mwenyewe",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hivst"
+ },
+ {
+ "key": "hiv_cv_test",
+ "text": "Ya kawaida",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_cv_test"
+ },
+ {
+ "key": "hivst_and_hiv_cv_test",
+ "text": "Zote",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hivst_and_hiv_cv_test"
+ },
+ {
+ "key": "other_method",
+ "text": " Mbinu nyingine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_method"
+ },
+ {
+ "key": "not_tested",
+ "text": "Haijapimwa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_tested"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "other_previous_hiv_testing_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_previous_hiv_testing_method",
+ "type": "edit_text",
+ "hint": " Nyingine(Bainisha)",
+ "v_required": {
+ "value": "true",
+ "err": " Tafadhali fafanua"
+ },
+ "relevance": {
+ "step1:previous_hiv_testing_method": {
+ "type": "string",
+ "ex": "equalTo(., \"other_method\")"
+ }
+ }
+ },
+ {
+ "key": "testing_site",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "testing_site",
+ "label": "Mahali huduma ya upimaji ilipofanyika",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "community",
+ "text": "Jumuiya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community"
+ },
+ {
+ "key": "facility",
+ "text": "Kituoni",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facility"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "tested_hiv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tested_hiv",
+ "label": "Je, mteja amepima VVU?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "testing_approach",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "testing_approach",
+ "label": "Mbinu ya upimaji wa mteja",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "citc",
+ "text": "CITC",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "citc"
+ },
+ {
+ "key": "pitc",
+ "text": "PITC",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pitc"
+ },
+ {
+ "key": "index",
+ "text": "Washirika wa kingono",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "index"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_status",
+ "label": "Matokeo baada ya mteja kupimwa",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "inconclusive",
+ "text": "Haikukamilika",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "inconclusive"
+ },
+ {
+ "key": "refused_results",
+ "text": "Mteja alikataa kupokea matokeo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "refused_results"
+ },
+ {
+ "key": "known_positive",
+ "text": "Inajulikana kuwa chanya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "ctc_services",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_services",
+ "label": "Kujiandikisha kwenye huduma za CTC",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "enrolled_but_not_on_arv",
+ "text": "Amejiandikisha lakini haijaanzishwa kutumia ARV",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_but_not_on_arv"
+ },
+ {
+ "key": "enrolled_and_on_arv",
+ "text": "Amejiandikisha na kuanza kutumia ARV",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_and_on_arv"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": " Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Nambari ya CTC inapaswa kuwa ya fomati (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC Number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "kits_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "kits_distributed",
+ "label": "Amepewa kitepe cha Jipime",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_iec_sbcc.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_iec_sbcc.json
new file mode 100644
index 0000000000..a4b1c98eb5
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_iec_sbcc.json
@@ -0,0 +1,66 @@
+{
+ "count": "1",
+ "encounter_type": "KVP IEC/SBCC",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "IEC/SBCC",
+ "fields": [
+ {
+ "key": "iec_sbcc_materials",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iec_sbcc_materials",
+ "type": "edit_text",
+ "hint": "Idadi ya vitita vya IEC/SBCC zinazotolewa kwa mteja",
+ "v_numeric": {
+ "value": "true",
+ "err": " Tafadhali weka nambari"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka nambari"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_male_family_planning_services.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_male_family_planning_services.json
new file mode 100644
index 0000000000..47a8c7f3ca
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_male_family_planning_services.json
@@ -0,0 +1,129 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Family Planning",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uzazi wa Mpango",
+ "fields": [
+ {
+ "key": "family_planning_service",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "family_planning_service",
+ "type": "native_radio",
+ "label": "Huduma ya uzazi wa mpango alizopewa",
+ "options": [
+ {
+ "key": "vasectomy",
+ "text": "Kufunga uzazi ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vasectomy"
+ },
+ {
+ "key": "traditional",
+ "text": "Njia ya asili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "traditional"
+ },
+ {
+ "key": "referral",
+ "text": "Amepewa rufaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referral"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ },
+ {
+ "key": "refused",
+ "text": "Amekataa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "refused"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ }
+ },
+ {
+ "key": "condom_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_provided",
+ "label": "Je Mteja alipewa condom kama njia za uzazi wa mpango",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ },
+ "relevance": {
+ "step1:family_planning_service": {
+ "type": "string",
+ "ex": "notEqualTo(., \"vasectomy\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_mat.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_mat.json
new file mode 100644
index 0000000000..545dc65623
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_mat.json
@@ -0,0 +1,82 @@
+{
+ "count": "1",
+ "encounter_type": "KVP MAT",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "MAT",
+ "fields": [
+ {
+ "key": "mat_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mat_provided",
+ "type": "native_radio",
+ "label": " Je, mteja alipewa huduma za MAT?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no_but_referral_given",
+ "text": "Hapana, lakini mteja alipewa rufaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_but_referral_given"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": " Tafadhali chagua jibu"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_other_services_and_referrals.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_other_services_and_referrals.json
new file mode 100644
index 0000000000..722851f174
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_other_services_and_referrals.json
@@ -0,0 +1,142 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Other Services",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Rufaa na Huduma Nyingine",
+ "fields": [
+ {
+ "key": "other_services_referrals_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_services_referrals_provided",
+ "type": "check_box",
+ "label": "Huduma/rufaa zingine zinazotolewa kwa mteja",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "rch",
+ "text": "Huduma za mama na mtoto",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rch"
+ },
+ {
+ "key": "mental_health",
+ "text": "Afya ya akili na msaada wa kisaikolojia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mental_health"
+ },
+ {
+ "key": "covid_vaccine",
+ "text": "Chanjo ya UVIKO",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "covid_vaccine"
+ },
+ {
+ "key": "legal_services",
+ "text": "Huduma za msaada wa kisheria",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "legal_services"
+ },
+ {
+ "key": "iga",
+ "text": "Huduma za kuongeza kipato",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iga"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "other_other_services_referrals_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_other_services_referrals_provided",
+ "type": "edit_text",
+ "hint": "Nyingine(Bainisha)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali fafanua"
+ },
+ "relevance": {
+ "step1:other_services_referrals_provided": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_prep_pep.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_prep_pep.json
new file mode 100644
index 0000000000..db1a24826b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_prep_pep.json
@@ -0,0 +1,107 @@
+{
+ "count": "1",
+ "encounter_type": "KVP PrEP and PEP",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "PEP assesment",
+ "fields": [
+ {
+ "key": "enrolled_to_prep",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_to_prep",
+ "text_color": "#000000",
+ "type": "hidden"
+ },
+ {
+ "key": "pep_provision",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pep_provision",
+ "label": "Ameandikishwa kwenye huduma za dawa kinga ",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "provided",
+ "text": "Amepewa ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community"
+ },
+ {
+ "key": "not_provided",
+ "text": "Hajapewa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facility"
+ },
+ {
+ "key": "referred",
+ "text": "amepewa rufa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referred"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadali chagua moja "
+ },
+ "relevance": {
+ "step1:enrolled_to_prep": {
+ "type": "string",
+ "ex": "notEqualTo(., \"true\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_screening_female.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_screening_female.json
new file mode 100644
index 0000000000..1c49a22d68
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_screening_female.json
@@ -0,0 +1,1087 @@
+{
+ "count": "9",
+ "skip_blank_steps": false,
+ "encounter_type": "KVP Registration",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Watumiaji wa Dawa Za Kulevya kwa Njia Nyengine",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "drug_use",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_use",
+ "label": "Umewahi kutumia Dawa za kulevya ndani ya miezi 12 iliyopita?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ }
+ },
+ {
+ "key": "is_pwud",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_pwud",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "Wakujidunga",
+ "next": "step3",
+ "fields": [
+ {
+ "key": "drug_injection",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_injection",
+ "label": "Umewahi kujidunga sindano za dawa ya kulevya?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "is_pwid",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_pwid",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step3": {
+ "title": "Tabia ya Ngono",
+ "next": "step4",
+ "fields": [
+ {
+ "key": "sexual_intercourse",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_intercourse",
+ "label": "Umewahi kushiriki tendo la ngono",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ }
+ }
+ ]
+ },
+ "step4": {
+ "title": "Mwenza Mwenye Majibu Kinzani",
+ "next": "step5",
+ "fields": [
+ {
+ "key": "hiv_status_on_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_status_on_screening",
+ "label": "Hali yako ya maambukizi ya VVU yakoje?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "unknown",
+ "text": "haijulikani",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unknown"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_positive_partner",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_positive_partner",
+ "label": "Je upo kwenye mahusiano ya kingono na mwenza mwenye VVU",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_hiv_care_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv_care_status",
+ "label": " Chunguza vigezo vifuatavyo vya mwenza wake",
+ "text_color": "#000000",
+ "type": "check_box",
+ "options": [
+ {
+ "key": "not_started_art",
+ "text": "Hajaanza dawa za ART",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_started_art"
+ },
+ {
+ "key": "art_more_than_six_months_unused",
+ "text": "Hajatumia dawa za ART zaidi ya miezi 6",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "art_more_than_six_months_unused"
+ },
+ {
+ "key": "art_adherence_doubt",
+ "text": "Ana mashaka juu ya ufuasi au matumizi ya dawa za ART",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "art_adherence_doubt"
+ },
+ {
+ "key": "no_evidence_low_vl",
+ "text": "Mwenza hana ushahidi juu kufubaza VVU",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_evidence_low_vl"
+ }
+ ],
+ "relevance": {
+ "step4:hiv_positive_partner": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_counsel_for_testing",
+ "type": "toaster_notes",
+ "text": "Mshauri mteja juu ya upimaji wa VVU",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step4:hiv_status": {
+ "type": "string",
+ "ex": "equalTo(., \"unknown\")"
+ }
+ }
+ },
+ {
+ "key": "is_sdc",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_sdc",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step5": {
+ "title": "Mwanamke Anayefanya Biashara ya Ngono",
+ "next": "step6",
+ "fields": [
+ {
+ "key": "sex_for_money",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sex_for_money",
+ "label": "Ndani ya miezi 6 iliyopita, umewahi kufanya ngono ili upate vitu, fedha au upendeleo? ",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "main_income_source_is_sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "main_income_source_is_sex",
+ "label": "Je biashara ya ngono Ndiyo njia kuu ya kupata kipato?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "step5:sex_for_money": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "is_fsw",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_fsw",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step6": {
+ "title": "Msichana Rika ya Balehe",
+ "next": "step7",
+ "fields": [
+ {
+ "key": "client_in_school",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_in_school",
+ "label": " Je, kwa sasa upo shule?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "harsh_condition_impact",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "harsh_condition_impact",
+ "type": "check_box",
+ "label": "Athari na mazingira magumu",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "not_applicable"
+ ],
+ "options": [
+ {
+ "key": "sex_for_material",
+ "text": "Ndani ya miezi 6 iliyopita, amewahi kufanya ngono ili upate vitu au fedha.",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sex_for_material"
+ },
+ {
+ "key": "sexually_abused",
+ "text": "Ana mahusiano ya kingono na mjidunga",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexually_abused"
+ },
+ {
+ "key": "sex_last_three_months",
+ "text": "Mhanga anayeendelea kutendewa ukatili wa kingono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sex_last_three_months"
+ },
+ {
+ "key": "infected_with_sexual_disease",
+ "text": "Amepata maambukizi ya magonjwa ya ngono ndani ya miezi 3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "infected_with_sexual_disease"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "step6:client_in_school": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "is_agyw",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_agyw",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step7": {
+ "title": "Makundi Mengine Hatarishi",
+ "next": "step8",
+ "fields": [
+ {
+ "key": "prisoner_or_rumandee",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner_or_rumandee",
+ "label": "Je mteja ni mfungwa au mahabusu?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "prisoner",
+ "text": "Mfungwa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner"
+ },
+ {
+ "key": "rumandee",
+ "text": "Mahabusu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rumandee"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ }
+ },
+ {
+ "key": "mobile_population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobile_population",
+ "label": "Makundi ya wanaohamahama",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "long_distance_drivers",
+ "text": "Madereva wa masafa marefu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "long_distance_drivers"
+ },
+ {
+ "key": "fishermen",
+ "text": "Wavuvi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fishermen"
+ },
+ {
+ "key": "mining_workers",
+ "text": "Wafanyakazi migodini",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mining_workers"
+ },
+ {
+ "key": "large_farm_farmers",
+ "text": "Wakulima wa mashamba makubwa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "large_farm_farmers"
+ },
+ {
+ "key": "road_builders",
+ "text": "Wajenzi wa barabara",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "road_builders"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ }
+ },
+ {
+ "key": "other_groups_at_risk",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_groups_at_risk",
+ "label": "Makundi mengine yaliyo katika hatari ya maambukizi ya VVU.",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "disabled",
+ "text": "Walemavu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabled"
+ },
+ {
+ "key": "street_children_or_orphans",
+ "text": "Watoto wa mitaani au yatima",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "street_children_or_orphans"
+ },
+ {
+ "key": "street_working_children",
+ "text": "Watoto wadogo wanaofanya kazi mitaani",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "street_working_children"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ }
+ },
+ {
+ "key": "is_ovp_kvp",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_ovp_kvp",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step8": {
+ "title": "Tathmini ya Dawa Kinga",
+ "next": "step9",
+ "fields": [
+ {
+ "key": "should_enroll",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "should_enroll",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prep_assessment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_assessment",
+ "label": "Mteja amekwisha fanyiwa tathmini ya matumizi ya dawa kinga?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "prep_qualified",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_qualified",
+ "label": "Je, mteja anastahili kuanzishiwa dawa kinga?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "step8:prep_assessment": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ },
+ "step9": {
+ "title": "Uandikishaji wa Makundi Maalum",
+ "fields": [
+ {
+ "key": "prompt_for_sdc_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Mwenzi mwenye majibu kinzani, mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi maalum",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_agyw_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Msichana rika balehe na mwanamke kijana, mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi maalum",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_ovp_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Makundi mengine, Mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi maalum",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_fsw_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Mwanamke anayefanya biashara ya ngono, mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi mahalumu",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_pwud_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Mtumiaji wa dawa za kulevya kwa njia nyingine, Mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi maalum",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_pwid_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Mjidunga dawa za kulevya, Mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi maalum",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_no_group",
+ "type": "toaster_notes",
+ "text": "Mteja huyu anguki kwenye kundi lolote la wateja wa kundi malumu, Usimsajilimteja kwenye kuni maalum",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "birth_region",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "birth_region",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "label_info_title": "Mkoa aliozaliwa mteja",
+ "label_info_text": "",
+ "hint": "Chagua mkoa aliozaliwa mteja",
+ "values": [
+ "Arusha",
+ "Dar es Salaam",
+ "Dodoma",
+ "Geita",
+ "Iringa",
+ "Kagera",
+ "Katavi",
+ "Kigoma",
+ "Kilimanjaro",
+ "Lindi",
+ "Manyara",
+ "Mara",
+ "Mbeya",
+ "Morogoro",
+ "Mtwara",
+ "Mwanza",
+ "Njombe",
+ "Pwani",
+ "Rukwa",
+ "Ruvuma",
+ "Shinyanga",
+ "Simiyu",
+ "Singida",
+ "Songwe",
+ "Tabora",
+ "Tanga"
+ ],
+ "keys": [
+ "Arusha",
+ "Dar es Salaam",
+ "Dodoma",
+ "Geita",
+ "Iringa",
+ "Kagera",
+ "Katavi",
+ "Kigoma",
+ "Kilimanjaro",
+ "Lindi",
+ "Manyara",
+ "Mara",
+ "Mbeya",
+ "Morogoro",
+ "Mtwara",
+ "Mwanza",
+ "Njombe",
+ "Pwani",
+ "Rukwa",
+ "Ruvuma",
+ "Shinyanga",
+ "Simiyu",
+ "Singida",
+ "Songwe",
+ "Tabora",
+ "Tanga"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mkoa"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "enrollment_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrollment_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya usajili",
+ "expanded": false,
+ "min_date": "today-1m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_group",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group",
+ "label": "chagua kundi la mteja kutokana na uchunguzi wa mtoa huduma",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "fsw",
+ "text": "Mwanamke anayefanya biashara ya ngono ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fsw"
+ },
+ {
+ "key": "pwud",
+ "text": "Mtumiaji wa dawa za kulevya kwa njia nyingine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwud"
+ },
+ {
+ "key": "pwid",
+ "text": "Mjidunga dawa za kulevya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "prisoner",
+ "text": "Mfungwa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner"
+ },
+ {
+ "key": "rumandee",
+ "text": "Mahabusu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rumandee"
+ },
+ {
+ "key": "agyw",
+ "text": "Msichana rika balehe na mwanamke kijana ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "agyw"
+ },
+ {
+ "key": "serodiscordant_couple",
+ "text": "Mwenzi mwenye majibu kinzani",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "serodiscordant_couple"
+ },
+ {
+ "key": "mobile_population",
+ "text": "Makundi ya watu wanaohamahama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobile_population"
+ },
+ {
+ "key": "other_vulnerable_population",
+ "text": "Makundi mengine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_vulnerable_population"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_screening_male.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_screening_male.json
new file mode 100644
index 0000000000..068e02cc9f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_screening_male.json
@@ -0,0 +1,924 @@
+{
+ "count": "8",
+ "skip_blank_steps": false,
+ "encounter_type": "KVP Registration",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "PWUD",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "drug_use",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_use",
+ "label": "Umewahi kutumia Dawa za kulevya ndani ya miezi 12 iliyopita?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ }
+ },
+ {
+ "key": "is_pwud",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_pwud",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "PWID",
+ "next": "step3",
+ "fields": [
+ {
+ "key": "drug_injection",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_injection",
+ "label": "Umewahi kujidunga sindano za dawa ya kulevya?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "is_pwid",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_pwid",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step3": {
+ "title": "Sexual Behavior",
+ "next": "step4",
+ "fields": [
+ {
+ "key": "sexual_intercourse",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_intercourse",
+ "label": "Umewahi kushiriki tendo la ngono",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ }
+ }
+ ]
+ },
+ "step4": {
+ "title": "Mwanaume Anayefanya Ngono na Mwanaume Mwenzie",
+ "next": "step5",
+ "fields": [
+ {
+ "key": "sexual_intercourse_with",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_intercourse_with",
+ "label": "Je, unashiriki ngono na Mwanaume, Mwanamke au Wote?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "man",
+ "text": "Mwanaume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "man"
+ },
+ {
+ "key": "woman",
+ "text": "Mwanamke",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "woman"
+ },
+ {
+ "key": "both",
+ "text": "wote",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "both"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "is_msm",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_msm",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step5": {
+ "title": "Serodiscordant Couple",
+ "next": "step6",
+ "fields": [
+ {
+ "key": "hiv_status_on_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_status_on_screening",
+ "label": "Hali yako ya maambukizi ya VVU yakoje?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "unknown",
+ "text": "haijulikani",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unknown"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_positive_partner",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_positive_partner",
+ "label": "Je upo kwenye mahusiano ya kingono na mwenza mwenye VVU",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_hiv_care_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv_care_status",
+ "label": " chunguza vigezo vifuatavyo vya mwenza wake",
+ "text_color": "#000000",
+ "type": "check_box",
+ "options": [
+ {
+ "key": "not_started_art",
+ "text": "Hajaanza dawa za ART ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_started_art"
+ },
+ {
+ "key": "art_more_than_six_months_unused",
+ "text": "Hajatumia dawa za ART zaidi ya miezi 6 ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "art_more_than_six_months_unused"
+ },
+ {
+ "key": "art_adherence_doubt",
+ "text": "Ana mashaka juu ya ufuasi au matumizi ya dawa za ART",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "art_adherence_doubt"
+ },
+ {
+ "key": "no_evidence_low_vl",
+ "text": "Mwenza hana ushahidi juu kufubaza VVU",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_evidence_low_vl"
+ }
+ ],
+ "relevance": {
+ "step5:hiv_positive_partner": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_counsel_for_testing",
+ "type": "toaster_notes",
+ "text": "Mshauri mteja kuhusu upimaji wa VVU",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step5:hiv_status": {
+ "type": "string",
+ "ex": "equalTo(., \"unknown\")"
+ }
+ }
+ },
+ {
+ "key": "is_sdc",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_sdc",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step6": {
+ "title": "Makundi Mengine Hatarishi",
+ "next": "step7",
+ "fields": [
+ {
+ "key": "prisoner_or_rumandee",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner_or_rumandee",
+ "label": "Je mteja ni mfungwa au mahabusu?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "prisoner",
+ "text": "Mfungwa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner"
+ },
+ {
+ "key": "rumandee",
+ "text": "Mahabusu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rumandee"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ }
+ },
+ {
+ "key": "mobile_population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobile_population",
+ "label": "Makundi ya wanaohamahama ",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "long_distance_drivers",
+ "text": "Madereva wa masafa marefu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "long_distance_drivers"
+ },
+ {
+ "key": "fishermen",
+ "text": "Wavuvi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fishermen"
+ },
+ {
+ "key": "mining_workers",
+ "text": "Wafanyakazi migodini ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mining_workers"
+ },
+ {
+ "key": "large_farm_farmers",
+ "text": "Wakulima wa mashamba makubwa ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "large_farm_farmers"
+ },
+ {
+ "key": "road_builders",
+ "text": "Wajenzi wa barabara ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "road_builders"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ }
+ },
+ {
+ "key": "other_groups_at_risk",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_groups_at_risk",
+ "label": "Makundi mengine yaliyo katika hatari ya maambukizi ya VVU",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "disabled",
+ "text": "Walemavu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabled"
+ },
+ {
+ "key": "street_children_or_orphans",
+ "text": "Watoto wa mitaani au yatima",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "street_children_or_orphans"
+ },
+ {
+ "key": "street_working_children",
+ "text": "Watoto wadogo wanaofanya kazi mitaani",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "street_working_children"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ }
+ },
+ {
+ "key": "is_ovp_kvp",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_ovp_kvp",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step7": {
+ "title": "Tathmini ya Dawa Kinga",
+ "next": "step8",
+ "fields": [
+ {
+ "key": "should_enroll",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "should_enroll",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prep_assessment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_assessment",
+ "label": "Mteja amekwisha fanyiwa tathmini ya matumizi ya dawa kinga?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "prep_qualified",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_qualified",
+ "label": "Je, mteja anastahili kuanzishiwa dawa kinga?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la swali"
+ },
+ "relevance": {
+ "step7:prep_assessment": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ },
+ "step8": {
+ "title": "Uandikishaji wa Makundi Maalum",
+ "fields": [
+ {
+ "key": "prompt_for_sdc_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Mwenzi mwenye majibu kinzani, mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi maalum ",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_msm_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Mwanaume anayefanya ngono na mwanaume mwenzie, Mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi maalum ",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_pwud_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Mtumiaji wa dawa za kulevya kwa njia nyingine, Mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi maalum ",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_pwid_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Mjidunga dawa za kulevya, Mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi maalum ",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_no_group",
+ "type": "toaster_notes",
+ "text": "Mteja huyu anguki kwenye kundi lolote la wateja wa kundi malumu, Usimsajilimteja kwenye kuni maalum",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_ovp_kvp",
+ "type": "toaster_notes",
+ "text": "Mteja huyu ni Makundi mengine, Mteja anatakiwa kuandikishwa kwenye huduma rafiki za makundi maalum ",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "birth_region",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "birth_region",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "label_info_title": "Mkoa aliozaliwa mteja",
+ "label_info_text": "",
+ "hint": "Chagua mkoa aliozaliwa mteja",
+ "values": [
+ "Arusha",
+ "Dar es Salaam",
+ "Dodoma",
+ "Geita",
+ "Iringa",
+ "Kagera",
+ "Katavi",
+ "Kigoma",
+ "Kilimanjaro",
+ "Lindi",
+ "Manyara",
+ "Mara",
+ "Mbeya",
+ "Morogoro",
+ "Mtwara",
+ "Mwanza",
+ "Njombe",
+ "Pwani",
+ "Rukwa",
+ "Ruvuma",
+ "Shinyanga",
+ "Simiyu",
+ "Singida",
+ "Songwe",
+ "Tabora",
+ "Tanga"
+ ],
+ "keys": [
+ "Arusha",
+ "Dar es Salaam",
+ "Dodoma",
+ "Geita",
+ "Iringa",
+ "Kagera",
+ "Katavi",
+ "Kigoma",
+ "Kilimanjaro",
+ "Lindi",
+ "Manyara",
+ "Mara",
+ "Mbeya",
+ "Morogoro",
+ "Mtwara",
+ "Mwanza",
+ "Njombe",
+ "Pwani",
+ "Rukwa",
+ "Ruvuma",
+ "Shinyanga",
+ "Simiyu",
+ "Singida",
+ "Songwe",
+ "Tabora",
+ "Tanga"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mkoa"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "enrollment_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrollment_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya kuandikishwa",
+ "expanded": false,
+ "min_date": "today-1m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_group",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group",
+ "label": "Select the client group as screened by the health care provider",
+ "text_color": "#000000",
+ "type": "radio_group",
+ "options": [
+ {
+ "key": "msm",
+ "text": "High Risk Men",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "msm"
+ },
+ {
+ "key": "pwud",
+ "text": "PWUD",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwud"
+ },
+ {
+ "key": "pwid",
+ "text": "PWID",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "prisoner",
+ "text": "Prisoners",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner"
+ },
+ {
+ "key": "rumandee",
+ "text": "Rumandee",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rumandee"
+ },
+ {
+ "key": "serodiscordant_couple",
+ "text": "Mwenza /mwenye majibu kinzani",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "serodiscordant_couple"
+ },
+ {
+ "key": "mobile_population",
+ "text": "Mobile population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobile_population"
+ },
+ {
+ "key": "other_vulnerable_population",
+ "text": "Other vulnerable population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_vulnerable_population"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza jibu la maswali"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_sti_screening.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_sti_screening.json
new file mode 100644
index 0000000000..54c615478e
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_sti_screening.json
@@ -0,0 +1,135 @@
+{
+ "count": "1",
+ "encounter_type": "KVP STI",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uchunguzi wa Magonjwa ya Ngono",
+ "fields": [
+ {
+ "key": "sti_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sti_screening",
+ "type": "native_radio",
+ "label": "Kuchunguzwa magonjwa ya Ngono",
+ "options": [
+ {
+ "key": "positive",
+ "text": "chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "screening_not_conducted",
+ "text": "Hajachunguzwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "screening_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "treatment_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "treatment_provided",
+ "type": "native_radio",
+ "label": "Ametibiwa magonjwa ya ngono (kama alipata)",
+ "options": [
+ {
+ "key": "treated",
+ "text": "Ametibiwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "treated"
+ },
+ {
+ "key": "referral",
+ "text": "Amepewa rufaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referral"
+ },
+ {
+ "key": "not_treated",
+ "text": "Haihusiki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_treated"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "step1:sti_screening": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_further_management",
+ "type": "toaster_notes",
+ "text": "Mpe refa kwa huduma zaidi",
+ "openmrs_entity_id": "prompt_for_further_management",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:treatment_provided": {
+ "type": "string",
+ "ex": "equalTo(., \"not_treated\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_tb_investigation.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_tb_investigation.json
new file mode 100644
index 0000000000..2e4a2c47e6
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_tb_investigation.json
@@ -0,0 +1,97 @@
+{
+ "count": "1",
+ "encounter_type": "KVP TB Investigation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uchunguzi wa Kifua Kikuu",
+ "fields": [
+ {
+ "key": "tb_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_screening",
+ "type": "native_radio",
+ "label": "Mteja amefanyiwa uchunguzi wa kifua kikuu",
+ "options": [
+ {
+ "key": "presumptive",
+ "text": "Ana dalili ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "presumptive"
+ },
+ {
+ "key": "not_presumptive",
+ "text": "Hana dalili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_presumptive"
+ },
+ {
+ "key": "not_screened",
+ "text": "Hajachunguzwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_screened"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "prompt_for_tb_investigation",
+ "type": "toaster_notes",
+ "text": "Mpatie mteja rufa kwa ajili ya kipimo cha kifua kikuu",
+ "openmrs_entity_id": "prompt_for_Tachycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:tb_screening": {
+ "type": "string",
+ "ex": "equalTo(., \"presumptive\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_vmmc_services.json b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_vmmc_services.json
new file mode 100644
index 0000000000..22f505596d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/kvp_vmmc_services.json
@@ -0,0 +1,88 @@
+{
+ "count": "1",
+ "encounter_type": "KVP VMMC",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Huduma za Tohara",
+ "fields": [
+ {
+ "key": "vmcc_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vmcc_provided",
+ "type": "native_radio",
+ "label": "Je, mteja alipewa huduma za Tohara?",
+ "options": [
+ {
+ "key": "provided",
+ "text": "Alipewa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided"
+ },
+ {
+ "key": "not_provided",
+ "text": "Hakupewa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_provided"
+ },
+ {
+ "key": "referred",
+ "text": "Amepewa rufaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referred"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_confirmation.json b/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_confirmation.json
index 7e9efb2c65..da0bae2849 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_confirmation.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_confirmation.json
@@ -1,6 +1,4 @@
{
- "validate_on_submit": true,
- "show_errors_on_submit": false,
"count": "2",
"encounter_type": "Malaria Confirmation",
"entity_id": "",
@@ -54,7 +52,7 @@
}
},
"step1": {
- "title": "Uhakiki wa Malaria",
+ "title": "Malaria Confirmation",
"next": "step2",
"fields": [
{
@@ -77,14 +75,10 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fever_malaria_chw",
"type": "spinner",
- "hint": "Je, mteja ana homa au aligunduliwa kuwa na malaria ndani ya siku 14 katika kituo cha afya?",
+ "hint": "Je, mtu huyu ana homa au alipima malaria katika siku 14 zilizopita kwenye kituo cha afya?",
"values": [
"Ana homa",
- "Alikuwa na malaria ndani ya siku 14"
- ],
- "keys": [
- "Has a fever",
- "Tested positive for malaria in the last 14 days at a health facility"
+ "Alipimwa na kuwa na malaria katika siku 14 zilizopita katika kituo cha afya"
],
"v_required": {
"value": "true",
@@ -101,14 +95,10 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "1731AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "spinner",
- "hint": "Umekuwa na homa kwa muda gani?",
+ "hint": "Muda wa homa?",
"values": [
- "Ndani ya saa 24",
- "Zaidi ya saa 24"
- ],
- "keys": [
- "Less than 24 hrs",
- "More than 24 hrs"
+ "Chini ya masaa 24",
+ "Zaidi ya masaa 24"
],
"openmrs_choice_ids": {
"Less than 24 hrs": "164449AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
@@ -132,16 +122,11 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "1643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "spinner",
- "hint": "Majibu ya mRDT",
+ "hint": "Matokeo ya mRDT",
"values": [
"Chanya",
"Hasi",
- "Kipimo hakijafanyika"
- ],
- "keys": [
- "Positive",
- "Negative",
- "Not done"
+ "Haijafanyika"
],
"openmrs_choice_ids": {
"Positive": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
@@ -166,12 +151,12 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "date_hf_malaria_test",
"type": "date_picker",
- "hint": "Tarehe ya kipimo cha malaria katika kituo cha afya",
+ "hint": "Tarehe ya kufanyika kwa kipimo cha malaria katika kituo cha afya",
"expanded": false,
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza tarehe ya majaribio ya ugonjwa wa malaria katika kituo cha afya"
+ "err": "Tafahdali ingiza tarehe ya kufanyika kwa kipimo cha malaria katika kituo cha afya"
},
"relevance": {
"rules-engine": {
@@ -215,23 +200,15 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "malaria_treat",
"type": "spinner",
- "hint": "Matibabu aliyopewa",
+ "hint": "Matibabu yaliyotolewa",
"values": [
"ALU 6",
"ALU 12",
"ALU 18",
"ALU 24",
- "Hajapewa",
+ "Hayakutolewa",
"Matibabu mengine"
],
- "keys": [
- "ALU 6",
- "ALU 12",
- "ALU 18",
- "ALU 24",
- "Not given",
- "Other treatment"
- ],
"openmrs_choice_ids": {
"ALU 6": "1072AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"ALU 12": "1072AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
@@ -255,7 +232,7 @@
]
},
"step2": {
- "title": "Kuzuia Malaria",
+ "title": "Malaria Prevention",
"fields": [
{
"key": "fam_llin",
@@ -263,22 +240,18 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fam_llin",
"type": "spinner",
- "hint": "Ana chandarua chenye viuwatilifu?",
+ "hint": "Je, una chandarua chenye dawa inayodumu kwa muda mrefu (LLIN)?",
"values": [
"Ndiyo",
"Hapana"
],
- "keys": [
- "Yes",
- "No"
- ],
"openmrs_choice_ids": {
"Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo moja"
+ "err": "Tafadhali chagua chaguzi moja"
}
},
{
@@ -287,22 +260,18 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "llin_2days",
"type": "spinner",
- "hint": "Je, amelala kwenye chandarua chenye viuwatilifu usiku uliopita?",
+ "hint": "Je, ulilala chini ya chandarua (LLIN) jana usiku?",
"values": [
"Ndiyo",
"Hapana"
],
- "keys": [
- "Yes",
- "No"
- ],
"openmrs_choice_ids": {
"Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo moja"
+ "err": "Tafadhali chagua chaguzi moja"
},
"relevance": {
"rules-engine": {
@@ -318,14 +287,10 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "llin_condition",
"type": "spinner",
- "hint": "Hali ya chandarua chenye viuwatilifu kinachotumika",
+ "hint": "Hali ya chandarua (LLIN)",
"values": [
- "Nzima",
- "Mbovu"
- ],
- "keys": [
- "Okay",
- "Bad"
+ "Nzuri",
+ "Mbaya"
],
"openmrs_choice_ids": {
"Okay": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
@@ -333,7 +298,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo moja"
+ "err": "Tafadhali chagua chaguzi moja"
},
"relevance": {
"rules-engine": {
@@ -349,22 +314,14 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "1379AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "spinner",
- "hint": "Mada juu ya ugonjwa wa malaria zilizofundishwa",
+ "hint": "Mada za malaria zilizojadiliwa",
"values": [
- "Muktasari kuhusu ugonjwa wa malaria",
- "Kuzuia malaria",
- "Malaria isiyokali",
- "Malaria kali",
- "Malaria kwa mama mjamzito",
- "Hajafanya"
- ],
- "keys": [
- "Overview on malaria",
- "Malaria prevention",
- "Uncomplicated malaria",
- "Severe malaria",
- "Malaria in pregnancy",
- "None"
+ "Muhtasari wa ugonjwa wa malaria",
+ "Kuzuia Malaria",
+ "Malaria isiyo ngumu",
+ "Ml\\alaria kali",
+ "Malaria wakati wa ujauzito",
+ "Hakuna"
],
"openmrs_choice_ids": {
"Overview on malaria": "116128AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
@@ -376,7 +333,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo moja"
+ "err": "Tafadhali chagua chaguzi moja"
}
}
]
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_follow_up_hf.json b/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_follow_up_hf.json
index 524f7786b9..3041065377 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_follow_up_hf.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_follow_up_hf.json
@@ -80,7 +80,7 @@
"hint": "Uzito (kg)",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza uzito (kg)"
+ "err": "Tafhadhali ingiza uzito"
}
},
{
@@ -93,7 +93,7 @@
"hint": "Urefu (cm)",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza urefu (cm)"
+ "err": "Tafadhali ingiza urefu"
}
},
{
@@ -113,19 +113,19 @@
{
"key": "mRDT_not_done",
"openmrs_choice_id": "",
- "text": "Kipimo cha mRDT hakitakiwi kufanyika",
+ "text": "mRDT haijafanyika",
"value": false
},
{
"key": "Other_tests",
"openmrs_choice_id": "",
- "text": "Vipimo vingine",
+ "text": "Vpipimo vingine",
"value": false
}
],
"v_required": {
"value": "true",
- "err": "Tafadhali onesha vipimo vilivyoamuru"
+ "err": "Tafadhali onyesha vipimo vilivyoagizwa"
}
},
{
@@ -134,19 +134,19 @@
"openmrs_entity": "",
"openmrs_entity_id": "no_mrdt_malaria_hf",
"openmrs_entity_parent": "",
- "label": "Sababu ya kutofanyika kipimo cha mRDT",
+ "label": "Sababu ya kipimo cha mRDT kutofanyika",
"combine_checkbox_option_values": "true",
"options": [
{
"key": "stock_out",
"openmrs_choice_id": "",
- "text": "Ukosefu wa vitendanishi",
+ "text": "Vifaa vimeisha",
"value": false
},
{
"key": "mRDT_done_within_14_days",
"openmrs_choice_id": "",
- "text": "Kipimo cha mRDT kimefanyika ndani ya siku 14",
+ "text": "mRDT imefanyika ndani ya siku 14",
"value": false
}
],
@@ -159,7 +159,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali chagua sababu ya mRDT haijafanywa"
+ "err": "Tafadhali chagua sababu ya kutofanya kipimo cha mRDT"
}
},
{
@@ -169,7 +169,7 @@
"openmrs_entity_id": "other_test_malaria_hf",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Taja vipimo vingine vilivyoagizwa",
+ "hint": "Vipimo vingu=ine vilivyoombwa",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -179,7 +179,7 @@
},
"v_required": {
"value": false,
- "err": "Tafadhali ingiza majaribio mengine yaliyoombewa"
+ "err": "Tafadhali ingiza vipimo vingine vilivyoombwa"
}
},
{
@@ -188,7 +188,7 @@
"openmrs_entity": "",
"openmrs_entity_id": "test_results_malaria_hf",
"openmrs_entity_parent": "",
- "label": "Matokeo ya vipimo",
+ "label": "Matokeo ya kipimo",
"options": [
{
"key": "mRDT_positive",
@@ -199,31 +199,31 @@
{
"key": "mRDT_negative",
"openmrs_choice_id": "",
- "text": "mRDT hasi",
+ "text": "mRDT hasi ",
"value": false
},
{
"key": "Malaria_parasite_seen",
"openmrs_choice_id": "",
- "text": "Kuna vimelea vya malaria",
+ "text": "Kijidudu cha Malaria kimeonekana",
"value": false
},
{
"key": "No_malaria_parasite_seen",
"openmrs_choice_id": "",
- "text": "Hakuna vimelea vya malaria",
+ "text": "Kijidudu cha Malaria hakionekani",
"value": false
},
{
"key": "Other_test_results",
"openmrs_choice_id": "",
- "text": "Matokeo ya vipimo vingines",
+ "text": "Matokeo mengine ya kipimo",
"value": false
}
],
"v_required": {
"value": "true",
- "err": "Tafadhali chagua matokeo ya jaribio"
+ "err": "Tafadhali ingiza matokeo ya kipimo"
}
},
{
@@ -233,7 +233,7 @@
"openmrs_entity_id": "other_test_results_malaria_hf",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Matokeo ya vipimo vingine",
+ "hint": "Matokeo mengine ya kipimo",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -243,7 +243,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza matokeo mengine"
+ "err": "Tafadhali ingiza matokeo megine ya kipimo"
}
},
{
@@ -252,13 +252,13 @@
"openmrs_entity": "",
"openmrs_entity_id": "diagnosis_malaria_hf",
"openmrs_entity_parent": "",
- "label": "Diagnosis",
+ "label": "Utambuzi",
"combine_checkbox_option_values": "true",
"options": [
{
"key": "Uncomplicated_malaria",
"openmrs_choice_id": "",
- "text": "Malaria isiyo kali",
+ "text": "Malaria isiyo ngumu",
"value": false
},
{
@@ -270,13 +270,13 @@
{
"key": "Other_diagnosis",
"openmrs_choice_id": "",
- "text": "Diagnosis nyingine",
+ "text": "Utambuzi mwingine",
"value": false
}
],
"v_required": {
"value": "true",
- "err": "Tafadhali chagua utambuzi"
+ "err": "Tafadhali ingiza utambuzi"
}
},
{
@@ -286,7 +286,7 @@
"openmrs_entity_id": "other_diagnosis_malaria_hf",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Diagnosis nyingine",
+ "hint": "Utambuzi mwingine",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -296,7 +296,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza diagnosis nyingine"
+ "err": "Tafadhali ingiza utambuzi mwingine"
}
},
{
@@ -306,30 +306,30 @@
"openmrs_entity_id": "treat_malaria_hf",
"openmrs_entity_parent": "",
"combine_checkbox_option_values": "true",
- "label": "Matibabu aliyoandikiwa",
+ "label": "Matibabu yaliyotolewa",
"options": [
{
"key": "ALU_1_x_6_strips",
"openmrs_choice_id": "",
- "text": "ALU ya 1 x 6",
+ "text": "Vipande vya ALU 1 x ",
"value": false
},
{
"key": "ALU_2_x_6_strips",
"openmrs_choice_id": "",
- "text": "ALU ya 2 x 6",
+ "text": "Vipande vya ALU 2 x 6",
"value": false
},
{
"key": "ALU_3_x_6_strips",
"openmrs_choice_id": "",
- "text": "ALU ya 3 x 6",
+ "text": "Vipandde vya ALU 3 x 6",
"value": false
},
{
"key": "ALU_4_x_6_strips",
"openmrs_choice_id": "",
- "text": "ALU ya 4 x 6",
+ "text": "Vipande vya ALU 4 x 6",
"value": false
},
{
@@ -341,13 +341,13 @@
{
"key": "Paracetamol",
"openmrs_choice_id": "",
- "text": "Panadol (Dawa ya kupunguza maumivu)",
+ "text": "Paracetamol",
"value": false
},
{
"key": "Other_drugs",
"openmrs_choice_id": "NA",
- "text": "Dawa nyingine",
+ "text": "Dawa zingine",
"value": false
}
],
@@ -360,7 +360,7 @@
},
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza matibabu iliyowekwa"
+ "err": "Tafadhali ingiza matibabu yaliyotolewa"
}
},
{
@@ -370,7 +370,7 @@
"openmrs_entity_id": "treat_other_malaria_hf",
"openmrs_entity_parent": "",
"edit_type": "name",
- "hint": "Taja dawa nyingine zilizotolewa",
+ "hint": "Taja dawa zingine zilizotolewa",
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -380,7 +380,7 @@
},
"v_required": {
"value": "true",
- "err": "Taja dawa nyingine zilizotolewa"
+ "err": "Tafadhali ingiza dawa zingine"
}
},
{
@@ -396,7 +396,7 @@
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Rufaa"
+ "text": "Amepewa rufaa"
},
{
"key": "Admitted",
@@ -410,14 +410,14 @@
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Kifo"
+ "text": "Amefariki"
},
{
"key": "Discharge",
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Ameruhusiwa"
+ "text": "Ametolewa"
}
],
"v_required": {
@@ -435,7 +435,7 @@
"hint": "Maoni",
"v_required": {
"value": "false",
- "err": null
+ "err": "Hamna"
}
},
{
@@ -444,70 +444,70 @@
"openmrs_entity": "",
"openmrs_entity_id": "hcp_attending",
"openmrs_entity_parent": "",
- "label": "Kada ya mtoa huduma kwa mteja",
+ "label": "Wadhifa wa mtoa huduma wa afya anamhudumia mteja",
"options": [
{
"key": "Medical_Doctor_MD",
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Medical Doctor (MD)"
+ "text": "Daktari wa Tiba (MD)"
},
{
"key": "Assistant_Medical_Doctor_AMO",
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Assistant Medical Doctor (AMO)"
+ "text": "Daktari Msaidizi wa Tiba (AMO)"
},
{
"key": "Clinical_Officer_CO",
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Clinical Officer (CO)"
+ "text": "Afisa wa Kliniki (CO)"
},
{
"key": "Assistance_Clincal_Officer_ACO",
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Assistance Clincal Officer (ACO)"
+ "text": "Afisa Msaidizi wa Kliniki (ACO)"
},
{
"key": "Nursing_Officer_NO",
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Nursing Officer (NO)"
+ "text": "Afisa Muuguzi (NO)"
},
{
"key": "Assistant_Nursing_officer_ANO",
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Assistant Nursing officer (ANO)"
+ "text": "Afisa Muuguzi Msaidizi"
},
{
"key": "Enrolled_Nurse_EN",
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Enrolled Nurse (EN)"
+ "text": "Muuguzi aliyeanzikishwa (EN)"
},
{
"key": "Medical_Attendant_MAT",
"openmrs_entity": "",
"openmrs_entity_id": "",
"openmrs_entity_parent": "",
- "text": "Medical Attendant (MAT)"
+ "text": "Mhudumu wa matibabu (MAT)"
}
],
"v_required": {
"value": "true",
- "err": "Tafadhali chagua kichwa cha kuhudhuria"
+ "err": "Tafadhali chagua wadhifa wa mtoa huduma wa afya anayehudumia"
}
}
]
}
-}
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_follow_up_visit.json b/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_follow_up_visit.json
index e0f2b312b4..42251ff690 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_follow_up_visit.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/malaria_follow_up_visit.json
@@ -62,7 +62,7 @@
"openmrs_entity": "",
"openmrs_entity_id": "1889AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Je, ulienda hospitali kwa ajili ya kipimo na matibabu ya malaria?",
+ "label": "Je, ulipokea rufaa au ulienda hospitali kwa matibabu ya malaria?",
"options": [
{
"key": "Yes",
@@ -81,7 +81,7 @@
],
"v_required": {
"value": "true",
- "err": null
+ "err": "null"
}
},
{
@@ -90,7 +90,7 @@
"openmrs_entity": "",
"openmrs_entity_id": "162686AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Matibabu uliyopewa",
+ "label": "Matibabu yaliyotolewa",
"options": [
{
"key": "ALU_6",
@@ -132,7 +132,7 @@
"openmrs_entity": "",
"openmrs_entity_id": "1767AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Amepewa matibabu, lakini hakumbuki aina gani"
+ "text": "Amepewa matibabu, ila hakumbuki ni yapi hasa"
},
{
"key": "Not_given_treatment",
@@ -144,7 +144,7 @@
],
"v_required": {
"value": "true",
- "err": null
+ "err": "null"
},
"relevance": {
"rules-engine": {
@@ -160,7 +160,7 @@
"openmrs_entity": "",
"openmrs_entity_id": "1743AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Sababu ya kutopata matibabu",
+ "label": "Sababu ya kutopewa matibabu",
"options": [
{
"key": "Referral_unsuccessful",
@@ -174,7 +174,7 @@
"openmrs_entity": "",
"openmrs_entity_id": "1754AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Dawa zimeisha"
+ "text": "Dawa ziliisha"
},
{
"key": "Other_reason",
@@ -186,7 +186,7 @@
],
"v_required": {
"value": "true",
- "err": null
+ "err": "null"
},
"relevance": {
"rules-engine": {
@@ -202,7 +202,7 @@
"openmrs_entity": "",
"openmrs_entity_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Je, bado ana homa?",
+ "label": "Bado una homa?",
"options": [
{
"key": "Yes",
@@ -221,7 +221,7 @@
],
"v_required": {
"value": "true",
- "err": null
+ "err": "null"
}
},
{
@@ -230,26 +230,26 @@
"openmrs_entity": "",
"openmrs_entity_id": "1731AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Umekuwa na homa kwa muda gani?",
+ "label": "Muda wa homa",
"options": [
{
"key": "Less_than_24hrs",
"openmrs_entity": "",
"openmrs_entity_id": "164449AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Ndani ya saa 24"
+ "text": "Chini ya masaa 24"
},
{
"key": "More_than_24hrs",
"openmrs_entity": "",
"openmrs_entity_id": "NA",
"openmrs_entity_parent": "",
- "text": "Zaidi ya saa 24"
+ "text": "Zaidi ya masaa 24"
}
],
"v_required": {
"value": "true",
- "err": null
+ "err": "null"
},
"relevance": {
"rules-engine": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/male_family_planning_change_method.json b/opensrp-chw-hf/src/main/assets/json.form-sw/male_family_planning_change_method.json
index 23bde024b5..f68baf9c5e 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/male_family_planning_change_method.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/male_family_planning_change_method.json
@@ -18,11 +18,6 @@
"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",
@@ -54,7 +49,7 @@
}
},
"step1": {
- "title": "Badilisha au acha fomu ya uzazi wa mpango",
+ "title": "Change or Stop FP form",
"next": "step2",
"fields": [
{
@@ -84,7 +79,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "164901AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Sababu za kuacha kutumia njia za uzazi wa mpango ya sasa",
+ "label": "Sababu ya mwanaume kusitisha njia yake ya sasa ya kupanga uzazi",
"options": [
{
"key": "side_effects",
@@ -98,29 +93,28 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "160571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Anataka mimba"
+ "text": "Anataka Kuzalisha"
},
{
"key": "doesnt_want_to_use_anymore",
"openmrs_entity": "concept",
"openmrs_entity_id": "164260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Hataki kutumia sasa "
+ "text": "Hataki kutumia tena"
},
{
"key": "decided_to_change_method",
"openmrs_entity": "concept",
"openmrs_entity_id": "163494AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "value": false,
- "text": "Aliamua kubadilisha mpango wa uzazi"
+ "text": "Iliamua kubadilisha mbinu"
},
{
"key": "others",
"openmrs_entity": "concept",
"openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Nyingine"
+ "text": "Wengine"
}
],
"v_required": {
@@ -138,7 +132,7 @@
"hint": "Sababu nyingine",
"v_required": {
"value": "true",
- "err": "Ni lazima kuingiza sababu nyingine"
+ "err": "Inahitajika"
},
"relevance": {
"rules-engine": {
@@ -158,7 +152,7 @@
"hint": "Madhara",
"v_required": {
"value": "true",
- "err": "Ni lazima kuingiza madhara"
+ "err": "Inahitajika"
},
"relevance": {
"rules-engine": {
@@ -171,7 +165,7 @@
]
},
"step2": {
- "title": "Njia ya uzazi wa mpango",
+ "title": "Family planning method",
"fields": [
{
"key": "fp_method_accepted",
@@ -179,11 +173,11 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_method_accepted",
"type": "spinner",
- "hint": "Njia za uzazi wa mpango selected",
+ "hint": "Mbinu ya kupanga uzazi imechaguliwa",
"values": [
"Kondomu ya kiume",
"Kondomu ya kike",
- "Kufunga kizazi mwanamme"
+ "Kufunga kizazi kwa wanaume"
],
"keys": [
"Male condom",
@@ -214,18 +208,18 @@
"openmrs_entity_id": "no_condoms",
"type": "edit_text",
"edit_type": "number",
- "hint": "Amepata vipande vya kondpmu vingapi?",
+ "hint": "Je, alipewa kondomu ngapi?",
"v_required": {
"value": "true",
- "err": "Sawa au kubwa kuliko 0"
+ "err": "Sawa au zaidi ya 0"
},
"v_numeric_integer": {
"value": "true",
- "err": "Lazima iwe nambari iliyo na mviringo"
+ "err": "Weka umri halali"
},
"v_min": {
"value": "0",
- "err": "Nambari lazima iwe sawa au kubwa kuliko 0"
+ "err": "Nambari lazima iwe sawa au zaidi ya 0"
},
"relevance": {
"rules-engine": {
@@ -256,9 +250,9 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "counselling_use",
"type": "spinner",
- "hint": "Je, ameshauri jinsi ya kutumia njia za uzazi wa mpango aliyochagua?",
+ "hint": "Je, alishauriwa jinsi ya kutumia njia ya kupanga uzazi?",
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
"keys": [
@@ -287,7 +281,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_male_ster",
"type": "date_picker",
- "hint": "Tarehe ya kufunga kizazi cha mwanamume",
+ "hint": "Tarehe ya Kufunga kizazi ya kiume",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -298,7 +292,7 @@
},
"v_required": {
"value": "true",
- "err": "Ni lazima kuingiza tarehe ya kufunga kizazi cha mwanamume"
+ "err": "Inahitajika"
}
},
{
@@ -322,8 +316,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Tumia kondomu kwa miezi mitatu kuzuia ujazito",
- "toaster_info_text": "Tumia kondomu kwa miezi mitatu kuzuia ujazito",
+ "text": "Mshauri mwanaume atumie kondomu kwa muda wa miezi 3 ya kwanza ili kuzuia mimba",
+ "toaster_info_text": "Advise the man to use condoms for the first 3 months to prevent pregnancy",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -335,4 +329,4 @@
}
]
}
-}
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/male_family_planning_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/male_family_planning_registration.json
index dbcbe7dfde..205cec95b7 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/male_family_planning_registration.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/male_family_planning_registration.json
@@ -18,11 +18,6 @@
"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",
@@ -54,21 +49,9 @@
}
},
"step1": {
- "title": "Maelezo ya usajili wa uzazi wa mpango",
+ "title": "Family planning registration Info",
"next": "step2",
"fields": [
- {
- "key": "sync_location_id",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "sync_location_id",
- "type": "spinner",
- "hint": "Tafadhali chagua eneo la CHW",
- "v_required": {
- "value": "true",
- "err": "Tafadhali chagua eno la CHW"
- }
- },
{
"key": "fp_reg_date",
"openmrs_entity_parent": "",
@@ -96,14 +79,14 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "label": "Je, alishauriwa kwa njia tofauti za uzazi wa mpango?",
+ "label": "Je, alishauriwa kuhusu mbinu tofauti za kupanga uzazi?",
"options": [
{
"key": "yes",
"openmrs_entity": "concept",
"openmrs_entity_id": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Ndiyo"
+ "text": "Ndio"
},
{
"key": "no",
@@ -115,7 +98,7 @@
],
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo moja"
+ "err": "Tafadhali chagua moja"
}
},
{
@@ -131,7 +114,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "text": "Ndiyo"
+ "text": "Ndio"
},
{
"key": "no",
@@ -149,7 +132,7 @@
]
},
"step2": {
- "title": "Njia ya uzazi wa mpango",
+ "title": "Family planning method",
"fields": [
{
"key": "fp_method_accepted",
@@ -157,16 +140,11 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_method_accepted",
"type": "spinner",
- "hint": "Njia za uzazi wa mpango selected",
+ "hint": "Mbinu ya kupanga uzazi imechaguliwa",
"values": [
"Kondomu ya kiume",
"Kondomu ya kike",
- "Kufunga kizazi mwanamme"
- ],
- "keys": [
- "Male condom",
- "Female condom",
- "Male sterilization"
+ "Kufunga kizazi kwa wanaume"
],
"openmrs_choice_ids": {
"Male condom": "164813AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
@@ -199,18 +177,18 @@
"openmrs_entity_id": "no_condoms",
"type": "edit_text",
"edit_type": "number",
- "hint": "Amepata vipande vya kondpmu vingapi?",
+ "hint": "Je, alipewa kondomu ngapi?",
"v_required": {
"value": "true",
- "err": "Sawa au kubwa kuliko 0"
+ "err": "Sawa au zaidi ya 0"
},
"v_numeric_integer": {
"value": "true",
- "err": "Lazima iwe nambari iliyo na mviringo"
+ "err": "Weka umri halali"
},
"v_min": {
"value": "0",
- "err": "Nambari lazima iwe sawa au kubwa kuliko 0"
+ "err": "Nambari lazima iwe sawa au zaidi ya 0"
},
"relevance": {
"rules-engine": {
@@ -225,8 +203,7 @@
"openmrs_entity_parent": "190AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_condom",
- "type": "edit_text",
- "hidden": true,
+ "type": "hidden",
"calculation": {
"rules-engine": {
"ex-rules": {
@@ -241,15 +218,11 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "counselling_use",
"type": "spinner",
- "hint": "Je, ameshauri jinsi ya kutumia njia za uzazi wa mpango aliyochagua?",
+ "hint": "Je, alishauriwa jinsi ya kutumia njia ya kupanga uzazi?",
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
- "keys": [
- "Yes",
- "No"
- ],
"openmrs_choice_ids": {
"Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -272,7 +245,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_male_ster",
"type": "date_picker",
- "hint": "Tarehe ya kufunga kizazi cha mwanamume",
+ "hint": "Tarehe ya kufunga kizazi ya kiume",
"max_date": "today",
"relevance": {
"rules-engine": {
@@ -283,7 +256,7 @@
},
"v_required": {
"value": "true",
- "err": "Ni lazime kuingiza tarehe ya kufunga kizazi cha mwanamume"
+ "err": "Inahitajika"
}
},
{
@@ -292,8 +265,8 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Tumia kondomu kwa miezi mitatu kuzuia ujazito",
- "toaster_info_text": "Tumia kondomu kwa miezi mitatu kuzuia ujazito",
+ "text": "Mshauri mwanaume atumie kondomu kwa muda wa miezi 3 ya kwanza ili kuzuia mimba",
+ "toaster_info_text": "Mshauri mwanaume atumie kondomu kwa muda wa miezi 3 ya kwanza ili kuzuia mimba",
"toaster_type": "info",
"relevance": {
"rules-engine": {
@@ -320,4 +293,4 @@
}
]
}
-}
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/male_fp_referral_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/male_fp_referral_form.json
new file mode 100644
index 0000000000..062bb4a72d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/male_fp_referral_form.json
@@ -0,0 +1,247 @@
+{
+ "count": "1",
+ "encounter_type": "Family Planning Referral",
+ "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": "Family Planning Referral",
+ "fields": [
+ {
+ "key": "fp_method_accepted_referral",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "374AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
+ "label": "Mbinu ya FP iliyochaguliwa inayohitaji rufaa",
+ "label_text_style": "bold",
+ "options": [
+ {
+ "key": "Male_condom",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "164813AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
+ "text": "Kondomu ya kiume"
+ },
+ {
+ "key": "Female_condom",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "164814AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
+ "text": "Kondomu ya kike"
+ },
+ {
+ "key": "Male_sterilization",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "1489AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
+ "text": "Kufunga kizazi kwa wanaume"
+ },
+ {
+ "key": "None",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
+ "text": "Hakuna"
+ },
+ {
+ "key": "Not_applicable",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
+ "text": "Haitumiki"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mbinu ya kupanga uzazi"
+ }
+ },
+ {
+ "key": "side_effects_sterialization",
+ "type": "check_box",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "openmrs_entity_parent": "",
+ "label": "Madhara ya uzazi wa mpango",
+ "label_text_style": "bold",
+ "exclusive": [
+ "None",
+ "Not_applicable"
+ ],
+ "options": [
+ {
+ "key": "Incisional_bleeding",
+ "text": "Kutokwa na damu kwa mkato",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "147241AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Pus_Discharge_from_incision",
+ "text": "Usaha/Kutokwa na chale",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "164495AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Swollen_around_the_incision",
+ "text": "Kuvimba karibu na chale",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "159012AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Others",
+ "text": "Wengine",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "None",
+ "text": "Hakuna",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Not_applicable",
+ "text": "Haitumiki",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_fp_referral_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "fp_side_effects",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "165273AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_referral_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "fp_side_effects_other",
+ "type": "edit_text",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
+ "hint": "Madhara mengine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha madhara mengine"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_fp_referral_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "referral_date_fp",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_referral_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "referral_time_fp",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_referral_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/male_partner_registration_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/male_partner_registration_form.json
new file mode 100644
index 0000000000..182cce261c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/male_partner_registration_form.json
@@ -0,0 +1,943 @@
+{
+ "count": "2",
+ "encounter_type": "Family 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"
+ },
+ "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": "Taarifa za mteja",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "fam_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "fam_name",
+ "type": "edit_text",
+ "hint": "Jina la Ukoo",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Ukoo"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka Jina la Ukoo"
+ }
+ },
+ {
+ "key": "client_first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kwanza"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ }
+ },
+ {
+ "key": "client_middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kati"
+ }
+ },
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "hidden": "true",
+ "type": "edit_text",
+ "barcode_type": "qrcode",
+ "hint": "Nambari ya utambulisho",
+ "scanButtonText": "Scan QR Code",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali weka kitambulisho halali"
+ }
+ },
+ {
+ "key": "fam_village",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "cityVillage",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Jina la eneo",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka jina la eneo au mji"
+ }
+ },
+ {
+ "key": "landmark",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "landmark",
+ "type": "edit_text",
+ "hint": "Alama/Maelezo ya eneo la nyumba",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka alama/maelezo ya eneo."
+ }
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "15dp"
+ },
+ {
+ "key": "sync_location_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "sync_location_id",
+ "type": "spinner",
+ "hint": "Chagua eneo la WAJA",
+ "v_required": {
+ "value": "true",
+ "err": "Chagua eneo la WAJA"
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "Taarifa za mteja",
+ "fields": [
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Kituoni ID",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali weka kitambulisho halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka kitambulisho cha KIPEKEE"
+ }
+ },
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "last_name",
+ "type": "edit_text",
+ "hint": "Jina la Ukoo",
+ "edit_type": "name",
+ "read_only": true,
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Ukoo"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kwanza"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kati"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "date_picker",
+ "hint": "Tarehe ya kuzaliwa (DOB)",
+ "expanded": false,
+ "duration": {
+ "label": "Umri"
+ },
+ "min_date": "today-120y",
+ "max_date": "today-11y",
+ "v_required": {
+ "value": "true",
+ "err": "Tarehe ya kuzaliwa (DOB)"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "age_calculated",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob_unknown",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdateApprox",
+ "type": "check_box",
+ "label": "",
+ "options": [
+ {
+ "key": "dob_unknown",
+ "text": "Tarehe ya kuzaliwa haijulikani",
+ "text_size": "18px",
+ "value": "false"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "age",
+ "type": "edit_text",
+ "hint": "Umri",
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Must be a rounded number"
+ },
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid age"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Lazima iwe namba kamili"
+ },
+ "v_min": {
+ "value": "11",
+ "err": "Umri lazima uwe sawa au zaidi ya 11"
+ },
+ "v_max": {
+ "value": "120",
+ "err": "Umri lazima uwe sawa au chini ya 120"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka umri"
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "marital_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "marital_status",
+ "type": "spinner",
+ "hint": "Hali ya Ndoa ya Mteja?",
+ "values": [
+ "Hajaoa/Hajaolewa",
+ "Ameoa/Ameolewa",
+ "Ameachwa",
+ "Mjane/Mgane",
+ "Kuishi pamoja bila ndoa"
+ ],
+ "keys": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "openmrs_choice_ids": {
+ "Single": "Single",
+ "Married": "Married",
+ "Divorced": "Divorced",
+ "Widowed": "Widowed",
+ "Cohabitation": "Cohabitation"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya mteja",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba lazima iwe jumla ya tarakimu 10 kwa urefu"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ }
+ },
+ {
+ "key": "id_avail",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "id_avail",
+ "type": "check_box",
+ "label": "Je, una kitambulisho chochote kati ya vifuatavyo?",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_national_id",
+ "text": "Kitambulisho cha Taifa",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_national_id"
+ },
+ {
+ "key": "chk_voters_id",
+ "text": "Kitambulisho cha usajili wa mpiga kura",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_voters_id"
+ },
+ {
+ "key": "chk_drivers_license",
+ "text": "Leseni ya udereva",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_drivers_license"
+ },
+ {
+ "key": "chk_none",
+ "text": "Hakuna",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "national_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "National_ID",
+ "type": "mask_edit_text",
+ "mask": "########-#####-#####-##",
+ "mask_hint": "12345678912345678912",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya kitambulisho cha taifa k.m 12345678-91234-56789-12",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "23",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_regex": {
+ "value": "^\\d{8}-\\d{5}-\\d{5}-\\d{2}$",
+ "err": "Namba ya kitambulisho cha kitaifa inapaswa kuwa ya umbizo (XXXXXXXX-XXXXX-XXXXX-XX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_national_id"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "voter_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Voter_Registration_Number",
+ "type": "mask_edit_text",
+ "mask": "T-####-####-###-#",
+ "mask_hint": "123456789123",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya kitambulisho cha mpiga kura k.m T-1234-5678-912-3",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_regex": {
+ "value": "^T-\\d{4}-\\d{4}-\\d{3}-\\d{1}$",
+ "err": "Namba ya kitambulosho cha mpiga kura inapaswa kuwa ya umbizo (T-XXXX-XXXX-XXX-X)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_voters_id"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "driver_license",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Driver_License_Number",
+ "type": "mask_edit_text",
+ "mask": "##########",
+ "mask_hint": "1234567891",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya leseni ya udereva k.m 1234567891",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "10",
+ "is_fixed_size": "true",
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka namba sahihi"
+ },
+ "v_regex": {
+ "value": "^([0-9]{10})",
+ "err": "Namba ya leseni ya udereva inapaswa kuwa ya umbizo (XXXXXXXXX)"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_drivers_license"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "insurance_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Health_Insurance_Type",
+ "type": "spinner",
+ "hint": "Mtoa huduma ya bima ya afya",
+ "values": [
+ "Mfuko wa Afya ya Jamii (CHF)/(iCHF)",
+ "Mfuko wa Taifa wa Hifadhi ya Jamii - Manufaa ya Bima ya Afya ya Jamii (SHIB)",
+ "Mfuko wa Taifa wa Bima ya Afya (NHIF)",
+ "Tiba Kwa Kadi (TIKA)",
+ "AAR Huduma ya Afya",
+ "Bima ya afya Strategies",
+ "Milvik Tanzania Ltd (BIMA Mkononi)",
+ "Bima ya afya ya Britam Tanzania",
+ "Bima ya afya Jubilee",
+ "Bima ya afya ya Resolutions",
+ "Bima ya afya ya Reliance",
+ "Nyinginezo",
+ "Hakuna"
+ ],
+ "keys": [
+ "Community Health Fund (CHF)",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
+ "Tiba Kwa Kadi (TIKA)",
+ "AAR Healthcare",
+ "Strategies Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)",
+ "Britam Insurance Tanzania",
+ "Jubilee Insurance",
+ "Resolutions Insurance",
+ "Reliance Insurance",
+ "Other",
+ "None"
+ ],
+ "openmrs_choice_ids": {
+ "Community Health Fund (CHF)": "Community_Health_Fund",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
+ "Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
+ "AAR Healthcare": "AAR_Healthcare",
+ "AAR Strategies Insurance": "Strategies_Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)": "BIMA_Mkononi",
+ "Britam Insurance Tanzania": "Britam_Insurance_Tanzania",
+ "Jubilee Insurance": "Jubilee_Insurance",
+ "Resolutions Insurance": "Resolutions_Insurance",
+ "Reliance Insurance": "Reliance_Insurance",
+ "Other": "Other_Health_Insurance_Type",
+ "None": "No_Health_Insurance"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza mtoa huduma wa bima"
+ }
+ },
+ {
+ "key": "insurance_provider_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Health_Insurance_Type",
+ "type": "edit_text",
+ "hint": "Mtoa huduma mwingine wa bima ya afya",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha mtoa huduma wa bima"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "insurance_provider_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Health_Insurance_Number",
+ "type": "edit_text",
+ "hint": "Namba ya mtoa huduma ya bima ya afya",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ongeza Namba ya kitambulisho ya mtoa huduma wa bima ya afya"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "wra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "mra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "disabilities",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabilities",
+ "type": "spinner",
+ "hint": "Ulemavu wa kimwili",
+ "values": [
+ "Ndio ",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "type_of_disability",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Aina ya ulemavu",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Ulemavu wa kimwili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Ulemavu wa Uti wa Mgongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Majeraha ya Kichwa - Ulemavu wa Ubongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Ulemavu wa Maono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Ulemavu wa Kusikia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Ulemavu wa Utambuzi au Kujifunza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Matatizo ya Kisaikolojia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Ulemavu Usioonekana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua aina ya ulemavu wa kimwili"
+ }
+ },
+ {
+ "key": "service_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_provider",
+ "type": "native_radio",
+ "label": "Kazi ya Mteja",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "chk_self_employed",
+ "text": "Amejiajiri",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_self_employed"
+ },
+ {
+ "key": "chk_employed",
+ "text": "Ameajiriwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_employed"
+ },
+ {
+ "key": "chk_unemployed",
+ "text": "Hajaajiriwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_unemployed"
+ },
+ {
+ "key": "chk_farmer",
+ "text": "Mkulima",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_farmer"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "leader",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Community_Leader",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Una nafasi yoyote ya uongozi katika jamii?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_religious",
+ "text": "Kiongozi wa dini",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Religious_Leader"
+ },
+ {
+ "key": "chk_traditional",
+ "text": "Kiongozi wa jadi",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Traditional_leader"
+ },
+ {
+ "key": "chk_political",
+ "text": "Kiongozi wa kisiasa",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Political_leader"
+ },
+ {
+ "key": "chk_influential",
+ "text": "Kiongozi mwenye ushawishi",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Influential_Leader"
+ },
+ {
+ "key": "chk_other",
+ "text": "Nyingine",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Community_Leader_Type"
+ },
+ {
+ "key": "chk_none",
+ "text": "Hakuna",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Not_a_Community_Leader"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "leader_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Community_Leader_Type_Name",
+ "type": "edit_text",
+ "hint": "Taja nafasi nyingine katika jamii",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha jukumu"
+ },
+ "relevance": {
+ "step2:leader": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "reasons_for_registration",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Registration_Reason",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "male_partner_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/monthly_report.json b/opensrp-chw-hf/src/main/assets/json.form-sw/monthly_report.json
index a40e31c0d8..bdf10384e4 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/monthly_report.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/monthly_report.json
@@ -16,11 +16,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/next_facility_visit_date_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/next_facility_visit_date_form.json
new file mode 100644
index 0000000000..9935b0a804
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/next_facility_visit_date_form.json
@@ -0,0 +1,78 @@
+{
+ "count": "1",
+ "encounter_type": "Next Facility Visit Date",
+ "entity_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "Tarehe ya Uthurio Lijalo",
+ "fields": [
+ {
+ "key": "next_facility_visit_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya Uthurio Lijalo Kituoni",
+ "openmrs_entity_id": "next_facility_visit_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "min_date": "today+1d",
+ "max_date": "today+6m",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza tarehe"
+ }
+ },
+ {
+ "key": "visit_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "type": "hidden"
+ },
+ {
+ "key": "followup_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "followup_status",
+ "type": "hidden"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/observation_illness.json b/opensrp-chw-hf/src/main/assets/json.form-sw/observation_illness.json
index e2409d44b1..eedaa4b4b4 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/observation_illness.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/observation_illness.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Uangulifu na muda ya ugonjwa",
+ "title": "Observations & Illness",
"fields": [
{
"key": "date_of_illness",
@@ -61,7 +61,7 @@
"min_date": "",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza tarehe ya ugonjwa"
+ "err": "Tafadhali weka tarehe ya ugonjwa"
}
},
{
@@ -74,7 +74,7 @@
"hint": "Maelezo",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza maelezo"
+ "err": "Tafadhali weka maelezo"
}
},
{
@@ -84,10 +84,10 @@
"openmrs_entity_id": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Hatua zilizochukuliwa",
+ "hint": "Hatua iliyochukuliwa",
"v_required": {
"value": "true",
- "err": "Please select action"
+ "err": "Tafadhali chagua kitendo"
},
"values": [
"ORS 5",
@@ -105,7 +105,7 @@
{
"key": "other_treat_1m5yr",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "edit_text",
"hint": "Matibabu mengine",
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_cd4_sample_collection.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_cd4_sample_collection.json
new file mode 100644
index 0000000000..a94fe9e5d8
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_cd4_sample_collection.json
@@ -0,0 +1,161 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT CD4 Sample Collection",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Kuchukua Sampuli ya CD4",
+ "fields": [
+ {
+ "key": "clinician_name",
+ "type": "edit_text",
+ "hint": "Jina la Mtoa huduma wa Afya",
+ "openmrs_entity_id": "clinician_name",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina la Mtoa huduma"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza jina la Mtoa huduma"
+ }
+ },
+ {
+ "key": "clinician_position",
+ "type": "spinner",
+ "hint": "Cheo cha Mtoa huduma wa Afya",
+ "openmrs_entity_id": "clinician_position",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "Afisa Matibabu",
+ "Afisa Matibabu msaidizi",
+ "Afisa wa Kliniki",
+ "Afisa wa Kliniki msaidizi",
+ "Nesi",
+ "Mfanyakazi wa Maabara"
+ ],
+ "keys": [
+ "medical_officer",
+ "assistant_medical_officer",
+ "clinical_officer",
+ "assistant_clinical_officer",
+ "nurse",
+ "laboratory_personnel"
+ ],
+ "openmrs_choice_ids": {
+ "medical_officer": "medical_officer",
+ "assistant_medical_officer": "assistant_medical_officer",
+ "clinical_officer": "clinical_officer",
+ "assistant_clinical_officer": "assistant_clinical_officer",
+ "nurse": "nurse",
+ "laboratory_personnel": "laboratory_personnel"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali Ingiza cheo cha Mtoa huduma wa Afya"
+ }
+ },
+ {
+ "key": "clinician_phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya Simu ya Mtoa Huduma wa Afya",
+ "edit_type": "number",
+ "openmrs_entity_id": "clinician_phone_number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba ya simu lazima iwe na tarakimu 10 na lazima ianze na 06 au 07"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba ya simu lazima iwe na tarakimu 10 na lazima ianze na 06 au 07"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07"
+ }
+ },
+ {
+ "key": "cd4_collection_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya kuchukua sampuli ya CD4",
+ "openmrs_entity_id": "cd4_collection_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "min_date": "today-5y",
+ "max_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza tarehe ya kuchukua sampuli ya CD4"
+ }
+ },
+ {
+ "key": "cd4_collection_time",
+ "type": "time_picker",
+ "hint": "Muda ya kuchukua sampuli ya CD4",
+ "openmrs_entity_id": "cd4_collection_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza muda ya kuchukua sampuli ya CD4"
+ }
+ },
+ {
+ "key": "cd4_sample_id",
+ "type": "edit_text",
+ "hint": "Namba ya utambulisho ya sampuli ya CD4",
+ "openmrs_entity_id": "cd4_sample_id",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza namba ya utambulisho ya sampuli ya CD4"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_cd4_test_results.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_cd4_test_results.json
new file mode 100644
index 0000000000..6f937c3d0c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_cd4_test_results.json
@@ -0,0 +1,181 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT CD4 Test Results",
+ "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"
+ },
+ "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": "Majibu ya CD4",
+ "fields": [
+ {
+ "key": "cd4_sample_id",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cd4_sample_id",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "cd4_result",
+ "type": "edit_text",
+ "hint": "Jaza kiasi cha CD4",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cd4_result",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza Jaza kiasi cha CD4"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza Jaza kiasi cha CD4"
+ }
+ },
+ {
+ "key": "prompt_to_start_ctx",
+ "type": "toaster_notes",
+ "text": "Mteja huyu mwanzishie CTX",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:cd4_result": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"350\")"
+ }
+ }
+ },
+ {
+ "key": "started_ctx",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "started_ctx",
+ "type": "native_radio",
+ "label": "Je Mteja ameshaanza CTX?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:cd4_result": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"350\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_starting_ctx",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_starting_ctx",
+ "type": "native_radio",
+ "label": "Sababu za Mteja kutoanzishiwa CTX",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "out_of_medicine",
+ "text": "CTX zimekwisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_medicine"
+ },
+ {
+ "key": "client_refused_medication",
+ "text": "Mteja amekataa dawa za CTX",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_refused_medication"
+ },
+ {
+ "key": "client_allergic_to_ctx",
+ "text": "Mteja ana mzio na dawa hizi za CTXja ana ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_allergic_to_ctx"
+ },
+ {
+ "key": "drug_interaction",
+ "text": "Drug interaction",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_interaction"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:started_ctx": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "cd4_result_date",
+ "type": "hidden",
+ "openmrs_entity_id": "cd4_result_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_cd4_test_results_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_clinical_staging_of_disease.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_clinical_staging_of_disease.json
new file mode 100644
index 0000000000..b9c6ef0138
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_clinical_staging_of_disease.json
@@ -0,0 +1,382 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT clinical staging of disease",
+ "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"
+ },
+ "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": "Hatua ya Ugonjwa",
+ "fields": [
+ {
+ "key": "clinical_staging_disease",
+ "type": "spinner",
+ "hint": "Hatua ya Ugonjwa (Clinical staging of disease)",
+ "openmrs_entity_id": "clinical_staging_disease",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "Hatua ya 1",
+ "Hatua ya 2",
+ "Hatua ya 3",
+ "Hatua ya 4"
+ ],
+ "keys": [
+ "stage_1",
+ "stage_2",
+ "stage_3",
+ "stage_4"
+ ],
+ "openmrs_choice_ids": {
+ "stage_1": "stage_1",
+ "stage_2": "stage_2",
+ "stage_3": "stage_3",
+ "stage_4": "stage_4"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "stage_1_symptoms",
+ "type": "check_box",
+ "label": "Chagua dalili zinazoendana na Mteja",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "stage_1_symptoms",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "chk_asymptomatic"
+ ],
+ "options": [
+ {
+ "key": "chk_asymptomatic",
+ "text": "Hakuna dalili yeyote ya tatizo",
+ "openmrs_entity_id": "chk_asymptomatic",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_pgl",
+ "text": "Persistent generalized lymphadenopathy (PGL) Unexplained, asymptomatic hepatosplenomegaly",
+ "openmrs_entity_id": "chk_pgl",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "relevance": {
+ "step1:clinical_staging_disease": {
+ "type": "string",
+ "ex": "equalTo(.,\"stage_1\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua dalili"
+ }
+ },
+ {
+ "key": "stage_2_symptoms",
+ "type": "check_box",
+ "label": "Tafadhali chagua dalili zinaendana na Mteja",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "stage_2_symptoms",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "chk_ppe",
+ "text": "Papular pruritic eruptions (PPE)",
+ "openmrs_entity_id": "chk_ppe",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_seb_derm",
+ "text": "Seborrheic dermatitis",
+ "openmrs_entity_id": "chk_seb_derm",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_fung_infection",
+ "text": "Rangi ya kucha kubadilika kuwa nyeusi au kahawa inayo sababishwa na maradhi sugu ya fangasi",
+ "openmrs_entity_id": "chk_fung_infection",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_seb_dermatitis",
+ "text": "Seborrheic dermatitis",
+ "openmrs_entity_id": "chk_seb_dermatitis",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_ang_cheilities",
+ "text": "Angular cheilitis",
+ "openmrs_entity_id": "chk_ang_cheilities",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_lin_erythema",
+ "text": "Linear gingival erythema",
+ "openmrs_entity_id": "chk_lin_erythema",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_hpv_infection",
+ "text": "Extensive HPV or molluscum infection (>5% of body area/face)",
+ "openmrs_entity_id": "chk_hpv_infection",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_oral_ulcer",
+ "text": "Recurrent oral ulcerations (>2 episodes/ in 6 months)",
+ "openmrs_entity_id": "chk_oral_ulcer",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_par_enlargement",
+ "text": "Parotid enlargement",
+ "openmrs_entity_id": "chk_par_enlargement",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_herp_zoster",
+ "text": "Herpes zoster (>1 episode/12 months)",
+ "openmrs_entity_id": "chk_herp_zoster",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_rec_uri",
+ "text": "Recurrent or chronic upper respiratory infection (URI): otitis media, otorrhoea, sinusitis (>2 episodes/6 months)",
+ "openmrs_entity_id": "chk_rec_uri",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "relevance": {
+ "step1:clinical_staging_disease": {
+ "type": "string",
+ "ex": "equalTo(.,\"stage_2\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua dalili"
+ }
+ },
+ {
+ "key": "stage_3_symptoms",
+ "type": "check_box",
+ "label": "Chagua dalili zinazoendana na Mteja",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "stage_3_symptoms",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "chk_mod_malnutrition",
+ "text": "Unexplained moderate malnutrition (-2SD or Z score) not responding to standard therapy",
+ "openmrs_entity_id": "chk_mod_malnutrition",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_per_diarrhoea",
+ "text": "Unexplained persistent diarrhoea (>14 days)",
+ "openmrs_entity_id": "chk_per_diarrhoea",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_per_fever",
+ "text": "Unexplained persistent fever (intermittent or constant, > 1 mo.)",
+ "openmrs_entity_id": "chk_per_fever",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_oral_candidiasis",
+ "text": "Oral candidiasis (outside neonatal period)",
+ "openmrs_entity_id": "chk_oral_candidiasis",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_oral_leucoplakia",
+ "text": "Oral hairy Leucoplakia",
+ "openmrs_entity_id": "chk_oral_leucoplakia",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_pul_tuberculosis",
+ "text": "Pulmonary tuberculosis",
+ "openmrs_entity_id": "chk_pul_tuberculosis",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_rec_pneumonia",
+ "text": "Severe recurrent presumed bacterial pneumonia (>2 episodes/12 months)",
+ "openmrs_entity_id": "chk_rec_pneumonia",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_acute_gingivitis",
+ "text": "Acute necrotizing ulcerative gingivitis/periodontitis",
+ "openmrs_entity_id": "chk_acute_gingivitis",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_lym_pneumonitis",
+ "text": "Lymphoid interstitial pneumonitis (LIP)",
+ "openmrs_entity_id": "chk_lym_pneumonitis",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_unexp_anaemia",
+ "text": "Unexplained anaemia (<8g/dL), neutropenia (<1000/mm3), or thrombocytopenia (<30,000/mm3) for >1 mo.",
+ "openmrs_entity_id": "chk_unexp_anaemia",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "relevance": {
+ "step1:clinical_staging_disease": {
+ "type": "string",
+ "ex": "equalTo(.,\"stage_3\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua dalili"
+ }
+ },
+ {
+ "key": "stage_4_symptoms",
+ "type": "check_box",
+ "label": "Tafadhali chagua dalili zinazoendana na Mteja",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "stage_4_symptoms",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "chk_sev_wasting",
+ "text": "Unexplained severe wasting or severe malnutrition (-3 SD or Z score) not responding to standard therapy",
+ "openmrs_entity_id": "chk_sev_wasting",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_pneu_penumonia",
+ "text": "Pneumocystis pneumonia",
+ "openmrs_entity_id": "chk_pneu_penumonia",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_recurrent_bacinf",
+ "text": "Recurrent severe bacterial infections (>2 episodes/12 months, excluding pneumonia)",
+ "openmrs_entity_id": "chk_recurrent_bacinf",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_orol_hsv",
+ "text": "Chronic orolabial or cutaneous HSV (lasting > 1 mo)",
+ "openmrs_entity_id": "chk_orol_hsv",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_extra_tuber",
+ "text": "Extra-pulmonary tuberculosis",
+ "openmrs_entity_id": "chk_extra_tuber",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_kap_sarcoma",
+ "text": "Kaposi’s sarcoma",
+ "openmrs_entity_id": "chk_kap_sarcoma",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_oes_candidiasis",
+ "text": "Oesophageal candidiasis",
+ "openmrs_entity_id": "chk_oes_candidiasis",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_cns_toxoplasmosis",
+ "text": "CNS toxoplasmosis",
+ "openmrs_entity_id": "chk_cns_toxoplasmosis",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_crypt_meningitis",
+ "text": "Cryptococcal meningitis",
+ "openmrs_entity_id": "chk_crypt_meningitis",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_ende_mycosis",
+ "text": "Any disseminated endemic mycosis",
+ "openmrs_entity_id": "chk_ende_mycosis",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_cryp_isos",
+ "text": "Cryptosporidiosis or Isosporiasis (with diarrhoea > 1 month)",
+ "openmrs_entity_id": "chk_cryp_isos",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_cmv_organ",
+ "text": "CMV infection of organ other than liver, spleen, lymph nodes (and onset age >1 month)",
+ "openmrs_entity_id": "chk_cmv_organ",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "chk_dis_mycobacterial",
+ "text": "Disseminated mycobacterial disease other",
+ "openmrs_entity_id": "chk_dis_mycobacterial",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "relevance": {
+ "step1:clinical_staging_disease": {
+ "type": "string",
+ "ex": "equalTo(.,\"stage_4\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua dalili"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_community_followup_referral.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_community_followup_referral.json
new file mode 100644
index 0000000000..a3bfbbe4c2
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_community_followup_referral.json
@@ -0,0 +1,125 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT Community Followup",
+ "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"
+ },
+ "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": "Rufaa Kwa Mama Kinara",
+ "fields": [
+ {
+ "key": "last_client_visit_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_client_visit_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya mwisho mteja kuhudhulia Kituoni",
+ "expanded": false,
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha Tarehe ya mwisho mteja kuhudhulia Kituoni"
+ }
+ },
+ {
+ "key": "reasons_for_issuing_community_referral",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_issuing_community_referral",
+ "type": "native_radio",
+ "label": "Sababu za kumpa Mteja rufaa kwa ajili ya ufuatiliaji ngazi ya jamii",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "missed_appointment",
+ "text": "Amekosa kwenye miadi yake",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "missed_appointment"
+ },
+ {
+ "key": "mother_champion_services",
+ "text": "Huduma za Mama Kinara katika Ngazi ya Jamii",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mother_champion_services"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu za kumpa rufaa Mteja"
+ }
+ },
+ {
+ "key": "mother_champion_location",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mother_champion_location",
+ "type": "spinner",
+ "hint": "Chagua Eneo la Mama Kinara",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali chagua eneo alipo mama kinara"
+ }
+ },
+ {
+ "key": "comment_pmtct_community_followup",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment_pmtct_community_followup",
+ "type": "edit_text",
+ "hint": "Maoni yako"
+ },
+ {
+ "key": "pmtct_community_referral_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct_community_referral_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_community_followup_referral_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_eac_visits.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_eac_visits.json
new file mode 100644
index 0000000000..d14594aec5
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_eac_visits.json
@@ -0,0 +1,634 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT EAC Visit",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Ziara ya EAC",
+ "fields": [
+ {
+ "key": "eac_visit_notification",
+ "type": "toaster_notes",
+ "text": "Nakiri tarehe ya hudhurio la EAC",
+ "openmrs_entity_id": "notify_retest",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "eac_visit_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya hudhurio la EAC",
+ "openmrs_entity_id": "eac_visit_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "min_date": "today-3m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza Tarehe ya hudhurio la EAC"
+ }
+ },
+ {
+ "key": "summary",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "summary",
+ "type": "edit_text",
+ "hint": "Muhtasari",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza muhtasari"
+ }
+ },
+ {
+ "key": "arv_intake_demonstration_done",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "arv_intake_demonstration_done",
+ "type": "native_radio",
+ "label": "Maonyesho ya unywaji wa ARV na mgonjwa/mlezi yamefanyika?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "pill_count_done",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pill_count_done",
+ "type": "native_radio",
+ "label": "Hesabu ya vidonge imefanyika?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "pill_intake",
+ "type": "edit_text",
+ "hint": "Unywaji wa vidonge %",
+ "openmrs_entity_id": "pill_intake",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza % ya unywaji wa vidonge"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Unywaji wa vidonge lazima iwe sawa au zaidi ya 0%"
+ },
+ "v_max": {
+ "value": "100",
+ "err": "Unywaji wa vidonge lazima iwe sawa au chini ya 100%"
+ }
+ },
+ {
+ "key": "additional_session",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "additional_session",
+ "type": "native_radio",
+ "label": "Does the client require an additional session?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_eac_visits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "patient_adherence_before_eac",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "patient_adherence_before_eac",
+ "type": "native_radio",
+ "label": "Your impression about patient’s adherence before EAC",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "likely_to_be_good",
+ "text": "Likely to be good",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "likely_to_be_good"
+ },
+ {
+ "key": "likely_to_be_not_good",
+ "text": "Likely to be NOT good (relevant barriers identified)",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "likely_to_be_not_good"
+ },
+ {
+ "key": "clearly_poor",
+ "text": "Clearly poor (defaulter)",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "clearly_poor"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_eac_visits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "patient_adherence_during_and_after_eac",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "patient_adherence_during_and_after_eac",
+ "type": "native_radio",
+ "label": "Your impression about patient’s adherence during and after EAC",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "likely_to_be_good",
+ "text": "Likely to be good",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "likely_to_be_good"
+ },
+ {
+ "key": "likely_to_be_not_good",
+ "text": "Likely to be NOT good (relevant barriers identified and not cleared)",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "likely_to_be_not_good"
+ },
+ {
+ "key": "clearly_poor",
+ "text": "Clearly poor (defaulter)",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "clearly_poor"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "eac_barriers_identified_prompt",
+ "type": "toaster_notes",
+ "text": "Major remaining barriers identified after EAC sessions",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:additional_session": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "behavioral_barriers",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "behavioral_barriers",
+ "type": "native_radio",
+ "label": "Behavioral",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step1:additional_session": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "behavioral_barriers_details",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "behavioral_barriers_details",
+ "type": "edit_text",
+ "hint": "Behavioral barriers",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the behavioral barriers"
+ },
+ "relevance": {
+ "step1:behavioral_barriers": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "cognitive_barriers",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cognitive_barriers",
+ "type": "native_radio",
+ "label": "Cognitive",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step1:additional_session": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "cognitive_barriers_details",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cognitive_barriers_details",
+ "type": "edit_text",
+ "hint": "Cognitive barriers",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the cognitive barriers"
+ },
+ "relevance": {
+ "step1:cognitive_barriers": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "emotional_barriers",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "emotional_barriers",
+ "type": "native_radio",
+ "label": "Emotional",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step1:additional_session": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "emotional_barriers_details",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "emotional_barriers_details",
+ "type": "edit_text",
+ "hint": "Emotional barriers",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the emotional barriers"
+ },
+ "relevance": {
+ "step1:emotional_barriers": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "socio_economic_barriers",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "socio_economic_barriers",
+ "type": "native_radio",
+ "label": "Socio-economic",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step1:additional_session": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "socio_economic_barriers_details",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "socio_economic_barriers_details",
+ "type": "edit_text",
+ "hint": "Socio-economic barriers",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the socio-economic barriers"
+ },
+ "relevance": {
+ "step1:socio_economic_barriers": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "other_barriers",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_barriers",
+ "type": "native_radio",
+ "label": "Others (Disclosure, Religion...)",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step1:additional_session": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_barriers_details",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_barriers_details",
+ "type": "edit_text",
+ "hint": "Other barriers",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter other barriers"
+ },
+ "relevance": {
+ "step1:other_barriers": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "counsellor_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "counsellor_name",
+ "type": "edit_text",
+ "hint": "Counsellor's name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the counsellor's name"
+ }
+ },
+ {
+ "key": "eac_visit_type",
+ "type": "hidden",
+ "openmrs_entity_id": "eac_visit_type",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "eac_visit_session",
+ "type": "hidden",
+ "openmrs_entity_id": "eac_visit_session",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "eac_completion_status",
+ "type": "hidden",
+ "openmrs_entity_id": "eac_completion_status",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_eac_visits_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "eac",
+ "type": "hidden",
+ "openmrs_entity_id": "eac",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "form_submission_timestamp",
+ "type": "hidden",
+ "openmrs_entity_id": "form_submission_timestamp",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_eac_visits_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_followup_status.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_followup_status.json
new file mode 100644
index 0000000000..39ef130168
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_followup_status.json
@@ -0,0 +1,103 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT Followup Status",
+ "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"
+ },
+ "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": "Hali ya Ufuatiliji",
+ "fields": [
+ {
+ "key": "followup_status",
+ "type": "native_radio",
+ "label": "Hali ya Ufuatiliaji",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "followup_status",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "continuing_with_services",
+ "text": "Anaendelea na Huduma (CTN)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "continuing_with_services"
+ },
+ {
+ "key": "transfer_out",
+ "text": "Amehama",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "transfer_out"
+ },
+ {
+ "key": "lost_to_followup",
+ "text": "Mteja aliyepotes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lost_to_followup"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "followup_visit_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "followup_visit_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_followup_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "type": "hidden",
+ "openmrs_entity_id": "visit_number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_fv_baseline_investigation.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_fv_baseline_investigation.json
new file mode 100644
index 0000000000..04fac7f416
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_fv_baseline_investigation.json
@@ -0,0 +1,430 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT baseline investigation",
+ "entity_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "Uchunguzi wa Vipimo vya Awali",
+ "fields": [
+ {
+ "key": "liver_function_test_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "liver_function_test_conducted",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_fv_baseline_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "liver_function_test_conducted_question",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "liver_function_test_conducted_question",
+ "type": "native_radio",
+ "label": "Je, Mteja amefanyiwa kipimo cha Ini?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "Ndio, Amefanyiwa kipimo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_liver_function_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_liver_function_test",
+ "type": "spinner",
+ "hint": "Sababu za kutomfanyia Mteja kipimo cha Ini",
+ "values": [
+ "Vitendanishi vimekwisha",
+ "Mteja alikuwa kwenye hali yenye kuhitaji udharura",
+ "mteja amekaa kufanyiwa kipimo hiki",
+ "Bado tunaendelea kushauri Mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Chagua sababu"
+ },
+ "relevance": {
+ "step1:liver_function_test_conducted": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_liver_function_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_liver_function_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu za kutomfanyia mteja kipimo cha Ini",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_liver_function_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "receive_liver_function_test_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receive_liver_function_test_results",
+ "type": "native_radio",
+ "label": "Je, umepokea majibu ya Mteja ya kipimo cha Ini?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "liver_function_test_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "liver_function_test_results",
+ "type": "native_radio",
+ "label": "Chagua majibu ya kipimo cha Ini ya Mteja",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "elevated_liver_enzymes",
+ "text": "Elevated Liver enzymes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "elevated_liver_enzymes"
+ },
+ {
+ "key": "normal",
+ "text": "Ini lipo katika hali ya kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:receive_liver_function_test_results": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_liver_function_test",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:liver_function_test_results": {
+ "type": "string",
+ "ex": "equalTo(., \"elevated_liver_enzymes\")"
+ }
+ }
+ },
+ {
+ "key": "renal_function_test_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "renal_function_test_conducted",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_fv_baseline_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "renal_function_test_conducted_question",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "renal_function_test_conducted_question",
+ "type": "native_radio",
+ "label": "Je, Mteja amefanyiwa kipimo cha Figo?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "Kipimo cha Figo Kimefanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo hakujafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_renal_function_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_renal_function_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutomfanyia Mteja kipimo cha Figo",
+ "values": [
+ "Vitendanishi vimeisha",
+ "Mteja alikuwa katika haili ya udharura",
+ "Mteja amekaa kipimo hiki",
+ "Bado tunaendelea kumshauri",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu ya kutomfanyia mteja kipimo cha Figo"
+ },
+ "relevance": {
+ "step1:renal_function_test_conducted": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_renal_function_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_renal_function_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu nyingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_renal_function_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "receive_renal_function_test_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receive_renal_function_test_results",
+ "type": "native_radio",
+ "label": "Je, umepokea majibu ya Mteja ya kipimo cha Figo?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "renal_function_test_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "renal_function_test_results",
+ "type": "native_radio",
+ "label": "Chagua majibu ya kipimo cha Figo",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "elevated_serum_creatinine",
+ "text": "Elevated Serum Creatinine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "elevated_serum_creatinine"
+ },
+ {
+ "key": "normal",
+ "text": "Figo lipo katika hali ya kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:receive_renal_function_test_results": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_renal_function_test_results",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:renal_function_test_results": {
+ "type": "string",
+ "ex": "equalTo(., \"elevated_serum_creatinine\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_fv_counselling.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_fv_counselling.json
new file mode 100644
index 0000000000..a9b6d6f746
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_fv_counselling.json
@@ -0,0 +1,198 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT counselling",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Elimu ya Afya Endelevu",
+ "fields": [
+ {
+ "key": "is_client_counselled",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_client_counselled",
+ "type": "native_radio",
+ "label": "Je, Mteja amepatiwa elimu ya afya endelevu?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ }
+ },
+ {
+ "key": "counselling_topics_provided",
+ "type": "check_box",
+ "label": "Tafadhali chagua mada ambayo mtoa huduma amemshauri Mteja",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "counselling_topics_provided",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_hiv_info",
+ "text": "Maambukizi ya VVU, Matibabu, Maendeleo ya Ugonjwa na jinsi ya kujikinga",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_hiv_info"
+ },
+ {
+ "key": "chk_disclosure",
+ "text": "Uwazi wa hali ya maambukizi ya VVU na kubainisha msaidizi wa kimatibabu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_disclosure"
+ },
+ {
+ "key": "chk_promote_testing",
+ "text": "Kuhamasisha upimaji wa wenza na wenza walio katika mnyororo wa kingono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_promote_testing"
+ },
+ {
+ "key": "chk_ayf_services",
+ "text": "Huduma rafiki za afya kwa vijana (Ufuasi mzuri wa dawa na kubaki kwenye matunzo)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_ayf_services"
+ },
+ {
+ "key": "chk_prevention_diseases",
+ "text": "Jinsi ya Kujikinga na Magonjwa, kutumia chandarua na usafi wa mazingira na Binafsi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_prevention_diseases"
+ },
+ {
+ "key": "chk_imp_cpt",
+ "text": "Umuhimu wa CPT, CrPET na TPT",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_imp_cpt"
+ },
+ {
+ "key": "chk_imp_adherence",
+ "text": "Umuhimu wa ufuasi mzuri wa dawa, Jinsi ya kukumbuka kumeza dawa, kuandaa mpango na Jinsi ya kufanya wakati wa kusafiri au wakati unaumwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_imp_adherence"
+ },
+ {
+ "key": "chk_imp_support_group",
+ "text": "Umuhimu wa CBS na Vikundi vya msaada vya watu wanaishi na VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_imp_support_group"
+ },
+ {
+ "key": "chk_imp_appointment",
+ "text": "Umuhimu wa miadi, tarehe, muda na mpango wa kusafiri",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_imp_appointment"
+ },
+ {
+ "key": "chk_sti_rti",
+ "text": "Magonjwa ya STIs/RTIs",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_sti_rti"
+ },
+ {
+ "key": "chk_imp_insurance",
+ "text": "Umuhimu wa kughalimikiwa matibabu kwa kutumia Bima ya Afya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_imp_insurance"
+ },
+ {
+ "key": "chk_non_communicable_diseases_prevention",
+ "text": "Jinsi ya kujikinga na Magonjwa yasiyoambukiza (muhimu kuzingatia lishe, kufanya mazoezi, mtindo wa Maisha)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_non_communicable_diseases_prevention"
+ },
+ {
+ "key": "chk_eac_sessions",
+ "text": "Ushauri mahususi wa Ufuasi mzuri wa dawa/ matibabu, kama HVL > 1000 copies/ml",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_eac_sessions"
+ },
+ {
+ "key": "chk_infant_feeding_options",
+ "text": "Chaguzi za kulisha watoto wachanga katika muktadha wa VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_infant_feeding_options"
+ },
+ {
+ "key": "chk_living_with_hiv",
+ "text": "Jinsi ya kuishi na maambukizi ya VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_living_with_hiv"
+ },
+ {
+ "key": "chk_none",
+ "text": "Ushauri haukutolewa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mada"
+ },
+ "relevance": {
+ "step1:is_client_counselled": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_sample_collection.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_sample_collection.json
new file mode 100644
index 0000000000..025b6b9a0e
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_sample_collection.json
@@ -0,0 +1,159 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT Follow-up Visit",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Kuchukua Sampuli ya HVL",
+ "fields": [
+ {
+ "key": "clinician_name",
+ "type": "edit_text",
+ "hint": "Jina la Mtoa huduma",
+ "openmrs_entity_id": "clinician_name",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina la Mtoa huduma"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza jina la mtoa huduma"
+ }
+ },
+ {
+ "key": "clinician_position",
+ "type": "spinner",
+ "hint": "Cheo cha Mtoa huduma",
+ "openmrs_entity_id": "clinician_position",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "Afisa Matibabu",
+ "Afisa Matibabu msaidizi",
+ "Afisa wa Kliniki ",
+ "Afisa wa Kliniki msaidizi",
+ "Mfanyakazi wa Maabara"
+ ],
+ "keys": [
+ "medical_officer",
+ "assistant_medical_officer",
+ "clinical_officer",
+ "assistant_clinical_officer",
+ "laboratory_personnel"
+ ],
+ "openmrs_choice_ids": {
+ "medical_officer": "medical_officer",
+ "assistant_medical_officer": "assistant_medical_officer",
+ "clinical_officer": "clinical_officer",
+ "assistant_clinical_officer": "assistant_clinical_officer",
+ "laboratory_personnel": "laboratory_personnel"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali"
+ }
+ },
+ {
+ "key": "clinician_phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya Mtoa huduma",
+ "edit_type": "number",
+ "openmrs_entity_id": "clinician_phone_number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba ya simu lazima iwe na tarakimu 10 na lazima ianze na 06 au 07"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba ya simu lazima iwe na tarakimu 10 na lazima ianze na 06 au 07"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza namba ya simu ya Mtoa huduma"
+ }
+ },
+ {
+ "key": "hvl_collection_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya kuchukua sampuli ya damu kwa ajili ya kupima wingi wa virusi mwilini",
+ "openmrs_entity_id": "hvl_collection_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "min_date": "today-5y",
+ "max_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Tarehe ya kuchukua sampuli ya damu kwa ajili ya kupima wingi wa virusi mwilini"
+ }
+ },
+ {
+ "key": "hvl_collection_time",
+ "type": "time_picker",
+ "hint": "Muda wakati wa kuchukua sampuli ya damu kwa ajili ya kupima wingi wa virusi mwilini",
+ "openmrs_entity_id": "hvl_collection_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Muda wakati wa kuchukua sampuli ya damu kwa ajili ya kupima wingi wa virusi mwilini"
+ }
+ },
+ {
+ "key": "hvl_sample_id",
+ "type": "edit_text",
+ "hint": "Namba ya Utambulisho ya Sampuli ya HVL",
+ "edit_type": "number",
+ "openmrs_entity_id": "hvl_sample_id",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Namba ya Utambulisho ya Sampuli ya HVL"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_suppression_after_eac_1.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_suppression_after_eac_1.json
new file mode 100644
index 0000000000..5bfacd9c1f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_suppression_after_eac_1.json
@@ -0,0 +1,102 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT Follow-up Visit",
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "HVL Suppression",
+ "fields": [
+ {
+ "key": "hvl_suppression_after_eac_1",
+ "type": "edit_text",
+ "hint": "Ukandamizaji wa HVL",
+ "openmrs_entity_id": "hvl_suppression_after_eac_1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali weka thamani halali"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka thamani ya ukandamizaji wa HVL"
+ }
+ },
+ {
+ "key": "notify_continue_regimen",
+ "type": "toaster_notes",
+ "text": "Endelea na regimen ya sasa",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_info_text": "Rudia HVL baada ya miezi 6, 12 na 18",
+ "toaster_type": "info",
+ "relevance": {
+ "step1:hvl_suppression_after_eac_1": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"1000\")"
+ }
+ }
+ },
+ {
+ "key": "notify_continue_eac_second",
+ "type": "toaster_notes",
+ "text": "Mteja ataandikishwa kwenye EAC ya pili",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hvl_suppression_after_eac_1": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"1000\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_suppression_after_eac_2.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_suppression_after_eac_2.json
new file mode 100644
index 0000000000..b3895b9511
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_suppression_after_eac_2.json
@@ -0,0 +1,378 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT Follow-up Visit",
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "HVL Suppression",
+ "fields": [
+ {
+ "key": "hvl_suppression_after_eac_2",
+ "type": "edit_text",
+ "hint": "Ukandamizaji wa HVL",
+ "openmrs_entity_id": "hvl_suppression_after_eac_2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali weka thamani halali"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka thamani ya ukandamizaji wa HVL"
+ }
+ },
+ {
+ "key": "notify_continue_regimen",
+ "type": "toaster_notes",
+ "text": "Endelea na regimen ya sasa",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_info_text": "Rudia HVL baada ya miezi 6, 12 na 18",
+ "toaster_type": "info",
+ "relevance": {
+ "step1:hvl_suppression_after_eac_2": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"1000\")"
+ }
+ }
+ },
+ {
+ "key": "choose_presc_line",
+ "type": "spinner",
+ "hint": "Agiza regimen mpya",
+ "openmrs_entity_id": "choose_presc_line",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "Mstari wa Kwanza",
+ "Mstari wa Pili",
+ "Mstari wa Tatu"
+ ],
+ "keys": [
+ "first_line",
+ "second_line",
+ "third_line"
+ ],
+ "openmrs_choice_ids": {
+ "first_line": "first_line",
+ "second_line": "second_line",
+ "third_line": "third_line"
+ },
+ "relevance": {
+ "step1:hvl_suppression_after_eac_2": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"1000\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "first_line",
+ "type": "spinner",
+ "hint": "Maagizo ya ARVs Mstari wa Kwanza",
+ "openmrs_entity_id": "first_line",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "1gA",
+ "1pA",
+ "1rA",
+ "1uA",
+ "1hA",
+ "1xA"
+ ],
+ "keys": [
+ "1_gA",
+ "1_pA",
+ "1_rA",
+ "1_uA",
+ "1_hA",
+ "1_xA"
+ ],
+ "openmrs_choice_ids": {
+ "1_gA": "1_gA",
+ "1_pA": "1_pA",
+ "1_rA": "1_rA",
+ "1_uA": "1_uA",
+ "1_hA": "1_hA",
+ "1_xA": "1_xA"
+ },
+ "relevance": {
+ "step1:choose_presc_line": {
+ "type": "string",
+ "ex": "equalTo(.,\"first_line\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "second_line",
+ "type": "spinner",
+ "hint": "Dawa ya Mstari wa Pili wa ARVs",
+ "openmrs_entity_id": "second_line",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "2fA",
+ "2hA",
+ "2sA",
+ "2GA",
+ "2kA",
+ "2nA",
+ "2uA",
+ "2xA"
+ ],
+ "keys": [
+ "2_fA",
+ "2_hA",
+ "2_sA",
+ "2_GA",
+ "2_kA",
+ "2_nA",
+ "2_uA",
+ "2_xA"
+ ],
+ "openmrs_choice_ids": {
+ "2_fA": "2_fA",
+ "2_hA": "2_hA",
+ "2_sA": "2_sA",
+ "2_GA": "2_GA",
+ "2_kA": "2_kA",
+ "2_nA": "2_nA",
+ "2_uA": "2_uA",
+ "2_xA": "2_xA"
+ },
+ "relevance": {
+ "step1:choose_presc_line": {
+ "type": "string",
+ "ex": "equalTo(.,\"second_line\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "third_line",
+ "type": "spinner",
+ "hint": "Maagizo ya ARVs Mstari wa Tatu",
+ "openmrs_entity_id": "third_line",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "3yA",
+ "3wA",
+ "3kA",
+ "3tA",
+ "3hA",
+ "3gA",
+ "3zA",
+ "3xA"
+ ],
+ "keys": [
+ "3_wA",
+ "3_kA",
+ "3_tA",
+ "3_hA",
+ "3_gA",
+ "3_zA",
+ "3_xA",
+ "3_yA"
+ ],
+ "openmrs_choice_ids": {
+ "3_wA": "3_wA",
+ "3_kA": "3_kA",
+ "3_tA": "3_tA",
+ "3_hA": "3_hA",
+ "3_gA": "3_gA",
+ "3_zA": "3_zA",
+ "3_xA": "3_xA",
+ "3_yA": "3_yA"
+ },
+ "relevance": {
+ "step1:choose_presc_line": {
+ "type": "string",
+ "ex": "equalTo(.,\"third_line\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "type": "hidden",
+ "key": "eac_day_1",
+ "openmrs_entity_id": "eac_day_1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_suppression_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "type": "hidden",
+ "key": "eac_day_2",
+ "openmrs_entity_id": "eac_day_2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_suppression_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "type": "hidden",
+ "key": "eac_day_3",
+ "openmrs_entity_id": "eac_day_3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "step1:hvl_suppression_after_eac_2": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"1000\")"
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_suppression_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "type": "hidden",
+ "key": "eac_month_1",
+ "openmrs_entity_id": "eac_month_1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_suppression_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "type": "hidden",
+ "key": "eac_month_2",
+ "openmrs_entity_id": "eac_month_2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_suppression_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "type": "hidden",
+ "key": "eac_month_3",
+ "openmrs_entity_id": "eac_month_3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_suppression_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "type": "hidden",
+ "key": "hvl_suppression",
+ "hint": "HVL Suppression",
+ "openmrs_entity_id": "hvl_suppression",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_suppression_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "type": "hidden",
+ "key": "hvl_suppression_after_eac_1",
+ "hint": "HVL Suppression",
+ "openmrs_entity_id": "hvl_suppression_after_eac_1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_suppression_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_test_results.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_test_results.json
new file mode 100644
index 0000000000..c0754c9c28
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_hvl_test_results.json
@@ -0,0 +1,586 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT HVL Results",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {
+ "is_after_eac": false
+ },
+ "step1": {
+ "title": "HVL Suppression",
+ "fields": [
+ {
+ "key": "hvl_sample_id",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hvl_sample_id",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "notify_tnd_results",
+ "type": "toaster_notes",
+ "text": "For HVL results that is TND, fill the results as 11",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning"
+ },
+ {
+ "key": "hvl_result",
+ "type": "edit_text",
+ "hint": "Majibu ya HVL",
+ "openmrs_entity_id": "hvl_result",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiasi kwa usahihi"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali Ingiza kiasi cha kufubaa kwa Virusi"
+ }
+ },
+ {
+ "key": "hvl_results_comment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hvl_results_comment",
+ "type": "edit_text",
+ "hint": "Remarks/Comments",
+ "v_required": {
+ "value": "false",
+ "err": "Please enter the your remarks/comments"
+ },
+ "relevance": {
+ "step1:hvl_result": {
+ "type": "string",
+ "ex": "equalTo(., \"11\")"
+ }
+ }
+ },
+ {
+ "key": "notify_continue_regimen",
+ "type": "toaster_notes",
+ "text": "Continue current regimen",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_info_text": "Rudia kupima wingi wa virusi baada ya mwezi wa 6, 12 na 18",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "notify_continue_eac",
+ "type": "toaster_notes",
+ "text": "Mteja ataunganishwa katika EAC",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "discuss_plan_prompt",
+ "type": "toaster_notes",
+ "text": "Jadili Mpango wa matibabu ya Mteja Huyu",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "significant_drop_in_viral_load",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "significant_drop_in_viral_load",
+ "type": "native_radio",
+ "label": "Was it a significant drop in the Viral Load (fulfilling criteria of good response to EAC)?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "patient_presenting_oi_or_immunosuppression",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "patient_presenting_oi_or_immunosuppression",
+ "type": "native_radio",
+ "label": "Is this patient presenting any other OI or signs of immunosuppression?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "describe_patient_presenting_oi_or_immunosuppression",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "describe_patient_presenting_oi_or_immunosuppression",
+ "type": "edit_text",
+ "hint": "Describe the presenting OI or signs of immunosuppression",
+ "v_required": {
+ "value": "true",
+ "err": "Please answer the question"
+ },
+ "relevance": {
+ "step1:patient_presenting_oi_or_immunosuppression": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "history_of_chronic_diarrhea_or_vomiting",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "history_of_chronic_diarrhea_or_vomiting",
+ "type": "native_radio",
+ "label": "History of chronic diarrhea or vomiting?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "use_of_traditional_medications",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "use_of_traditional_medications",
+ "type": "native_radio",
+ "label": "Use of traditional medications?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "history_of_arv_side_effects",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "history_of_arv_side_effects",
+ "type": "native_radio",
+ "label": "History of side-effects with ARV?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "describe_history_of_arv_side_effects",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "describe_history_of_arv_side_effects",
+ "type": "edit_text",
+ "hint": "Describe symptom and possible drug",
+ "v_required": {
+ "value": "true",
+ "err": "Please answer the question"
+ },
+ "relevance": {
+ "step1:history_of_arv_side_effects": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "arv_regimen_plan",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "arv_regimen_plan",
+ "type": "native_radio",
+ "label": "Regarding the ARV regimen, what is the plan?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "continue_current_regimen",
+ "text": "Continue current regimen",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "continue_current_regimen"
+ },
+ {
+ "key": "refer_to_doctor",
+ "text": "Refer to doctor for further management",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "refer_to_doctor"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "assessor_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "assessor_name",
+ "type": "edit_text",
+ "hint": "Assessor's Name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the assessor's name"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "plan_for_patient",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "plan_for_patient",
+ "type": "native_radio",
+ "label": "What is the plan for this patient?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "suitable_for_second_line_regimen",
+ "text": "Patient is suitable for Second-line Regimen",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "suitable_for_second_line_regimen"
+ },
+ {
+ "key": "extend_eac_sessions",
+ "text": "Extend adherence sessions before new Viral Load (in 2-3 months’ time)",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "extend_eac_sessions"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "second_line",
+ "type": "spinner",
+ "hint": "New Regimen\nSecond Line",
+ "openmrs_entity_id": "second_line",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "2f-A (TDF+FTC+LPV/r)",
+ "2h-A (TDF+FTC+ATV/r)",
+ "2s-A (AZT+3TC+ATV/r)",
+ "2g-A (ABC+3TC+LPV/r)",
+ "2k-A (ABC+3TC+ATV/r)",
+ "2n-A (AZT+3TC+LPV/r)",
+ "2x-A (Other 2nd line)"
+ ],
+ "keys": [
+ "2_fA",
+ "2_hA",
+ "2_sA",
+ "2_gA",
+ "2_kA",
+ "2_nA",
+ "2_xA"
+ ],
+ "openmrs_choice_ids": {
+ "2_fA": "2_fA",
+ "2_hA": "2_hA",
+ "2_sA": "2_sA",
+ "2_gA": "2_gA",
+ "2_kA": "2_kA",
+ "2_nA": "2_nA",
+ "2_xA": "2_xA"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:plan_for_patient": {
+ "type": "string",
+ "ex": "equalTo(., \"suitable_for_second_line_regimen\")"
+ }
+ }
+ },
+ {
+ "key": "plan_for_patient_comment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "plan_for_patient_comment",
+ "type": "edit_text",
+ "hint": "Comment",
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "review_team_lead_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "review_team_lead_name",
+ "type": "edit_text",
+ "hint": "Review Team Lead Name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the review team lead's name"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hvl_result_date",
+ "type": "hidden",
+ "openmrs_entity_id": "hvl_result_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "enroll_to_eac",
+ "type": "hidden",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enroll_to_eac",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_hvl_test_results_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_prescription_line_selection.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_prescription_line_selection.json
new file mode 100644
index 0000000000..eb55b4c0c2
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_prescription_line_selection.json
@@ -0,0 +1,344 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT prescription line selection",
+ "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"
+ },
+ "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": "Kupatiwa Dawa za ARV",
+ "fields": [
+ {
+ "key": "prescribed_regimes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prescribed_regimes",
+ "type": "native_radio",
+ "label": "Je, Mteja ameandikiwa na kupewa ARVs?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo:"
+ }
+ },
+ {
+ "key": "arv_line",
+ "type": "spinner",
+ "hint": "Chagua laini ya ARV",
+ "openmrs_entity_id": "arv_line",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "Mstari wa Kwanza",
+ "Mstari wa Pili",
+ "Mstari wa tatu"
+ ],
+ "keys": [
+ "first_line",
+ "second_line",
+ "third_line"
+ ],
+ "openmrs_choice_ids": {
+ "first_line": "first_line",
+ "second_line": "second_line",
+ "third_line": "third_line"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:prescribed_regimes": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "first_line",
+ "type": "spinner",
+ "hint": "Dawa za ARVs katika mstari wa kwanza",
+ "openmrs_entity_id": "first_line",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "1g-A (TDF+3TC+EFV)",
+ "1b-A (AZT+3TC+NVP)",
+ "1c-A (AZT+3TC+EFV)",
+ "1k-A (ABC+3TC+EFV)",
+ "1p-A (ABC+3TC+DTG)",
+ "1r-A (TDF+3TC+DTG)",
+ "1u-A (AZT+3TC+DTG)",
+ "1q-A (TDF+FTC+DTG)",
+ "1x-A (Other 1st line)"
+ ],
+ "keys": [
+ "1_gA",
+ "1_bA",
+ "1_cA",
+ "1_kA",
+ "1_pA",
+ "1_rA",
+ "1_uA",
+ "1_qA",
+ "1_xA"
+ ],
+ "openmrs_choice_ids": {
+ "1_gA": "1_gA",
+ "1_bA": "1_bA",
+ "1_cA": "1_cA",
+ "1_kA": "1_kA",
+ "1_pA": "1_pA",
+ "1_rA": "1_rA",
+ "1_uA": "1_uA",
+ "1_qA": "1_qA",
+ "1_xA": "1_xA"
+ },
+ "relevance": {
+ "step1:arv_line": {
+ "type": "string",
+ "ex": "equalTo(.,\"first_line\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali swali hili"
+ }
+ },
+ {
+ "key": "second_line",
+ "type": "spinner",
+ "hint": "Dawa za ARVs katika Mstari wa pili",
+ "openmrs_entity_id": "second_line",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "2f-A (TDF+FTC+LPV/r)",
+ "2h-A (TDF+FTC+ATV/r)",
+ "2s-A (AZT+3TC+ATV/r)",
+ "2g-A (ABC+3TC+LPV/r)",
+ "2k-A (ABC+3TC+ATV/r)",
+ "2n-A (AZT+3TC+LPV/r)",
+ "2x-A (Other 2nd line)"
+ ],
+ "keys": [
+ "2_fA",
+ "2_hA",
+ "2_sA",
+ "2_gA",
+ "2_kA",
+ "2_nA",
+ "2_xA"
+ ],
+ "openmrs_choice_ids": {
+ "2_fA": "2_fA",
+ "2_hA": "2_hA",
+ "2_sA": "2_sA",
+ "2_gA": "2_gA",
+ "2_kA": "2_kA",
+ "2_nA": "2_nA",
+ "2_xA": "2_xA"
+ },
+ "relevance": {
+ "step1:arv_line": {
+ "type": "string",
+ "ex": "equalTo(.,\"second_line\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "third_line",
+ "type": "spinner",
+ "hint": "Dawa za ARVs katika mstari wa tatu",
+ "openmrs_entity_id": "third_line",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "3y-A (DTG+DRV/r+AZT+3TC)",
+ "3w-A (RAL+DRV/r+AZT+3TC)",
+ "3k-A (DTG+LPV/r+AZT+3TC)",
+ "3t-A (DTG+LPV/r+TDF+FTC)",
+ "3h-A (RAL+LPV/r+AZT+3TC)",
+ "3g-A (RAL+LPV/r+TDF+FTC)",
+ "3z-A (DTG+ATV/r+AZT+3TC)",
+ "3x-A (Other 3rd line)"
+ ],
+ "keys": [
+ "3_yA",
+ "3_wA",
+ "3_kA",
+ "3_tA",
+ "3_hA",
+ "3_gA",
+ "3_zA",
+ "3_xA"
+ ],
+ "openmrs_choice_ids": {
+ "3_wA": "3_wA",
+ "3_kA": "3_kA",
+ "3_tA": "3_tA",
+ "3_hA": "3_hA",
+ "3_gA": "3_gA",
+ "3_zA": "3_zA",
+ "3_xA": "3_xA",
+ "3_yA": "3_yA"
+ },
+ "relevance": {
+ "step1:arv_line": {
+ "type": "string",
+ "ex": "equalTo(.,\"third_line\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "reason_for_not_prescribing_arv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_prescribing_arv",
+ "type": "native_radio",
+ "label": "Sababu za kutokumpa dawa za ARVs ",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "out_of_medicine",
+ "text": "Dawa zimeisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_medicine"
+ },
+ {
+ "key": "client_refused_medication",
+ "text": "Mteja amekataa kuchukua dawa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_refused_medication"
+ },
+ {
+ "key": "other",
+ "text": "Nyingine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo:"
+ },
+ "relevance": {
+ "step1:prescribed_regimes": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_prescribing_arv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_prescribing_arv",
+ "type": "edit_text",
+ "hint": "Sababu nyingine",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha sababu nyingine za kutokumpa mteja ARVs"
+ },
+ "relevance": {
+ "step1:reason_for_not_prescribing_arv": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "number_of_arv_regimes_days_dispensed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_arv_regimes_days_dispensed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Siku Iliyotolewa",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi ya siku iliyotolewa"
+ },
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba halali"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Idadi ya siku iliyotolewa inatakiwa iwe zaidi ya 0"
+ },
+ "v_max": {
+ "value": "180",
+ "err": "Idadi ya siku iliyotolewa inatakiwa iwe sawa na au chini ya 180"
+ },
+ "relevance": {
+ "step1:prescribed_regimes": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_registration.json
new file mode 100644
index 0000000000..3fead91a72
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_registration.json
@@ -0,0 +1,370 @@
+{
+ "count": "2",
+ "encounter_type": "PMTCT Registration",
+ "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"
+ },
+ "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": "ART",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "pmtct_register_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "pmtct_register_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_form_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_registration_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "hiv_registration_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_form_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "known_on_art",
+ "type": "native_radio",
+ "label": "Je, Mteja huyu yupo kwenye ART?",
+ "openmrs_entity_id": "known_on_art",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "is_transfer_in_client",
+ "type": "native_radio",
+ "label": "Je, Mteja amehamia kutoka Kituo kingine?",
+ "openmrs_entity_id": "is_transfer_in_client",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:known_on_art": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "pmtct_register_date_from_originating_facility",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct_register_date_from_originating_facility",
+ "type": "date_picker",
+ "hint": "Tarehe ya usajili katika huduma za PMTCT katika Kituo cha Afya alichotokea",
+ "expanded": false,
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza tarehe ya usajili katika huduma za PMTCT katika Kituo cha Afya alichotokea"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pmtct_register_date_at_this_facility",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct_register_date_at_this_facility",
+ "type": "date_picker",
+ "hint": "Tarehe ya usajili katika huduma za PMTCT",
+ "expanded": false,
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza tarehe ya usajili katika huduma za PMTCT"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "Mwisho",
+ "fields": [
+ {
+ "key": "notify_retest",
+ "type": "toaster_notes",
+ "text": "Tafadhali fanya kipimo cha HIV cha uhakiki kwa Mteja",
+ "openmrs_entity_id": "notify_retest",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:known_on_art": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "test_results",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "test_results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_form_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_status",
+ "type": "native_radio",
+ "label": "Hali ya VVU",
+ "openmrs_entity_id": "hiv_status",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "relevance": {
+ "step1:known_on_art": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "has_the_client_been_provided_with_ctc_number",
+ "type": "native_radio",
+ "label": "Je mteja amepewa namba ya CTC?",
+ "openmrs_entity_id": "has_the_client_been_provided_with_ctc_number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Namba ya CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Namba ya CTC inatakiwa kuwa (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza namba ya CTC ya mteja"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza namba ya CTC ya mteja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "notify_first_visit",
+ "type": "toaster_notes",
+ "text": "Fanya Hudhurio awali la PMTCT",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "step1:known_on_art": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "notify_continue_with_anc",
+ "type": "toaster_notes",
+ "text": "Mshauri Mteja aendelee na huduma za ANC",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "step2:hiv_status": {
+ "type": "string",
+ "ex": "equalTo(.,\"negative\")"
+ }
+ }
+ },
+ {
+ "key": "next_facility_visit_date",
+ "type": "hidden",
+ "openmrs_entity_id": "next_facility_visit_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_form_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "followup_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "followup_status",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_form_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_registration_for_clients_known_on_art.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_registration_for_clients_known_on_art.json
new file mode 100644
index 0000000000..227d4eafcc
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_registration_for_clients_known_on_art.json
@@ -0,0 +1,195 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT Registration",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {
+ },
+ "step1": {
+ "title": "Mteja yupo kwenye ART tayari",
+ "fields": [
+ {
+ "key": "pmtct_register_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "pmtct_register_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_form_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_registration_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "hiv_registration_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_form_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "known_on_art",
+ "type": "hidden",
+ "openmrs_entity_id": "known_on_art",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "value": "yes"
+ },
+ {
+ "key": "is_transfer_in_client",
+ "type": "native_radio",
+ "label": "Je, Mteja amehamia kutoka Kituo kingine?",
+ "openmrs_entity_id": "is_transfer_in_client",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "pmtct_register_date_from_originating_facility",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct_register_date_from_originating_facility",
+ "type": "date_picker",
+ "hint": "Tarehe ya usajili katika huduma za PMTCT katika Kituo cha Afya alichotokea",
+ "expanded": false,
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza tarehe ya usajili katika huduma za PMTCT katika Kituo cha Afya alichotokea"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pmtct_register_date_at_this_facility",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct_register_date_at_this_facility",
+ "type": "date_picker",
+ "hint": "Tarehe ya usajili katika huduma za PMTCT",
+ "expanded": false,
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza tarehe ya usajili katika huduma za PMTCT"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "test_results",
+ "type": "hidden",
+ "openmrs_entity_id": "test_results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "value": "positive"
+ },
+ {
+ "key": "ctc_number",
+ "type": "hidden",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "known_on_art_client",
+ "type": "toaster_notes",
+ "text": "Mteja mwenye CTC Namba {ctc_number} yupo kwenye ART tayari.\n\nTuma fomu hii kwa kumsajili Mteja huyu PMTCT na nakiri hudhurio la awali.",
+ "openmrs_entity_id": "notify_retest",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_tb_screening.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_tb_screening.json
new file mode 100644
index 0000000000..45fb3c0b7b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pmtct_tb_screening.json
@@ -0,0 +1,496 @@
+{
+ "count": "1",
+ "encounter_type": "PMTCT tb screening",
+ "entity_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "Uchunguzi wa Awali wa Kifua Kikuu",
+ "fields": [
+ {
+ "key": "on_tb_treatment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "on_tb_treatment",
+ "type": "native_radio",
+ "label": "Je, Mteja huyu yupo katika Matibabu ya Kifua kikuu?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ }
+ },
+ {
+ "key": "tb_registration_number",
+ "type": "edit_text",
+ "openmrs_entity_id": "tb_registration_number",
+ "hint": "Namba ya Kliniki ya TB ya mteja",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "step1:on_tb_treatment": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba ya Kliniki ya TB"
+ }
+ },
+ {
+ "key": "tb_symptoms_screening",
+ "type": "check_box",
+ "label": "Tafadhali chagua kama Mteja ana dalili zifuatazo za Kifua Kikuu?",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "tb_symptoms_screening",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_cough",
+ "text": "Mteja anakikohozi cha muda wowote",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_cough"
+ },
+ {
+ "key": "chk_sputum",
+ "text": "Mteja anakohoa makohozi yaliyochanganyika na damu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_sputum"
+ },
+ {
+ "key": "chk_fevers",
+ "text": "Mteja amekuwa na Homa kwa zaidi ya wiki mbili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_fevers"
+ },
+ {
+ "key": "chk_weight_loss",
+ "text": "Mteja anapoteza Uzito",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_weight_loss"
+ },
+ {
+ "key": "chk_weight_loss_subsequent_visit",
+ "text": "Mteja amepungua uzito katika mfululizo mahudhulio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_weight_loss_subsequent_visit"
+ },
+ {
+ "key": "chk_excessive_sweating",
+ "text": "Mteja amekuwa akitoka na jasho jingi sana usiku kwa wiki mbili au zaidi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_excessive_sweating"
+ },
+ {
+ "key": "chk_none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mada"
+ },
+ "relevance": {
+ "step1:on_tb_treatment": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "investigate_for_tb",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "investigate_for_tb",
+ "type": "native_radio",
+ "label": "Fanya uchunguzi wa Kifua kikuu",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hazi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha TB hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo:"
+ },
+ "relevance": {
+ "step1:tb_symptoms_screening": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_cough",
+ "chk_sputum",
+ "chk_fevers",
+ "chk_weight_loss",
+ "chk_weight_loss_subsequent_visit",
+ "chk_excessive_sweating"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_tb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_tb_test",
+ "type": "spinner",
+ "hint": "Reason as to why the TB test was not conducted",
+ "values": [
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:investigate_for_tb": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_tb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_tb_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting TB test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_tb_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_tb_treatment",
+ "type": "toaster_notes",
+ "text": "Mpe rufaa mteja kwa ajili ya Matibabu ya Kifua kikuu",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:investigate_for_tb": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "has_been_provided_with_tpt_before",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_been_provided_with_tpt_before",
+ "type": "native_radio",
+ "label": "Je, Mteja amewahi kupewa TPT kabla?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio (Amemaliza TPT)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "partial_complete",
+ "text": "Ndio (Lakini hajamaliza TPT)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partial_complete"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_tb_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_tpt_eligibility",
+ "type": "toaster_notes",
+ "text": "Mteja huyu anakidhi vigezo kwa ajili ya kupewa TPT",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_tb_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_tpt_ineligibility",
+ "type": "toaster_notes",
+ "text": "Mteja huyu hakidhi vigezo vya kupewa TPT",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_tb_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "completed_tpt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "completed_tpt",
+ "type": "native_radio",
+ "label": "Je mteja amemaliza dose ya TPT?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu sahihi"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_tb_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "is_client_provided_with_tpt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_client_provided_with_tpt",
+ "type": "native_radio",
+ "label": "Je, Mteja huyu amepewa TPT leo?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_tb_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_tpt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_tpt",
+ "type": "native_radio",
+ "label": "Sababu ya kutompatia Mteja TPT?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "out_of_medicine",
+ "text": "Dawa zimeisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_medicine"
+ },
+ {
+ "key": "client_refused_medication",
+ "text": "Mteja amekataa kuchukua dawa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_refused_medication"
+ },
+ {
+ "key": "client_allergic_to_tpt",
+ "text": "Mteja huyu ana mzio na dawa za TPT",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_allergic_to_tpt"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:is_client_provided_with_tpt": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "number_of_tpt_days_dispensed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_tpt_days_dispensed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Siku Iliyotolewa",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi ya siku iliyotolewa"
+ },
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba halali"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "Idadi ya siku iliyotolewa inatakiwa iwe zaidi ya 0"
+ },
+ "v_max": {
+ "value": "180",
+ "err": "Idadi ya siku iliyotolewa inatakiwa iwe sawa na au chini ya 180"
+ },
+ "relevance": {
+ "step1:is_client_provided_with_tpt": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_child_general_examination.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_child_general_examination.json
new file mode 100644
index 0000000000..44070f580a
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_child_general_examination.json
@@ -0,0 +1,843 @@
+{
+ "count": "1",
+ "encounter_type": "PNC Child Followup",
+ "entity_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "Uchunguzi wa Afya ya Mtoto",
+ "fields": [
+ {
+ "key": "child_activeness",
+ "type": "native_radio",
+ "label": "Uchangamfu wa Mtoto",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_activeness",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "active",
+ "text": "Mchangamfu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "active"
+ },
+ {
+ "key": "not_active",
+ "text": "Sio Mchangamfu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_active"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_child_activeness",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_activeness": {
+ "type": "string",
+ "ex": "equalTo(.,\"not_active\")"
+ }
+ }
+ },
+ {
+ "key": "height",
+ "type": "edit_text",
+ "hint": "Urefu (cm)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "height",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza Urefu"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Urefu lazima uwe sawa au mkubwa kuliko 10 (cm)"
+ },
+ "v_max": {
+ "value": "80",
+ "err": "Urefu lazima uwe sawa au mkubwa kuliko 80 (cm)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Urefu"
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Uzito (Kg)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza Uzito"
+ },
+ "v_min": {
+ "value": "0.5",
+ "err": "The weight must be equal or greater than 0.5 (KG)"
+ },
+ "v_max": {
+ "value": "7",
+ "err": "The weight must be equal or less than 7 (KG)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Uzito"
+ }
+ },
+ {
+ "key": "hb_level_test",
+ "type": "native_radio",
+ "label": "Kipimo cha Kiwango cha damu (HB)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "Kipimo cha kiwango cha damu (HB) kimefanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha kiwango cha damu (HB) hakijafanyika",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "hb_level",
+ "type": "edit_text",
+ "hint": "Kiwango cha damu (HB) (g/dl)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza kiwango cha damu (HB)"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Kiwango cha damu (HB) lazima kiwe sawasawa au zaidi ya 0 (g/dl)"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Kiwango cha damu (HB) lazima kiwe sawasawa au chini ya20 (g/dl)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali weka thamani"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_severe_anaemia_treatment",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya upungufu mkubwa wa damu kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_severe_anaemia_treatment",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hb_level": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"8.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_moderate_anaemia_management",
+ "type": "toaster_notes",
+ "text": "Dhibiti hali hii ya ukosefu wa damu kulingana na muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_moderate_anaemia_management",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hb_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha HB",
+ "values": [
+ "Cuvette Cartridges Hazipo Kituoni",
+ "Mashine ya Kupimwa wingi wa damu (Haemoque) haifanyi kazi",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja amekataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "stock_out_of_cuvettes_cartridges": "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order": "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_hb_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_hb_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Sababu nyingine ya kutofanya kipimo cha kiwango cha damu (HB)",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hb_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "temperature",
+ "type": "edit_text",
+ "hint": "Joto (\u2103)",
+ "openmrs_entity_id": "temperature",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza Joto (\u2103)"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Joto lazima iwe sawa au kubwa kuliko 10 (\u2103)"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Joto lazima iwe sawa au kubwa kuliko 50 (\u2103)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Joto (\u2103)"
+ }
+ },
+ {
+ "key": "notify_client_has_high_temperature",
+ "type": "toaster_notes",
+ "text": "Fanya vipimo vya maabara vinavyofaa ili kupata sababu ya homa na udhibiti kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "notify_client_has_fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"38.5\")"
+ }
+ }
+ },
+ {
+ "key": "notify_client_has_low_temperature",
+ "type": "toaster_notes",
+ "text": "Mpatie mtoto joto na huduma zingine muhimu za utunzaji wa watoto wachanga kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "notify_client_has_hypothermia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"36.5\")"
+ }
+ }
+ },
+ {
+ "key": "head_circumference",
+ "type": "edit_text",
+ "hint": "Mzunguko wa kichwa cha Mtoto (CM)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "head_circumference",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza mzunguko wa kichwa (CM)"
+ },
+ "v_min": {},
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza mzunguko wa kichwa (CM)"
+ }
+ },
+ {
+ "key": "prompt_for_large_head_circumference",
+ "type": "toaster_notes",
+ "text": "Tathmini vipengele vya vichwa vikubwa (hydrocephalus) na mpatie rufaa kwa ajili ya uwezekano wa kupatiwa upasuaji kichwa",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:head_circumference": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"50\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_small_head_circumference",
+ "type": "toaster_notes",
+ "text": "Angalia dalili za ugonjwa unaozuia mttoto asiweze kujifunza (down's syndrome) au kasoro zingine za neva zinazopelekea kuwa na kichwa kidogo (microcephaly). Mpatie rufaa mtoto kwa ajili ya matibabu ya hali ya juu",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:head_circumference": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"30\")"
+ }
+ }
+ },
+ {
+ "key": "upper_arm_circumference",
+ "type": "edit_text",
+ "hint": "Mzunguko wa juu wa mkono (CM)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "upper_arm_circumference",
+ "openmrs_entity_parent": "",
+ "v_min": {
+ "value": "7.5",
+ "err": "Mzunguko wa juu wa mkono hauwezi kuwa chini ya 7.5"
+ },
+ "v_max": {
+ "value": "13",
+ "err": "Mzunguko wa juu wa mkono hauwezi kuzidi 13"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Ingiza Mzunguko wa juu wa mkono (CM)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Ingiza mzunguko wa juu wa mkono (CM)"
+ }
+ },
+ {
+ "key": "feeding_options",
+ "type": "native_radio",
+ "label": "Chaguzi za kulisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "feeding_options",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "ebf",
+ "text": "Kumnyonyesha maziwa ya mama pekee kwa kipindi cha Miezi 6 ya Mwanzo (EBF)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ebf"
+ },
+ {
+ "key": "rf",
+ "text": "Kumnyonyesha maziwa mbadala (RF)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rf"
+ },
+ {
+ "key": "mf",
+ "text": "Ananyonyeshwa maziwa ya mama na kupatiwa chakula kingine (MF)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mf"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "why_the_mother_decided_to_use_mixed_feeding",
+ "type": "edit_text",
+ "hint": "Uliza kwa nini mama aliamua kutumia ulishaji wa mchanganyiko (Mixed Feeding, MF).",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "why_the_mother_decided_to_use_mixed_feeding",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:feeding_options": {
+ "type": "string",
+ "ex": "equalTo(., \"mf\")"
+ }
+ }
+ },
+ {
+ "key": "septicaemia",
+ "type": "native_radio",
+ "label": "Mtoto ana uambukizo mkali (Septicaemia)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "septicaemia",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_septicaemia",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "prompt_for_septicaemia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:septicaemia": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "umbilical_cord",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "umbilical_cord",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Tathimini ya Kitovu",
+ "exclusive": [
+ "chk_no_abnormalities"
+ ],
+ "options": [
+ {
+ "key": "chk_smell_bad",
+ "text": "Kina harufu mbaya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_smell_bad",
+ "value": "false"
+ },
+ {
+ "key": "chk_infection",
+ "text": "Kina maambukizi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_infection",
+ "value": "false"
+ },
+ {
+ "key": "chk_descended",
+ "text": "Kimevimba/kimetanuka",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_descended",
+ "value": "false"
+ },
+ {
+ "key": "chk_delayed_off",
+ "text": "Kimechelewa kukatika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_delayed_off",
+ "value": "false"
+ },
+ {
+ "key": "chk_no_abnormalities",
+ "text": "Hakina hali yoyote isiyo ya kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_no_abnormalities",
+ "value": "false"
+ },
+ {
+ "key": "chk_other",
+ "text": "Nyingine (Bainisha)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_other",
+ "value": "false"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_umbilical_cord_smelling_bad",
+ "type": "toaster_notes",
+ "text": "Dhibiti kulingana na mwongozo wa Wizara ya Afya/Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:umbilical_cord": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_smell_bad",
+ "chk_infection"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "umbilical_cord_other_assessment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "umbilical_cord_other_assessment",
+ "type": "edit_text",
+ "hint": "Bainisha Tathimini ya Kitovu Nyingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali bainisha tathimini ya kitovu nyingine"
+ },
+ "relevance": {
+ "step1:umbilical_cord": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "jaundice",
+ "type": "native_radio",
+ "label": "Je, Mtoto ana homa ya manjano?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jaundice",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_jaundice",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:jaundice": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "skin_infection",
+ "type": "native_radio",
+ "label": "Je, Mtoto ana maambukizi ya ngozi?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "skin_infection",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_skin_infection",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:skin_infection": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "kangaroo_enrollment",
+ "type": "native_radio",
+ "label": "Je, mtoto ameanzishiwa huduma ya kangaroo (KMC)?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "kangaroo_enrollment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_child_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "child_bcg_vaccination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_bcg_vaccination",
+ "type": "native_radio",
+ "label": "Je, mtoto amechanjwa BCG?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Chagua mojawapo"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_child_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_bcg_vaccination",
+ "type": "toaster_notes",
+ "text": "Mtoto apewe chanjo ya BCG",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_bcg_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "child_opv0_vaccination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_opv0_vaccination",
+ "type": "native_radio",
+ "label": "Je, mtoto amechanjwa OPV0?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu sahihi"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_child_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_opv0_vaccination",
+ "type": "toaster_notes",
+ "text": "Mtoto apewe chanjo ya OPV0 kabla ya umri wa siku 14",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_opv0_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "followup_visit_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "followup_visit_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_followup_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_counselling.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_counselling.json
index 4cbc54c7be..c6ef53fc37 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_counselling.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_counselling.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Ushauri",
+ "title": "Counselling",
"fields": [
{
"key": "couselling_pnc",
@@ -55,7 +55,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "1379AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "check_box",
- "label": "Ushauri uliotolewa",
+ "label": "Ushauri umetolewa",
"label_text_style": "normal",
"text_color": "#C0C0C0",
"exclusive": [
@@ -64,133 +64,140 @@
"options": [
{
"key": "chk_maternal_nutrition",
- "text": "3. Lishe kwa mama wakati wa kunyonyesha",
+ "text": "Lishe ya mama wakati wa kunyonyesha",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1380AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_hiv_aids",
- "text": "5. Umuhimu wa kupata ushauri nasaha na kupima VVU",
+ "text": "Taarifa za jumla za VVU/UKIMWI",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_pmtct",
- "text": "6. Kuzuia mambukizi ya VVU kutoka kwa mama kwenda kwa mtoto",
+ "text": "PMTCT kwa mama",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "160538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_malaria_prevention",
- "text": "7. Kuzuia malaria kwa watoto wenye umri chini ya miaka mitano",
+ "text": "Kuzuia Malaria",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164884AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_pnc_care_for_mother",
- "text": "9. Huduma kwa mama baada ya kujifungua",
+ "text": "PNC huduma kwa mama",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1623AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
+ {
+ "key": "chk_hiv_exposed_infant",
+ "text": "Ufuatiliaji wa Mtoto aliye katika hatari ya VVU",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "164818AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
{
"key": "chk_pnc_danger_signs",
- "text": "10. Dalili za hatari mara baada ya kujifungua hadi siku arobaini na mbili ya uzazi",
+ "text": "Dalili za hatari za PNC",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "161541AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_care_of_infant_after_birth",
- "text": "11. Huduma kwa mtoto mchanga mara baada ya kuzaliwa",
+ "text": "Matunzo ya mtoto baada ya kuzaliwa",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "159839AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_care_of_premature_baby",
- "text": "12. Huduma kwa mtoto aliyezaliwa kabla ya muda wake / njiti au mtoto mwenye uzito pungufu",
+ "text": "Matunzo ya mtoto aliyezaliwa kabla ya wakati",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": ""
},
{
"key": "chk_care_of_new_born",
- "text": "13. Kumhudumia mtoto mchanga",
+ "text": "Matunzo ya mtoto mchanga",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "160413AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_new_born_danger_signs",
- "text": "14. Dalili za hatari kwa mtoto mchanga",
+ "text": "Ishara za hatari kwa watoto wachanga",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "161071AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_hiv_exposed_infant",
- "text": "15. Ufuatiliaji wa mtoto aliyezaliwa na mama mwenye VVU",
+ "text": "Ufuatiliaji wa mtoto aliyeambukizwa VVU",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164818AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_breastfeeding",
- "text": "16. Unyonyeshaji wa mazima wa mama",
+ "text": "Kunyonyesha",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1910AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_lam",
- "text": "17. Njia ya uzazi wa mpango ya unyonyeshaji maziwa ya mama pekee kwa kipindi cha miezi sita baada ya kujifungua (LAM)",
+ "text": "LAM kama njia ya asili ya FP, ambayo inajumuisha unyonyeshaji wa kipekee miezi sita baada ya kujifungua",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "161096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_family_planning",
- "text": "18. Uzazi wa mpango",
+ "text": "Uzazi wa mpango",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_birth_registration",
- "text": "19. Usajili wa vizazi",
+ "text": "Usajili wa kuzaliwa",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "165406AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_immunisation",
- "text": "22. Chanjo",
+ "text": "Kinga",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_infection_prevention",
- "text": "24. Kuzuia maambukizi katika jamii",
+ "text": "Kuzuia na kudhibiti maambukizi",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1906AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_gender_issues",
- "text": "26. Jinsia",
+ "text": "Masuala ya jinsia",
"value": false,
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_none",
- "text": "Hakushauriwa",
+ "text": "Uuzaji wa Spur",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -203,4 +210,4 @@
}
]
}
-}
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_baby.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_baby.json
index f514213eaf..12c8495f61 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_baby.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_baby.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Dalili za hatari kwa mtoto",
+ "title": "Danger Signs Baby",
"fields": [
{
"key": "danger_signs_present_child",
@@ -55,7 +55,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "159860AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "check_box",
- "label": "Je, mtoto mchanga ana dalili zozote za hatari?",
+ "label": "Je, mtoto ana dalili zozote za hatari?",
"label_text_style": "normal",
"text_color": "#C0C0C0",
"exclusive": [
@@ -71,35 +71,35 @@
},
{
"key": "chk_excessive_crying",
- "text": "Mtoto kulia sana",
+ "text": "Kulia kupita kiasi",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "110540AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_fast_breathing",
- "text": "Kupumua kwa haraka",
+ "text": "Kupumua haraka",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "125061AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_difficult_breathing",
- "text": "Kushindwa kupumua",
+ "text": "Ugumu wa kupumua",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "142373AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_unable_to_suck",
- "text": "Kushindwa kunyonya au kumeza",
+ "text": "Haiwezi kunyonya",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "159861AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_umbilical_discharge",
- "text": "Kutoka damu kwenye kitovu au usaha",
+ "text": "Kutokwa na damu ya kitovu / usaha",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "123843AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -113,28 +113,28 @@
},
{
"key": "chk_convulsions",
- "text": "Degedege / Mtukutiko wa mwili",
+ "text": "Degedege",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164483AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_skin_rashes",
- "text": "Vipele mwilini",
+ "text": "Vipele vya ngozi",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "512AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_pale",
- "text": "Mwili kuwa njano",
+ "text": "Kupaula au manjano",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "136443AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_eye_discharge",
- "text": "Macho kutoa uchafu / usaha",
+ "text": "Kutokwa kwa macho",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "142246AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -148,14 +148,14 @@
},
{
"key": "chk_lethargy",
- "text": "Uchovu / Kulegea mwili",
+ "text": "Ulegevu",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "116334AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_none",
- "text": "Hakuna",
+ "text": "Hakun",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -169,10 +169,10 @@
{
"key": "danger_signs_present_toaster",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Dalili za hatari! \nToa rufaa haraka kwenda kituo cha kutolea huduma za afya.",
+ "text": "Alama ya hatari! Mpe rufaa mara moja kwenye kituo cha afya.",
"text_color": "#CF0800",
"toaster_type": "problem",
"relevance": {
@@ -201,4 +201,4 @@
}
]
}
-}
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_mother.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_mother.json
index f980cd8d6a..bc65f8adde 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_mother.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_mother.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Dalili za hatari kwa mama",
+ "title": "Danger Signs Mother",
"fields": [
{
"key": "danger_signs_present_mama",
@@ -71,49 +71,49 @@
},
{
"key": "chk_bleeding_vaginally",
- "text": "Damu kutoka ukeni",
+ "text": "Kutokwa na damu ukeni",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "150802AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_server_headache",
- "text": "Maumivu ya kichwa",
+ "text": "Maumivu makali ya kichwa",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "139081AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_convulsions",
- "text": "Degedege / Mtukutiko wa mwili",
+ "text": "Degedege",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164483AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_difficulty_breathing",
- "text": "Kupumua kwa shida",
+ "text": "Ugumu wa kupumua",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "142373AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_severe_leg_pain",
- "text": "Maumivu makali kwenye misuli ya miguu",
+ "text": "Maumivu makali ya mguu",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "114395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_unusual_behaviour",
- "text": "Tabia isiyo ya kawaida (msongo wa mawazo, kuchanganyikiwa)",
+ "text": "Tabia isiyo ya kawaida (stress, kuchanganyikiwa)",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "152376AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_swelling of breast",
- "text": "Kuvimba kwa matiti na chuchu zilizo chanika",
+ "text": "Kuvimba kwa matiti na chuchu",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "125212AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -127,14 +127,14 @@
},
{
"key": "chk_vaginal_discharge",
- "text": "Kutoka uchafu / majimaji ukeni yenye harufu mbaya",
+ "text": "Kutokwa na majimaji yenye rangi nyekundu au yenye majimaji ukeni yenye harufu mbaya",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "123395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_blurred_vision",
- "text": "Kutoona vizuri",
+ "text": "Maono yaliyofifia",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "147104AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -148,7 +148,7 @@
},
{
"key": "chk_urination",
- "text": "Kupata mkojo kidogo au kuvuja mkojo mfululizo",
+ "text": "Kojoa kidogo au kuvuja kwa mkojo",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "118982AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -172,7 +172,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "toaster_notes",
- "text": "Dalili za hatari! \nMpe rufaa haraka kwenda kituo cha afya.",
+ "text": "Alama ya hatari! Mpe rufaa mara moja kwenye kituo cha afya.",
"text_color": "#CF0800",
"toaster_type": "problem",
"relevance": {
@@ -201,4 +201,4 @@
}
]
}
-}
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_outcome.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_outcome.json
index 60f544af54..3938111627 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_outcome.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_danger_signs_outcome.json
@@ -18,11 +18,6 @@
"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",
@@ -82,104 +77,87 @@
{
"key": "Fever",
"openmrs_choice_id": "",
- "text": "Homa",
- "value": false
+ "text": "Homa"
},
{
"key": "Bleeding_vaginally",
"openmrs_choice_id": "",
- "text": "Damu kutoka ukeni",
- "value": false
+ "text": "Damu kutoka ukeni"
},
{
"key": "Severe_headache",
"openmrs_choice_id": "",
- "text": "Maumivu ya kichwa",
- "value": false
+ "text": "Maumivu ya kichwa"
},
{
"key": "Convulsions",
"openmrs_choice_id": "",
- "text": "Degedege",
- "value": false
+ "text": "Degedege"
},
{
"key": "Difficulty_breathing",
"openmrs_choice_id": "",
- "text": "Kushindwa kupumua",
- "value": false
+ "text": "Kushindwa kupumua"
},
{
"key": "Severe_abdominal_pain",
"openmrs_choice_id": "",
- "text": "Maumivu makali ya tumbo",
- "value": false
+ "text": "Maumivu makali ya tumbo"
},
{
"key": "Vaginal_discharge_with_a_bad_smell",
"openmrs_choice_id": "",
- "text": "Kutoka uchafu / majimaji ukeni yenye harufu mbaya",
- "value": false
+ "text": "Kutoka uchafu / majimaji ukeni yenye harufu mbaya"
},
{
"key": "Redness_around_the_umbilical_cord_foul_smelling_discharge_from_the_umbilical_cord",
"openmrs_choice_id": "",
- "text": "Uambukizo kwenye kitovu",
- "value": false
+ "text": "Uambukizo kwenye kitovu"
},
{
"key": "Excessive_crying",
"openmrs_choice_id": "",
- "text": "Mtoto kulia sana",
- "value": false
+ "text": "Mtoto kulia sana"
},
{
"key": "Fast_breathing",
"openmrs_choice_id": "",
- "text": "Kushindwa kupumua",
- "value": false
+ "text": "Kushindwa kupumua"
},
{
"key": "Chest_indrawing",
"openmrs_choice_id": "",
- "text": "Kifua kikovu",
- "value": false
+ "text": "Kifua kikovu"
},
{
"key": "Unable_to_suck",
"openmrs_choice_id": "",
- "text": "Kushindwa kunyonya",
- "value": false
+ "text": "Kushindwa kunyonya"
},
{
"key": "No_movement",
"openmrs_choice_id": "",
- "text": "Hakuna harakati",
- "value": false
+ "text": "Hakuna harakati"
},
{
"key": "Pale_or_jaundiced",
"openmrs_choice_id": "",
- "text": "Mwili kuwa njano",
- "value": false
+ "text": "Mwili kuwa njano"
},
{
"key": "Lethargy",
"openmrs_choice_id": "",
- "text": "Uchovu",
- "value": false
+ "text": "Uchovu"
},
{
"key": "Other",
"openmrs_choice_id": "",
- "text": "Nyingine",
- "value": false
+ "text": "Nyingine"
},
{
"key": "None",
"openmrs_choice_id": "",
- "text": "Hakuna",
- "value": false
+ "text": "Hakuna"
}
],
"exclusive": [
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_exclusive_breastfeeding.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_exclusive_breastfeeding.json
index 65785a6034..9a6b86d129 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_exclusive_breastfeeding.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_exclusive_breastfeeding.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Kunyonyeshwa maziwa ya mama pekee mwezi 0",
+ "title": "Exclusive breastfeeding",
"fields": [
{
"key": "exclusive_breast_feeding",
@@ -57,9 +57,9 @@
"openmrs_data_type": "exclusive_breast_feeding",
"type": "spinner",
"image": "ic_form_bf",
- "hint": "Je, mtoto amenyonyeshwa maziwa ya mama pekee?",
+ "hint": "Je, mtoto amekuwa akinyonyesha maziwa ya mama pekee?",
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
"keys": [
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_family_planning.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_family_planning.json
index 9cbd5543da..9546fe3e66 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_family_planning.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_family_planning.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Uzazi wa mpango",
+ "title": "Family Planning",
"fields": [
{
"key": "fp_counseling",
@@ -56,10 +56,10 @@
"openmrs_entity_id": "1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Je, mama amepata ushauri juu ya uzazi wa mpango katika kituo cha kutolea huduma za afya hivi karibuni?",
+ "hint": "Je, mama alishauriwa hivi majuzi kuhusu upangaji uzazi katika kituo cha afya?",
"values": [
- "Ndiyo",
- "Hapana"
+ "Ndio",
+ "Haoana"
],
"keys": [
"Yes",
@@ -80,27 +80,27 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "159860AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "check_box",
- "label": "Je, alipewa ushauri katika kipindi gani?",
+ "label": "Alishauriwa katika kipindi gani?",
"label_text_style": "normal",
"text_color": "#C0C0C0",
"options": [
{
"key": "chk_during_anc",
- "text": "Wakati wa kliniki ya wajawazito",
+ "text": "Wakati wa ANC",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "chk_during_anc"
},
{
"key": "chk_during_labour_and_delivery",
- "text": "Wakati wa uchungu na kujifungua",
+ "text": "Wakati wa kujifungua",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "chk_during_labour_and_delivery"
},
{
"key": "chk_during_pnc",
- "text": "Wakati wa huduma ya mama na mtoto wa baada ya kujifungua",
+ "text": "Wakati wa PNC",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "chk_during_pnc"
@@ -124,17 +124,17 @@
"openmrs_entity_id": "374AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Njia ya uzazi wa mpango uliyochagua?",
+ "hint": "Mbinu ya Upangaji Uzazi imechaguliwa?",
"values": [
- "Kitanzi",
- "Vidonge vya kumeza (POP)",
- "Kipandikizi",
- "Kondomu",
- "Njia ya uzazi wa mpango kwa unyonyeshaji (LAM)",
- "Shanga",
- "Kufunga kizazi mwanamke",
- "Kufunga kizazi mwanamme",
- "Hakuchagua njia yoyote"
+ "PPIUCD",
+ "Vidonge",
+ "Pandikiza",
+ "Kindomu",
+ "LAM",
+ "Njia ya kawaida ya siku",
+ "Kudumu (BTL)",
+ "Permanent (Vascemtomy)",
+ "Hakuna"
],
"keys": [
"PPIUCD",
@@ -172,15 +172,15 @@
{
"key": "fp_start_date",
"openmrs_entity_parent": "163757AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "date_picker",
- "hint": "Tarehe ya kuanza njia ya uzazi wa mpango",
+ "hint": "Tarehe ya kuanza",
"min_date": "today-120y",
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza tarehe"
+ "err": "Tafadhali weka tarehe ya kuanza kwa mbinu"
},
"relevance": {
"step1:fp_counseling": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_family_planning_services.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_family_planning_services.json
new file mode 100644
index 0000000000..266e14b631
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_family_planning_services.json
@@ -0,0 +1,234 @@
+{
+ "count": "1",
+ "encounter_type": "PNC Family Planning Services",
+ "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"
+ },
+ "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": "Huduma za Uzazi wa Mpango",
+ "fields": [
+ {
+ "key": "education_counselling_given",
+ "type": "native_radio",
+ "label": "Je, Mteja alipewa Elimu/Ushauri?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "education_counselling_given",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_provide_education_counselling",
+ "type": "toaster_notes",
+ "text": "Tafadhali toa Elimu/Ushauri kwa mteja",
+ "openmrs_entity_id": "prompt_provide_education_counselling",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:education_counselling_given": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "iec_given",
+ "type": "native_radio",
+ "label": "Je, alipewa vijarida vya Habari, Elimu na Mawasiliano (IEC)?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iec_given",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "using_family_planning_method",
+ "type": "native_radio",
+ "label": "Je, Mteja anatumia Njia ya Uzazi wa Mpango?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "using_family_planning_method",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "method_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "method_provided",
+ "type": "native_radio",
+ "label": "Njia ya uzazi wa mpango iliyotolewa",
+ "options": [
+ {
+ "key": "chk_condom",
+ "text": "Kondomu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_condom"
+ },
+ {
+ "key": "chk_pills",
+ "text": "Vidonge (Progestogen-only pill)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_pills"
+ },
+ {
+ "key": "chk_injectable",
+ "text": "Sindano (Baada ya siku 42)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_injectable"
+ },
+ {
+ "key": "chk_jadelle",
+ "text": "Vipandikizi (Jadelle)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_jadelle"
+ },
+ {
+ "key": "chk_implants",
+ "text": "Vipandikizi (Implanon/NXT)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_implants"
+ },
+ {
+ "key": "chk_iucd",
+ "text": "Kitanzi (PPIUCD) (Ndani ya masaa 48 baada ya kujifungua au baada ya siku 42 za PNC)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_iucd"
+ },
+ {
+ "key": "chk_tubal_ligation",
+ "text": "Kufungwa mirija ya uzazi (BTL)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_tubal_ligation"
+ },
+ {
+ "key": "chk_referred_fp_services",
+ "text": "Amepewa Rufaa ya huduma nyingine za Uzazi wa Mpango",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_referred_fp_services"
+ },
+ {
+ "key": "chk_none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:using_family_planning_method": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_fp_method",
+ "type": "edit_text",
+ "hint": "Specify reason for not providing FP method",
+ "openmrs_entity_id": "reason_for_not_providing_fp_method",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "step1:method_provided": {
+ "type": "string",
+ "ex": "equalTo(.,\"chk_none\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_health_facility_visit.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_health_facility_visit.json
index c3122c39d4..88526bfbbb 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_health_facility_visit.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_health_facility_visit.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Hudhurio katika kituo cha kutolea huduma za afya ya mama na mtoto baada ya kujifungua",
+ "title": "Health Facility Visit",
"fields": [
{
"key": "pnc_visit_{0}",
@@ -56,18 +56,14 @@
"openmrs_entity_id": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Je, mama alihudhuria hudhurio la {0} la huduma ya mama na mtoto baada ya kujifungua katika kituo cha kutolea huduma za afya? \n\nTarehe ya hudhurio lingine: {1}",
+ "hint": "Je, mwanamke huyo alihudhuria PNC yake alipotembelea {0} kituo cha afya? Tembelea tarehe ya kukamilisha: {1}",
"v_required": {
"value": "true",
"err": "Tafadhali chagua chaguo"
},
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
- ],
- "keys": [
- "Yes",
- "No"
]
},
{
@@ -76,12 +72,12 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "164093AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "date_picker",
- "hint": "Tarehe ya hudhurio la {0} la huduma ya mama na mtoto baada ya kujifungua",
+ "hint": "Tarehe ya kutembelea kituo cha afya cha PNC {0}",
"expanded": false,
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza tarehe"
+ "err": "Tafadhali weka tarehe"
},
"relevance": {
"step1:pnc_visit_{0}": {
@@ -97,19 +93,15 @@
"openmrs_entity_id": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Je, mama alipewa Vitamini A ndani ya masaa 24 baada ya kujifungua?",
+ "hint": "Je, mwanamke huyo alipokea Vitamini A ndani ya saa 24 baada ya kujifungua?",
"v_required": {
"value": "true",
"err": "Tafadhali chagua chaguo"
},
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
- "keys": [
- "Yes",
- "No"
- ],
"relevance": {
"step1:pnc_visit_{0}": {
"type": "string",
@@ -124,19 +116,15 @@
"openmrs_entity_id": "104677AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Je, mama alipewa dawa za kuongeza damu (FEFO) ndani ya masaa 24 baada ya kujifungua?",
+ "hint": "Je, mwanamke alipokea vidonge vya iron na folic acid (IFA) ndani ya saa 24 baada ya kujifungua?",
"v_required": {
"value": "true",
- "err": "Tafadhali chagua chaguo"
+ "err": "Tafadhali chagua "
},
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
- "keys": [
- "Yes",
- "No"
- ],
"openmrs_choice_ids": {
"Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_health_facility_visit_two.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_health_facility_visit_two.json
index 238f82418a..3a1b9e4fde 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_health_facility_visit_two.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_health_facility_visit_two.json
@@ -16,6 +16,7 @@
"openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"today": {
+ "openmrs_entity_parent": "",
"openmrs_entity": "encounter",
"openmrs_entity_id": "encounter_date"
},
@@ -46,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Hudhurio katika kituo cha kutolea huduma za afya ya mama na mtoto baada ya kujifungua",
+ "title": "Health Facility Visit",
"fields": [
{
"key": "pnc_visit_{0}",
@@ -55,18 +56,14 @@
"openmrs_entity_id": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Je, mama alihudhuria hudhurio la {0} la huduma ya mama na mtoto baada ya kujifungua katika kituo cha kutolea huduma za afya?\n\nTarehe ya hudhurio lingine: {1}",
+ "hint": "Je, mwanamke huyo alihudhuria PNC yake alipotembelea {0} kituo cha afya? Tembelea tarehe ya kukamilisha: {1}",
"v_required": {
"value": "true",
"err": "Tafadhali chagua chaguo"
},
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
- ],
- "keys": [
- "Yes",
- "No"
]
},
{
@@ -75,12 +72,12 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "164093AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "date_picker",
- "hint": "Tarehe ya hudhurio la {0} la huduma ya mama na mtoto baada ya kujifungua",
+ "hint": "Tarehe ya kutembelea kituo cha afya cha PNC {0}",
"expanded": false,
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza tarehe"
+ "err": "Tafadhali weka tarehe"
},
"relevance": {
"step1:pnc_visit_{0}": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hiv_test_results.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hiv_test_results.json
new file mode 100644
index 0000000000..c51a0f4773
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hiv_test_results.json
@@ -0,0 +1,200 @@
+{
+ "count": "1",
+ "encounter_type": "PNC HIV Test Results",
+ "entity_id": "",
+ "global": {},
+ "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": "HIV Test Results",
+ "fields": [
+ {
+ "key": "hiv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "type": "native_radio",
+ "label": "Chagua majibu ya Kipimo cha VVU",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo hakijafanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hiv_test",
+ "type": "spinner",
+ "hint": "Sababu za kutofanyika kwa kipimo cha VVU",
+ "values": [
+ "Tumeishiwa na Vitendanishi",
+ "Mteja alikuwa katika hali ya Udharula",
+ "Mteja amekataa kupimwa",
+ "bado tunaendelea kumpa ushauri mteja",
+ "Nyingine bainisha"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:hiv": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_hiv_test",
+ "type": "edit_text",
+ "hint": "Bainisha sababu nyingine za kutokufanya kipimo cha VVU",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hiv_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_test_result_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_result_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya kupokea majibu",
+ "expanded": false,
+ "min_date": "today-3y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua Tarehe ya kupokea majibu"
+ },
+ "relevance": {
+ "step1:hiv_test_result": {
+ "type": "string",
+ "ex": "notEqualTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "register_pmtct",
+ "type": "toaster_notes",
+ "text": "Sajili Mteja huyu kwa huduma za PMTCT na ufuatiliaji",
+ "openmrs_entity_id": "register_pmtct",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prescribe_arv",
+ "type": "toaster_notes",
+ "text": "Mpatie mteja huyu ARV kwa kufuata muongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prescribe_arv",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_danger_signs.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_danger_signs.json
new file mode 100644
index 0000000000..f45d68160e
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_danger_signs.json
@@ -0,0 +1,195 @@
+{
+ "count": "1",
+ "encounter_type": "PNC HomeVisit",
+ "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": "PNC Danger Signs",
+ "fields": [
+ {
+ "key": "danger_signs_present",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "160939AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "check_box",
+ "label": "Je, mama ana dalili zozote za hatari?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_fever",
+ "text": "Homa",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ {
+ "key": "chk_bleeding_vaginally",
+ "text": "Kutokwa na damu ukeni",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "150802AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ {
+ "key": "chk_server_headache",
+ "text": "Maumivu makali ya kichwa",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "139081AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ {
+ "key": "chk_convulsions",
+ "text": "Degedege",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "164483AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ {
+ "key": "chk_difficulty_breathing",
+ "text": "Ugumu wa kupumua",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "142373AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ {
+ "key": "chk_severe_abdominal_pain",
+ "text": "Maumivu makali ya tumbo",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "165271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ {
+ "key": "chk_swelling",
+ "text": "Kuvimba kwa uso na/au mikono",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ {
+ "key": "chk_vaginal_discharge",
+ "text": "Kutokwa na majimaji yenye rangi nyekundu au yenye majimaji ukeni yenye harufu mbaya",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "123395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ {
+ "key": "chk_unusual_movement",
+ "text": "Mtoto hachezi kwenye tumbo la mama",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "113377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ {
+ "key": "chk_none",
+ "text": "Jakuna",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "danger_signs_present_toaster",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Alama ya hatari! Mpe rufaa mara moja kwenye kituo cha afya.",
+ "text_color": "#CF0800",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:danger_signs_present": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_fever",
+ "chk_bleeding_vaginally",
+ "chk_server_headache",
+ "chk_convulsions",
+ "chk_difficulty_breathing",
+ "chk_severe_abdominal_pain",
+ "chk_swelling",
+ "chk_vaginal_discharge",
+ "chk_unusual_movement"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "danger_signs_counseling",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "165310AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "label_info_title": "Did the mother receive counselling",
+ "label_info_text": "Did the mother receive counselling on danger signs at the health facility recently?",
+ "hint": "Je, mama alipokea ushauri nasaha kuhusu dalili za hatari katika kituo cha afya hivi karibuni?",
+ "values": [
+ "Ndio",
+ "Hapana"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "1267AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "No": "1118AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua chaguo moja"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_observations_infant.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_observations_infant.json
index 538dfe38a9..33d47ef3d9 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_observations_infant.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_observations_infant.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Uchunguzi na ugonjwa kwa mtoto",
+ "title": "Observations & Illness - Child",
"fields": [
{
"key": "date_of_illness_child",
@@ -61,7 +61,7 @@
"max_date": "today",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza tarehe ya shida"
+ "err": "Tafadhali weka tarehe ya ugonjwa"
}
},
{
@@ -73,7 +73,7 @@
"hint": "Maelezo",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza maelezo"
+ "err": "Tafadhali weka maelezo"
}
},
{
@@ -82,7 +82,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "check_box",
- "label": "Hatua zilizochukuliwa",
+ "label": "Hatua iliyochukuliwa",
"label_text_style": "normal",
"text_color": "#C0C0C0",
"exclusive": [
@@ -98,7 +98,7 @@
},
{
"key": "chk_zinc",
- "text": "Zinc 10",
+ "text": "Zinki 10",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "86672AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -126,7 +126,7 @@
},
{
"key": "chk_none",
- "text": "Hajapata matibabu",
+ "text": "Hakuna matibabu iliyotolewa",
"value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
@@ -142,7 +142,7 @@
"hint": "Matibabu mengine",
"v_required": {
"value": "true",
- "err": "Tafadhali ingiza maelezo ya ugonjwa"
+ "err": "Tafadhali weka maelezo ya ugonjwa"
},
"relevance": {
"rules-engine": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_observations_mother.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_observations_mother.json
index fb1daa076d..b17980831b 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_observations_mother.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_hv_observations_mother.json
@@ -15,11 +15,6 @@
"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",
@@ -92,42 +87,36 @@
{
"key": "chk_ors",
"text": "ORS 5",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "351AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_zinc",
"text": "Zinc 10",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "86672AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_paracetamol",
"text": "Panadol",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "70116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_referred",
"text": "Amepewa rufaa",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "163762AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_other_treatment",
"text": "Matibabu mengine",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_none",
"text": "Hajapata matibabu",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_immunization.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_immunization.json
new file mode 100644
index 0000000000..fb767ac71a
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_immunization.json
@@ -0,0 +1,146 @@
+{
+ "count": "1",
+ "encounter_type": "PNC Immunization",
+ "entity_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "Chanjo",
+ "fields": [
+ {
+ "key": "tetanus_vaccination",
+ "type": "native_radio",
+ "label": "Je chanjo ya Diphtheria/Pepopunda imetolewa?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tetanus_vaccination",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_immunization_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_tetanus_vaccination",
+ "type": "toaster_notes",
+ "text": "Mpatie kulingana na ratiba",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:tetanus_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "hepatitis_b_vaccination",
+ "type": "native_radio",
+ "label": "Je mteja huyu amechanjwa chanjo ya homa ya ini?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hepatitis_b_vaccination",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_immunization_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_hepatitis_b_vaccination",
+ "type": "toaster_notes",
+ "text": "Mteja atapaswa kupewa chanjo ya homa ya ini",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hepatitis_b_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_malaria_prevention.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_malaria_prevention.json
index 1d49806701..6a0bcb2e8a 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_malaria_prevention.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_malaria_prevention.json
@@ -47,18 +47,18 @@
"encounter_location": ""
},
"step1": {
- "title": "Kuzuia malaria",
+ "title": "Malaria Prevention",
"fields": [
{
"key": "fam_llin",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Je, ana chandarua chenye viuwatilifu vya muda mrefu?",
+ "hint": "Je, ana chandarua kinachodumu kwa muda mrefu (LLIN)?",
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
"keys": [
@@ -77,13 +77,13 @@
{
"key": "llin_2days",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Je, amelala kwenye chandarua chenye viuwatilifu vya muda mrefu usiku uliopita?",
+ "hint": "Je, alilala chini ya neti jana usiku?",
"values": [
- "Ndiyo",
+ "Ndio",
"Hapana"
],
"keys": [
@@ -108,14 +108,14 @@
{
"key": "llin_condition",
"openmrs_entity_parent": "",
- "openmrs_entity": "",
+ "openmrs_entity": "concept",
"openmrs_entity_id": "",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Hali ya chandarua chenye viuwatilifu vya muda mrefu kinachotumika",
+ "hint": "Hali ya neti",
"values": [
- "Nzima",
- "Mbovu"
+ "Nzuri",
+ "Mbaya"
],
"keys": [
"Okay",
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_mother_general_examination.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_mother_general_examination.json
new file mode 100644
index 0000000000..2550021f00
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_mother_general_examination.json
@@ -0,0 +1,946 @@
+{
+ "count": "1",
+ "encounter_type": "PNC Mother General Examination",
+ "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"
+ },
+ "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": "Uchunguzi wa Afya ya Mama",
+ "fields": [
+ {
+ "key": "followup_visit_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "followup_visit_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_followup_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Blood Pressure)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza namba ya Systolic (Blood Pressure)"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "namba ya Tafadhali ingiza namba ya Systolic lazime iwe sawa au kubwa kuliko 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Tafadhali ingiza namba ya Systolic lazima iwe sawa au chini ya 320"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza namba ya Systolic (Blood Pressure)"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza Diastolic"
+ },
+ "v_min": {
+ "value": "0",
+ "err": " Diastolic lazima iwe sawa au kubwa na 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": " Diastolic lazima iwe sawa au ndogo ya 200"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Diastolic"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "Thamani ya diastolic lazima iwe chini ya thamani ya systolic"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Mtibu Mteja Shinikizo la damu ya juu kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_mother_general_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Mpatie IV Fluids, pia bainisha chanzo cha Shinikizo la damu ya chini na dhibiti hali hii kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_mother_general_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hb_level_test",
+ "type": "native_radio",
+ "label": "Kipimo cha kiwango cha damu (HB)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "Kipimo cha HB kimefanyika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Kipimo cha HB hakujafanyika",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "hb_level",
+ "type": "edit_text",
+ "hint": "Kiwango cha damu (HB) (g/dl)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Ingiza kiasi cha HB"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Kiasi cha HB lazima kiwe sawa au zaidi ya 0"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Kiasi cha HB lazima kiwe sawa au chini ya 20 (g/dl)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Ingiza kiasi cha HB"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_severe_anaemia_treatment",
+ "type": "toaster_notes",
+ "text": "Dhibiti anaemia kali kulingana na miongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_severe_anaemia_treatment",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hb_level": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"8.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_moderate_anaemia_management",
+ "type": "toaster_notes",
+ "text": "Dhibiti anemia kidogo kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "prompt_for_moderate_anaemia_management",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_mother_general_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hb_test",
+ "type": "spinner",
+ "hint": "Sababu ya kutofanya kipimo cha HB",
+ "values": [
+ "Cuvette Cartridges Hazipo Kituoni",
+ "Mashine ya Kupimwa wingi wa damu (Haemoque) haifanyi kazi",
+ "Mteja alikuwa katika hali ya dharura",
+ "Mteja amekataa kupimwa",
+ "Tunaendelea kumshauri mteja",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "stock_out_of_cuvettes_cartridges": "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order": "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_hb_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_hb_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Sababu nyingine kwa kutofanyika kwa kipimo cha HB",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hb_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "temperature",
+ "type": "edit_text",
+ "hint": "Joto (\u2103)",
+ "openmrs_entity_id": "temperature",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Ingiza kiasi cha Joto (\u2103)"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Kiasi cha joto lazima kiwe sawa au kubwa kuliko 10 C"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Kiasi cha joto lazima kiwe sawa au chini kuliko 50 C"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Ingiza kiasi cha Joto (\u2103)"
+ }
+ },
+ {
+ "key": "notify_client_has_fever",
+ "type": "toaster_notes",
+ "text": "Fanya vipimo vya maabara vinavyofaa ili kupata sababu ya homa na udhibiti kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "notify_client_has_fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"37.8\")"
+ }
+ }
+ },
+ {
+ "key": "notify_client_has_hypothermia",
+ "type": "toaster_notes",
+ "text": "Dhibiti hypothermia kulingana na miongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "notify_client_has_hypothermia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"36.5\")"
+ }
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Uzito (Kg)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza Uzito wa Mteja"
+ },
+ "v_min": {
+ "value": "20",
+ "err": "Uzito lazima uwe sawa au zaidi ya 20kg"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Uzito lazima uwe sawa au chini ya 300kg"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza Uzito wa Mteja"
+ }
+ },
+ {
+ "key": "prompt_for_breast_exam",
+ "type": "toaster_notes",
+ "text": "Uchunguzi wa Matiti",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "breast_milk_flow",
+ "type": "native_radio",
+ "label": "Je Matiti ya mama yanatoa maziwa?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breast_milk_flow",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_no_breast_milk_flow",
+ "type": "toaster_notes",
+ "text": "Mshauri na msaidie Mama kumweka Mtoto katika ziwa wakati wa kunyonyesha mtoto. Maziwa ya mama yataendelea kutoka kwa wingi jinsi mtoto ananyoendelea kunyonya",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:breast_milk_flow": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "bruised_nipples",
+ "type": "native_radio",
+ "label": "Je, Mama ana Chuchu Iliyochubuka?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bruised_nipples",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_bruised_nipples",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:bruised_nipples": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "engorgement_mastitis",
+ "type": "native_radio",
+ "label": "Je, matiti ya Mama yamejaa au yamevimba?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "engorgement_mastitis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_engorgement_mastitis",
+ "type": "toaster_notes",
+ "text": "Mpatie mama antibiotiki (kiuavijsimu) na dawa za kutuliza maumivu",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:engorgement_mastitis": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "abscess",
+ "type": "native_radio",
+ "label": "Je, Mama ana Jipu?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abscess",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_abscess",
+ "type": "toaster_notes",
+ "text": "Minya, toboa na kamua Jipu la Mama. Mpatie Mama antibiotics na dawa za kutuliza maumivu",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:abscess": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "perineum_infection",
+ "type": "native_radio",
+ "label": "Je, Mama ana msamba au kidonda cha upasuaji ulioambikwizwa/ulioachia?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "perineum_infection",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_perineum_infection",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:perineum_infection": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "uterus_assessment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "uterus_assessment",
+ "type": "native_radio",
+ "label": "Tathmini ya mfuko wa uzazi",
+ "options": [
+ {
+ "key": "chk_normal_involution",
+ "text": "Upo kawaida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_normal_involution"
+ },
+ {
+ "key": "chk_pain",
+ "text": "Kuna maumivu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_pain"
+ },
+ {
+ "key": "chk_distended",
+ "text": "Haujanywea",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_distended"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_uterus_pain",
+ "type": "toaster_notes",
+ "text": "Fanya uchunguzi wa uke kuangalia kama kuna dalili zozote za puerperial sepsis au mabaki yoyote ya uchafu baada ya kujifungua. Dhibiti hali hii kulingana na muongozo na mpatie Antibiotiki (Kiuavijasumu) na Dawa za kutuliza maumivu kulingana na muongozo",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:uterus_assessment": {
+ "type": "string",
+ "ex": "equalTo(.,\"chk_pain\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_uterus_distended",
+ "type": "toaster_notes",
+ "text": "Tathmini usikivu wa tumbo na mabadiliko ya uterasi, dhibiti hali ya mteja kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:uterus_assessment": {
+ "type": "string",
+ "ex": "equalTo(.,\"chk_distended\")"
+ }
+ }
+ },
+ {
+ "key": "lochia_assessment",
+ "type": "native_radio",
+ "label": "Tathmini ya Lokia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lochia_assessment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "lochia_rubra",
+ "text": "Ute mwekundu ukeni (lokia)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lochia_rubra"
+ },
+ {
+ "key": "lochia_serosa",
+ "text": "Ute wa pinki au kahawia ukeni (lokia)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lochia_serosa"
+ },
+ {
+ "key": "lochia_alba",
+ "text": "Ute mweupe ukeni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lochia_alba"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "why_the_client_is_in_lochia_rubra",
+ "type": "edit_text",
+ "hint": "Uliza kwa nini mteja yuko na Ute mwekundu ukeni (lokia)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "why_the_client_is_in_lochia_rubra",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:lochia_assessment": {
+ "type": "string",
+ "ex": "equalTo(., \"lochia_rubra\")"
+ }
+ }
+ },
+ {
+ "key": "why_the_client_is_in_lochia_serosa",
+ "type": "edit_text",
+ "hint": "Uliza kwa nini mteja yuko na Ute wa pinki au kahawia ukeni (lokia)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "why_the_client_is_in_lochia_serosa",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:lochia_assessment": {
+ "type": "string",
+ "ex": "equalTo(., \"lochia_serosa\")"
+ }
+ }
+ },
+ {
+ "key": "why_the_client_is_in_lochia_alba",
+ "type": "edit_text",
+ "hint": "Uliza kwa nini mteja yuko na Ute mweupe ukeni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "why_the_client_is_in_lochia_alba",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jibu swali hili"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:lochia_assessment": {
+ "type": "string",
+ "ex": "equalTo(., \"lochia_alba\")"
+ }
+ }
+ },
+ {
+ "key": "vaginal_assessment",
+ "type": "native_radio",
+ "label": "Tathmini ya uke",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vaginal_assessment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "tear",
+ "text": "Umechanika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tear"
+ },
+ {
+ "key": "episiotomy",
+ "text": "Kuongezewa njia wakati wa kujifungua",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "episiotomy"
+ },
+ {
+ "key": "intact",
+ "text": "Haujacahnika",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "intact"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_tear_vaginal_assessment",
+ "type": "toaster_notes",
+ "text": "Ikiwa mteja anavuja damu sana, toa huduma ya dharura ya kuzuia uvujaji damu baada ya kujifungua, rekebisha jeraha na mpe Antibiotics na dawa za kutuliza maumivu",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:vaginal_assessment": {
+ "type": "string",
+ "ex": "equalTo(.,\"tear\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_episiotomy_vaginal_assessment",
+ "type": "toaster_notes",
+ "text": "Angalia jeraha kama linatokwa na damu na maambukizi yoyote, udhibiti hali hii kulingana na mwongozo wa Wizara ya Afya",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:vaginal_assessment": {
+ "type": "string",
+ "ex": "equalTo(.,\"episiotomy\")"
+ }
+ }
+ },
+ {
+ "key": "fistula",
+ "type": "native_radio",
+ "label": "Je, Mama huyu ana Fistula?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fistula",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "prompt_for_fistula",
+ "type": "toaster_notes",
+ "text": "Mpatie rufaa ya upasuaji kwa ajili kurekebisha fistula",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:fistula": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_mental_health_examination",
+ "type": "toaster_notes",
+ "text": "Uchunguzi wa Afya ya Akili",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "puerperal_psychosis",
+ "type": "native_radio",
+ "label": "Je, Mama amepata Kichaa cha mimba?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "puerperal_psychosis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "mental_illness_symptom",
+ "type": "native_radio",
+ "label": "Dalili nyingine yoyote ya Ugonjwa wa Akili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mental_illness_symptom",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "step1:puerperal_psychosis": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_mental_illness",
+ "type": "toaster_notes",
+ "text": "Mpatie rufaa kwenda kumuona Daktari wa Magonjwa ya Akili",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_mother_general_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "type": "hidden",
+ "openmrs_entity_id": "visit_number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_no_mother_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_no_mother_registration.json
new file mode 100644
index 0000000000..2cce446fcf
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_no_mother_registration.json
@@ -0,0 +1,482 @@
+{
+ "count": "2",
+ "encounter_type": "No Mother PNC 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"
+ },
+ "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": "Usajili wa Mtoto",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "hidden": "true",
+ "type": "edit_text",
+ "barcode_type": "qrcode",
+ "hint": "ID",
+ "scanButtonText": "Scan QR Code",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid ID"
+ }
+ },
+ {
+ "key": "fam_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "fam_name",
+ "type": "edit_text",
+ "hint": "Jina la Ukoo la Mtoto",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Ukoo"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka Jina la Ukoo"
+ }
+ },
+ {
+ "key": "client_first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Jina la Kwanza la Mtoto",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kwanza"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ }
+ },
+ {
+ "key": "client_middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Jina la Kati la Mtoto",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali weka jina halali"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka Jina la Kati"
+ }
+ },
+ {
+ "key": "fam_village",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "cityVillage",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Jina la eneo",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali weka jina la eneo au mji"
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Uzito (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali ingiza uzito"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Uzito lazima uwe sawasawa au zaidi ya 0 (KG)"
+ },
+ "v_max": {
+ "value": "6",
+ "err": "Uzito lazima uwe sawasawa au chini ya 6 (KG)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali ingiza uzito"
+ }
+ },
+ {
+ "key": "prompt_for_underweight",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_no_mother_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "disabilities",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabilities",
+ "type": "spinner",
+ "hint": "Ulemavu wa kimwili",
+ "values": [
+ "Ndio",
+ "Hapana"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua moja"
+ }
+ },
+ {
+ "key": "prompt_for_disabilities",
+ "type": "toaster_notes",
+ "text": "Toa rufaa kwa huduma zaidi",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:disabilities": {
+ "type": "string",
+ "ex": "equalTo(.,\"Yes\")"
+ }
+ }
+ },
+ {
+ "key": "type_of_disability",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "label": "Aina ya Ulemavu",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Ulemavu wa kimwili",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Ulemavu wa Uti wa Mgongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Majeraha ya Kichwa - Ulemavu wa Ubongo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Ulemavu wa Maono",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Ulemavu wa Kusikia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Ulemavu wa Utambuzi au Kujifunza",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Matatizo ya Kisaikolojia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Ulemavu Usioonekana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
+ "relevance": {
+ "step1:disabilities": {
+ "type": "string",
+ "ex": "equalTo(.,\"Yes\")"
+ }
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "date_picker",
+ "hint": "Tarehe ya kuzaliwa (DOB)",
+ "expanded": false,
+ "duration": {
+ "label": "Umri"
+ },
+ "min_date": "today-6w",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza tarehe ya kuzaliwa (DOB)"
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Jinsi",
+ "values": [
+ "Me",
+ "Ke",
+ "Jinsia Tata"
+ ],
+ "keys": [
+ "Male",
+ "Female",
+ "Ambiguous"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali ingiza jinsi"
+ }
+ },
+ {
+ "key": "entry_point",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "entry_point",
+ "type": "hidden",
+ "value": "PNC"
+ }
+ ]
+ },
+ "step2": {
+ "title": "Taarifa za Mlezi",
+ "fields": [
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "type": "hidden"
+ },
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "last_name",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_no_mother_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_no_mother_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_no_mother_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_no_mother_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_no_mother_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "risk_category",
+ "type": "hidden",
+ "openmrs_entity_id": "risk_category",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "value": "high"
+ },
+ {
+ "key": "delivery_date",
+ "type": "hidden",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_date",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_no_mother_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "caregiver_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "caregiver_name",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Jina la mlezi",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja jina la mlezi."
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali ingiza jina sahihi"
+ }
+ },
+ {
+ "key": "caregiver_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "caregiver_phone_number",
+ "type": "edit_text",
+ "hint": "Namba ya simu ya mlezi mkuu",
+ "v_numeric": {
+ "value": "true",
+ "err": "Namba lazima iwe jumla ya tarakimu 10 kwa urefu"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Namba lazima iwe na tarakimu 10 na lazima ianze na 06 au 07."
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza namba ya simu"
+ }
+ },
+ {
+ "key": "caregiver_location",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "caregiver_location",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Eneo la mlezi",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza eneo la mlezi"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutrition_status_infant.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutrition_status_infant.json
index 703d9af91c..750847c5b4 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutrition_status_infant.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutrition_status_infant.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Hali ya lishe ya mtoto",
+ "title": "Nutrition Status - Baby",
"fields": [
{
"key": "nutrition_status_1m",
@@ -58,9 +58,9 @@
"type": "spinner",
"hint": "Hali ya lishe ya mtoto mchanga",
"values": [
- "Nzuri/Kijani",
- "Kadri/Njano",
- "Dhaifu/Nyekundu"
+ "Kawaida/Kijani",
+ "Wastani/Njano",
+ "Nyekundu / kali"
],
"keys": [
"Normal",
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutrition_status_mother.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutrition_status_mother.json
index cb8b44470e..5141f3c7b4 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutrition_status_mother.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutrition_status_mother.json
@@ -47,7 +47,7 @@
"encounter_location": ""
},
"step1": {
- "title": "Hali ya lishe ya mama",
+ "title": "Nutrition Status - Mother",
"fields": [
{
"key": "nutrition_status_mama",
@@ -56,11 +56,11 @@
"openmrs_entity_id": "163300AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_data_type": "select one",
"type": "spinner",
- "hint": "Hali ya lishe ya mama",
+ "hint": "Hali ya lishe ya mwanamke",
"values": [
- "Nzuri/Kijani",
- "Kadri/Njano",
- "Dhaifu/Nyekundu"
+ "Kawaida/Kijani",
+ "Wastani/Njano",
+ "Nyekundu / kali"
],
"keys": [
"Normal",
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutritional_supplement.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutritional_supplement.json
new file mode 100644
index 0000000000..fb7cb757d7
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_nutritional_supplement.json
@@ -0,0 +1,221 @@
+{
+ "count": "1",
+ "encounter_type": "PNC Nutritional Supplement",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Virutubisho vya Lishe",
+ "fields": [
+ {
+ "key": "iron_and_folic_acid",
+ "type": "native_radio",
+ "label": "Je, Mama amepewa Madini Chuma (Iron) na Foliki Asidi?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iron_and_folic_acid",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ }
+ },
+ {
+ "key": "reason_for_not_giving_iron_and_folic_acid",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_iron_and_folic_acid",
+ "type": "spinner",
+ "hint": "Sababu kwanini Madini Chuma (Iron) na Foliki Asidi hazikutolewa",
+ "values": [
+ "Zimeisha",
+ "Mteja amekataa kuchukua",
+ "Mteja ana mzio na Iron Folic acid",
+ "Nyingine"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sababu"
+ },
+ "relevance": {
+ "step1:iron_and_folic_acid": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_giving_iron_and_folic_acid",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_giving_iron_and_folic_acid",
+ "type": "edit_text",
+ "hint": "Bainisha sababu nyingine ya kutotoa madini chuma (iron) na folic acid",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_iron_and_folic_acid": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "vitamin_a",
+ "type": "native_radio",
+ "label": "Je, Mama amepatiwa Vitamin A?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vitamin_a",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jibu swali hili"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_nutritional_supplement_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_vitamin_a",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_vitamin_a",
+ "type": "spinner",
+ "hint": "Sababu za kutokutoa Vitamin A",
+ "values": [
+ "Vitamin A zimeisha",
+ "Mteja amekataa kuchukua",
+ "Mteja ana mzio na Vitamin A",
+ "Nyingine (Bainisha)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua mojawapo"
+ },
+ "relevance": {
+ "step1:vitamin_a": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_giving_vitamin_a",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_giving_vitamin_a",
+ "type": "edit_text",
+ "hint": "Bainisha sababu nyingine ya kutokutoa Vitamin A",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza sababu"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_vitamin_a": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_referral_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_referral_form.json
new file mode 100644
index 0000000000..0e1ec47482
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/pnc_referral_form.json
@@ -0,0 +1,497 @@
+{
+ "count": "1",
+ "encounter_type": "PNC Referral",
+ "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": "PNC referral form",
+ "fields": [
+ {
+ "key": "chw_referral_hf_pnc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1759AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_referral_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "problem_hf_pnc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "type": "check_box",
+ "label": "Hali ya mteja / tatizo",
+ "label_text_style": "bold",
+ "options": [
+ {
+ "key": "Vaginal_bleeding",
+ "text": "Kutokwa na damu ukeni",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "147232AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Discoloured_or_watery_liquid_vaginal_discharge",
+ "text": "Kutokwa na majimaji yenye rangi nyekundu au yenye majimaji ukeni yenye harufu mbaya",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "123396AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Severe_abdominal_pain",
+ "text": "Maumivu makali ya tumbo",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "165271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Severe_anaemia",
+ "text": "Anemia kali",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "162044AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Convulsions",
+ "text": "Degedege",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "113054AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "A_severe_headache_dizziness",
+ "text": "Maumivu ya kichwa kali / kizunguzungu",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "139081AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Swelling_of_the_face_and_or_hands",
+ "text": "Kuvimba kwa uso na/au mikono",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Fever",
+ "text": "Homa",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Shivering_trembling",
+ "text": "Kutetemeka/kutetemeka",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "158359AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Nausea",
+ "text": "Kichefuchefu",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "5978AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Vomiting",
+ "text": "Kutapika",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "122983AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Cord_prolapse",
+ "text": "Prolapse ya kamba",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "113617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Perineum_bleeding",
+ "text": "Kutokwa na damu kwa perineum",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "136938AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Fullness_or_pain_of_the_breasts",
+ "text": "Kuvimba kwa matiti",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "118620AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "HIV_care_and_support_services",
+ "text": "Huduma za matunzo na usaidizi wa VVU",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "159811AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Family_planning_services",
+ "text": "Huduma za uzazi wa mpango",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "5271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "PMTCT_for_mothers",
+ "text": "PMTCT kwa akina mama",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "160538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Fistula",
+ "text": "Fistula",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "160854AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Fast_breathing_and_difficulty_with_breathing",
+ "text": "Kupumua haraka na ugumu wa kupumua",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "142373AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Umbilical_cord",
+ "text": "Kutokwa na damu kwa kitovu/kitovu",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "123844AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Excessive_crying",
+ "text": "Kulia kupita kiasi",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "140944AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Unable_to_breastfeed_or_swallow",
+ "text": "Haiwezi kunyonyesha au kumeza",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "159861AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Neck_stiffness",
+ "text": "Ugumu wa shingo",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "112721AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Bloating",
+ "text": "Kuvimba",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "147132AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Redness_around_the_umbilical_cord_foul",
+ "text": "Wekundu kuzunguka kitovu, kutokwa na harufu mbaya kutoka kwa kitovu",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "132407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Bacterial_conjunctivitis",
+ "text": "Bakteria kwenye kiwambo cha sikio",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "148026AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Pale_or_jaundiced",
+ "text": "Kupauka au manjano",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "136443AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Cyanosis_blueness_of_lips",
+ "text": "Cyanosis (bluu ya midomo)",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "143050AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Skin_rash_pustules",
+ "text": "Upele wa ngozi ",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "512AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Diarrhea",
+ "text": "Kuhara",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "142412AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Disabilities",
+ "text": "Ulemavu wa Kuzaliwa",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Premature_baby",
+ "text": "Mtoto wa mapema",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "159908AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Failure_to_pass_urine_or_stool",
+ "text": "Kushindwa kutoa mkojo au kinyesi ndani ya saa 24 baada ya kuzaliwa",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Care_of_HIV_exposed_infant",
+ "text": "Utunzaji wa mtoto aliyeambukizwa VVU",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "164818AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Immunisation",
+ "text": "Kinga",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "1914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Other_symptom",
+ "text": "Dalili nyingine",
+ "value": false,
+ "ignore": true,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali bainisha hali/tatizo la mteja"
+ }
+ },
+ {
+ "key": "problem_hf_pnc_other",
+ "type": "edit_text",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "openmrs_entity_parent": "",
+ "edit_type": "name",
+ "hint": "Dalili nyingine",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_referral_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "service_before_pnc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "check_box",
+ "label": "Usimamizi wa rufaa kabla umetolewa",
+ "label_text_style": "bold",
+ "is_problem": false,
+ "exclusive": [
+ "None"
+ ],
+ "options": [
+ {
+ "key": "ORS",
+ "text": "ORS",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "351AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Panadol",
+ "text": "Panadol",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "70116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "Other_treatment",
+ "text": "Other treatment",
+ "value": false,
+ "ignore": true,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "None",
+ "text": "None",
+ "value": false,
+ "openmrs_entity": "",
+ "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Sehemu ya usimamizi wa rufaa ya mapema inahitajika"
+ }
+ },
+ {
+ "key": "service_before_pnc_other",
+ "type": "edit_text",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
+ "edit_type": "name",
+ "hint": "Matibabu mengine",
+ "is_problem": false,
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja matibabu mengine"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_referral_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "referral_date_pnc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_referral_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "referral_time_pnc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pnc_referral_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/prep_initiation.json b/opensrp-chw-hf/src/main/assets/json.form-sw/prep_initiation.json
new file mode 100644
index 0000000000..8b839fcd41
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/prep_initiation.json
@@ -0,0 +1,518 @@
+{
+ "count": "1",
+ "encounter_type": "PrEP Initiation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Kuanza dawa kinga",
+ "fields": [
+ {
+ "key": "prep_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_status",
+ "label": "Hali ya dawa kinga katika hudhurio",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "initiated",
+ "text": "Ameanza",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "initiated"
+ },
+ {
+ "key": "continuing",
+ "text": "Anaendelea",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "continuing"
+ },
+ {
+ "key": "re_start",
+ "text": "Ameanza upya tena",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "re_start"
+ },
+ {
+ "key": "not_initiated",
+ "text": "Hajaanza",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_initiated"
+ },
+ {
+ "key": "discontinued_quit",
+ "text": "Ameachishwa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "discontinued_quit"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ }
+ },
+ {
+ "key": "prep_drug_offered",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_drug_offered",
+ "label": "Aina ya dawa PrEP aliyopewa",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "tdf_ftc",
+ "text": "TDF/FTC",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tdf_ftc"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_initiation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prep_pills_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_pills_number",
+ "type": "edit_text",
+ "hint": "Idadi ya vidonge vya PrEP alivyopewa",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali Jaza Numba"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali Jaza Numba"
+ },
+ "relevance": {
+ "step1:prep_drug_offered": {
+ "type": "string",
+ "ex": "equalTo(., \"tdf_ftc\")"
+ }
+ },
+ "v_max": {
+ "value": "30",
+ "err": "Namba ya vidonge inatakiwa iwe sawa au chini ya 30"
+ }
+ },
+ {
+ "key": "prep_adherence",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_adherence",
+ "label": "ufuasi wa PrEP",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "good",
+ "text": "Mzuri",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "good"
+ },
+ {
+ "key": "poor",
+ "text": "Hafifu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "poor"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_initiation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "poor_prep_adherence_reason",
+ "type": "check_box",
+ "label": "Sababu za Ufuasi/Matumizi duni ya PrEP",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "poor_prep_adherence_reason",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "not_applicable"
+ ],
+ "options": [
+ {
+ "key": "forgotten",
+ "text": "Amesahau",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "forgotten"
+ },
+ {
+ "key": "lost_out_of_drugs",
+ "text": "Amepoteza/Ameishiwa dawa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lost_out_of_drugs"
+ },
+ {
+ "key": "pill_burden",
+ "text": "Mzigo wa dawa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pill_burden"
+ },
+ {
+ "key": "side_effects",
+ "text": "Madhara",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "side_effects"
+ },
+ {
+ "key": "stigma",
+ "text": "Unyanyapaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stigma"
+ },
+ {
+ "key": "not_at_risk",
+ "text": "Hayupo hatarini",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_at_risk"
+ },
+ {
+ "key": "others",
+ "text": "Nyinginezo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "step1:prep_adherence": {
+ "type": "string",
+ "ex": "equalTo(., \"poor\")"
+ }
+ }
+ },
+ {
+ "key": "other_poor_prep_adherence_reason",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_poor_prep_adherence_reason",
+ "type": "edit_text",
+ "hint": "Nyinginezo(Taja)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja"
+ },
+ "relevance": {
+ "step1:poor_prep_adherence_reason": {
+ "type": "string",
+ "ex": "equalTo(., \"others\")"
+ }
+ }
+ },
+ {
+ "key": "prep_side_effects",
+ "type": "check_box",
+ "label": "Maudhi madogo madogo ya PrEP",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_side_effects",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "not_applicable",
+ "no_side_effects"
+ ],
+ "options": [
+ {
+ "key": "nausea",
+ "text": "Kichefuchefu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "nausea"
+ },
+ {
+ "key": "abdominal_pain",
+ "text": "Maumivu ya tumbo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abdominal_pain"
+ },
+ {
+ "key": "headache",
+ "text": "Maumivu ya kichwa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "headache"
+ },
+ {
+ "key": "diarrhea",
+ "text": "Kuharisha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "diarrhea"
+ },
+ {
+ "key": "loss_of_appetite",
+ "text": "Kukosa hamu ya kula",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "loss_of_appetite"
+ },
+ {
+ "key": "dizziness",
+ "text": "Kizunguzungu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dizziness"
+ },
+ {
+ "key": "others",
+ "text": "Nyingine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ },
+ {
+ "key": "no_side_effects",
+ "text": "Hamna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_side_effects"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu moja"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_initiation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_prep_side_effects",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_prep_side_effects",
+ "type": "edit_text",
+ "hint": "Nyingine (Taja)",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali taja"
+ },
+ "relevance": {
+ "step1:prep_side_effects": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "others"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "reasons_stopping_prep",
+ "type": "check_box",
+ "label": "Sababu za kuacha PrEP",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_stopping_prep",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "not_applicable"
+ ],
+ "options": [
+ {
+ "key": "hiv_positive",
+ "text": "Ameambukizwa VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_positive"
+ },
+ {
+ "key": "side_effect_or_allergy",
+ "text": "Madhara ya dawa au allergy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "side_effect_or_allergy"
+ },
+ {
+ "key": "poor_adherence",
+ "text": "Matumizi hafifu ",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "poor_adherence"
+ },
+ {
+ "key": "client_decision",
+ "text": "Mteja ameamua kuacha",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_decision"
+ },
+ {
+ "key": "not_at_risk",
+ "text": "Mteja ameacha,hayupo katika hali hatarishi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_at_risk"
+ },
+ {
+ "key": "others",
+ "text": "Nyingine (Andika)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_initiation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_reason_stopping_prep",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_stopping_prep",
+ "type": "edit_text",
+ "hint": "Sababu zingine",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua sabau"
+ },
+ "relevance": {
+ "step1:reasons_stopping_prep": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "others"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "prep_initiation_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "prep_initiation_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_initiation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "next_visit_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "next_visit_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya hudhurio lijalo ",
+ "expanded": false,
+ "min_date": "today",
+ "max_date": "today+1y",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza tarehe ya hudhurio lijalo "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_initiation_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/prep_other_services.json b/opensrp-chw-hf/src/main/assets/json.form-sw/prep_other_services.json
new file mode 100644
index 0000000000..9e1bba485c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/prep_other_services.json
@@ -0,0 +1,380 @@
+{
+ "count": "1",
+ "encounter_type": "PrEP Other Services",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Huduma nyingine na rufaa",
+ "fields": [
+ {
+ "key": "health_edu_sti_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "health_edu_sti_provided",
+ "label": "Elimu kuhusu magonjwa ya ngono imetolewa?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "sti_rti_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sti_rti_screening",
+ "label": "Kuchunguzwa magonjwa ya Ngono",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "sti_rti_treatment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sti_rti_treatment",
+ "label": "Ametibiwa magonjwa ya ngono (kama alipata)",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "treated",
+ "text": "Ametibiwa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "treated"
+ },
+ {
+ "key": "referred",
+ "text": "Amepewa rufaa ",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referred"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "step1:sti_rti_screening": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "condoms_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condoms_given",
+ "label": "Mteja alipatiwa kondom?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "type_of_issued_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_issued_condoms",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Chaguwa aina ya kondom alizopewa",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "male_condoms",
+ "text": "Kondomu za Kiume",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms"
+ },
+ {
+ "key": "female_condoms",
+ "text": "Kondomu za Kike",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "step1:condoms_given": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "number_of_male_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_male_condoms_issued",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za Kiume zilizotolewa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Jaza tarakimu sahihi"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Number lazima iwe sawa au zaidi ya 0"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza idadi"
+ },
+ "relevance": {
+ "step1:type_of_issued_condoms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "male_condoms"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_of_female_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_female_condoms_issued",
+ "type": "edit_text",
+ "hint": "Idadi ya Kondomu za Kike zilizotolewa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Jaza tarakimu sahihi"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Number lazima iwe sawa au zaidi ya 0"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza idadi"
+ },
+ "relevance": {
+ "step1:type_of_issued_condoms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "female_condoms"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "iec_sbcc_materials",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iec_sbcc_materials",
+ "type": "edit_text",
+ "hint": "Idadi ya Vipeperushi vya Elimu ya Afya alivyopewa",
+ "v_numeric": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza idadi"
+ }
+ },
+ {
+ "key": "services_and_referral",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "services_and_referral",
+ "label": "Huduma nyingine na rufaa",
+ "text_color": "#000000",
+ "type": "check_box",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "rch",
+ "text": "Huduma za Mama na mtoto",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rch"
+ },
+ {
+ "key": "mental_health",
+ "text": "Afya ya akili na msaada wa kisaikolojia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mental_health"
+ },
+ {
+ "key": "covid_vaccine",
+ "text": "Chanjo ya UVIKO",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "covid_vaccine"
+ },
+ {
+ "key": "legal_services",
+ "text": "Huduma za msaada wa kisheria",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "legal_services"
+ },
+ {
+ "key": "iga",
+ "text": "Huduma za kuongeza kipato",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iga"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "hakuna",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ]
+ },
+ {
+ "key": "services_and_referral_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "services_and_referral_other",
+ "type": "edit_text",
+ "hint": "Nyinginezo",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "step1:services_and_referral": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/prep_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/prep_registration.json
new file mode 100644
index 0000000000..be5b757ab7
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/prep_registration.json
@@ -0,0 +1,121 @@
+{
+ "count": "1",
+ "encounter_type": "PrEP Registration",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uandikishwaji wa dawa kinga",
+ "fields": [
+ {
+ "key": "nickname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "nickname",
+ "type": "edit_text",
+ "hint": "Jina maarufu",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Tafadhali jaza jina halisi"
+ }
+ },
+ {
+ "key": "agreed_to_use_prep",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "agreed_to_use_prep",
+ "label": "Ridhaa ya kutumia Dawa Kinga",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "sms_notification_service",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sms_notification_service",
+ "label": "Ridhaa ya kutumiwa ujumbe kwa njia ya simu",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/prep_screening.json b/opensrp-chw-hf/src/main/assets/json.form-sw/prep_screening.json
new file mode 100644
index 0000000000..0438bf9c46
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/prep_screening.json
@@ -0,0 +1,636 @@
+{
+ "count": "1",
+ "encounter_type": "PrEP Screening",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Uchunguzi wa ustahili wa dawa kinga",
+ "fields": [
+ {
+ "key": "diabetes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "diabetes",
+ "label": " Kisukari",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "treated",
+ "text": "Ametibiwa/anaendelea vizuri",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "treated"
+ },
+ {
+ "key": "not_treated",
+ "text": "Hajatibiwa/Haendelei vizuri",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_treated"
+ },
+ {
+ "key": "not_diabetic",
+ "text": "Hana Kisukari",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_diabetic"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "blood_pressure",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_pressure",
+ "label": "Shinikizo la damu",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "treated",
+ "text": "Ametibiwa/anaendelea vizuri",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "treated"
+ },
+ {
+ "key": "not_treated",
+ "text": "Hajatibiwa/Haendelei vizuri",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_treated"
+ },
+ {
+ "key": "normal",
+ "text": "Ana shinikizo la damu la kawaida",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "kidney_disease",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "kidney_disease",
+ "label": "Ugonjwa wa figo",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "treated",
+ "text": "Ametibiwa/anaendelea vizuri",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "treated"
+ },
+ {
+ "key": "not_treated",
+ "text": "Hajatibiwa/Haendelei vizuri",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_treated"
+ },
+ {
+ "key": "no_disease",
+ "text": "Hana ugonjwa wa figo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_disease"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "nephrotoxic_drugs",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "nephrotoxic_drugs",
+ "label": "Je, mteja anatumia dawa zinazoathiri figo (Nephrotoxic drugs)",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "tested_hbv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tested_hbv",
+ "label": "Alipimwa HBV",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hbv_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hbv_results",
+ "label": "Majibu ya HBV",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "step1:tested_hbv": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "hbv_test_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "hbv_test_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "tested_hcv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tested_hcv",
+ "label": "Alipimwa HCV",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hcv_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hcv_results",
+ "label": "Majibu ya HCV",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Chanya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hasi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Haihusiki",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hcv_test_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "hcv_test_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "tested_crcl",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tested_crcl",
+ "label": "Alipimwa Serum Creatinine (CrCL)",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "should_test_for_crcl",
+ "type": "toaster_notes",
+ "text": "Mteja anatakiwa kupimwa Serum Creatinine (CrCL)",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "crcl_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "crcl_results",
+ "label": "Majibu ya Creatinine Clearance (CrCL)",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "greater_than_60",
+ "text": "> 60 ml/min",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "greater_than_60"
+ },
+ {
+ "key": "less_than_60",
+ "text": "< 60 ml/min",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "less_than_60"
+ },
+ {
+ "key": "no_results",
+ "text": "Hakuna majibu",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_results"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "step1:tested_crcl": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "crcl_test_date",
+ "type": "edit_text",
+ "hidden": "true",
+ "openmrs_entity_id": "crcl_test_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "weight_35_or_above",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight_35_or_above",
+ "label": " Je, mteja ana uzito wa KG 35 au zaidi",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "acute_hiv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "acute_hiv",
+ "label": "Dalili za maambukizi makali ya VVU",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "should_initiate",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "should_initiate",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_prep_eligibility",
+ "type": "toaster_notes",
+ "text": "Mteja huyu anastahili PrEP",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_prep_ineligibility",
+ "type": "toaster_notes",
+ "text": "Mteja huyu hastahili PrEP",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "prep_screening_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/prep_visit_type.json b/opensrp-chw-hf/src/main/assets/json.form-sw/prep_visit_type.json
new file mode 100644
index 0000000000..1ad02e1115
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/prep_visit_type.json
@@ -0,0 +1,122 @@
+{
+ "count": "1",
+ "encounter_type": "PrEP Visit 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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Aina ya hudhurio la dawa kinga",
+ "fields": [
+ {
+ "key": "place",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place",
+ "label": "Mahali",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "facility",
+ "text": "Kituo cha Afya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facility"
+ },
+ {
+ "key": "community_outreach",
+ "text": "Jamii/Ufikiaji",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_outreach"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ },
+ {
+ "key": "visit_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_type",
+ "label": "Aina ya tembeleo",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "new_client",
+ "text": "Mteja mpya",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "new_client"
+ },
+ {
+ "key": "returning_client",
+ "text": "Anaerudi",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "returning_client"
+ },
+ {
+ "key": "transfer_in",
+ "text": "Mteja alie hamia kutoka kituo kingine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "transfer_in"
+ },
+ {
+ "key": "visited_another_facility",
+ "text": "Alitembelea kituo kingine (refill/outreach/transit)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visited_another_facility"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua jibu"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/referrals/ltfu_referral_form.json b/opensrp-chw-hf/src/main/assets/json.form-sw/referrals/ltfu_referral_form.json
new file mode 100644
index 0000000000..08762bd048
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/referrals/ltfu_referral_form.json
@@ -0,0 +1,186 @@
+{
+ "form": "Referral form",
+ "encounter_type": "Referral Registration",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/general_neat_referral_form_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Fomu ya ufuatiliaji wateja wasiofika kliniki",
+ "fields": [
+ {
+ "name": "on_art",
+ "type": "radio_group",
+ "properties": {
+ "text": "Mteja anatumia ARVs?"
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Ndio",
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "Hapana",
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "meta_data": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "on_art"
+ },
+ "required_status": "yes:Tafadhali chagua"
+ },
+ {
+ "name": "problem",
+ "type": "radio_group",
+ "properties": {
+ "text": "Kitengo ananchotokea mteja"
+ },
+ "meta_data": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "problem"
+ },
+ "options": [
+ {
+ "name": "CTC",
+ "text": "CTC",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "CTC",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "Prep",
+ "text": "CTC(Dawa Kinga)",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Prep",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "PMTCT",
+ "text": "PMTCT",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "PMTCT",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "TB",
+ "text": "TB",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "TB",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "PWID",
+ "text": "KLINKI YA WAJIDUNGA",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "PWID",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua",
+ "dependent_calculations": [
+ "referral_date",
+ "referral_time",
+ "referral_type",
+ "referral_status"
+ ]
+ },
+ {
+ "name": "chw_referral_hf",
+ "type": "spinner",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chw_referral_hf",
+ "openmrs_entity_parent": ""
+ },
+ "properties": {
+ "text": "Eneo la Waja"
+ },
+ "options": [],
+ "required_status": "yes:Tafadhali chagua"
+ },
+ {
+ "name": "last_appointment_date",
+ "type": "datetime_picker",
+ "properties": {
+ "hint": "Tarehe ya hudhurio la mwisho",
+ "type": "date_picker",
+ "display_format": "dd/MM/yyyy",
+ "max_date": "today"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_appointment_date",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Tafadhali jaza tarehe ya hudhurio la mwisho"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/routine_home_visit.json b/opensrp-chw-hf/src/main/assets/json.form-sw/routine_home_visit.json
index e803f95059..b4f73449d3 100644
--- a/opensrp-chw-hf/src/main/assets/json.form-sw/routine_home_visit.json
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/routine_home_visit.json
@@ -18,11 +18,6 @@
"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",
@@ -71,106 +66,91 @@
"options": [
{
"key": "chk_maternal_nutrition",
- "text": "3. Lishe kwa mama wakati wa kunyonyesha",
- "value": false,
+ "text": "Lishe kwa mama wakati wa kunyonyesha",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_hiv_aids",
- "text": "5. Umuhimu wa kupata ushauri nasaha na kupima VVU",
- "value": false,
+ "text": "Umuhimu wa kupata ushauri nasaha na kupima VVU",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_pmtc_for_mother",
- "text": "6. Kuzuia mambukizi ya VVU kutoka kwa mama kwenda kwa mtoto",
- "value": false,
+ "text": "Kuzuia mambukizi ya VVU kutoka kwa mama kwenda kwa mtoto",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_malaria_prevention",
- "text": "7. Kuzuia malaria kwa watoto wenye umri chini ya miaka mitano",
- "value": false,
+ "text": "Kuzuia malaria kwa watoto wenye umri chini ya miaka mitano",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_hiv_exposed_infant",
- "text": "15. Ufuatiliaji wa mtoto aliyezaliwa na mama mwenye VVU",
- "value": false,
+ "text": "Ufuatiliaji wa mtoto aliyezaliwa na mama mwenye VVU",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_breast_feeding",
- "text": "16. Unyonyeshaji wa maziwa ya mama",
- "value": false,
+ "text": "Unyonyeshaji wa maziwa ya mama",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_birth_registration",
- "text": "19. Usajili wa vizazi",
- "value": false,
+ "text": "Usajili wa vizazi",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_complementary_feeding",
- "text": "20. Kumlisha mtoto vyakula vya nyongeza",
- "value": false,
+ "text": "Kumlisha mtoto vyakula vya nyongeza",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_growth_and_dev",
- "text": "21. Makuzi na maendeleo ya awali ya mtoto",
- "value": false,
+ "text": "Makuzi na maendeleo ya awali ya mtoto",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_immunization",
- "text": "22. Chanjo",
- "value": false,
+ "text": "Chanjo",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_newborn_danger",
- "text": "23. Dalili za hatari kwa mtoto mchanga",
- "value": false,
+ "text": "Dalili za hatari kwa mtoto mchanga",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_infection",
- "text": "24. Kuzuia maambukizi katika jamii",
- "value": false,
+ "text": "Kuzuia maambukizi katika jamii",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_prevention_of_accidents",
- "text": "25. Kuzuia ajali kwa watoto chini ya miaka Mitano",
- "value": false,
+ "text": "Kuzuia ajali kwa watoto chini ya miaka Mitano",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_gender_issues",
- "text": "26. Jinsia",
- "value": false,
+ "text": "Jinsia",
"openmrs_entity": "",
"openmrs_entity_id": ""
},
{
"key": "chk_none",
"text": "Hajafanya",
- "value": false,
"openmrs_entity": "",
"openmrs_entity_id": ""
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_activity.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_activity.json
new file mode 100644
index 0000000000..5199704a52
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_activity.json
@@ -0,0 +1,265 @@
+{
+ "count": "1",
+ "encounter_type": "SBC Activity",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "(SBC) Uliyoshiriki",
+ "fields": [
+ {
+ "key": "point_of_service_provision",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "point_of_service_provision",
+ "type": "native_radio",
+ "label": "Mahali pa utoaji wa huduma",
+ "options": [
+ {
+ "key": "community",
+ "text": "Jumuiya",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community"
+ },
+ {
+ "key": "facility",
+ "text": "Kituoni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facility"
+ },
+ {
+ "key": "workplace",
+ "text": "Mahali pa Kazi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "workplace"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ }
+ },
+ {
+ "key": "activity_type_workplace",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "activity_type",
+ "type": "native_radio",
+ "label": "Aina ya uelimishaji kuhusu mabadiliko ya tabia (SBC) uliyoshiriki",
+ "options": [
+
+ {
+ "key": "advocacy",
+ "text": "Mikutano ya uraghibishi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "advocacy"
+ },
+ {
+ "key": "workplace",
+ "text": "Uelimishaji wa maswala ya VVU na Ukimwi mahala pa kazi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "workplace"
+ },
+ {
+ "key": "edutainment",
+ "text": "Uelimishaji maeneo ya burudani",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "edutainment"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please choose SBC activity"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "sbc_activity_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "activity_type_community",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "activity_type_community",
+ "type": "native_radio",
+ "label": "Aina ya uelimishaji kuhusu mabadiliko ya tabia (SBC) uliyoshiriki",
+ "options": [
+ {
+ "key": "campaign",
+ "text": "Kampeni",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "campaign"
+ },
+ {
+ "key": "religious",
+ "text": "Uelimishaji katika nyumba za ibada",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "religious"
+ },
+ {
+ "key": "meetings",
+ "text": "Mikutano ya kijamii",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "meetings"
+ },
+ {
+ "key": "theater",
+ "text": "Kuonesha filamu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "theater"
+ },
+ {
+ "key": "drama",
+ "text": "Uelimishaji kwa njia ya sanaa",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drama"
+ },
+ {
+ "key": "tales",
+ "text": "Hadithi na majadiliano",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tales"
+ },
+ {
+ "key": "institution",
+ "text": "Uelimishaji katika taasisi za elimu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "institution"
+ },
+ {
+ "key": "income_generating_activity",
+ "text": "Elimu ya uwezeshaji kiuchumi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "income_generating_activity"
+ },
+ {
+ "key": "edutainment",
+ "text": "Uelimishaji maeneo ya burudani",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "edutainment"
+ },
+ {
+ "key": "outreach",
+ "text": "Kuwafikia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please choose SBC activity"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "sbc_activity_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "activity_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "activity_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "sbc_activity_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_activity_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_activity_type",
+ "type": "edit_text",
+ "hint": "Nyinginezo (Taja)",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "sbc_activity_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_art_condom_education.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_art_condom_education.json
new file mode 100644
index 0000000000..0ee7bde106
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_art_condom_education.json
@@ -0,0 +1,82 @@
+{
+ "count": "1",
+ "encounter_type": "ART Adherence Counselling",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Elimu ya Ufuasi mzuri wa ARV",
+ "fields": [
+ {
+ "key": "received_art_counseling",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "received_art_counseling",
+ "type": "native_radio",
+ "label": "Je, umempatia mteja elimu ya ufuasi mzuri wa ARV?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_comments.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_comments.json
new file mode 100644
index 0000000000..36a7af321e
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_comments.json
@@ -0,0 +1,64 @@
+{
+ "count": "1",
+ "encounter_type": "Comments",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Maoni/Maelezo ya Ziada",
+ "fields": [
+ {
+ "key": "sbc_comments",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sbc_comments",
+ "type": "edit_text",
+ "hint": "Maoni/Maelezo ya Ziada"
+
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_enrollment.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_enrollment.json
new file mode 100644
index 0000000000..0f9cc02cdc
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_enrollment.json
@@ -0,0 +1,137 @@
+{
+ "count": "1",
+ "encounter_type": "SBC Enrollment",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Usajili wa SBC",
+ "fields": [
+ {
+ "key": "hiv_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_status",
+ "type": "native_radio",
+ "label": "Hali ya maambukizi ya VVU",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "known_positive",
+ "text": "Anaishi na maambukizi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hana maambukizi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "unknown",
+ "text": "Haijulikani",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unknown"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Nambari ya CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Nambari ya CTC inapaswa kuwa ya muundo (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza nambari sahihi ya ctc"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza nambari sahihi ya ctc"
+ },
+ "relevance": {
+ "step1:hiv_status": {
+ "type": "string",
+ "ex": "equalTo(., \"known_positive\")"
+ }
+ }
+ },
+ {
+ "key": "unknown_hiv_status_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unknown_hiv_status_prompt",
+ "type": "toaster_notes",
+ "text": "Mpe rufaa kwenda kupata huduma za unasii na upimaji wa VVU",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "sbc_enrollment_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education.json
new file mode 100644
index 0000000000..ffcb0b950a
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education.json
@@ -0,0 +1,146 @@
+{
+ "count": "1",
+ "encounter_type": "SBC Health Education",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Elimu ya afya (SBC)",
+ "fields": [
+ {
+ "key": "health_education_received",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "health_education_received",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Vipindi vya elimu ya mabadiliko ya tabia vilivyo tolewa",
+ "hint": "Vipindi vya elimu ya mabadiliko ya tabia vilivyo tolewa",
+ "options": [
+ {
+ "key": "condom_use",
+ "text": "Matumizi sahihi ya kondomu",
+ "value": false,
+ "openmrs_choice_id": "condom_use"
+ },
+ {
+ "key": "risk_behavior",
+ "text": "Tabia hatarishi kwa maambukizi ya VVU",
+ "value": false,
+ "openmrs_choice_id": "risk_behavior"
+ },
+ {
+ "key": "family_planning",
+ "text": "Uzazi wa mpango",
+ "value": false,
+ "openmrs_choice_id": "family_planning"
+ },
+ {
+ "key": "hepatitis",
+ "text": "Homa ya ini",
+ "value": false,
+ "openmrs_choice_id": "hepatitis"
+ },
+ {
+ "key": "gbv",
+ "text": "Ukatili wa kijinsia",
+ "value": false,
+ "openmrs_choice_id": "gbv"
+ },
+ {
+ "key": "cervical_cancer",
+ "text": "Saratani ya shingo ya kizazi",
+ "value": false,
+ "openmrs_choice_id": "cervical_cancer"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "value": false,
+ "openmrs_choice_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "Hakuna",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "exclusive": [
+ "none"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "other_health_education_received",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_health_education_received",
+ "type": "edit_text",
+ "hint": "Nyinginezo (Taja)",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:health_education_received": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education_hiv_intervention.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education_hiv_intervention.json
new file mode 100644
index 0000000000..ef12c17ba1
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education_hiv_intervention.json
@@ -0,0 +1,203 @@
+{
+ "count": "1",
+ "encounter_type": "SBC Health Education Related to HIV Intervention",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Elimu ya afya katika afua za VVU na UKIMWI?",
+ "fields": [
+ {
+ "key": "health_education_hiv_intervention",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "health_education_hiv_intervention",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Elimu ya afya katika afua za VVU na UKIMWI?",
+ "hint": "Elimu ya afya katika afua za VVU na UKIMWI?",
+ "options": [
+ {
+ "key": "hts",
+ "text": "Upimaji wa VVU",
+ "value": false,
+ "openmrs_choice_id": "hts"
+ },
+ {
+ "key": "vmmc",
+ "text": "Tohara ya kitabibu",
+ "value": false,
+ "openmrs_choice_id": "vmmc"
+ },
+ {
+ "key": "pmtct",
+ "text": "Kuzuia maambukizi kutoka kwa mama kwenda kwa mtoto",
+ "value": false,
+ "openmrs_choice_id": "pmtct"
+ },
+ {
+ "key": "treatment",
+ "text": "Huduma za tiba na matunzo",
+ "value": false,
+ "openmrs_choice_id": "treatment"
+ },
+ {
+ "key": "cervical",
+ "text": "Uchunguzi wa saratani ya shingo ya kizazi",
+ "value": false,
+ "openmrs_choice_id": "cervical"
+ },
+ {
+ "key": "stigma",
+ "text": "Unyanyapaa",
+ "value": false,
+ "openmrs_choice_id": "stigma"
+ },
+ {
+ "key": "prep",
+ "text": "Dawa kinga (PrEP)",
+ "value": false,
+ "openmrs_choice_id": "prep"
+ },
+ {
+ "key": "gbv",
+ "text": "Ukatili wa kijinsia",
+ "value": false,
+ "openmrs_choice_id": "gbv"
+ },
+ {
+ "key": "agyw",
+ "text": "Wasichana rika balehe na wanawake vijana (AGYW)",
+ "value": false,
+ "openmrs_choice_id": "agyw"
+ },
+ {
+ "key": "abym",
+ "text": "Wavulana rika balehe na wanaume vijana (ABYM)",
+ "value": false,
+ "openmrs_choice_id": "abym"
+ },
+ {
+ "key": "tb",
+ "text": "Kifua kikuu na VVU",
+ "value": false,
+ "openmrs_choice_id": "tb"
+ },
+ {
+ "key": "hepatitis",
+ "text": "Homa ya ini",
+ "value": false,
+ "openmrs_choice_id": "hepatitis"
+ },
+ {
+ "key": "sti",
+ "text": "Magonjwa ya ngono",
+ "value": false,
+ "openmrs_choice_id": "sti"
+ },
+ {
+ "key": "injection",
+ "text": "Vifaa kinga vya kujidunga",
+ "value": false,
+ "openmrs_choice_id": "injection"
+ },
+ {
+ "key": "mat",
+ "text": "Huduma ya kliniki za methadoni",
+ "value": false,
+ "openmrs_choice_id": "mat"
+ },
+ {
+ "key": "overdose",
+ "text": "Elimu ya kudhibiti matumizi ya dawa za kulevya kwa waraibu",
+ "value": false,
+ "openmrs_choice_id": "overdose"
+ },
+ {
+ "key": "condom_use",
+ "text": "Matumizi kamili ya kondomu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_use"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (taja)",
+ "value": false,
+ "openmrs_choice_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "other_health_education_hiv_intervention",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_health_education_hiv_intervention",
+ "type": "edit_text",
+ "hint": "Nyinginezo (taja)",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:health_education_hiv_intervention": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education_hiv_materials.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education_hiv_materials.json
new file mode 100644
index 0000000000..d2ef711971
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education_hiv_materials.json
@@ -0,0 +1,230 @@
+{
+ "count": "1",
+ "encounter_type": "HIV/AIDS Health Education SBC Materials",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Vifaa vya Elimu ya Afya ya VVU/UKIMWI",
+ "fields": [
+ {
+ "key": "distributed_any_hiv_materials",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "distributed_any_hiv_materials",
+ "type": "native_radio",
+ "label": "Je, umepata nyenzo za elimu (IEC)?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "type_of_materials_content_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_materials_content_distributed",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Ni nyenzo zipi za elimu alizopatiwa?",
+ "hint": "ni nyenzo zipi za elimu alizopatiwa?",
+ "options": [
+ {
+ "key": "hts",
+ "text": "Upimaji wa VVU",
+ "value": false,
+ "openmrs_choice_id": "hts"
+ },
+ {
+ "key": "vmmc",
+ "text": "Tohara ya kitabibu",
+ "value": false,
+ "openmrs_choice_id": "vmmc"
+ },
+ {
+ "key": "pmtct",
+ "text": "Kuzuia maambukizi kutoka kwa mama kwenda kwa mtoto",
+ "value": false,
+ "openmrs_choice_id": "pmtct"
+ },
+ {
+ "key": "treatment",
+ "text": "Huduma za tiba na matunzo",
+ "value": false,
+ "openmrs_choice_id": "treatment"
+ },
+ {
+ "key": "cervical",
+ "text": "Uchunguzi wa saratani ya shingo ya kizazi",
+ "value": false,
+ "openmrs_choice_id": "cervical"
+ },
+ {
+ "key": "stigma",
+ "text": "Unyanyapaa",
+ "value": false,
+ "openmrs_choice_id": "stigma"
+ },
+ {
+ "key": "prep",
+ "text": "Dawa kinga (PrEP)",
+ "value": false,
+ "openmrs_choice_id": "prep"
+ },
+ {
+ "key": "gbv",
+ "text": "Ukatili wa kijinsia",
+ "value": false,
+ "openmrs_choice_id": "gbv"
+ },
+ {
+ "key": "agyw",
+ "text": "Wasichana rika balehe na wanawake vijana (AGYW)",
+ "value": false,
+ "openmrs_choice_id": "agyw"
+ },
+ {
+ "key": "abym",
+ "text": "Wavulana rika balehe na wanaume vijana (ABYM)",
+ "value": false,
+ "openmrs_choice_id": "abym"
+ },
+ {
+ "key": "tb",
+ "text": "Kifua kikuu na VVU",
+ "value": false,
+ "openmrs_choice_id": "tb"
+ },
+ {
+ "key": "hepatitis",
+ "text": "Homa ya ini",
+ "value": false,
+ "openmrs_choice_id": "hepatitis"
+ },
+ {
+ "key": "sti",
+ "text": "Magonjwa ya ngono",
+ "value": false,
+ "openmrs_choice_id": "sti"
+ },
+ {
+ "key": "injection",
+ "text": "Vifaa kinga vya kujidunga",
+ "value": false,
+ "openmrs_choice_id": "injection"
+ },
+ {
+ "key": "mat",
+ "text": "Huduma ya kliniki za methadoni",
+ "value": false,
+ "openmrs_choice_id": "mat"
+ },
+ {
+ "key": "overdose",
+ "text": "Elimu ya kudhibiti matumizi ya dawa za kulevya kwa waraibu",
+ "value": false,
+ "openmrs_choice_id": "overdose"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (taja)",
+ "value": false,
+ "openmrs_choice_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ },
+ "relevance": {
+ "step1:distributed_any_hiv_materials": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "other_type_of_materials_content_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_type_of_materials_content_distributed",
+ "type": "edit_text",
+ "hint": "Nyinginezo (taja)",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:type_of_materials_content_distributed": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education_mobilization.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education_mobilization.json
new file mode 100644
index 0000000000..ba8510328a
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_health_education_mobilization.json
@@ -0,0 +1,569 @@
+{
+ "count": "1",
+ "encounter_type": "SBC Health Education Mobilization",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Uhamasishaji elimu ya afya (SBC)",
+ "fields": [
+ {
+ "key": "mobilization_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobilization_date",
+ "type": "date_picker",
+ "hint": "Tarehe ya Uhamasishaji",
+ "expanded": false,
+ "default": "12-12-2023",
+ "min_date": "today-5y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua tarehe ya uhamasishaji"
+ }
+ },
+ {
+ "key": "heath_education_mobility_location",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heath_education_mobility_location",
+ "openmrs_data_type": "text",
+ "type": "gps"
+ },
+ {
+ "key": "community_sbc_activity_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_sbc_activity_provided",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Aina ya uelimishaji (SBC)",
+ "hint": "Aina ya uelimishaji (SBC)",
+ "options": [
+ {
+ "key": "campaign",
+ "text": "Kampeni",
+ "value": false,
+ "openmrs_choice_id": "campaign"
+ },
+ {
+ "key": "religious",
+ "text": "Uelimishaji katika nyumba za ibada ",
+ "value": false,
+ "openmrs_choice_id": "religious"
+ },
+ {
+ "key": "meetings",
+ "text": "Mikutano ya kijamii",
+ "value": false,
+ "openmrs_choice_id": "meetings"
+ },
+ {
+ "key": "theater",
+ "text": "Kuonesha filamu",
+ "value": false,
+ "openmrs_choice_id": "theater"
+ },
+ {
+ "key": "drama",
+ "text": "Uelimishaji kwa njia ya sanaa",
+ "value": false,
+ "openmrs_choice_id": "drama"
+ },
+ {
+ "key": "tales",
+ "text": "Hadithi na majadiliano",
+ "value": false,
+ "openmrs_choice_id": "tales"
+ },
+ {
+ "key": "institution",
+ "text": "Uelimishaji katika taasisi za elimu",
+ "value": false,
+ "openmrs_choice_id": "institution"
+ },
+ {
+ "key": "advocacy",
+ "text": "Mikutano ya uraghibishi",
+ "value": false,
+ "openmrs_choice_id": "advocacy"
+ },
+ {
+ "key": "workplace",
+ "text": "Uelimishaji mahala pa kazi",
+ "value": false,
+ "openmrs_choice_id": "workplace"
+ },
+ {
+ "key": "income_generating_activity",
+ "text": "Elimu ya uwezeshaji kiuchumi",
+ "value": false,
+ "openmrs_choice_id": "income_generating_activity"
+ },
+ {
+ "key": "edutainment",
+ "text": "Uelimishaji maeneo ya burudani",
+ "value": false,
+ "openmrs_choice_id": "edutainment"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "value": false,
+ "openmrs_choice_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "other_community_sbc_activity_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_community_sbc_activity_provided",
+ "type": "edit_text",
+ "hint": "Nyinginezo (Taja)",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:community_sbc_activity_provided": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "has_distributed_iec_materials",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_distributed_iec_materials",
+ "label": "Je, Umegawa Vifaa vyovyote vya (IEC)?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndio",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "eic_interventions",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "eic_interventions",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Chagua Afua",
+ "hint": "Chagua Afua",
+ "options": [
+ {
+ "key": "other_hiv_interventions",
+ "text": "Afua nyinginezo za VVU",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_hiv_interventions"
+ },
+ {
+ "key": "pmtct",
+ "text": "Kuzuia maambukizi kutoka kwa mama kwenda kwa mtoto (PMTCT)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "step1:has_distributed_iec_materials": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "other_interventions_iec_materials_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_interventions_iec_materials_distributed",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Nyenzo za uhamasishaji na uelimishaji kuhusu VVU na ukimwi nyinginezo zilisambazwa",
+ "options": [
+ {
+ "key": "audio_visual",
+ "text": "Nyenzo za kusikia na kuona",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "audio_visual"
+ },
+ {
+ "key": "audio",
+ "text": "Nyenzo za kusikia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "audio"
+ },
+ {
+ "key": "print_materials",
+ "text": "Machapisho",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "print_materials"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "step1:eic_interventions": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other_hiv_interventions"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_audio_visuals_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_audio_visuals_distributed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Nyenzo za kusikia na kuona zilizosambazwa",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali Jaza"
+ },
+ "relevance": {
+ "step1:other_interventions_iec_materials_distributed": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "audio_visual"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_audio_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_audio_distributed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Nyenzo za kusikia zilizosambazwa",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali Jaza"
+ },
+ "relevance": {
+ "step1:other_interventions_iec_materials_distributed": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "audio"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_print_materials_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_print_materials_distributed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Nyenzo za Machapisho zilizosambazwa",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali Jaza"
+ },
+ "relevance": {
+ "step1:other_interventions_iec_materials_distributed": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "print_materials"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "pmtct_iec_materials_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct_iec_materials_distributed",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Changua nyenzo za PMTCT IEC zilizosambazwa",
+ "hint": "Changua nyenzo za PMTCT IEC zilizosambazwa",
+ "options": [
+ {
+ "key": "audio_visual",
+ "text": "Nyenzo za kusikia na kuona",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "audio_visual"
+ },
+ {
+ "key": "audio",
+ "text": "Nyenzo za kusikia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "audio"
+ },
+ {
+ "key": "print_materials",
+ "text": "Machapisho",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "print_materials"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua"
+ },
+ "relevance": {
+ "step1:eic_interventions": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "pmtct"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_pmtct_audio_visuals_distributed_male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_pmtct_audio_visuals_distributed_male",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya nyenzo za kusikia na kuona za PMTCT zilizosambazwa kwa wateja wa kiume",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:pmtct_iec_materials_distributed": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "audio_visual"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_pmtct_audio_visuals_distributed_female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_pmtct_audio_visuals_distributed_female",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya nyenzo za kusikia na kuona za PMTCT zilizosambazwa kwa wateja wa kike",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:pmtct_iec_materials_distributed": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "audio_visual"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_pmtct_audio_distributed_male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_pmtct_audio_distributed_male",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya nyenzo za kusikia za PMTCT zilizosambazwa kwa wateja wa kiume ",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:pmtct_iec_materials_distributed": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "audio"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_pmtct_audio_distributed_female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_pmtct_audio_distributed_female",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya nyenzo za kusikia za PMTCT zilizosambazwa kwa wateja wa kike",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:pmtct_iec_materials_distributed": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "audio"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_pmtct_print_materials_distributed_male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_pmtct_print_materials_distributed_male",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Machapisho ya PMTCT zilizosambazwa kwa wateja wa kiume",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:pmtct_iec_materials_distributed": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "print_materials"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_pmtct_print_materials_distributed_female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_pmtct_print_materials_distributed_female",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya Machapisho ya PMTCT zilizosambazwa kwa wateja wa kike",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:pmtct_iec_materials_distributed": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "print_materials"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "chw_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chw_name",
+ "type": "hidden"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_hiv_status.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_hiv_status.json
new file mode 100644
index 0000000000..f89ceae73f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_hiv_status.json
@@ -0,0 +1,137 @@
+{
+ "count": "1",
+ "encounter_type": "SBC HIV Status",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Hali ya VVU SBC",
+ "fields": [
+ {
+ "key": "hiv_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_status",
+ "type": "native_radio",
+ "label": "Hali ya maambukizi ya VVU",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "known_positive",
+ "text": "Anaishi na maambukizi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive"
+ },
+ {
+ "key": "negative",
+ "text": "Hana maambukizi",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "unknown",
+ "text": "Haijulikani",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unknown"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Nambari ya CTC",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "Nambari ya CTC inapaswa kuwa ya muundo (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Tafadhali jaza nambari sahihi ya ctc"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza nambari sahihi ya ctc"
+ },
+ "relevance": {
+ "step1:hiv_status": {
+ "type": "string",
+ "ex": "equalTo(., \"known_positive\")"
+ }
+ }
+ },
+ {
+ "key": "unknown_hiv_status_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unknown_hiv_status_prompt",
+ "type": "toaster_notes",
+ "text": "Mpe rufaa kwenda kupata huduma za unasii na upimaji wa VVU",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "sbc_hiv_status_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_monthly_social_media_report.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_monthly_social_media_report.json
new file mode 100644
index 0000000000..390881e53a
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_monthly_social_media_report.json
@@ -0,0 +1,451 @@
+{
+ "count": "1",
+ "encounter_type": "Monthly Social Media Report",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Ripoti ya mitandao ya kijamii ya mwezi ",
+ "fields": [
+ {
+ "key": "reporting_month",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reporting_month",
+ "type": "date_picker",
+ "hint": "Mwezi wa Ripoti",
+ "expanded": false,
+ "min_date": "today-5y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali jaza mwezi wa Ripoti"
+ }
+ },
+ {
+ "key": "organization_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "organization_name",
+ "type": "native_radio",
+ "label": "Chagua Jina la Taasisi Yako",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "deloitte",
+ "text": "Deloitte",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "deloitte"
+ },
+ {
+ "key": "fhi",
+ "text": "fhi360",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fhi"
+ },
+ {
+ "key": "amref",
+ "text": "Amref",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "amref"
+ },
+ {
+ "key": "egpaf",
+ "text": "Egpaf",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "egpaf"
+ },
+ {
+ "key": "tayoa",
+ "text": "TAYOA",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tayoa"
+ },
+ {
+ "key": "mdh",
+ "text": "MDH",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mdh"
+ },
+ {
+ "key": "hjfmri",
+ "text": "HJFMRI",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hjfmri"
+ },
+ {
+ "key": "thps",
+ "text": "THPS",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "thps"
+ },
+ {
+ "key": "jhpiego",
+ "text": "Jhpiego",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jhpiego"
+ },
+ {
+ "key": "tcdc",
+ "text": "TCDC",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tcdc"
+ },
+ {
+ "key": "icap",
+ "text": "ICAP",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "icap"
+ },
+ {
+ "key": "path",
+ "text": "PATH",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "path"
+ },
+ {
+ "key": "afya_plus",
+ "text": "Afya Plus",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "afya_plus"
+ },
+ {
+ "key": "mukikute",
+ "text": "MUKIKUTE",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mukikute"
+ },
+ {
+ "key": "nacp_moh",
+ "text": "NACP - MOH",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "nacp_moh"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "other_organization_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_organization_name",
+ "type": "edit_text",
+ "hint": "Nyinginezo (Taja)",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:organization_name": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "social_media_hiv_msg_distribution",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "social_media_hiv_msg_distribution",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "label": "Chagua mitandao ya kijamii inayotumika kusambaza ujumbe wa VVU na UKIMWI ",
+ "hint": "Chagua mitandao ya kijamii inayotumika kusambaza ujumbe wa VVU na UKIMW",
+ "options": [
+ {
+ "key": "facebook",
+ "text": "Facebook",
+ "value": false,
+ "openmrs_choice_id": "facebook"
+ },
+ {
+ "key": "twitter",
+ "text": "X(Twitter)",
+ "value": false,
+ "openmrs_choice_id": "twitter"
+ },
+ {
+ "key": "whatsapp",
+ "text": "Whatsapp",
+ "value": false,
+ "openmrs_choice_id": "whatsapp"
+ },
+ {
+ "key": "instagram",
+ "text": "Instagram",
+ "value": false,
+ "openmrs_choice_id": "instagram"
+ },
+ {
+ "key": "telegram",
+ "text": "Telegram",
+ "value": false,
+ "openmrs_choice_id": "telegram"
+ },
+ {
+ "key": "youtube",
+ "text": "Youtube",
+ "value": false,
+ "openmrs_choice_id": "youtube"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (Taja)",
+ "value": false,
+ "openmrs_choice_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "number_beneficiaries_reached_facebook",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_beneficiaries_reached_facebook",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya watu waliofikiwa na ujumbe kupitia Facebook",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:social_media_hiv_msg_distribution": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "facebook"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_beneficiaries_reached_twitter",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_beneficiaries_reached_twitter",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya watu waliofikiwa na ujumbe kupitia Twitter",
+ "v_required": {
+ "value": true,
+ "err": "Required"
+ },
+ "relevance": {
+ "step1:social_media_hiv_msg_distribution": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "twitter"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_beneficiaries_reached_whatsapp",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_beneficiaries_reached_whatsapp",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya watu waliofikiwa na ujumbe kupitia Whatsapp",
+ "v_required": {
+ "value": true,
+ "err": "Required"
+ },
+ "relevance": {
+ "step1:social_media_hiv_msg_distribution": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "whatsapp"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_beneficiaries_reached_instagram",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_beneficiaries_reached_instagram",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya watu waliofikiwa na ujumbe kupitia Instagram",
+ "v_required": {
+ "value": true,
+ "err": "Required"
+ },
+ "relevance": {
+ "step1:social_media_hiv_msg_distribution": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "instagram"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_beneficiaries_reached_telegram",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_beneficiaries_reached_telegram",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya watu waliofikiwa na ujumbe kupitia Telegram",
+ "v_required": {
+ "value": true,
+ "err": "Required"
+ },
+ "relevance": {
+ "step1:social_media_hiv_msg_distribution": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "telegram"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_beneficiaries_reached_youtube",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_beneficiaries_reached_youtube",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya watu waliofikiwa na ujumbe kupitia Youtube",
+ "v_required": {
+ "value": true,
+ "err": "Required"
+ },
+ "relevance": {
+ "step1:social_media_hiv_msg_distribution": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "youtube"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_beneficiaries_reached_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_beneficiaries_reached_other",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya watu waliofikiwa na ujumbe kupitia Njia Nyinginezo",
+ "v_required": {
+ "value": true,
+ "err": "Required"
+ },
+ "relevance": {
+ "step1:social_media_hiv_msg_distribution": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_messages_publications",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_messages_publications",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya jumbe zilizochapishwa katika vyombo vya habari",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ }
+ },
+ {
+ "key": "number_aired_messages_broadcasted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_aired_messages_broadcasted",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Idadi ya jumbe zilizorushwa kupitia vyombo vya habari",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_service_survey.json b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_service_survey.json
new file mode 100644
index 0000000000..006b5d6961
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/sbc_service_survey.json
@@ -0,0 +1,380 @@
+{
+ "count": "1",
+ "encounter_type": "Uchunguzi wa Huduma",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Uchunguzi wa Huduma",
+ "fields": [
+ {
+ "key": "received_any_hiv_sms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "received_any_hiv_sms",
+ "type": "native_radio",
+ "label": "Je, umepokea ujumbe mfupi wa simu kuhusu VVU na UKIMWI?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "received_message",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "received_message",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Aina ya ujumbe uliopokelewa",
+ "hint": "Aina ya ujumbe uliopokelewa",
+ "options": [
+ {
+ "key": "hts",
+ "text": "Upimaji wa VVU",
+ "value": false,
+ "openmrs_choice_id": "hts"
+ },
+ {
+ "key": "vmmc",
+ "text": "Tohara ya kitabibu",
+ "value": false,
+ "openmrs_choice_id": "vmmc"
+ },
+ {
+ "key": "pmtct",
+ "text": "Kuzuia maambukizi kutoka kwa mama kwenda kwa mtoto",
+ "value": false,
+ "openmrs_choice_id": "pmtct"
+ },
+ {
+ "key": "treatment",
+ "text": "Huduma za tiba na matunzo",
+ "value": false,
+ "openmrs_choice_id": "treatment"
+ },
+ {
+ "key": "cervical",
+ "text": "Uchunguzi wa saratani ya shingo ya kizazi ",
+ "value": false,
+ "openmrs_choice_id": "cervical"
+ },
+ {
+ "key": "stigma",
+ "text": "Unyanyapaa",
+ "value": false,
+ "openmrs_choice_id": "stigma"
+ },
+ {
+ "key": "prep",
+ "text": "Dawa kinga (PrEP)",
+ "value": false,
+ "openmrs_choice_id": "prep"
+ },
+ {
+ "key": "gbv",
+ "text": "Ukatili wa kijinsia",
+ "value": false,
+ "openmrs_choice_id": "gbv"
+ },
+ {
+ "key": "agyw",
+ "text": "Wasichana rika balehe na wanawake vijana (AGYW)",
+ "value": false,
+ "openmrs_choice_id": "agyw"
+ },
+ {
+ "key": "abym",
+ "text": "Wavulana rika balehe na wanaume vijana (ABYM)",
+ "value": false,
+ "openmrs_choice_id": "abym"
+ },
+ {
+ "key": "tb",
+ "text": "Kifua kikuu na VVU",
+ "value": false,
+ "openmrs_choice_id": "tb"
+ },
+ {
+ "key": "hepatitis",
+ "text": "Homa ya ini",
+ "value": false,
+ "openmrs_choice_id": "hepatitis"
+ },
+ {
+ "key": "sti",
+ "text": "Magonjwa ya ngono",
+ "value": false,
+ "openmrs_choice_id": "sti"
+ },
+ {
+ "key": "injection",
+ "text": "Vifaa kinga vya kujidunga",
+ "value": false,
+ "openmrs_choice_id": "injection"
+ },
+ {
+ "key": "mat",
+ "text": "Huduma ya kliniki za methadoni",
+ "value": false,
+ "openmrs_choice_id": "mat"
+ },
+ {
+ "key": "overdose",
+ "text": "Elimu ya kudhibiti matumizi ya dawa za kulevya kwa waraibu",
+ "value": false,
+ "openmrs_choice_id": "overdose"
+ },
+ {
+ "key": "condom_use",
+ "text": "Matumizi kamili ya kondomu",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_use"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (taja)",
+ "value": false,
+ "openmrs_choice_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ },
+ "relevance": {
+ "step1:received_any_hiv_sms": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "other_received_message",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_received_message",
+ "type": "edit_text",
+ "hint": "Nyinginezo (taja)",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:received_message": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "reason_not_receiving_hiv_sms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_not_receiving_hiv_sms",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Sababu ya kutokupata ujumbe mfupi wa simu kuhusu VVU na UKIMWI",
+ "hint": "Sababu ya kutokupata ujumbe mfupi wa simu kuhusu VVU na UKIMWI",
+ "options": [
+ {
+ "key": "not_subscribed",
+ "text": "Haja sabskraibu",
+ "value": false,
+ "openmrs_choice_id": "not_subscribed"
+ },
+ {
+ "key": "lost_phone",
+ "text": "Amepoteza simu",
+ "value": false,
+ "openmrs_choice_id": "lost_phone"
+ },
+ {
+ "key": "changed_phone_number",
+ "text": "Amebadili namba ya simu",
+ "value": false,
+ "openmrs_choice_id": "changed_phone_number"
+ },
+ {
+ "key": "no_phone",
+ "text": "Hana simu",
+ "value": false,
+ "openmrs_choice_id": "no_phone"
+ },
+ {
+ "key": "network_access",
+ "text": "Hakuna mtandao",
+ "value": false,
+ "openmrs_choice_id": "network_access"
+ },
+ {
+ "key": "other",
+ "text": "Nyinginezo (taja)",
+ "value": false,
+ "openmrs_choice_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ },
+ "relevance": {
+ "step1:received_any_hiv_sms": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_not_receiving_hiv_sms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_not_receiving_hiv_sms",
+ "type": "edit_text",
+ "hint": "Nyinginezo (taja)",
+ "v_required": {
+ "value": true,
+ "err": "Tafadhali jaza"
+ },
+ "relevance": {
+ "step1:reason_not_receiving_hiv_sms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "used_toll_free",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "used_toll_free",
+ "type": "native_radio",
+ "label": "Je umetumia huduma ya Toll free?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Ndiyo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "Hapana",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ }
+ },
+ {
+ "key": "toll_free_service_accessed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "toll_free_service_accessed",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Je ni huduma ipi ya Toll free ulitumia?",
+ "hint": "Je ni huduma ipi ya Toll free ulitumia?",
+ "options": [
+ {
+ "key": "toll_free_ivr",
+ "text": "Mawasiliano kwa sauti iliyonakiliwa (IVR)",
+ "value": false,
+ "openmrs_choice_id": "sbc_toll_free_ivr"
+ },
+ {
+ "key": "toll_free_provider",
+ "text": "Kuongea na mshauri",
+ "value": false,
+ "openmrs_choice_id": "sbc_toll_free_provider"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua angalau moja"
+ },
+ "relevance": {
+ "step1:used_toll_free": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/tb_community_followup_referral.json b/opensrp-chw-hf/src/main/assets/json.form-sw/tb_community_followup_referral.json
new file mode 100644
index 0000000000..b2572db279
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/tb_community_followup_referral.json
@@ -0,0 +1,151 @@
+{
+ "form": "TB Community Followup",
+ "count": "1",
+ "encounter_type": "TB Community Followup",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/tb_community_followup_referral_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Rufaa ya ufuatiliaji wa wateja wa TB katika ngazi ya jamii",
+ "fields": [
+ {
+ "name": "reasons_for_issuing_community_referral",
+ "type": "radio_group",
+ "properties": {
+ "text": "Sababu za kutoa rufaa ya ufuatiliaji kwenye Jamii"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_issuing_community_referral",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "missed_appointment",
+ "text": "Missed Appointment",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "missed_appointment",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "lost_to_followup",
+ "text": "Lost to followup client",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lost_to_followup",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "Other",
+ "text": "Nyinginezo",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua sababu za kutoa rufaa ya ufuatiliaji katika ngazi ya jamii",
+ "dependent_calculations": [
+ "tb_community_referral_date"
+ ]
+ },
+ {
+ "name": "reason_for_issuing_community_referral_other",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Sababu nyinginezo",
+ "type": "name"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_issuing_community_referral_other",
+ "openmrs_entity_parent": "reasons_for_issuing_community_referral"
+ },
+ "required_status": "true:Tafadhali jaza sababu zinginezo",
+ "subjects": "reasons_for_issuing_community_referral:map"
+ },
+ {
+ "name": "last_client_visit_date",
+ "type": "datetime_picker",
+ "properties": {
+ "hint": "Tarehe ya mwisho ya ya mteja kuhudhuria kliniki",
+ "type": "date_picker",
+ "display_format": "dd/MM/yyyy",
+ "max_date": "today"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_client_visit_date",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Tafadhali chagua tarehe ya mwisho ya ya mteja kuhudhuria kliniki",
+ "subjects": "reasons_for_issuing_community_referral:map"
+ },
+ {
+ "name": "comment_tb_community_followup",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Toa maoni"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment_tb_community_followup",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/tb_outcome.json b/opensrp-chw-hf/src/main/assets/json.form-sw/tb_outcome.json
new file mode 100644
index 0000000000..fd575ae61b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/tb_outcome.json
@@ -0,0 +1,314 @@
+{
+ "form": "TB Outcome",
+ "count": "1",
+ "encounter_type": "TB Outcome",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/tb_outcome_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Matokeo ya Vipimo vya TB",
+ "fields": [
+ {
+ "name": "problem",
+ "type": "multi_choice_checkbox",
+ "properties": {
+ "text": "Chagua dalili za hatari za TB alizonazo mteja."
+ },
+ "meta_data": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "problem"
+ },
+ "options": [
+ {
+ "name": "coughing_blood",
+ "text": "Kukohoa damu",
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "coughing_blood",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "pain_in_the_chest",
+ "text": "Maumivu ya kifua",
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "cough_lasting_3_weeks_or_more",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "cough_lasting_3_weeks_or_more",
+ "text": "Kikohozi kilicho endelea kwa zaidi ya wiki tatu ",
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "cough_lasting_3_weeks_or_more",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "fever",
+ "text": "Homa",
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "fever",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "weight_loss",
+ "text": "Kupungua uzito",
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "weight_loss",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "lack_of_appetite",
+ "text": "Kukosa hamu ya chakula",
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "lack_of_appetite",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "night_sweats",
+ "text": "Kutokwa jasho wakati wa usiku",
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "night_sweats",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "Other",
+ "text": "Dalili nyinginezo",
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "Other",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "None",
+ "text": "Hana dalili za hatari",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "",
+ "openmrs_entity_id": "None",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua dalili za hatari",
+ "dependent_calculations": [
+ "tb_facility_visit_date"
+ ]
+ },
+ {
+ "name": "problem_other",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Dalili nyingine",
+ "type": "name"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "problem_other",
+ "openmrs_entity_parent": "problem"
+ },
+ "required_status": "true:Tafadhali jaza dalili nyingine za hatari",
+ "subjects": "problem:map"
+ },
+ {
+ "name": "action_taken_tb_problems",
+ "type": "radio_group",
+ "properties": {
+ "text": "Hatua zilizochukuliwa."
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "action_taken_tb_problems",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "no_action_taken",
+ "text": "Hajapewa matibabu yoyote",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_action_taken",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "tested",
+ "text": "Amepimwa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tested",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "referred",
+ "text": "Amepewa rufaa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referred",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua hatua zilizochukuliwa"
+ },
+ {
+ "name": "test_results",
+ "type": "radio_group",
+ "properties": {
+ "text": "Chagua matokeo ya vipimo vya TB.."
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_results",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "positive",
+ "text": "Ana TB",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "negative",
+ "text": "Hana TB",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali chagua matokeo ya vipimo vya TB",
+ "subjects": "action_taken_tb_problems:map"
+ },
+ {
+ "name": "enrolled_to_clinic",
+ "type": "radio_group",
+ "properties": {
+ "text": "Je mteja amesajiliwa kwenye kliniki ya TB?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_to_clinic",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Ndio",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "Hapana",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza jibu sahihi",
+ "subjects": "test_results:map"
+ },
+ {
+ "name": "tb_clinic_number",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Jaza namba ya Kliniki ya TB ya mteja",
+ "type": "name"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_clinic_number",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Tafadhali jaza namba ya Kliniki ya TB ya mteja",
+ "subjects": "enrolled_to_clinic:map"
+ },
+ {
+ "name": "comment_tb_problems",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Toa maoni"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment_tb_problems",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form-sw/tb_registration.json b/opensrp-chw-hf/src/main/assets/json.form-sw/tb_registration.json
new file mode 100644
index 0000000000..ae2115be30
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form-sw/tb_registration.json
@@ -0,0 +1,294 @@
+{
+ "form": "TB Registration form",
+ "count": "1",
+ "encounter_type": "TB Registration",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/tb_registration_form_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Usajili wa wateja wa TB",
+ "fields": [
+ {
+ "name": "community_client_tb_registration_number",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Namba ya Kliniki ya TB"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_client_tb_registration_number",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "yes: Tafadhali jaza namba ya mteja ya cliniki ya TB",
+ "dependent_calculations": [
+ "tb_registration_date",
+ "client_tb_status_during_registration",
+ "test_results"
+ ]
+ },
+ {
+ "name": "place_of_domicile",
+ "type": "spinner",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_of_domicile",
+ "openmrs_entity_parent": ""
+ },
+ "properties": {
+ "text": "Mahali alipotokea mteja/alipohojiwa"
+ },
+ "options": [
+ {
+ "name": "a_family_with_tb_patient",
+ "text": "Familia yenye mgonjwa wa TB (Andika namba ya wilaya ya mgonjwa wa TB)",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "a_family_with_tb_patient",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "a_family_without_tb_patient",
+ "text": "Familia isiyo na mgonjwa wa TB/DR-TB",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "a_family_without_tb_patient",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "community_gathering",
+ "text": "Mkusanyiko wa watu/sehemu nyingine",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_gathering",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "pharmacy",
+ "text": "Duka la dawa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pharmacy",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "traditional_doctors",
+ "text": "Mganga wa jadi",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "traditional_doctors",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza mahali alipotokea mteja/alipohojiwa"
+ },
+ {
+ "name": "district_council_number_of_current_tb_client",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Jaza namba ya wilaya ya mgonjwa wa TB"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "district_council_number_of_current_tb_client",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "yes:Tafadhali jaza jaza namba ya wilaya ya mgonjwa wa TB",
+ "subjects": "place_of_domicile:text"
+ },
+ {
+ "name": "community_gathering",
+ "type": "spinner",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_gathering",
+ "openmrs_entity_parent": ""
+ },
+ "properties": {
+ "text": "Mkusanyiko wa watu/sehemu nyingine"
+ },
+ "options": [
+ {
+ "name": "school",
+ "text": "Shule",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "school",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "worship_houses",
+ "text": "Nyumba za Ibada",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "worship_houses",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "mining",
+ "text": "Machimbo",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mining",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "public_meetings",
+ "text": "Mikutano ya hadhara",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "public_meetings",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "prison",
+ "text": "Magereza",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prison",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "others",
+ "text": "Kwingineko",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza mkusanyiko wa watu/sehemu nyingine",
+ "subjects": "place_of_domicile:text"
+ },
+ {
+ "name": "other_community_gathering",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Taja kwingineko"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_community_gathering",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "yes:Tafadhali jaza kwingineko",
+ "subjects": "community_gathering:text"
+ },
+ {
+ "name": "client_tb_screening_results",
+ "type": "spinner",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_tb_screening_results",
+ "openmrs_entity_parent": ""
+ },
+ "properties": {
+ "text": "Matokeo ya mahojiano (*Dalili alizonazo)"
+ },
+ "options": [
+ {
+ "name": "coughing",
+ "text": "Kikihozi",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "coughing",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "hemoptysis",
+ "text": "Makohozi yaliyochanganyika na Damu",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hemoptysis",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "fever",
+ "text": "Homa",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fever",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "weight_lose",
+ "text": "Kupungua uzito",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight_lose",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "night_sweats",
+ "text": "Kutokwa jasho jingi kuliko kawaida hasa nyakati za usiku",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "night_sweats",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Tafadhali jaza matokeo ya mahojiano (*Dalili alizonazo)"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/all_clients_registration_form.json b/opensrp-chw-hf/src/main/assets/json.form/all_clients_registration_form.json
new file mode 100644
index 0000000000..ff96744212
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/all_clients_registration_form.json
@@ -0,0 +1,1095 @@
+ {
+ "count": "2",
+ "encounter_type": "Family 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"
+ },
+ "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": "Location details",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "fam_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "fam_name",
+ "type": "edit_text",
+ "hint": "Surname",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the surname"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter the surname"
+ }
+ },
+ {
+ "key": "client_first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "First name",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the first name"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ }
+ },
+ {
+ "key": "client_middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Middle name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the middle name"
+ }
+ },
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "hidden": "true",
+ "type": "edit_text",
+ "barcode_type": "qrcode",
+ "hint": "ID",
+ "scanButtonText": "Scan QR Code",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid ID"
+ }
+ },
+ {
+ "key": "fam_village",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "cityVillage",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Area name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the name of area or town"
+ }
+ },
+ {
+ "key": "landmark",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "landmark",
+ "type": "edit_text",
+ "hint": "Landmark/Description of house location",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the landmark/description of location."
+ }
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "15dp"
+ },
+ {
+ "key": "sync_location_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "sync_location_id",
+ "type": "spinner",
+ "hint": "Select CHW Location"
+ }
+ ]
+ },
+ "step2": {
+ "title": "Client details",
+ "fields": [
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Kituoni ID",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid ID"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the UNIQUE ID"
+ }
+ },
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "last_name",
+ "type": "edit_text",
+ "hint": "Surname",
+ "edit_type": "name",
+ "read_only": true,
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the surname"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "First name",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the first name"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Middle name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the middle name"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "date_picker",
+ "hint": "Date of birth (DOB)",
+ "expanded": false,
+ "duration": {
+ "label": "Age"
+ },
+ "min_date": "today-120y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the date of birth"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "age_calculated",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob_unknown",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdateApprox",
+ "type": "check_box",
+ "label": "",
+ "options": [
+ {
+ "key": "dob_unknown",
+ "text": "DOB unknown?",
+ "text_size": "18px",
+ "value": "false"
+ }
+ ]
+ },
+ {
+ "key": "age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "age",
+ "type": "edit_text",
+ "hint": "Age",
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Must be a rounded number"
+ },
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid age"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid age"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Age must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "120",
+ "err": "Age must be equal or less than 120"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the age"
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Sex",
+ "values": [
+ "Male",
+ "Female"
+ ],
+ "keys": [
+ "Male",
+ "Female"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the sex"
+ }
+ },
+ {
+ "key": "marital_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "marital_status",
+ "type": "spinner",
+ "hint": "Client's Marital Status?",
+ "values": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "keys": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "openmrs_choice_ids": {
+ "Single": "Single",
+ "Married": "Married",
+ "Divorced": "Divorced",
+ "Widowed": "Widowed",
+ "Cohabitation": "Cohabitation"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Client phone number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ }
+ },
+ {
+ "key": "id_avail",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "id_avail",
+ "type": "check_box",
+ "label": "Do you have any of the following IDs?",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_national_id",
+ "text": "National ID",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_national_id"
+ },
+ {
+ "key": "chk_voters_id",
+ "text": "Voter's registration ID",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_voters_id"
+ },
+ {
+ "key": "chk_drivers_license",
+ "text": "Driver's license",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_drivers_license"
+ },
+ {
+ "key": "chk_passport_number",
+ "text": "Passport",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_passport_number"
+ },
+ {
+ "key": "chk_none",
+ "text": "None",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "national_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "National_ID",
+ "type": "mask_edit_text",
+ "mask": "########-#####-#####-##",
+ "mask_hint": "12345678912345678912",
+ "allowed_chars": "0123456789",
+ "hint": "National ID number e.g 12345678-91234-56789-12",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "23",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid national id"
+ },
+ "v_regex": {
+ "value": "^\\d{8}-\\d{5}-\\d{5}-\\d{2}$",
+ "err": "National ID number should be of the format (XXXXXXXX-XXXXX-XXXXX-XX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid national ID"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_national_id"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "voter_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Voter_Registration_Number",
+ "type": "mask_edit_text",
+ "mask": "T-####-####-###-#",
+ "mask_hint": "123456789123",
+ "allowed_chars": "0123456789",
+ "hint": "Voter's registration number e.g T-1234-5678-912-3",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid voters registration"
+ },
+ "v_regex": {
+ "value": "^T-\\d{4}-\\d{4}-\\d{3}-\\d{1}$",
+ "err": "Voter's registration number should be of the format (T-XXXX-XXXX-XXX-X)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid voters registration number"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_voters_id"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "driver_license",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Driver_License_Number",
+ "type": "mask_edit_text",
+ "mask": "##########",
+ "mask_hint": "1234567891",
+ "allowed_chars": "0123456789",
+ "hint": "Driver's license number e.g 1234567891",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "10",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid drivers license number"
+ },
+ "v_regex": {
+ "value": "^([0-9]{10})",
+ "err": "Driver's license number should be of the format (XXXXXXXXXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid driver's license number"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_drivers_license"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "passport_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Passport",
+ "type": "mask_edit_text",
+ "mask": "TAE-###-###",
+ "mask_hint": "123456",
+ "allowed_chars": "0123456789",
+ "hint": "Passport number e.g TAE-123-456",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "11",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid passport number"
+ },
+ "v_regex": {
+ "value": "^TAE-\\d{3}-\\d{3}$",
+ "err": "Passport number should be of the format (TAE-XXX-XXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid passport number"
+ },
+ "relevance": {
+ "step2:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_passport_number"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "insurance_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Health_Insurance_Type",
+ "type": "spinner",
+ "hint": "Health insurance provider",
+ "values": [
+ "Community Health Fund (CHF)/(iCHF)",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
+ "Tiba Kwa Kadi (TIKA)",
+ "AAR Healthcare",
+ "Strategies Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)",
+ "Britam Insurance Tanzania",
+ "Jubilee Insurance",
+ "Resolutions Insurance",
+ "Reliance Insurance",
+ "Other",
+ "None"
+ ],
+ "keys": [
+ "Community Health Fund (CHF)",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
+ "Tiba Kwa Kadi (TIKA)",
+ "AAR Healthcare",
+ "Strategies Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)",
+ "Britam Insurance Tanzania",
+ "Jubilee Insurance",
+ "Resolutions Insurance",
+ "Reliance Insurance",
+ "Other",
+ "None"
+ ],
+ "openmrs_choice_ids": {
+ "Community Health Fund (CHF)": "Community_Health_Fund",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
+ "Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
+ "AAR Healthcare": "AAR_Healthcare",
+ "AAR Strategies Insurance": "Strategies_Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)": "BIMA_Mkononi",
+ "Britam Insurance Tanzania": "Britam_Insurance_Tanzania",
+ "Jubilee Insurance": "Jubilee_Insurance",
+ "Resolutions Insurance": "Resolutions_Insurance",
+ "Reliance Insurance": "Reliance_Insurance",
+ "Other": "Other_Health_Insurance_Type",
+ "None": "No_Health_Insurance"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the insurance provider"
+ }
+ },
+ {
+ "key": "insurance_provider_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Health_Insurance_Type",
+ "type": "edit_text",
+ "hint": "Other health insurance provider",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the insurance provider"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "insurance_provider_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Health_Insurance_Number",
+ "type": "edit_text",
+ "hint": "Health insurance provider number",
+ "v_required": {
+ "value": "true",
+ "err": "Please add the health insurance provider iD Number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "wra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "mra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "preg_1yr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "preg_1yr",
+ "type": "spinner",
+ "hint": "Has the woman delivered in the last 1 year?",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select if the woman has delivered in the last 1 year"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "disabilities",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabilities",
+ "type": "spinner",
+ "hint": "Physical disabilities",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "type_of_disability",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "label": "Type of disability",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Mobility and Physical Impairments",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Spinal Cord Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Head Injuries - Brain Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Vision Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Hearing Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Cognitive or Learning Disabilities",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Psychological Disorders",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Invisible Disabilities",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ },
+ {
+ "key": "albinism",
+ "text": "Albinism",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "albinism"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please select the type of physical disabilities"
+ }
+ },
+ {
+ "key": "has_primary_caregiver",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Has_Primary_Caregiver",
+ "type": "spinner",
+ "hint": " Do you have a primary caregiver/Treatment supporter?",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "primary_caregiver_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Primary_Caregiver_Name",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Name of caregiver",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the name of the caregiver."
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_phone_number",
+ "type": "edit_text",
+ "hint": "Primary caregiver phone number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "service_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_provider",
+ "type": "native_radio",
+ "label": "Occupation of the Client",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "chk_self_employed",
+ "text": "Self-Employed",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_self_employed"
+ },
+ {
+ "key": "chk_employed",
+ "text": "Employed",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_employed"
+ },
+ {
+ "key": "chk_unemployed",
+ "text": "Unemployed",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_unemployed"
+ },
+ {
+ "key": "chk_farmer",
+ "text": "Farmer",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_farmer"
+ },
+ {
+ "key": "chk_traditional_healer",
+ "text": "Traditional healer",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_traditional_healer"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please pick at least one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "leader",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Community_Leader",
+ "type": "check_box",
+ "label": "Any leadership role in the community?",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_religious",
+ "text": "Religious leader",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Religious_Leader"
+ },
+ {
+ "key": "chk_traditional",
+ "text": "Traditional leader",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Traditional_leader"
+ },
+ {
+ "key": "chk_political",
+ "text": "Political leader",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Political_leader"
+ },
+ {
+ "key": "chk_influential",
+ "text": "Influential leader",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Influential_Leader"
+ },
+ {
+ "key": "chk_other",
+ "text": "Other",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Community_Leader_Type"
+ },
+ {
+ "key": "chk_none",
+ "text": "None",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Not_a_Community_Leader"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please pick at least one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "leader_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Community_Leader_Type_Name",
+ "type": "edit_text",
+ "hint": "Mention other role in the community",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify role"
+ },
+ "relevance": {
+ "step2:leader": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_other"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/all_clients_update_registration_info_form.json b/opensrp-chw-hf/src/main/assets/json.form/all_clients_update_registration_info_form.json
new file mode 100644
index 0000000000..db1169241c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/all_clients_update_registration_info_form.json
@@ -0,0 +1,962 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Family 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"
+ },
+ "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": "Client details",
+ "fields": [
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Kituoni ID",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid ID"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the UNIQUE ID"
+ }
+ },
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "last_name",
+ "type": "edit_text",
+ "hint": "Surname",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the surname"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "First name",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the first name"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ }
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Middle name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the middle name"
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "date_picker",
+ "hint": "Date of birth (DOB)",
+ "expanded": false,
+ "duration": {
+ "label": "Age"
+ },
+ "min_date": "today-120y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the date of birth"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "age_calculated",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob_unknown",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdateApprox",
+ "type": "check_box",
+ "label": "",
+ "options": [
+ {
+ "key": "dob_unknown",
+ "text": "DOB unknown?",
+ "text_size": "18px",
+ "value": "false"
+ }
+ ]
+ },
+ {
+ "key": "age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "age",
+ "type": "edit_text",
+ "hint": "Age",
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid age"
+ },
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Must be a rounded number"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must begin with 0 and must be a total of 10 digits in length"
+ },
+ "v_max": {
+ "value": "120",
+ "err": "Age must be equal or less than 120"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the age"
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Sex",
+ "values": [
+ "Male",
+ "Female"
+ ],
+ "keys": [
+ "Male",
+ "Female"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the sex"
+ }
+ },
+ {
+ "key": "marital_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "marital_status",
+ "type": "spinner",
+ "hint": "Client's Marital Status?",
+ "values": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "keys": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "openmrs_choice_ids": {
+ "Single": "Single",
+ "Married": "Married",
+ "Divorced": "Divorced",
+ "Widowed": "Widowed",
+ "Cohabitation": "Cohabitation"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Client phone number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ }
+ },
+ {
+ "key": "id_avail",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "id_avail",
+ "type": "check_box",
+ "label": "Do you have any of the following IDs?",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_national_id",
+ "text": "National ID",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_national_id"
+ },
+ {
+ "key": "chk_voters_id",
+ "text": "Voter's registration ID",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_voters_id"
+ },
+ {
+ "key": "chk_drivers_license",
+ "text": "Driver's license",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_drivers_license"
+ },
+ {
+ "key": "chk_passport_number",
+ "text": "Passort",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_passport_number"
+ },
+ {
+ "key": "chk_none",
+ "text": "None",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "national_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "National_ID",
+ "type": "mask_edit_text",
+ "mask": "########-#####-#####-##",
+ "mask_hint": "12345678912345678912",
+ "allowed_chars": "0123456789",
+ "hint": "National ID number e.g 12345678-91234-56789-12",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "23",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid national id"
+ },
+ "v_regex": {
+ "value": "^\\d{8}-\\d{5}-\\d{5}-\\d{2}$",
+ "err": "National ID number should be of the format (XXXXXXXX-XXXXX-XXXXX-XX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid national ID"
+ },
+ "relevance": {
+ "step1:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_national_id"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "voter_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Voter_Registration_Number",
+ "type": "mask_edit_text",
+ "mask": "T-####-####-###-#",
+ "mask_hint": "123456789123",
+ "allowed_chars": "0123456789",
+ "hint": "Voter's registration number e.g T-1234-5678-912-3",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid voters registration"
+ },
+ "v_regex": {
+ "value": "^T-\\d{4}-\\d{4}-\\d{3}-\\d{1}$",
+ "err": "Voter's registration number should be of the format (T-XXXX-XXXX-XXX-X)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid voters registration number"
+ },
+ "relevance": {
+ "step1:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_voters_id"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "driver_license",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Driver_License_Number",
+ "type": "mask_edit_text",
+ "mask": "##########",
+ "mask_hint": "1234567891",
+ "allowed_chars": "0123456789",
+ "hint": "Driver's license number e.g 1234567891",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "10",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid drivers license number"
+ },
+ "v_regex": {
+ "value": "^([0-9]{10})",
+ "err": "Driver's license number should be of the format (XXXXXXXXXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid driver's license number"
+ },
+ "relevance": {
+ "step1:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_drivers_license"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "passport_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Passport",
+ "type": "mask_edit_text",
+ "mask": "TAE-###-###",
+ "mask_hint": "123456",
+ "allowed_chars": "0123456789",
+ "hint": "Passport number e.g TAE-123-456",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "11",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid passport number"
+ },
+ "v_regex": {
+ "value": "^TAE-\\d{3}-\\d{3}$",
+ "err": "Passport number should be of the format (TAE-XXX-XXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid passport number"
+ },
+ "relevance": {
+ "step1:id_avail": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_passport_number"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "insurance_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Health_Insurance_Type",
+ "type": "spinner",
+ "hint": "Health insurance provider",
+ "values": [
+ "Community Health Fund (CHF)/(iCHF)",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
+ "Tiba Kwa Kadi (TIKA)",
+ "AAR Healthcare",
+ "Strategies Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)",
+ "Britam Insurance Tanzania",
+ "Jubilee Insurance",
+ "Resolutions Insurance",
+ "Reliance Insurance",
+ "Other",
+ "None"
+ ],
+ "keys": [
+ "Community Health Fund (CHF)",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
+ "Tiba Kwa Kadi (TIKA)",
+ "AAR Healthcare",
+ "Strategies Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)",
+ "Britam Insurance Tanzania",
+ "Jubilee Insurance",
+ "Resolutions Insurance",
+ "Reliance Insurance",
+ "Other",
+ "None"
+ ],
+ "openmrs_choice_ids": {
+ "Community Health Fund (CHF)": "Community_Health_Fund",
+ "National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
+ "Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
+ "AAR Healthcare": "AAR_Healthcare",
+ "AAR Strategies Insurance": "Strategies_Insurance",
+ "Milvik Tanzania Ltd (BIMA Mkononi)": "BIMA_Mkononi",
+ "Britam Insurance Tanzania": "Britam_Insurance_Tanzania",
+ "Jubilee Insurance": "Jubilee_Insurance",
+ "Resolutions Insurance": "Resolutions_Insurance",
+ "Reliance Insurance": "Reliance_Insurance",
+ "Other": "Other_Health_Insurance_Type",
+ "None": "No_Health_Insurance"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the insurance provider"
+ }
+ },
+ {
+ "key": "insurance_provider_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Health_Insurance_Type",
+ "type": "edit_text",
+ "hint": "Other health insurance provider",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the insurance provider"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "insurance_provider_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Health_Insurance_Number",
+ "type": "edit_text",
+ "hint": "Health insurance provider number",
+ "v_required": {
+ "value": "true",
+ "err": "Please add the health insurance provider iD Number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "wra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "mra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "preg_1yr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "preg_1yr",
+ "type": "spinner",
+ "hint": "Has the woman delivered in the last 1 year?",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select if the woman has delivered in the last 1 year"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "disabilities",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabilities",
+ "type": "spinner",
+ "hint": "Physical disabilities",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "type_of_disability",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "label": "Type of physical disabilities",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Mobility and Physical Impairments",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Spinal Cord Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Head Injuries - Brain Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Vision Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Hearing Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Cognitive or Learning Disabilities",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Psychological Disorders",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Invisible Disabilities",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ },
+ {
+ "key": "albinism",
+ "text": "Albinism",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "albinism"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please enter type of disability"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "has_primary_caregiver",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Has_Primary_Caregiver",
+ "type": "spinner",
+ "hint": " Do you have a primary caregiver/Treatment supporter?",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "primary_caregiver_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Primary_Caregiver_Name",
+ "type": "edit_text",
+ "hint": "Name of caregiver",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the name of the caregiver."
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_phone_number",
+ "type": "edit_text",
+ "hint": "Primary caregiver phone number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "service_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_provider",
+ "type": "native_radio",
+ "label": "Occupation of the Client",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "chk_self_employed",
+ "text": "Self-Employed",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_self_employed"
+ },
+ {
+ "key": "chk_employed",
+ "text": "Employed",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_employed"
+ },
+ {
+ "key": "chk_unemployed",
+ "text": "Unemployed",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_unemployed"
+ },
+ {
+ "key": "chk_farmer",
+ "text": "Farmer",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_farmer"
+ },
+ {
+ "key": "chk_traditional_healer",
+ "text": "Traditional healer",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_traditional_healer"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please pick at least one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "leader",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Community_Leader",
+ "type": "check_box",
+ "label": "Any leadership role in the community?",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_religious",
+ "text": "Religious leader",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Religious_Leader"
+ },
+ {
+ "key": "chk_traditional",
+ "text": "Traditional leader",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Traditional_leader"
+ },
+ {
+ "key": "chk_political",
+ "text": "Political leader",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Political_leader"
+ },
+ {
+ "key": "chk_influential",
+ "text": "Influential leader",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Influential_Leader"
+ },
+ {
+ "key": "chk_other",
+ "text": "Other",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Community_Leader_Type"
+ },
+ {
+ "key": "chk_none",
+ "text": "None",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Not_a_Community_Leader"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please pick at least one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "all_clients_member_update_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "leader_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "Other_Community_Leader_Type_Name",
+ "type": "edit_text",
+ "hint": "Mention other role in the community",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify role"
+ },
+ "relevance": {
+ "step1:leader": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_other"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_counselling.json b/opensrp-chw-hf/src/main/assets/json.form/anc_counselling.json
new file mode 100644
index 0000000000..e6ca0039ae
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_counselling.json
@@ -0,0 +1,151 @@
+{
+ "count": "1",
+ "encounter_type": "ANC Counselling",
+ "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"
+ },
+ "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": "Counselling",
+ "fields": [
+ {
+ "key": "given_counselling",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "given_counselling",
+ "type": "check_box",
+ "label": "Select the topics counseled on this visit",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_sexual_relationship",
+ "text": "Sexual relationship",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_sexual_relationship"
+ },
+ {
+ "key": "chk_birth_emergency_plan",
+ "text": "Birth and emergency plan",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_birth_emergency_plan"
+ },
+ {
+ "key": "chk_danger_signs",
+ "text": "Danger signs",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_danger_signs"
+ },
+ {
+ "key": "chk_discussion_std_hiv",
+ "text": "Discussion on STI/RTI/HIV",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_discussion_std_hiv"
+ },
+ {
+ "key": "chk_condom_use",
+ "text": "Condom use",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_condom_use"
+ },
+ {
+ "key": "chk_advice_gravid",
+ "text": "Advice on common gravid discomfort",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_advice_gravid"
+ },
+ {
+ "key": "chk_self_care",
+ "text": "Self care",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_self_care"
+ },
+ {
+ "key": "chk_healthy_eating",
+ "text": "Healthy eating",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_healthy_eating"
+ },
+ {
+ "key": "chk_physical_activity",
+ "text": "Physical activity",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_physical_activity"
+ },
+ {
+ "key": "chk_use_folic_acid",
+ "text": "Daily use of Iron folic acid",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_use_folic_acid"
+ },
+ {
+ "key": "chk_counsel_llin",
+ "text": "Provide and counsel on use of LLIN",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_counsel_llin"
+ },
+ {
+ "key": "chk_child_feeding",
+ "text": "Child Feeding",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_child_feeding"
+ },
+ {
+ "key": "chk_none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_none"
+ }
+ ]
+ },
+ {
+ "key": "counselling_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "counselling_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_danger_signs_outcome.json b/opensrp-chw-hf/src/main/assets/json.form/anc_danger_signs_outcome.json
index 9cbcc0103b..0e898584da 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_danger_signs_outcome.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_danger_signs_outcome.json
@@ -18,11 +18,6 @@
"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",
@@ -97,7 +92,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "anc_key_info",
"type": "toaster_notes",
- "text": "Key information for health facility:\nLast menstrual period: (LNMP)\nGestational age: {gest_age}\nEDD: {edd}",
+ "text": "Key information for health facility:\nLast normal menstrual period: (LNMP)\nGestational age: {gest_age}\nEDD: {edd}",
"toaster_type": "info",
"calculation": {
"rules-engine": {
@@ -111,76 +106,65 @@
"key": "danger_signs_present",
"type": "check_box",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160939AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "danger_signs_present",
"openmrs_entity_parent": "",
"label": "What dangers sign did the woman have?",
"combine_checkbox_option_values": "true",
"options": [
{
"key": "Fever",
- "openmrs_choice_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Fever",
- "value": false
+ "openmrs_choice_id": "Fever",
+ "text": "Fever"
},
{
"key": "Bleeding_vaginally",
- "openmrs_choice_id": "150802AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Bleeding vaginally",
- "value": false
+ "openmrs_choice_id": "Bleeding_vaginally",
+ "text": "Bleeding vaginally"
},
{
"key": "Severe_headache",
- "openmrs_choice_id": "139081AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Severe headache",
- "value": false
+ "openmrs_choice_id": "Severe_headache",
+ "text": "Severe headache"
},
{
"key": "Convulsions",
- "openmrs_choice_id": "164483AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Convulsions",
- "value": false
+ "openmrs_choice_id": "Convulsions",
+ "text": "Convulsions"
},
{
"key": "Difficulty_breathing",
- "openmrs_choice_id": "142373AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Difficulty breathing",
- "value": false
+ "openmrs_choice_id": "Difficulty_breathing",
+ "text": "Difficulty breathing"
},
{
"key": "Severe_abdominal_pain",
- "openmrs_choice_id": "165271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Severe abdominal pain",
- "value": false
+ "openmrs_choice_id": "Severe_abdominal_pain",
+ "text": "Severe abdominal pain"
},
{
"key": "Swelling_of_the_face_and/or_hands",
- "openmrs_choice_id": "460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Swelling of the face and/or hands",
- "value": false
+ "openmrs_choice_id": "Swelling_of_the_face_and",
+ "text": "Swelling of the face and/or hands"
},
{
"key": "Discoloured_or_watery_liquid_vaginal_discharge_with_a_bad_smell",
- "openmrs_choice_id": "123395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Discoloured or watery, liquid vaginal discharge with a bad smell",
- "value": false
+ "openmrs_choice_id": "Discoloured_or_watery_liquid_vaginal_discharge_with_a_bad_smell",
+ "text": "Discoloured or watery, liquid vaginal discharge with a bad smell"
},
{
"key": "No_movement_unusual_movement_for_a_child_in_the_womb",
- "openmrs_choice_id": "113377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "No movement / unusual movement for a child in the womb",
- "value": false
+ "openmrs_choice_id": "No_movement_unusual_movement_for_a_child_in_the_womb",
+ "text": "No movement / unusual movement for a child in the womb"
},
{
"key": "Other",
- "openmrs_choice_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Other",
- "value": false
+ "openmrs_choice_id": "Other",
+ "text": "Other"
},
{
"key": "None",
- "openmrs_choice_id": "",
- "text": "None",
- "value": false
+ "openmrs_choice_id": "None",
+ "text": "None"
}
],
"exclusive": [
@@ -195,7 +179,7 @@
"key": "other_anc_danger_signs",
"type": "edit_text",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "other_anc_danger_signs",
"openmrs_entity_parent": "",
"edit_type": "name",
"hint": "Other danger sign",
@@ -215,28 +199,28 @@
"key": "action_taken_anc_danger_signs",
"type": "native_radio",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164378AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "action_taken_anc_danger_signs",
"openmrs_entity_parent": "",
"label": "Action taken by health facility",
"options": [
{
"key": "No_action_taken",
"openmrs_entity": "",
- "openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "No_action_taken",
"openmrs_entity_parent": "",
"text": "No action taken"
},
{
"key": "Managed",
"openmrs_entity": "",
- "openmrs_entity_id": "1692AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "Managed",
"openmrs_entity_parent": "",
"text": "Managed"
},
{
"key": "Referred",
"openmrs_entity": "",
- "openmrs_entity_id": "1648AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "Referred",
"openmrs_entity_parent": "",
"text": "Referred"
}
@@ -257,14 +241,14 @@
{
"key": "Discharged",
"openmrs_entity": "",
- "openmrs_entity_id": "1654AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "Discharged",
"openmrs_entity_parent": "",
"text": "Discharged"
},
{
"key": "Died",
"openmrs_entity": "",
- "openmrs_entity_id": "159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "Died",
"openmrs_entity_parent": "",
"text": "Died"
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_fv_baseline_investigation.json b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_baseline_investigation.json
new file mode 100644
index 0000000000..373042d3a7
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_baseline_investigation.json
@@ -0,0 +1,1321 @@
+{
+ "count": "1",
+ "encounter_type": "Baseline Investigation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Baseline Investigation",
+ "fields": [
+ {
+ "key": "glucose_in_urine",
+ "type": "native_radio",
+ "label": "Glucose In Urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "glucose_in_urine",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Glucose In Urine Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_glucose_in_urine",
+ "type": "toaster_notes",
+ "text": "Check Random Blood Glucose to rule-out gestational diabetes ",
+ "openmrs_entity_id": "prompt_for_glucose_in_urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:glucose_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_glucose_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_glucose_in_urine_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Glucose In Urine test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:glucose_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_glucose_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_glucose_in_urine_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Glucose In Urine test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_glucose_in_urine_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "protein_in_urine",
+ "type": "native_radio",
+ "label": "Protein In Urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "protein_in_urine",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Protein In Urine Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_protein_in_urine",
+ "type": "toaster_notes",
+ "text": "Monitor Blood Pressure to rule out pre-eclampsia, elicit symptoms of Urinary Tract Infection and manage the cause of proteinuria according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_protein_in_urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:protein_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_protein_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_protein_in_urine_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Protein In Urine test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:protein_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_protein_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_protein_in_urine_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Protein In Urine test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_protein_in_urine_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "blood_group",
+ "type": "spinner",
+ "hint": "Blood Group",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_group",
+ "openmrs_entity_parent": "",
+ "values": [
+ "A",
+ "B",
+ "AB",
+ "O",
+ "Blood Type Test Not Conducted"
+ ],
+ "keys": [
+ "A",
+ "B",
+ "AB",
+ "O",
+ "test_not_conducted"
+ ],
+ "openmrs_choice_ids": {
+ "A": "A",
+ "B": "B",
+ "AB": "AB",
+ "O": "O",
+ "test_not_conducted": "test_not_conducted"
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_blood_group_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_blood_group_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Blood Type Test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:blood_group": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_blood_group_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_blood_group_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting the Blood Type Test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_blood_group_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "rh_factor",
+ "type": "native_radio",
+ "label": "Rh",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rh_factor",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_rh_factor",
+ "type": "toaster_notes",
+ "text": "Refer the client for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:rh_factor": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "hb_level_test",
+ "type": "native_radio",
+ "label": "HB Level Test",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "HB Level Test conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "HB Level Test not conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "hb_level",
+ "type": "edit_text",
+ "hint": "HB Level (g/dl)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the HB level"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "HB level must be equal or greater than 0 (g/dl)"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "HB level must be equal or less than 20 (g/dl)"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the HB level"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_severe_anaemia_treatment",
+ "type": "toaster_notes",
+ "text": "Manage the severe anaemia according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_severe_anaemia_treatment",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hb_level": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"8.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_moderate_anaemia_management",
+ "type": "toaster_notes",
+ "text": "Manage the mild anaemia according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_moderate_anaemia_management",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hb_test",
+ "type": "spinner",
+ "hint": "Reason as to why the HB Level test was not conducted",
+ "values": [
+ "Cuvette Cartridges Out of Stock",
+ "Haemoque machine out of order",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other"
+ ],
+ "keys": [
+ "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "stock_out_of_cuvettes_cartridges": "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order": "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_hb_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_hb_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting the HB Level Test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hb_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "blood_for_glucose_test",
+ "type": "native_radio",
+ "label": "Blood For Glucose Test",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_for_glucose_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "Blood for Glucose Test conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Blood for Glucose Test not conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "type_of_blood_for_glucose_test",
+ "type": "native_radio",
+ "label": "Type Of Blood For Glucose Test Conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_blood_for_glucose_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "rbg",
+ "text": " Random Blood Glucose Test (rbg)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rbg",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "gtt",
+ "text": "Glucose Tolerance test (GTT)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gtt"
+ },
+ {
+ "key": "fbg",
+ "text": "Fasting Blood Glucose Test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fbg"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:blood_for_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "blood_for_glucose",
+ "type": "edit_text",
+ "hint": "Blood For Glucose (mmol/L)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_for_glucose",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the blood for glucose (mmol/L)"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Blood for glucose must be equal or greater than 0 (mmol/L)"
+ },
+ "v_max": {
+ "value": "45",
+ "err": "Blood for glucose must be equal or less than 45 (mmol/L)"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the blood for glucose (mmol/L)"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_gestational_diabetes_mellitus",
+ "type": "toaster_notes",
+ "text": "Manage the gestational diabetes mellitus according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_gestational_diabetes_mellitus",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_hypoglycaemia",
+ "type": "toaster_notes",
+ "text": "Manage the hypoglycaemia according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_hypoglycaemia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_blood_glucose_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_blood_glucose_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Blood for Glucose test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_are_out_of_stock": "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:blood_for_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_blood_glucose_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_blood_glucose_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting the Blood for Glucose test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_blood_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "hiv",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_qn",
+ "type": "native_radio",
+ "label": "HIV Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_qn",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "HIV Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hiv_test",
+ "type": "spinner",
+ "hint": "Reason as to why the HIV test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:hiv_qn": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_hiv_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting HIV test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hiv_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "register_pmtct",
+ "type": "toaster_notes",
+ "text": "Register the client for PMTCT care and follow up",
+ "openmrs_entity_id": "register_pmtct",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hiv_qn": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prescribe_arv",
+ "type": "toaster_notes",
+ "text": "Prescribe ARVs to the client according to standard guidelines",
+ "openmrs_entity_id": "prescribe_arv",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hiv_qn": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_counselling_before_testing",
+ "type": "native_radio",
+ "label": "Was the client provided with counselling before HIV testing?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_counselling_before_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_counselling_after_testing",
+ "type": "native_radio",
+ "label": "Was the client provided with counselling after HIV testing?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_counselling_after_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "syphilis",
+ "type": "native_radio",
+ "label": "Syphilis Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Syphilis Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "prescribe_anti_sy",
+ "type": "toaster_notes",
+ "text": "Prescribe client to Antibiotics",
+ "openmrs_entity_id": "prescribe_anti_sy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_syphilis_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Syphilis test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_syphilis_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Syphilis test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_syphilis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "syphilis_treatment",
+ "type": "native_radio",
+ "label": "Was syphilis treatment provided?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis_treatment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "hepatitis",
+ "type": "native_radio",
+ "label": "Hepatitis B Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hepatitis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Hepatitis B Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "prescribe_arv_hepb_at_above_twenty_eight",
+ "type": "toaster_notes",
+ "text": "Prescribe ARVs to the client according to standard guidelines",
+ "openmrs_entity_id": "prescribe_arv_hepb_at_above_twenty_eight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "counsel_arv_hepb_below_twenty_eight",
+ "type": "toaster_notes",
+ "text": "Counsel on ARVs uptake at 28-weeks of gestation",
+ "openmrs_entity_id": "counsel_arv_hepb_below_twenty_eight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hepatitis_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Hepatitis B test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:hepatitis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_hepatitis_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Hepatitis B test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hepatitis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "other_stds",
+ "type": "native_radio",
+ "label": "Has the client tested positive for other STIs?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_stds",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ]
+ },
+ {
+ "key": "other_stds_treatment",
+ "type": "native_radio",
+ "label": "Was treatment provided for other STIs?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_stds_treatment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:other_stds": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_medication_for_other_stds",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_medication_for_other_stds",
+ "type": "spinner",
+ "hint": "Reason as to why treatment was not given",
+ "values": [
+ "Out of stock",
+ "The client did not agree to take the medication",
+ "The client is allergic to medication",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:other_stds_treatment": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_giving_medication_for_other_stds",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_giving_medication_for_other_stds",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not giving treatment",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_medication_for_other_stds": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "date_anc_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "date_anc_hiv_test",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_test_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_number",
+ "type": "hidden"
+ },
+ {
+ "key": "hiv_test_at_32",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_at_32",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_baseline_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "baseline_investigation_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "baseline_investigation_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_fv_malaria_investigation_form.json b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_malaria_investigation_form.json
new file mode 100644
index 0000000000..f557315093
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_malaria_investigation_form.json
@@ -0,0 +1,371 @@
+{
+ "count": "1",
+ "encounter_type": "Malaria Investigation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {
+ "llin_provided": false
+ },
+ "step1": {
+ "title": "Malaria Investigation",
+ "fields": [
+ {
+ "key": "client_on_malaria_medication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_on_malaria_medication",
+ "type": "native_radio",
+ "label": "Is the client on malaria medication?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "mRDT_for_malaria",
+ "type": "native_radio",
+ "label": "mRDT for Malaria Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mRDT_for_malaria",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Malaria Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "step1:client_on_malaria_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "prompt_for_mRDT",
+ "type": "toaster_notes",
+ "text": "Provide anti-malaria medication and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_mRDT",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:mRDT_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_malaria_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_malaria_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Malaria test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:mRDT_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_malaria_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_malaria_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Malaria test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_malaria_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy",
+ "type": "hidden",
+ "openmrs_entity_id": "malaria_preventive_therapy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy_ipt1",
+ "type": "native_radio",
+ "openmrs_entity_id": "malaria_preventive_therapy_ipt1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Malaria Preventive Therapy",
+ "options": [
+ {
+ "key": "ipt1",
+ "text": "IPT1",
+ "openmrs_entity_id": "ipt1",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "medication_not_given",
+ "text": "Malaria preventive therapy not given",
+ "openmrs_entity_id": "medication_not_given",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the medication for Malaria Preventive Therapy"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_malaria_medication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_malaria_medication",
+ "type": "spinner",
+ "hint": "Reason as to why the Malaria medication was not given",
+ "values": [
+ "Out of stock",
+ "The client did not agree to take the medication",
+ "The client is allergic to medication",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_reason_malaria_medication_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_malaria_medication_not_given",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not giving the Malaria medication",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_malaria_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "llin_provision",
+ "type": "native_radio",
+ "openmrs_entity_id": "llin_provision",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Was the client provided with LLINs (Long lasting insecticidal nets)?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "reason_for_not_providing_llin",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_llin",
+ "type": "spinner",
+ "hint": "Reason as to why the client was not provided with LLINs",
+ "values": [
+ "Out of stock",
+ "The client refused",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "the_client_refused",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "the_client_refused": "the_client_refused",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:llin_provision": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_llin_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_llin_not_given",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not providing the LLINs",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_providing_llin": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "malaria_investigation_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "malaria_investigation_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_fv_medical_and_surgical_history.json b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_medical_and_surgical_history.json
new file mode 100644
index 0000000000..7b41a16f97
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_medical_and_surgical_history.json
@@ -0,0 +1,476 @@
+{
+ "count": "1",
+ "encounter_type": "Medical and Surgical History",
+ "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"
+ },
+ "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": "Medical and Surgical History",
+ "fields": [
+ {
+ "key": "medical_surgical_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medical_surgical_history",
+ "type": "check_box",
+ "label": "Any Medical and surgical History of the Patient?",
+ "combine_checkbox_option_values": "true",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "diabetes_mellitus",
+ "text": "Diabetes Mellitus",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "diabetes_mellitus"
+ },
+ {
+ "key": "sickle_cell_disease",
+ "text": "Sickle Cell Disease",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sickle_cell_disease"
+ },
+ {
+ "key": "heart_diseases",
+ "text": "Heart Diseases",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heart_diseases"
+ },
+ {
+ "key": "thyroid_diseases",
+ "text": "Thyroid Diseases",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "thyroid_diseases"
+ },
+ {
+ "key": "blood_transfusion",
+ "text": "Blood transfusion",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_transfusion"
+ },
+ {
+ "key": "known_on_art",
+ "text": "On ART",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_on_art"
+ },
+ {
+ "key": "epilepsy",
+ "text": "Epilepsy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "epilepsy"
+ },
+ {
+ "key": "previous_c_s",
+ "text": "Previous C/S",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "previous_c_s"
+ },
+ {
+ "key": "myomectomy",
+ "text": "Myomectomy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "myomectomy"
+ },
+ {
+ "key": "third_degree_tear",
+ "text": "Third Degree Tear",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "third_degree_tear"
+ },
+ {
+ "key": "repaired_fistula",
+ "text": "Repaired Fistula",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "repaired_fistula"
+ },
+ {
+ "key": "female_genital_mutilation",
+ "text": "Female Genital Mutilation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_genital_mutilation"
+ },
+ {
+ "key": "closely_spaced_pregnancy",
+ "text": "Closely spaced pregnancy (within 2 years)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "closely_spaced_pregnancy"
+ },
+ {
+ "key": "pregnant_more_than_four",
+ "text": "Pregnant four or more times",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnant_more_than_four"
+ },
+ {
+ "key": "hx_hemorrhage",
+ "text": "History of Hemorrhage",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hx_hemorrhage"
+ },
+ {
+ "key": "history_of_high_blood_pressure",
+ "text": "History of high blood pressure",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "history_of_high_blood_pressure"
+ },
+ {
+ "key": "anaemia",
+ "text": "Anaemia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anaemia"
+ },
+ {
+ "key": "difficult_delivery",
+ "text": "Difficult delivery (Vacuum, episiotomy)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "difficult_delivery"
+ },
+ {
+ "key": "hx_abortions",
+ "text": "History of Abortions",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hx_abortions"
+ },
+ {
+ "key": "other",
+ "text": "Others (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ]
+ },
+ {
+ "key": "other_medical_surgical_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_medical_surgical_history",
+ "type": "edit_text",
+ "hint": "Specify other medical and surgical history",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the other medical surgical history"
+ },
+ "relevance": {
+ "step1:medical_surgical_history": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "CTC Number",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "CTC number should be of the format (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC Number"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid CTC Number"
+ },
+ "relevance": {
+ "step1:medical_surgical_history": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "known_on_art"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "gravida",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gravida",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "parity",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "parity",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "no_surv_children",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_surv_children",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gravida_read_only",
+ "type": "edit_text",
+ "read_only": "true",
+ "hint": "Gravida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gravida_read_only",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "parity_read_only",
+ "type": "edit_text",
+ "read_only": "true",
+ "hint": "Parity",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "parity_read_only",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "no_surv_children_read_only",
+ "type": "edit_text",
+ "read_only": "true",
+ "hint": "Number of living children",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_surv_children_read_only",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gravida_text",
+ "type": "edit_text",
+ "hint": "Gravida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gravida_text",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the gravida number"
+ },
+ "v_max": {
+ "value": "35",
+ "err": "Gravida must be equal to or less than 35"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please answer"
+ }
+ },
+ {
+ "key": "parity_text",
+ "type": "edit_text",
+ "hint": "Parity",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "parity_text",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter parity number"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:gravida_text)",
+ "err": "Parity must be less than gravida"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please answer"
+ }
+ },
+ {
+ "key": "prompt_for_grand_multiparity",
+ "type": "toaster_notes",
+ "text": "Counsel on the risk of uterine rupture and closely monitor the client",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "no_surv_children_text",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_surv_children_text",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of living children",
+ "v_required": {
+ "value": true,
+ "err": "Please answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "known_on_art",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_on_art",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_medical_and_surgical_history_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "openmrs_entity_parent": "",
+ "value": 1
+ },
+ {
+ "key": "medical_surgical_history_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medical_surgical_history_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_fv_obstetric_examination.json b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_obstetric_examination.json
new file mode 100644
index 0000000000..f5a1a41977
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_obstetric_examination.json
@@ -0,0 +1,730 @@
+{
+ "count": "1",
+ "encounter_type": "Obstetric Examination",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Obstetric Examination",
+ "fields": [
+ {
+ "key": "gest_age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Weight (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the weight"
+ },
+ "v_min": {
+ "value": "20",
+ "err": "The weight must be equal or greater than 20 (KG)"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "The weight must be equal or less than 300 (KG)"
+ }
+ },
+ {
+ "key": "height",
+ "type": "edit_text",
+ "hint": "Height (CM)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "height",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the height"
+ },
+ "v_min": {
+ "value": "60",
+ "err": "The height must be equal or greater than 60 (CM)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "The height must be equal or less than 200 (CM)"
+ }
+ },
+ {
+ "key": "prompt_for_short_stature",
+ "type": "toaster_notes",
+ "text": "Counsel the client on her risk of obstructed labour and advise her to deliver at a health care facility",
+ "openmrs_entity_id": "prompt_for_short_stature",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:height": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"145\")"
+ }
+ }
+ },
+ {
+ "key": "bmi",
+ "type": "edit_text",
+ "hint": "Body Mass Index (BMI)",
+ "read_only": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bmi",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the height"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the height"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_underweight",
+ "type": "toaster_notes",
+ "text": "Manage the undernourished client using standard guidelines",
+ "openmrs_entity_id": "prompt_for_underweight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:bmi": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"18.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_overweight",
+ "type": "toaster_notes",
+ "text": "Manage the overweight client using standard guidelines",
+ "openmrs_entity_id": "prompt_for_overweight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:bmi": {
+ "type": "numeric",
+ "ex": "greaterThanEqualTo(.,\"29\")"
+ }
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Blood Pressure)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the systolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Systolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Systolic value must be equal or less than 320"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Blood Pressure)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the diastolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Diastolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Diastolic value must be equal or less than 200"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "The diastolic value must be less than the systolic value"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Manage the hypertension according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of hypotension and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pulse_rate",
+ "type": "edit_text",
+ "hint": "Pulse Rate (Beats per minute)",
+ "openmrs_entity_id": "pulse_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the pulse rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The pulse rate must be equal or greater than 0 (bpm)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "The pulse rate must be equal or less than 200 (bpm)"
+ }
+ },
+ {
+ "key": "prompt_for_Bradycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of bradycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Bradycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"60\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_Tachycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of tachycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Tachycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"100\")"
+ }
+ }
+ },
+ {
+ "key": "temperature",
+ "type": "edit_text",
+ "hint": "Temperature (\u2103)",
+ "openmrs_entity_id": "temperature",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the temperature"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Temperature must be equal or greater than 10"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Temperature must be equal or less than 50"
+ }
+ },
+ {
+ "key": "notify_client_has_fever",
+ "type": "toaster_notes",
+ "text": "Conduct relevant laboratory tests to elicit the cause of fever and manage according to standard guidelines ",
+ "openmrs_entity_id": "notify_client_has_fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"37.8\")"
+ }
+ }
+ },
+ {
+ "key": "notify_client_has_hypothermia",
+ "type": "toaster_notes",
+ "text": "Manage the hypothermia according to standard guidelines",
+ "openmrs_entity_id": "notify_client_has_hypothermia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"36.5\")"
+ }
+ }
+ },
+ {
+ "key": "abdominal_scars",
+ "type": "native_radio",
+ "label": "Are there any lower abdominal caesarian scars?",
+ "openmrs_entity_id": "abdominal_scars",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_abdominal_scars",
+ "type": "toaster_notes",
+ "text": "Counsel the client on her risk of uterine rupture during labour and advise her to deliver at a health care facility",
+ "openmrs_entity_id": "prompt_for_abdominal_scars",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:abdominal_scars": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "abdominal_movement_with_respiration",
+ "type": "native_radio",
+ "label": "Does the Abdomen Move with respiration",
+ "openmrs_entity_id": "abdominal_movement_with_respiration",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_abdominal_movement_with_respiration",
+ "type": "toaster_notes",
+ "text": "Refer the client for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:abdominal_movement_with_respiration": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "abdominal_contour",
+ "type": "spinner",
+ "hint": "Abdominal Contour",
+ "label_info_title": "Abdominal Contour",
+ "label_info_text": "Observe the shape of the abdomen",
+ "openmrs_entity_id": "abdominal_contour",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "Distended",
+ "Normal Contour"
+ ],
+ "keys": [
+ "distended",
+ "normal_contour"
+ ],
+ "openmrs_choice_ids": {
+ "distended": "distended",
+ "normal_contour": "normal_contour"
+ }
+ },
+ {
+ "key": "fundal_height",
+ "type": "edit_text",
+ "openmrs_entity_id": "fundal_height",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Fundal Height (CM)",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the fundal height"
+ },
+ "v_min": {},
+ "v_max": {
+ "value": "50",
+ "err": "Fundal height must be equal or less than 50 CM"
+ }
+ },
+ {
+ "key": "lie",
+ "type": "spinner",
+ "openmrs_entity_id": "lie",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Lie",
+ "values": [
+ "Transverse",
+ "Oblique",
+ "Longitudinal"
+ ],
+ "keys": [
+ "transverse",
+ "oblique",
+ "longitudinal"
+ ],
+ "openmrs_choice_ids": {
+ "transverse": "transverse",
+ "oblique": "oblique",
+ "longitudinal": "longitudinal"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_lie",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "presentation",
+ "type": "spinner",
+ "openmrs_entity_id": "presentation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Presentation",
+ "values": [
+ "Breech Presentation",
+ "Cephalic Presentation"
+ ],
+ "keys": [
+ "breech",
+ "cephalic"
+ ],
+ "openmrs_choice_ids": {
+ "breech": "breech",
+ "cephalic": "cephalic"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_presentation",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "fetal_heart_rate",
+ "type": "edit_text",
+ "hint": "Count Fetal Heart Rate(bpm)",
+ "openmrs_entity_id": "fetal_heart_rate",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the fetal heart rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Fetal heart rate must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Fetal heart rate must be equal or less than 300"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_fetal_distress",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "prompt_for_fetal_distress",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_obstetric_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "abnormal_vaginal_discharge",
+ "type": "native_radio",
+ "label": "Abnormal Vaginal Discharge",
+ "openmrs_entity_id": "abnormal_vaginal_discharge",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_vaginal_discharge",
+ "type": "toaster_notes",
+ "text": "Identify the cause of vaginal discharge and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_vaginal_discharge",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:abnormal_vaginal_discharge": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "vaginal_sores",
+ "type": "native_radio",
+ "label": "Vaginal Sores",
+ "openmrs_entity_id": "vaginal_sores",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_vaginal_sores",
+ "type": "toaster_notes",
+ "text": "Identify the cause of vaginal sores and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_vaginal_sores",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:vaginal_sores": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "vaginal_swelling",
+ "type": "native_radio",
+ "label": "Vaginal Swelling",
+ "openmrs_entity_id": "vaginal_swelling",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_vaginal_swelling",
+ "type": "toaster_notes",
+ "text": "Identify the cause of vaginal swelling and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_vaginal_swelling",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:vaginal_swelling": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "obstetric_examination_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "obstetric_examination_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_fv_tb_screening.json b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_tb_screening.json
new file mode 100644
index 0000000000..6dee8fd1b5
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_tb_screening.json
@@ -0,0 +1,364 @@
+{
+ "count": "1",
+ "encounter_type": "ANC TB Screening",
+ "entity_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "TB Screening",
+ "fields": [
+ {
+ "key": "on_tb_treatment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "on_tb_treatment",
+ "type": "native_radio",
+ "label": "Is the client on TB treatment?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ]
+ },
+ {
+ "key": "tb_registration_number",
+ "type": "edit_text",
+ "openmrs_entity_id": "tb_registration_number",
+ "hint": "TB Clinic Number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "step1:on_tb_treatment": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the clients TB Clinic Number"
+ }
+ },
+ {
+ "key": "was_client_screened_for_tb",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "was_client_screened_for_tb",
+ "type": "native_radio",
+ "label": "Was the client screened for TB?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one of the answer"
+ },
+ "relevance": {
+ "step1:on_tb_treatment": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "tb_symptoms_screening",
+ "type": "check_box",
+ "label": "Please select if the client has any of the following TB symptoms",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "tb_symptoms_screening",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_cough",
+ "text": "Cough for two or more weeks",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_cough"
+ },
+ {
+ "key": "chk_sputum",
+ "text": "Coughing up blood-stained sputum (hemoptysis)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_sputum"
+ },
+ {
+ "key": "chk_fevers",
+ "text": "Fevers for two or more weeks?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_fevers"
+ },
+ {
+ "key": "chk_weight_loss",
+ "text": "Noticeable weight loss for new patients or 3 kgs",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_weight_loss"
+ },
+ {
+ "key": "chk_weight_loss_subsequent_visit",
+ "text": "Weight loss in a month (subsequent visit)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_weight_loss_subsequent_visit"
+ },
+ {
+ "key": "chk_excessive_sweating",
+ "text": "Excessive sweating at night for two or more weeks",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_excessive_sweating"
+ },
+ {
+ "key": "chk_none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the topic(s)"
+ },
+ "relevance": {
+ "step1:was_client_screened_for_tb": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "investigate_for_tb",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "investigate_for_tb",
+ "type": "native_radio",
+ "label": "Investigate for TB",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:tb_symptoms_screening": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_cough",
+ "chk_sputum",
+ "chk_fevers",
+ "chk_weight_loss",
+ "chk_weight_loss_subsequent_visit",
+ "chk_excessive_sweating"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_tb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_tb_test",
+ "type": "spinner",
+ "hint": "Reason as to why the TB test was not conducted",
+ "values": [
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:investigate_for_tb": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_tb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_tb_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting TB test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_tb_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_other_treatment",
+ "type": "toaster_notes",
+ "text": "Refer the client for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:investigate_for_tb": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_tb_treatment",
+ "type": "toaster_notes",
+ "text": "Refer the client for TB treatment",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:investigate_for_tb": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_screening_for_tb",
+ "type": "toaster_notes",
+ "text": "Please screen the client for TB and manage according standard guideline",
+ "openmrs_entity_id": "prompt_for_screening_for_tb",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:was_client_screened_for_tb": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "tb_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_status",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_tb_screening_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "tb_screening_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_screening_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_fv_tt_vaccination.json b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_tt_vaccination.json
new file mode 100644
index 0000000000..4df8ae9854
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_fv_tt_vaccination.json
@@ -0,0 +1,173 @@
+{
+ "count": "1",
+ "encounter_type": "Vaccination",
+ "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"
+ },
+ "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": "Td Vaccination",
+ "fields": [
+ {
+ "key": "completed_tt_vaccination",
+ "type": "native_radio",
+ "label": "Has the client completed all vaccinations for Td?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "completed_tt_vaccination",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "text": "Yes",
+ "key": "yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ]
+ },
+ {
+ "key": "tt_vaccination",
+ "type": "native_radio",
+ "label": "Has the client been vaccinated for Td?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt_vaccination",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "text": "Yes",
+ "key": "yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "relevance": {
+ "step1:completed_tt_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "tt1_vaccination_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Provide Td1 vaccination dose and follow-up immunization doses to the client according to immunization schedule",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:tt_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "tt_vaccination_type",
+ "type": "check_box",
+ "label": "What Td Vaccinations were given?",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt_vaccination_type",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "text": "Td1",
+ "key": "tt1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt1"
+ },
+ {
+ "key": "tt2",
+ "text": "Td2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt2"
+ },
+ {
+ "key": "tt3",
+ "text": "Td3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt3"
+ },
+ {
+ "key": "tt4",
+ "text": "Td4",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt4"
+ },
+ {
+ "key": "tt5",
+ "text": "Td5",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt5"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "step1:tt_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "tt_vaccination_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt_vaccination_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_counselling.json b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_counselling.json
index e85a438b25..69944b4418 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_counselling.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_counselling.json
@@ -15,11 +15,6 @@
"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",
@@ -53,133 +48,107 @@
"key": "counselling_given",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1379AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "counselling_given",
"type": "check_box",
"label": "Counselling provided to the mother and family members ",
"label_text_style": "normal",
"text_color": "#C0C0C0",
- "exclusive": [
- "chk_none"
- ],
"options": [
{
"key": "chk_attended_anc_contacts",
- "text": "1. Attend ANC contacts early",
- "value": false,
+ "text": "Attend ANC contacts early",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161013AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_attended_anc_contacts"
},
{
"key": "chk_anc_danger_signs",
- "text": "2. Pregnancy danger signs",
- "value": false,
+ "text": "Pregnancy danger signs",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161050AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_anc_danger_signs"
},
{
"key": "chk_maternal_nutrition",
- "text": "3. Maternal nutrition during pregnancy and breast feeding",
- "value": false,
+ "text": "Maternal nutrition during pregnancy and breast feeding",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1380AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_maternal_nutrition"
},
{
"key": "chk_personal_delivery",
- "text": "4. Personal delivery plan",
- "value": false,
+ "text": "Personal delivery plan",
"openmrs_entity": "concept",
- "openmrs_entity_id": "5630AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_personal_delivery"
},
{
"key": "chk_hiv_aids",
- "text": "5. HIV/AIDS general information",
- "value": false,
+ "text": "HIV/AIDS general information",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_hiv_aids"
},
{
"key": "chk_pmtct_for_mother",
- "text": "6. PMTCT for the mother",
- "value": false,
+ "text": "PMTCT for the mother",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_pmtct_for_mother"
},
{
"key": "chk_preventing_malaria",
- "text": "7. Preventing malaria for pregnant mothers",
- "value": false,
+ "text": "Preventing malaria for pregnant mothers",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164884AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_preventing_malaria"
},
{
"key": "chk_physical_changes",
- "text": "8. Physical changes for a mother after giving birth",
- "value": false,
+ "text": "Physical changes for a mother after giving birth",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162093AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_physical_changes"
},
{
"key": "chk_pnc_danger_signs",
- "text": "10. PNC danger signs",
- "value": false,
+ "text": "PNC danger signs",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161541AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_pnc_danger_signs"
},
{
"key": "chk_care_of_infant",
- "text": "11. Care of infant after birth",
- "value": false,
+ "text": "Care of infant after birth",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160413AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_care_of_infant"
},
{
"key": "chk_infant_danger_signs",
- "text": "14. Infant danger signs",
- "value": false,
+ "text": "Infant danger signs",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161071AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_infant_danger_signs"
},
{
"key": "chk_hiv_exposed_infant",
- "text": "15. Follow-up for the HIV-exposed infant",
- "value": false,
+ "text": "Follow-up for the HIV-exposed infant",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164818AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_hiv_exposed_infant"
},
{
"key": "chk_breastfeeding",
- "text": "16. Breastfeeding",
- "value": false,
+ "text": "Breastfeeding",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1910AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_breastfeeding"
},
{
"key": "chk_exclusive_breast_feeding ",
- "text": "17. Plan for family planning using exclusive breast feeding for 6 months after birth",
- "value": false,
+ "text": "Plan for family planning using exclusive breast feeding for 6 months after birth",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_exclusive_breast_feeding"
},
{
"key": "chk_family_planning",
- "text": "18. Family planning",
- "value": false,
+ "text": "Family planning",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_family_planning"
},
{
"key": "chk_infection_prevention",
- "text": "24. Infection prevention and control",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1906AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_none",
- "text": "None",
- "value": false,
+ "text": "Infection prevention and control",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_infection_prevention"
}
],
"v_required": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_danger_signs.json b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_danger_signs.json
index d6e16db770..28a4b005a6 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_danger_signs.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_danger_signs.json
@@ -15,11 +15,6 @@
"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",
@@ -53,7 +48,7 @@
"key": "danger_signs_present",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160939AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "danger_signs_present",
"type": "check_box",
"label": "Does the mother have any danger signs?",
"label_text_style": "normal",
@@ -65,93 +60,80 @@
{
"key": "chk_fever",
"text": "Fever",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_fever"
},
{
"key": "chk_bleeding_vaginally",
"text": "Bleeding vaginally",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "150802AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_bleeding_vaginally"
},
{
"key": "chk_server_headache",
"text": "Severe headache",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "139081AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_server_headache"
},
{
"key": "chk_blurred_vision",
"text": "Blurred vision",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "147104AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_blurred_vision"
},
{
"key": "chk_convulsions",
"text": "Convulsions",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "164483AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_convulsions"
},
{
"key": "chk_difficulty_breathing",
"text": "Difficulty breathing",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "142373AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_difficulty_breathing"
},
{
"key": "chk_severe_abdominal_pain",
"text": "Severe abdominal pain",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "165271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_severe_abdominal_pain"
},
{
"key": "chk_loss_consciousness",
"text": "Loss of consciousness",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "135592AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_loss_consciousness"
},
{
"key": "chk_swelling",
"text": "Swelling of the face and/or hands",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_swelling"
},
{
"key": "chk_early_labour",
"text": "Early labour pains before 9 months",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "151687AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_early_labour"
},
{
"key": "chk_vaginal_discharge",
"text": "Discoloured or watery, liquid vaginal discharge with a bad smell",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "123395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_vaginal_discharge"
},
{
"key": "chk_unusual_movement",
"text": "No movement / unusual movement for a child in the womb",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "113377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_unusual_movement"
},
{
"key": "chk_none",
"text": "None",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_none"
}
],
"v_required": {
@@ -195,7 +177,7 @@
"key": "danger_signs_counseling",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "165310AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "danger_signs_counseling",
"openmrs_data_type": "select one",
"type": "spinner",
"label_info_title": "Did the mother receive counselling",
@@ -210,8 +192,8 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1267AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1118AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_family_planning.json b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_family_planning.json
index 0fbda7e7e1..7d5bc1532a 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_family_planning.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_family_planning.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_health_facility_visit.json b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_health_facility_visit.json
index 8754fc0572..811a91bed5 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_health_facility_visit.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_health_facility_visit.json
@@ -15,11 +15,6 @@
"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",
@@ -118,63 +113,54 @@
{
"key": "chk_haemoglobin",
"text": "Haemoglobin level",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "21AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_urine_analysis_uti",
"text": "Urine analysis for UTI",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "302AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_urine_analysis_protein",
"text": "Urine analysis for protein and sugar",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1875AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_hiv",
"text": "HIV test",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1356AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_syphilis",
"text": "Syphilis test",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "299AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_malaria",
"text": "Malaria test",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_tb",
"text": "TB screening",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164800AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_other",
"text": "Other test",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_none",
"text": "None",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
@@ -205,50 +191,43 @@
"options": [
{
"key": "chk_tetanus",
- "text": "Tetanus toxoid (TT)",
- "value": false,
+ "text": "Tetanus toxoid (Td)",
"openmrs_entity": "concept",
"openmrs_entity_id": "84879AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_malaria",
"text": "Malaria prevention (IPTp-SP)",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "105232AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_iron",
"text": "Iron and Folic acid (FEFO) tablets",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "773AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_albendazole",
"text": "Albendazole / Medandozle",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "159922AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_calcuim",
"text": "Calcium supplement",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "72650AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_other",
"text": "Other immunisation or medicine",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_none",
"text": "None",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_malaria.json b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_malaria.json
index 57407020a2..1788eb892f 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_malaria.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_malaria.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_nutrition_status.json b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_nutrition_status.json
index 5bead34fb4..0d11ed4446 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_nutrition_status.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_nutrition_status.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_observations.json b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_observations.json
index a3850ba64d..15a9256b4f 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_observations.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_observations.json
@@ -15,11 +15,6 @@
"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",
@@ -92,42 +87,36 @@
{
"key": "chk_ors",
"text": "ORS 5",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "351AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_zinc",
"text": "Zinc 10",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "86672AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_paracetamol",
"text": "Panadol",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "70116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_referred",
"text": "Referred",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "163762AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_other_treatment",
"text": "Other treatment",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_none",
"text": "No treatment given",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_remarks_and_comments.json b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_remarks_and_comments.json
index 035eb693eb..a5d6688a14 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_hv_remarks_and_comments.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_hv_remarks_and_comments.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_member_registration.json b/opensrp-chw-hf/src/main/assets/json.form/anc_member_registration.json
index 21aa585540..9e6385ec31 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_member_registration.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_member_registration.json
@@ -15,11 +15,6 @@
"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",
@@ -174,21 +169,18 @@
{
"key": "chk_vaginally",
"text": "Vaginally",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_cesarean_section",
"text": "Cesarean section",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_miscarriage",
"text": "Miscarriage",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
@@ -218,21 +210,18 @@
{
"key": "chk_vaginally",
"text": "Vaginally",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_cesarean_section",
"text": "Cesarean section",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"key": "chk_miscarriage",
"text": "Miscarriage",
- "value": false,
"openmrs_entity": "concept",
"openmrs_entity_id": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_member_transfer_in_registration.json b/opensrp-chw-hf/src/main/assets/json.form/anc_member_transfer_in_registration.json
new file mode 100644
index 0000000000..900640a818
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_member_transfer_in_registration.json
@@ -0,0 +1,1085 @@
+{
+ "count": "2",
+ "skip_blank_steps": true,
+ "encounter_type": "ANC Followup Client Registration",
+ "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"
+ },
+ "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": "Medical and Surgical History",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "is_transfer_in",
+ "type": "native_radio",
+ "label": "Client registration type",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_transfer_in",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "true",
+ "text": "On Transit",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "true"
+ },
+ {
+ "key": "false",
+ "text": "Continuing Client",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "false"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "pregnancy_confirmation_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_confirmation_status",
+ "type": "hidden",
+ "value": "Confirmed"
+ },
+ {
+ "key": "pregnancy_confirmation_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_confirmation_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "medical_surgical_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medical_surgical_history",
+ "type": "check_box",
+ "label": "Any Medical and surgical History of the Client?",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "known_on_art",
+ "text": "On ART before this pregnancy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_on_art"
+ },
+ {
+ "key": "diabetes_mellitus",
+ "text": "Diabetes Mellitus",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "diabetes_mellitus"
+ },
+ {
+ "key": "sickle_cell_disease",
+ "text": "Sickle Cell Disease",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sickle_cell_disease"
+ },
+ {
+ "key": "heart_diseases",
+ "text": "Heart Diseases",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heart_diseases"
+ },
+ {
+ "key": "thyroid_diseases",
+ "text": "Thyroid Diseases",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "thyroid_diseases"
+ },
+ {
+ "key": "blood_transfusion",
+ "text": "Blood transfusion",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_transfusion"
+ },
+ {
+ "key": "epilepsy",
+ "text": "Epilepsy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "epilepsy"
+ },
+ {
+ "key": "previous_c_s",
+ "text": "Previous C/S",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "previous_c_s"
+ },
+ {
+ "key": "myomectomy",
+ "text": "Myomectomy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "myomectomy"
+ },
+ {
+ "key": "third_degree_tear",
+ "text": "Third Degree Tear",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "third_degree_tear"
+ },
+ {
+ "key": "repaired_fistula",
+ "text": "Repaired Fistula",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "repaired_fistula"
+ },
+ {
+ "key": "female_genital_mutilation",
+ "text": "Female Genital Mutilation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_genital_mutilation"
+ },
+ {
+ "key": "closely_spaced_pregnancy",
+ "text": "Closely spaced pregnancy (within 2 years)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "closely_spaced_pregnancy"
+ },
+ {
+ "key": "pregnant_more_than_four",
+ "text": "Pregnant four or more times",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnant_more_than_four"
+ },
+ {
+ "key": "hx_hemorrhage",
+ "text": "History of Hemorrhage",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hx_hemorrhage"
+ },
+ {
+ "key": "history_of_high_blood_pressure",
+ "text": "History of high blood pressure",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "history_of_high_blood_pressure"
+ },
+ {
+ "key": "anaemia",
+ "text": "Anaemia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anaemia"
+ },
+ {
+ "key": "difficult_delivery",
+ "text": "Difficult delivery (Vacuum, episiotomy)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "difficult_delivery"
+ },
+ {
+ "key": "hx_abortions",
+ "text": "History of Abortions",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hx_abortions"
+ },
+ {
+ "key": "other",
+ "text": "Others (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please pick at least one"
+ }
+ },
+ {
+ "key": "other_medical_surgical_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_medical_surgical_history",
+ "type": "edit_text",
+ "hint": "Specify other medical and surgical history",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the other medical surgical history"
+ },
+ "relevance": {
+ "step1:medical_surgical_history": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "CTC ID",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "CTC ID should be of the format (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC ID"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid CTC ID"
+ },
+ "relevance": {
+ "step1:medical_surgical_history": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "known_on_art"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "gravida",
+ "type": "edit_text",
+ "hint": "Gravida",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gravida",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the gravida number"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the gravida number"
+ },
+ "v_max": {
+ "value": "35",
+ "err": "Gravida must be equal to or less than 35"
+ }
+ },
+ {
+ "key": "parity",
+ "type": "edit_text",
+ "hint": "Parity",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "parity",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter parity number"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the parity number"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:gravida)",
+ "err": "Parity must be less than gravida"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_grand_multiparity",
+ "type": "toaster_notes",
+ "text": "Counsel on the risk of uterine rupture and closely monitor the client",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "no_surv_children",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_surv_children",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of living children",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number of living children"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number of living children"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "openmrs_entity_parent": "",
+ "value": 1
+ },
+ {
+ "key": "hiv",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "known_on_art",
+ "type": "hidden",
+ "openmrs_entity_id": "known_on_art",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "ANC Followup Client Registration",
+ "fields": [
+ {
+ "key": "known_last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_last_menstrual_period",
+ "type": "date_picker",
+ "hint": "Last Normal Menstrual Period (LNMP)",
+ "label_info_title": "LNMP",
+ "label_info_text": "LNMP = first day of Last Normal Menstrual Period. If the exact date is unknown, but the period of the month is known, use day 5 for beginning of the month, day 15 for middle of the month and day 25 for end of the month.",
+ "expanded": false,
+ "max_date": "today",
+ "min_date": "today-50w",
+ "v_required": {
+ "value": "true",
+ "err": "LNMP required"
+ }
+ },
+ {
+ "key": "last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_menstrual_period",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gest_age_note",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "edit_text",
+ "hint": "Gestational Age (GA) in Weeks",
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "edd",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "edd",
+ "type": "edit_text",
+ "hint": "Expected Date of Delivery (EDD)",
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gest_age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "height",
+ "type": "edit_text",
+ "hint": "Height (CM)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "height",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the height"
+ },
+ "v_min": {
+ "value": "60",
+ "err": "The height must be equal or greater than 60 (CM)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "The height must be equal or less than 200 (CM)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the height"
+ }
+ },
+ {
+ "key": "prompt_for_short_stature",
+ "type": "toaster_notes",
+ "text": "Counsel the client on her risk of obstructed labour and advise her to deliver at a health care facility",
+ "openmrs_entity_id": "prompt_for_short_stature",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step2:height": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"145\")"
+ }
+ }
+ },
+ {
+ "key": "has_the_client_received_ipt_doses_from_previous_facility",
+ "type": "native_radio",
+ "label": "Has the client received any IPT doses in the previous clinic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_the_client_received_ipt_doses_from_previous_facility",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step2:gest_age_note": {
+ "type": "numeric",
+ "ex": "greaterThanEqualTo(.,\"13\")"
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy",
+ "type": "native_radio",
+ "label": "Please select the last IPT dose provided from the previous facility",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "malaria_preventive_therapy",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "ipt1",
+ "text": "IPT1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ipt1"
+ },
+ {
+ "key": "ipt2",
+ "text": "IPT2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ipt2"
+ },
+ {
+ "key": "ipt3",
+ "text": "IPT3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ipt3"
+ },
+ {
+ "key": "ipt4",
+ "text": "IPT4",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ipt4"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step2:has_the_client_received_ipt_doses_from_previous_facility": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "has_the_client_received_deworming_from_previous_facility",
+ "type": "native_radio",
+ "label": "Has the client received Deworming doses in the previous clinic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_the_client_received_deworming_from_previous_facility",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step2:gest_age_note": {
+ "type": "numeric",
+ "ex": "greaterThanEqualTo(.,\"13\")"
+ }
+ }
+ },
+ {
+ "key": "deworming",
+ "type": "check_box",
+ "label": "Deworming",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "deworming",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "mebendazole",
+ "albendazole"
+ ],
+ "options": [
+ {
+ "text": "Mebendazole(500Mg)",
+ "key": "mebendazole",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mebendazole"
+ },
+ {
+ "text": "Albendazole(400Mg)",
+ "key": "albendazole",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "albendazole"
+ }
+ ],
+ "relevance": {
+ "step2:has_the_client_received_deworming_from_previous_facility": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "hiv",
+ "type": "native_radio",
+ "label": "Client HIV Test Results from the previous clinic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "The client had not yet been tested for HIV in the previous Clinic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hepatitis",
+ "type": "native_radio",
+ "label": "Client Hepatitis B Results from the previous clinic?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hepatitis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "The Client was not tested for Hepatitis B in the previous clinic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "syphilis",
+ "type": "native_radio",
+ "label": "Client Syphilis Results from the previous clinic?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "The Client was not tested for Syphilis in the previous clinic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "is_test_at_32",
+ "type": "native_radio",
+ "label": "Was this the second HIV test?",
+ "openmrs_entity_id": "is_test_at_32",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "CTC ID",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "CTC ID should be of the format (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC ID"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid CTC ID"
+ },
+ "relevance": {
+ "step2:hiv": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_test_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_number",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_test_at_32",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_at_32",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_member_transfer_in_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "abdominal_scars",
+ "type": "native_radio",
+ "label": "Are there any lower abdominal caesarian scars?",
+ "openmrs_entity_id": "abdominal_scars",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "prompt_for_abdominal_scars",
+ "type": "toaster_notes",
+ "text": "Counsel the client on her risk of uterine rupture during labour and advise her to deliver at a health care facility",
+ "openmrs_entity_id": "prompt_for_abdominal_scars",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step2:abdominal_scars": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "abdominal_movement_with_respiration",
+ "type": "native_radio",
+ "label": "Does the Abdomen Move with respiration",
+ "openmrs_entity_id": "abdominal_movement_with_respiration",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "prompt_for_abdominal_movement_with_respiration",
+ "type": "toaster_notes",
+ "text": "Refer the client for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step2:abdominal_movement_with_respiration": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "abnormal_vaginal_discharge",
+ "type": "native_radio",
+ "label": "Abnormal Vaginal Discharge",
+ "openmrs_entity_id": "abnormal_vaginal_discharge",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "prompt_for_vaginal_discharge",
+ "type": "toaster_notes",
+ "text": "Identify the cause of vaginal discharge and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_vaginal_discharge",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step2:abnormal_vaginal_discharge": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "vaginal_sores",
+ "type": "native_radio",
+ "label": "Vaginal Sores",
+ "openmrs_entity_id": "vaginal_sores",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "prompt_for_vaginal_sores",
+ "type": "toaster_notes",
+ "text": "Identify the cause of vaginal sores and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_vaginal_sores",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step2:vaginal_sores": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "vaginal_swelling",
+ "type": "native_radio",
+ "label": "Vaginal Swelling",
+ "openmrs_entity_id": "vaginal_swelling",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "prompt_for_vaginal_swelling",
+ "type": "toaster_notes",
+ "text": "Identify the cause of vaginal swelling and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_vaginal_swelling",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step2:vaginal_swelling": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_partner_community_followup_referral.json b/opensrp-chw-hf/src/main/assets/json.form/anc_partner_community_followup_referral.json
new file mode 100644
index 0000000000..14293726d0
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_partner_community_followup_referral.json
@@ -0,0 +1,102 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "ANC Partner Community Followup Referral",
+ "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"
+ },
+ "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": "ANC Partner Community Followup",
+ "fields": [
+ {
+ "key": "toast_refer_to_chw",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Client will be referred to CHW for Partner Followup\n\nSave the form to send the referral",
+ "toaster_info_text": "The client is about to be referred to the CHW tied to client's village for follow-up at the community level.\n\nAdd any additional comments that should be sent the the CHW",
+ "toaster_type": "info"
+ },
+ {
+ "key": "chw_location",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chw_location",
+ "type": "spinner",
+ "hint": "CHW/Mother Champion Location",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the Mother Champion Location"
+ }
+ },
+ {
+ "key": "anc_partner_followup_comment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anc_partner_followup_comment",
+ "type": "edit_text",
+ "hint": "Remarks/Comments",
+ "v_required": {
+ "value": "false",
+ "err": "Please enter the your remarks/comments"
+ }
+ },
+ {
+ "key": "anc_partner_community_referral_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anc_partner_community_referral_date",
+ "type": "hidden",
+ "is_problem": false,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_community_followup_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
+
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_partner_testing.json b/opensrp-chw-hf/src/main/assets/json.form/anc_partner_testing.json
new file mode 100644
index 0000000000..37577dcae7
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_partner_testing.json
@@ -0,0 +1,636 @@
+{
+ "count": "1",
+ "encounter_type": "Partner Testing",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {
+ "hiv_testing_done": false,
+ "syphilis_testing_done": false,
+ "hepatitis_testing_done": false,
+ "partner_hiv_status": "",
+ "partner_hiv_test_at_32_done": false
+ },
+ "step1": {
+ "title": "Partner Testing",
+ "fields": [
+ {
+ "key": "partner_hiv",
+ "type": "native_radio",
+ "label": "HIV Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "HIV Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_partner_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_partner_hiv_test",
+ "type": "spinner",
+ "hint": "Reason as to why the HIV test was not conducted",
+ "values": [
+ "Test kits out of stock",
+ "A client was in an emergency situation",
+ "Client refused to be tested",
+ "We are still counselling a client",
+ "Known positive",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "known_on_art",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "known_on_art": "known_on_art",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:partner_hiv": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_partner_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_partner_hiv_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting HIV test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_partner_hiv_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "register_for_hiv_services",
+ "type": "toaster_notes",
+ "text": "Refer the client to CTC for HIV care",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:partner_hiv": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "partner_ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "CTC Number",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "CTC number should be of the format (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC Number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "couple_testing",
+ "type": "native_radio",
+ "label": "Did the partner test together with the mother? (Couple testing)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "couple_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_syphilis",
+ "type": "native_radio",
+ "label": "Syphilis Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_syphilis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Syphilis Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "prescribe_anti_sy",
+ "type": "toaster_notes",
+ "text": "Prescribe the partner on antibiotics according to standard guidelines",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:partner_syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_partner_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_partner_syphilis_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Syphilis test was not conducted",
+ "values": [
+ "Test kits out of stock",
+ "A client was in an emergency situation",
+ "Client refused to be tested",
+ "We are still counselling a client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:partner_syphilis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_partner_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_partner_syphilis_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Syphilis test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_partner_syphilis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "partner_syphilis_treatment",
+ "type": "native_radio",
+ "label": "Was syphilis treatment provided?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_syphilis_treatment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:partner_syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "partner_hepatitis",
+ "type": "native_radio",
+ "label": "Hepatitis B Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hepatitis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Hepatitis B Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_partner_hepatitis",
+ "type": "toaster_notes",
+ "text": "Prescribe ARVs to the client according to standard guidelines",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:partner_hepatitis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_partner_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_partner_hepatitis_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Hepatitis B test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:partner_hepatitis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_partner_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_partner_hepatitis_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Hepatitis B test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_partner_hepatitis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "partner_other_stds",
+ "type": "native_radio",
+ "label": "Has the client tested positive for other STIs?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_other_stds",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_other_stds_treatment",
+ "type": "native_radio",
+ "label": "Was treatment provided for other STIs?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_other_stds_treatment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:partner_other_stds": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "partner_reason_for_not_giving_medication_for_other_stds",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_reason_for_not_giving_medication_for_other_stds",
+ "type": "spinner",
+ "hint": "Reason as to why treatment was not given",
+ "values": [
+ "Out of stock",
+ "The client did not agree to take the medication",
+ "The client is allergic to medication",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:partner_other_stds_treatment": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "partner_other_reason_for_not_giving_medication_for_other_stds",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_other_reason_for_not_giving_medication_for_other_stds",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not giving treatment",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:partner_reason_for_not_giving_medication_for_other_stds": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "partner_hiv_test_at_32",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv_test_at_32",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_partner_testing_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_hiv_test_number",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv_test_number",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "gest_age",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_pregnancy_confirmation.json b/opensrp-chw-hf/src/main/assets/json.form/anc_pregnancy_confirmation.json
new file mode 100644
index 0000000000..fedae0a190
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_pregnancy_confirmation.json
@@ -0,0 +1,600 @@
+{
+ "count": "3",
+ "skip_blank_steps": true,
+ "encounter_type": "Pregnancy Confirmation",
+ "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"
+ },
+ "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": "Triage",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "danger_signs",
+ "type": "check_box",
+ "label": "The HCW performs a quick analysis/examination to identify clients with danger signs",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "danger_signs",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "bleeding_vag",
+ "text": "Bleeding Vaginally",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bleeding_vag"
+ },
+ {
+ "key": "headache_visual_disturbance",
+ "text": "Headache and Visual Disturbance",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "headache_visual_disturbance"
+ },
+ {
+ "key": "severely_pale",
+ "text": "Severely Pale",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severely_pale"
+ },
+ {
+ "key": "dizziness",
+ "text": "Dizziness",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dizziness"
+ },
+ {
+ "key": "severe_vomiting",
+ "text": "Severe Vomiting",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_vomiting"
+ },
+ {
+ "key": "convulsion",
+ "text": "Convulsion",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "convulsion"
+ },
+ {
+ "key": "looking_very_ill",
+ "text": "Looking Very Ill",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "looking_very_ill"
+ },
+ {
+ "key": "fever",
+ "text": "Fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fever"
+ },
+ {
+ "key": "unconscious",
+ "text": "Unconscious",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unconscious"
+ },
+ {
+ "key": "severe_pain",
+ "text": "Severe Pain",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_pain"
+ },
+ {
+ "key": "severe_breathing_difficulty",
+ "text": "Severe Breathing Difficulty",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_breathing_difficulty"
+ },
+ {
+ "key": "in_labour",
+ "text": "In Labour",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "in_labour"
+ },
+ {
+ "key": "imminent_labour",
+ "text": "Imminent Labour",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "imminent_labour"
+ },
+ {
+ "key": "oedema_of_legs_and_sacrum",
+ "text": "Oedema of the legs and sacrum",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "oedema_of_legs_and_sacrum"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the danger sings"
+ }
+ },
+ {
+ "key": "danger_signs_present_toaster",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Danger sign! \nRefer immediately to Emergency Ward.",
+ "text_color": "#CF0800",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:danger_signs": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "bleeding_vag",
+ "headache_visual_disturbance",
+ "severely_pale",
+ "severe_vomiting",
+ "severe_breathing_difficulty",
+ "convulsion",
+ "looking_very_ill",
+ "fever",
+ "unconscious",
+ "severe_pain",
+ "in_labour",
+ "imminent_labour",
+ "oedema_of_legs_and_sacrum",
+ "dizziness"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "task_id",
+ "type": "hidden",
+ "openmrs_entity_id": "task_id",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ },
+ "step2": {
+ "title": "Pregnancy Confirmation",
+ "next": "step3",
+ "fields": [
+ {
+ "key": "type_of_pregnancy_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_pregnancy_test",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Select the type of test conducted",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "fundal_palpation"
+ ],
+ "options": [
+ {
+ "key": "fundal_palpation",
+ "text": "Fundal Palpation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fundal_palpation"
+ },
+ {
+ "key": "upt",
+ "text": "UPT",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "upt"
+ },
+ {
+ "key": "uss",
+ "text": "USS",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "uss"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the type of pregnancy conducted"
+ }
+ },
+ {
+ "key": "fundal_palpation",
+ "type": "native_radio",
+ "openmrs_entity_id": "fundal_palpation",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "label": "Fundal Palpation Results",
+ "options": [
+ {
+ "text": "Fetal parts detected",
+ "key": "fetal_parts_detected",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fetal_parts_detected"
+ },
+ {
+ "text": "Fetal parts not detected",
+ "key": "fetal_parts_not_detected",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fetal_parts_not_detected"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select the Fundal Palpation results"
+ }
+ },
+ {
+ "key": "upt",
+ "type": "native_radio",
+ "openmrs_entity_id": "upt",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "label": "Please select UPT Results",
+ "options": [
+ {
+ "text": "Positive",
+ "key": "positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "text": "Negative",
+ "key": "negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select the UPT test results"
+ }
+ },
+ {
+ "key": "uss",
+ "type": "native_radio",
+ "openmrs_entity_id": "uss",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "label": "Please select USS results",
+ "options": [
+ {
+ "key": "present_gestation_sac",
+ "text": "Present Gestation Sac",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "present_gestation_sac"
+ },
+ {
+ "key": "absent_gestation_sac",
+ "text": "Absent Gestation Sac",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "absent_gestation_sac"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select the USS test results"
+ }
+ }
+ ]
+ },
+ "step3": {
+ "title": "End",
+ "fields": [
+ {
+ "key": "known_last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_last_menstrual_period",
+ "type": "date_picker",
+ "hint": "Last Normal Menstrual Period (LNMP)",
+ "label_info_title": "LNMP",
+ "label_info_text": "LNMP = first day of Last Normal Menstrual Period. If the exact date is unknown, but the period of the month is known, use day 5 for beginning of the month, day 15 for middle of the month and day 25 for end of the month.",
+ "expanded": false,
+ "max_date": "today",
+ "min_date": "today-50w",
+ "v_required": {
+ "value": "true",
+ "err": "LNMP required"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "last_menstrual_period_unknown",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_menstrual_period_unknown",
+ "openmrs_data_type": "text",
+ "type": "check_box",
+ "options": [
+ {
+ "key": "lmp_unknown",
+ "text": "LNMP unknown?",
+ "text_size": "18px",
+ "value": "false",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lmp_unknown"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "fundal_height",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fundal_height",
+ "type": "edit_text",
+ "hint": "Fundal Height (CM)",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Has to be a number"
+ },
+ "v_min": {
+ "value": "12",
+ "err": "Fundal height must be equal or more than 12 CM"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Fundal height must be equal or less than 50 CM"
+ }
+ },
+ {
+ "key": "estimated_last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "estimated_last_menstrual_period",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Estimated Last Normal Menstrual Period (LNMP)",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_menstrual_period",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gest_age_note",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "edit_text",
+ "hint": "Gestational Age (GA) in Weeks",
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "edd",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "edd",
+ "type": "edit_text",
+ "hint": "Expected Date of Delivery (EDD)",
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gest_age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "not_pregnant",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "The client is not pregnant. \nPlease refer the client to Family Planning Services",
+ "toaster_info_text": "The client is not pregnant. Please refer the client to Family Planning Services",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "see_a_doctor",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Refer the client for a gynaecological review",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pregnancy_confirmation_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_confirmation_status",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pregnancy_confirmation_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_confirmation_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_confirmation_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_pregnancy_outcome.json b/opensrp-chw-hf/src/main/assets/json.form/anc_pregnancy_outcome.json
index a2b985054f..ad42637c80 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/anc_pregnancy_outcome.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_pregnancy_outcome.json
@@ -4,6 +4,7 @@
"count": "1",
"encounter_type": "Pregnancy Outcome",
"entity_id": "",
+ "global": {},
"metadata": {
"start": {
"openmrs_entity_parent": "",
@@ -17,11 +18,6 @@
"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",
@@ -58,11 +54,80 @@
"openmrs_entity_id": "relational_id",
"type": "hidden"
},
+ {
+ "key": "mothers_condition",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mothers_condition",
+ "type": "native_radio",
+ "label": "Mother's Condition",
+ "label_text_style": "bold",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "alive",
+ "text": "Alive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "alive",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "deceased",
+ "text": "Deceased",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "deceased",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the mother's condition"
+ }
+ },
+ {
+ "key": "date_of_death",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "date_of_death",
+ "type": "date_picker",
+ "hint": "Date Mother Died",
+ "expanded": false,
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please provide the date the mother died"
+ },
+ "relevance": {
+ "step1:mothers_condition": {
+ "type": "string",
+ "ex": "equalTo(., \"deceased\")"
+ }
+ }
+ },
+ {
+ "key": "time_of_death",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "time_of_death",
+ "type": "time_picker",
+ "hint": "Time mother died",
+ "expanded": false,
+ "v_required": {
+ "value": "true",
+ "err": "Please provide the time the mother died"
+ },
+ "relevance": {
+ "step1:mothers_condition": {
+ "type": "string",
+ "ex": "equalTo(., \"deceased\")"
+ }
+ }
+ },
{
"key": "preg_outcome",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161033AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "preg_outcome",
"type": "native_radio",
"label": "Pregnancy outcome",
"label_text_style": "bold",
@@ -71,41 +136,36 @@
{
"key": "born_alive",
"text": "Child was born alive",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "born_alive",
"openmrs_entity_parent": ""
},
{
"key": "born_alive_died",
"text": "Child was born alive, but died",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "164816AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "born_alive_died",
"openmrs_entity_parent": ""
},
{
"key": "still_born",
"text": "Child was stillborn",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "still_born",
"openmrs_entity_parent": ""
},
{
"key": "alive_with_problem",
"text": "Child was born alive, but they have a problem (i.e. disability, respiratory issues, etc.)",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "161599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "alive_with_problem",
"openmrs_entity_parent": ""
},
{
"key": "miscarriage",
"text": "Miscarriage",
- "value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "48AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "miscarriage",
"openmrs_entity_parent": ""
}
],
@@ -114,11 +174,116 @@
"err": "Please select pregnancy outcome"
}
},
+ {
+ "key": "prompt_for_child_with_problem",
+ "type": "toaster_notes",
+ "text": "Manage the condition as per standard guidelines",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:preg_outcome": {
+ "type": "string",
+ "ex": "equalTo(., \"alive_with_problem\")"
+ }
+ }
+ },
+ {
+ "key": "sex_of_the_deceased_child",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sex_of_the_deceased_child",
+ "type": "spinner",
+ "hint": "Sex of the Deceased Child",
+ "values": [
+ "Male",
+ "Female",
+ "Ambiguous"
+ ],
+ "keys": [
+ "Male",
+ "Female",
+ "Ambiguous"
+ ],
+ "openmrs_choice_ids": {
+ "Male": "Male",
+ "Female": "Female",
+ "Ambiguous": "Ambiguous"
+ },
+ "relevance": {
+ "step1:preg_outcome": {
+ "type": "string",
+ "ex": "equalTo(., \"born_alive_died\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select the sex"
+ }
+ },
+ {
+ "key": "reason_child_died",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_child_died",
+ "type": "spinner",
+ "hint": "Reason as to why the child died",
+ "values": [
+ "Birth Asphyxia",
+ "Neonatal Respiratory Distress",
+ "Prematurity",
+ "Early Neonatal Sepsis",
+ "Others (Specify)"
+ ],
+ "keys": [
+ "birth_asphyxia",
+ "neonatal_respiratory_distress",
+ "prematurity",
+ "early_neonatal_sepsis",
+ "others"
+ ],
+ "openmrs_choice_ids": {
+ "birth_asphyxia": "birth_asphyxia",
+ "neonatal_respiratory_distress": "neonatal_respiratory_distress",
+ "prematurity": "prematurity",
+ "early_neonatal_sepsis": "early_neonatal_sepsis",
+ "others": "others"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:preg_outcome": {
+ "type": "string",
+ "ex": "equalTo(., \"born_alive_died\")"
+ }
+ }
+ },
+ {
+ "key": "other_reasons_for_child_death",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reasons_for_child_death",
+ "type": "edit_text",
+ "hint": "Specify other reasons as to why the child died",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_child_died": {
+ "type": "string",
+ "ex": "equalTo(., \"others\")"
+ }
+ }
+ },
{
"key": "miscarriage_date",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "165248AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "miscarriage_date",
"type": "date_picker",
"hint": "Date of miscarriage",
"expanded": false,
@@ -136,17 +301,35 @@
}
},
{
- "key": "delivery_date",
- "openmrs_entity_parent": "",
+ "key": "hiv_status_question",
+ "type": "native_radio",
+ "label": "Mother's HIV status",
+ "openmrs_entity_id": "hiv_status_question",
"openmrs_entity": "concept",
- "openmrs_entity_id": "5599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "date_picker",
- "hint": "Delivery date",
- "expanded": false,
- "max_date": "today",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "unknown",
+ "text": "Unknown",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unknown"
+ }
+ ],
"v_required": {
- "value": "true",
- "err": "Please enter date the woman delivered"
+ "value": true,
+ "err": "Please answer this question"
},
"relevance": {
"rules-engine": {
@@ -157,28 +340,66 @@
}
},
{
- "key": "no_children",
- "openmrs_entity_parent": "",
+ "key": "risk_category",
+ "type": "native_radio",
+ "label": "HIV exposure risk of the newborn(s)",
+ "openmrs_entity_id": "risk_category",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164894AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "select one",
- "type": "spinner",
- "hint": "Number of children born alive",
- "values": [
- "1",
- "2+"
- ],
- "keys": [
- "1",
- "2+"
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "high",
+ "text": "High",
+ "openmrs_entity_id": "high",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "low",
+ "text": "Low",
+ "openmrs_entity_id": "low",
+ "openmrs_entity": "concept"
+ }
],
- "openmrs_choice_ids": {
- "1": "159913AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "2+": "159914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "v_required": {
+ "value": true,
+ "err": "Please answer this question"
},
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_high_risk_results",
+ "type": "toaster_notes",
+ "text": "Conduct birth HIV testing, provide triple ARV prophylaxis for 6-weeks followed by monoprophylaxis for the next 6-weeks, care and monitor the newborn as per guidelines until the end of exposure.",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:risk_category": {
+ "type": "string",
+ "ex": "equalTo(., \"high\")"
+ }
+ }
+ },
+ {
+ "key": "delivery_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_date",
+ "type": "date_picker",
+ "hint": "Delivery date",
+ "expanded": false,
+ "min_date": "today-42d",
+ "max_date": "today",
"v_required": {
"value": "true",
- "err": "Please select one option"
+ "err": "Please enter date the woman delivered"
},
"relevance": {
"rules-engine": {
@@ -188,31 +409,38 @@
}
}
},
+ {
+ "key": "no_children",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_children",
+ "type": "hidden"
+ },
{
"key": "delivery_place",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1572AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "delivery_place",
"openmrs_data_type": "select one",
"type": "spinner",
"hint": "The place the mother gave birth",
"values": [
- "At home",
"At a health facility",
- "On the way to the health facility",
- "Other"
+ "Birth before Arrival (BBA)",
+ "At home",
+ "Traditional birth attendant"
],
"keys": [
- "At home",
"At a health facility",
- "On the way to the health facility",
- "Other"
+ "Birth before Arrival (BBA)",
+ "At home",
+ "Traditional birth attendant"
],
"openmrs_choice_ids": {
- "At Home": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "At a health facility": "1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "On the way to the health facility": "1601AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Other": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "At a health facility": "At a health facility",
+ "Birth before Arrival (BBA)": "Birth before Arrival (BBA)",
+ "At home": "At home",
+ "Traditional birth attendant": "Traditional birth attendant"
},
"v_required": {
"value": "true",
@@ -230,7 +458,7 @@
"key": "delivery_home",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1573AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "delivery_home",
"type": "native_radio",
"label": "Who helped the mother with a home delivery?",
"label_text_style": "bold",
@@ -249,27 +477,24 @@
"options": [
{
"key": "gave_birth_alone",
- "text": "She gave birth at home alone",
- "value": false,
+ "text": "She gave birth alone",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "gave_birth_alone"
},
{
"key": "gave_birth_with_help",
- "text": "She gave birth at home with the help of a family member/friend/neighbor",
- "value": false,
+ "text": "She gave birth with the help of a family member/friend/neighbor",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "gave_birth_with_help"
},
{
"key": "midwife_help",
- "text": "She gave birth at home with the help of a traditional midwife",
- "value": false,
+ "text": "She gave birth with the help of a traditional midwife",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "midwife_help"
}
]
},
@@ -277,7 +502,7 @@
"key": "delivery_hf",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "159771AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "delivery_hf",
"type": "native_radio",
"label": "The mother gave birth in a health facility. Who accompanied the mother to the health facility?",
"label_text_style": "bold",
@@ -296,43 +521,38 @@
"options": [
{
"key": "facility_family_member",
- "text": "She gave birth in a health facility, and she was accompanied by family member(s)",
- "value": false,
+ "text": "She was accompanied by family member(s)",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "969AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "facility_family_member"
},
{
"key": "facility_midwife",
- "text": "She gave birth in a health facility, and she was accompanied by a traditional midwife",
- "value": false,
+ "text": "She was accompanied by a traditional midwife",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "facility_midwife"
},
{
"key": "alone",
- "text": "She gave birth in a health facility, and she came by herself",
- "value": false,
+ "text": "She came by herself",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "alone"
},
{
"key": "other_pple",
- "text": "She gave birth in a health facility, and she was accompanied by other people",
- "value": false,
+ "text": "She was accompanied by other people",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1582AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "other_pple"
},
{
"key": "other_chw",
- "text": "She gave birth in a health facility, and she was accompanied by the CHW",
- "value": false,
+ "text": "She was accompanied by the CHW",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "other_chw"
}
]
},
@@ -340,10 +560,9 @@
"key": "baby_label",
"type": "label",
"text": "BABY DETAILS",
- "has_bg": true,
"left_padding": "20dp",
"right_padding": "20dp",
- "text_size": "5sp",
+ "text_size": "7sp",
"text_color": "#000000",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
@@ -357,317 +576,1046 @@
}
},
{
- "key": "temp_unique_id",
+ "key": "fam_name",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "temp_unique_id",
+ "openmrs_entity_id": "fam_name",
"type": "hidden"
},
{
- "key": "unique_id",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_identifier",
- "openmrs_entity_id": "opensrp_id",
- "type": "barcode",
- "barcode_type": "qrcode",
- "hint": "Boresha Afya ID",
- "scanButtonText": "Scan QR Code",
- "v_numeric": {
- "value": "true",
- "err": "Please enter a valid ID"
- },
- "v_required": {
- "value": "true",
- "err": "Please enter the UNIQUE ID"
- },
- "calculation": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_calculation.yml"
- }
- }
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
- }
- }
- }
- },
- {
- "key": "surname",
+ "key": "no_immediate_new_born",
+ "type": "repeating_group",
+ "reference_edit_text_hint": "Number of new born(s)",
+ "repeating_group_label": "Baby Details #",
"openmrs_entity_parent": "",
- "openmrs_entity": "concept",
+ "openmrs_entity": "",
"openmrs_entity_id": "",
- "type": "edit_text",
- "hint": "Surname",
- "edit_type": "name",
- "v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Please enter a valid name"
- },
- "v_required": {
- "value": "true",
- "err": "Please enter the surname"
- },
+ "repeating_group_max": "4",
+ "expand_on_text_change": "true",
"relevance": {
"rules-engine": {
"ex-rules": {
"rules-file": "anc_pregnancy_outcome_relevance.yml"
}
}
- }
- },
- {
- "key": "same_as_fam_name_chk",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "",
- "openmrs_data_type": "text",
- "type": "check_box",
- "options": [
+ },
+ "value": [
{
- "key": "same_as_fam_name",
- "text": "Surname same as family name",
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "15dp"
+ },
+ {
+ "key": "apgar_score_label",
+ "type": "label",
+ "text": "AGPAR score",
+ "text_size": "7sp",
+ "text_color": "#000000",
+ "label_info_title": "APGAR score",
+ "label_info_text": "0 - 6: Emergency \n7 - 10: The baby is Okay",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": ""
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "8dp"
+ },
+ {
+ "key": "apgar_score",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "apgar_score",
+ "type": "numbers_selector",
+ "number_of_selectors": "11",
+ "start_number": "0",
+ "max_value": "10",
"text_size": "18px",
- "value": "false"
- }
- ],
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ "text_color": "#000000",
+ "selected_text_color": "#ffffff",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the agpar score"
}
- }
- }
- },
- {
- "key": "fam_name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "fam_name",
- "type": "hidden"
- },
- {
- "key": "surname_calculation",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "last_name",
- "type": "hidden",
- "hint": "Surname as Family name",
- "calculation": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_calculation.yml"
+ },
+ {
+ "key": "apgar_score_calculated",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "apgar_score_calculated",
+ "type": "edit_text",
+ "hidden": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
}
- }
- }
- },
- {
- "key": "first_name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "first_name",
- "type": "edit_text",
- "hint": "First name",
- "edit_type": "name",
- "v_required": {
- "value": "true",
- "err": "Please enter the first name"
- },
- "v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Please enter a valid name"
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ },
+ {
+ "key": "prompt_for_normal_apgar_score",
+ "type": "toaster_notes",
+ "text": "APGAR score, Normal: {apgar_score}",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "positive",
+ "relevance": {
+ "step1:apgar_score_calculated": {
+ "type": "numeric",
+ "ex": "greaterThanEqualTo(.,\"7\")"
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
}
- }
- }
- },
- {
- "key": "middle_name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "middle_name",
- "type": "edit_text",
- "hint": "Middle name",
- "edit_type": "name",
- "v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Please enter a valid name"
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ },
+ {
+ "key": "prompt_for_abnormal_apgar_score",
+ "type": "toaster_notes",
+ "text": "APGAR score, Abnormal: {apgar_score}. \nGo to emergency",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:apgar_score_calculated": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"6\")"
+ }
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
}
- }
- }
- },
- {
- "key": "dob",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "birthdate",
- "type": "hidden",
- "calculation": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_calculation.yml"
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "15dp"
+ },
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "edit_text",
+ "hint": "Surname",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the surname"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
}
- }
- }
- },
- {
- "key": "gender",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "gender",
- "type": "spinner",
- "hint": "Sex",
- "values": [
- "Male",
- "Female"
- ],
- "keys": [
- "Male",
- "Female"
- ],
- "v_required": {
- "value": "true",
- "err": "Please enter the sex"
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ },
+ {
+ "key": "same_as_fam_name_chk",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "openmrs_data_type": "text",
+ "type": "check_box",
+ "options": [
+ {
+ "key": "same_as_fam_name",
+ "text": "Surname same as family name",
+ "text_size": "18px",
+ "value": "false"
+ }
+ ]
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "First name",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the first name"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ }
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Middle name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the middle name"
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "hidden"
+ },
+ {
+ "key": "gender",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Sex",
+ "values": [
+ "Male",
+ "Female",
+ "Ambiguous"
+ ],
+ "keys": [
+ "Male",
+ "Female",
+ "Ambiguous"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Gender required"
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Weight (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the weight"
+ },
+ "v_min": {
+ "value": "0.5",
+ "err": "The weight must be equal or greater than 0.5 (KGs)"
+ },
+ "v_max": {
+ "value": "7",
+ "err": "The weight must be equal or less than 7 (KGs)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the weight"
+ }
+ },
+ {
+ "key": "disabilities",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabilities",
+ "type": "spinner",
+ "hint": "Physical disabilities",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "prompt_for_disabilities",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:disabilities": {
+ "type": "string",
+ "ex": "equalTo(.,\"Yes\")"
+ }
+ }
+ },
+ {
+ "key": "type_of_disability",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Type of disability",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Mobility and Physical Impairments",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Spinal Cord Disability",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Head Injuries - Brain Disability",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Vision Disability",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Hearing Disability",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Cognitive or Learning Disabilities",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Psychological Disorders",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Invisible Disabilities",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "early_bf_1hr",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "early_bf_1hr",
+ "type": "spinner",
+ "hint": "Breastfed within 1 hour?",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "yes",
+ "no"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "yes",
+ "No": "no"
+ }
+ },
+ {
+ "key": "reason_for_not_breast_feeding_within_one_hour",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_breast_feeding_within_one_hour",
+ "type": "spinner",
+ "hint": "Reason why the child was not breast fed within one hour",
+ "values": [
+ "Mother Died",
+ "Baby unable to breast feed",
+ "Replacement Feeding",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "mother_died",
+ "baby_unable_to_breast_feed",
+ "replacement_feeding",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "mother_died": "mother_died",
+ "baby_unable_to_breast_feed": "baby_unable_to_breast_feed",
+ "replacement_feeding": "replacement_feeding",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:early_bf_1hr": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_breast_feeding_within_one_hour",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_breast_feeding_within_one_hour",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not breast feeding the child within one hour",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_breast_feeding_within_one_hour": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "child_bcg_vaccination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_bcg_vaccination",
+ "type": "native_radio",
+ "label": "Was BCG vaccination administered?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "prompt_for_bcg_vacc_not_provided",
+ "type": "toaster_notes",
+ "text": "Provide BCG vaccination to the infant at the first Postnatal care visit or as soon as the BCG vaccine will be available. BCG should not be provided beyond 12-months of infant age",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_bcg_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_bcg_vacc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_bcg_vacc",
+ "type": "spinner",
+ "hint": "Reason as to why the BCG vaccination was not given",
+ "values": [
+ "Out of stock vaccine",
+ "Home delivery"
+ ],
+ "keys": [
+ "out_of_stock_vaccine",
+ "home_delivery"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock_vaccine": "out_of_stock_vaccine",
+ "home_delivery": "home_delivery"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:child_bcg_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "child_opv0_vaccination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_opv0_vaccination",
+ "type": "native_radio",
+ "label": "Was OPV 0 vaccination administered?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "prompt_for_opv0_vacc_not_provided",
+ "type": "toaster_notes",
+ "text": "Provide OPV 0 vaccination to the infant at the first Postnatal care visit or as soon as the OPV 0 vaccine will be available. OPV 0 should not be provided beyond 14 days",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_opv0_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
}
}
- }
- },
- {
- "key": "disabilities",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "159522AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "spinner",
- "hint": "Physical disabilities",
- "values": [
- "Yes",
- "No"
],
- "keys": [
- "Yes",
- "No"
- ],
- "openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
"v_required": {
"value": "true",
- "err": "Please enter the sex"
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
- }
- }
+ "err": "Please enter the number of children"
}
},
{
- "key": "type_of_disability",
+ "key": "no_children_no",
+ "type": "repeating_group",
+ "reference_edit_text_hint": "Number of children born alive",
+ "repeating_group_label": "Baby Details #",
"openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Type of physical disabilities",
- "edit_type": "name",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "repeating_group_max": "4",
+ "expand_on_text_change": "true",
"relevance": {
"rules-engine": {
"ex-rules": {
"rules-file": "anc_pregnancy_outcome_relevance.yml"
}
}
- }
- },
- {
- "key": "early_bf_1hr",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "164819AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "spinner",
- "hint": "Early initiation of breastfeeding (1 hr)?",
- "values": [
- "Yes",
- "No"
- ],
- "keys": [
- "Yes",
- "No"
- ],
- "openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ "value": [
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "edit_text",
+ "hint": "Surname",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the surname"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
}
- }
- }
- },
- {
- "key": "vacc_birth",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "check_box",
- "label": "Which vaccinations were given?",
- "label_text_style": "normal",
- "text_color": "#C0C0C0",
- "exclusive": [
- "chk_none"
- ],
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "anc_pregnancy_outcome_relevance.yml"
+ },
+ {
+ "key": "same_as_fam_name_chk",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "openmrs_data_type": "text",
+ "type": "check_box",
+ "options": [
+ {
+ "key": "same_as_fam_name",
+ "text": "Surname same as family name",
+ "text_size": "18px",
+ "value": "false"
+ }
+ ]
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "First name",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the first name"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
}
- }
- },
- "options": [
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Middle name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the middle name"
+ }
+ },
{
- "key": "chk_none",
- "text": "None",
- "value": false,
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "hidden"
+ },
+ {
+ "key": "gender",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Sex",
+ "values": [
+ "Male",
+ "Female",
+ "Ambiguous"
+ ],
+ "keys": [
+ "Male",
+ "Female",
+ "Ambiguous"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Gender required"
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Weight (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the weight"
+ },
+ "v_min": {
+ "value": "0.5",
+ "err": "The weight must be equal or greater than 0.5 (KG)"
+ },
+ "v_max": {
+ "value": "7",
+ "err": "The weight must be equal or less than 7 (KG)"
+ }
+ },
+ {
+ "key": "disabilities",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabilities",
+ "type": "spinner",
+ "hint": "Physical disabilities",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "prompt_for_disabilities",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:disabilities": {
+ "type": "string",
+ "ex": "equalTo(.,\"Yes\")"
+ }
+ }
+ },
+ {
+ "key": "type_of_disability",
+ "openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "label": "Type of disability",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Mobility and Physical Impairments",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Spinal Cord Disability",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Head Injuries - Brain Disability",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Vision Disability",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Hearing Disability",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Cognitive or Learning Disabilities",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Psychological Disorders",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Invisible Disabilities",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-dynamic": "anc_pregnancy_outcome_relevance.yml"
+ }
+ }
+ }
},
{
- "key": "chk_opv_0",
- "text": "OPV 0",
- "value": false,
+ "key": "early_bf_1hr",
+ "openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "early_bf_1hr",
+ "type": "spinner",
+ "hint": "Breastfed within 1 hour?",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "yes",
+ "no"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "yes",
+ "No": "no"
+ }
},
{
- "key": "chk_bcg",
- "text": "BCG",
- "value": false,
+ "key": "reason_for_not_breast_feeding_within_one_hour",
+ "openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "reason_for_not_breast_feeding_within_one_hour",
+ "type": "spinner",
+ "hint": "Reason why the child was not breast fed within one hour",
+ "values": [
+ "Mother Died",
+ "Baby unable to breast feed",
+ "Replacement Feeding",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "mother_died",
+ "baby_unable_to_breast_feed",
+ "replacement_feeding",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "mother_died": "mother_died",
+ "baby_unable_to_breast_feed": "baby_unable_to_breast_feed",
+ "replacement_feeding": "replacement_feeding",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:early_bf_1hr": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_breast_feeding_within_one_hour",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_breast_feeding_within_one_hour",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not breast feeding the child within one hour",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_breast_feeding_within_one_hour": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "child_bcg_vaccination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_bcg_vaccination",
+ "type": "native_radio",
+ "label": "Was BCG vaccination administered?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "prompt_for_bcg_vacc_not_provided",
+ "type": "toaster_notes",
+ "text": "Provide BCG vaccination to the infant at the first Postnatal care visit or as soon as the BCG vaccine will be available. BCG should not be provided beyond 12-months of infant age",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_bcg_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_bcg_vacc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_bcg_vacc",
+ "type": "spinner",
+ "hint": "Reason as to why the BCG vaccination was not given",
+ "values": [
+ "Out of stock vaccine",
+ "Home delivery"
+ ],
+ "keys": [
+ "out_of_stock_vaccine",
+ "home_delivery"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock_vaccine": "out_of_stock_vaccine",
+ "home_delivery": "home_delivery"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:child_bcg_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "child_opv0_vaccination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_opv0_vaccination",
+ "type": "native_radio",
+ "label": "Was OPV 0 vaccination administered?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "prompt_for_opv0_vacc_not_provided",
+ "type": "toaster_notes",
+ "text": "Provide OPV 0 vaccination to the infant at the first Postnatal care visit or as soon as the OPV 0 vaccine will be available. OPV 0 should not be provided beyond 14 days",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:child_opv0_vaccination": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
}
],
"v_required": {
"value": "true",
- "err": "Please enter the current weight"
+ "err": "Please enter the number of children"
+ }
+ },
+ {
+ "key": "hiv",
+ "type": "hidden",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_pregnancy_outcome_calculation.yml"
+ }
+ }
}
}
]
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_rv_birth_review_and_emergency_plan.json b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_birth_review_and_emergency_plan.json
new file mode 100644
index 0000000000..bfbb15e64d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_birth_review_and_emergency_plan.json
@@ -0,0 +1,291 @@
+{
+ "count": "1",
+ "encounter_type": "Emergency Plan",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {
+ "delivery_place_identified": false,
+ "transport_identified": false,
+ "birth_companion_identified": false,
+ "emergency_funds_identified": false,
+ "household_support_identified": false,
+ "blood_donor_identified": false
+ },
+ "step1": {
+ "title": "Review birth and emergency plan",
+ "fields": [
+ {
+ "key": "delivery_place",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_place",
+ "openmrs_entity_parent": "",
+ "label": "Delivery Place Identified?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "text": "Identified and Prepared",
+ "key": "prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "text": "Not Prepared",
+ "key": "not_prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "name_of_hf",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "name_of_hf",
+ "buttonText": "Select Health Facility",
+ "sort": true,
+ "maxSelectable": 1,
+ "dialogTitle": "Health Facility",
+ "searchHint": "Type Health Facility Name",
+ "options": [
+ ],
+ "type": "multi_select_list",
+ "v_required": {
+ "value": true,
+ "err": "Please select the health facility"
+ },
+ "relevance": {
+ "step1:delivery_place": {
+ "type": "string",
+ "ex": "equalTo(., \"prepared\")"
+ }
+ }
+ },
+ {
+ "key": "transport",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "transport",
+ "openmrs_entity_parent": "",
+ "label": "Prepare and Identify Method Of Transport",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "text": "Identified and Prepared",
+ "key": "prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "text": "Not Prepared",
+ "key": "not_prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "birth_companion",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "birth_companion",
+ "openmrs_entity_parent": "",
+ "label": "Prepare a Birth Companion and Notify",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "text": "Birth Companion Identified and notified",
+ "key": "prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "text": "Birth Companion Not Identified",
+ "key": "not_prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "emergency_funds",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "emergency_funds",
+ "openmrs_entity_parent": "",
+ "label": "Prepare money for delivery and other delivery needs",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "prepared",
+ "text": "Prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "key": "not_prepared",
+ "text": "Not Prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "household_support",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "household_support",
+ "openmrs_entity_parent": "",
+ "label": "Prepare A Household Caregiver For Support",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "text": "Prepared",
+ "key": "prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "text": "Not Prepared",
+ "key": "not_prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "blood_donor",
+ "type": "native_radio",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_donor",
+ "openmrs_entity_parent": "",
+ "label": "Prepare Blood donor standby for blood transfusion",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "prepared",
+ "text": "Prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prepared"
+ },
+ {
+ "key": "not_prepared",
+ "text": "Not Prepared",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_prepared"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_emergency_plan_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_rv_consultation.json b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_consultation.json
new file mode 100644
index 0000000000..dfe9022a23
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_consultation.json
@@ -0,0 +1,707 @@
+{
+ "count": "1",
+ "encounter_type": "ANC Consultation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Consultation (ANC assessment and Update Maternal Handbook)",
+ "fields": [
+ {
+ "key": "examination_findings",
+ "type": "check_box",
+ "label": "Examination Findings on current visit",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "examination_findings",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "puffy_face",
+ "text": "Face is puffy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "puffy_face"
+ },
+ {
+ "key": "pallor",
+ "text": "Pallor (conjunctiva, palms, tip of the tongue, gums)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pallor"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_examination_findings",
+ "type": "toaster_notes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prompt_for_examination_findings",
+ "openmrs_entity_parent": "",
+ "text": "Provide emergency care for severe anaemia with heart/renal failure, elicit the cause and manage according to standard guidelines",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:examination_findings": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "pallor",
+ "puffy_face"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "gest_age_consultation",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age_consultation",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "height",
+ "type": "edit_text",
+ "hint": "Height (CM)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "height",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the height"
+ },
+ "v_min": {
+ "value": "60",
+ "err": "The height must be equal or greater than 60 (CM)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "The height must be equal or less than 200 (CM)"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "height_calculated",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "height_calculated",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_short_stature",
+ "type": "toaster_notes",
+ "text": "Counsel the client on her risk of obstructed labour and advise her to deliver at a health care facility",
+ "openmrs_entity_id": "prompt_for_short_stature",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:height": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"145\")"
+ }
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Weight (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the weight"
+ },
+ "v_min": {
+ "value": "20",
+ "err": "The weight must be equal or greater than 20 (KG)"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "The weight must be equal or less than 300 (KG)"
+ }
+ },
+ {
+ "key": "bmi",
+ "type": "edit_text",
+ "hint": "Body Mass Index (BMI)",
+ "read_only": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bmi",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the height"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the height"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_underweight",
+ "type": "toaster_notes",
+ "text": "Manage the undernourished client using standard guidelines",
+ "openmrs_entity_id": "prompt_for_underweight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:bmi": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"18.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_overweight",
+ "type": "toaster_notes",
+ "text": "Manage the overweight client using standard guidelines",
+ "openmrs_entity_id": "prompt_for_overweight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:bmi": {
+ "type": "numeric",
+ "ex": "greaterThanEqualTo(.,\"29\")"
+ }
+ }
+ },
+ {
+ "key": "fundal_height",
+ "type": "edit_text",
+ "openmrs_entity_id": "fundal_height",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Fundal Height (CM)",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the fundal height"
+ },
+ "v_min": {},
+ "v_max": {
+ "value": "50",
+ "err": "Fundal height must be equal or less than 50 CM"
+ }
+ },
+ {
+ "key": "fetal_heart_rate",
+ "type": "edit_text",
+ "hint": "Count Fetal Heart Rate(bpm)",
+ "openmrs_entity_id": "fetal_heart_rate",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the fetal heart rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Fetal heart rate must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Fetal heart rate must be equal or less than 300"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_fetal_distress",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "prompt_for_fetal_distress",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "lie",
+ "type": "spinner",
+ "openmrs_entity_id": "lie",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Lie",
+ "values": [
+ "Transverse",
+ "Oblique",
+ "Longitudinal"
+ ],
+ "keys": [
+ "transverse",
+ "oblique",
+ "longitudinal"
+ ],
+ "openmrs_choice_ids": {
+ "transverse": "transverse",
+ "oblique": "oblique",
+ "longitudinal": "longitudinal"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_lie",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "presentation",
+ "type": "spinner",
+ "openmrs_entity_id": "presentation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Presentation",
+ "values": [
+ "Breech Presentation",
+ "Cephalic Presentation"
+ ],
+ "keys": [
+ "breech",
+ "cephalic"
+ ],
+ "openmrs_choice_ids": {
+ "breech": "breech",
+ "cephalic": "cephalic"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_presentation",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:presentation": {
+ "type": "string",
+ "ex": "equalTo(., \"breech\")"
+ }
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Blood Pressure)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the systolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Systolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Systolic value must be equal or less than 320"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Blood Pressure)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the diastolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Diastolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Diastolic value must be equal or less than 200"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "The diastolic value must be less than the systolic value"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Manage the hypertension according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of hypotension and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_consultation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pulse_rate",
+ "type": "edit_text",
+ "hint": "Pulse Rate (Beats per minute)",
+ "openmrs_entity_id": "pulse_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the pulse rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The pulse rate must be equal or greater than 0 (bpm)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "The pulse rate must be equal or less than 200 (bpm)"
+ }
+ },
+ {
+ "key": "prompt_for_Bradycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of bradycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Bradycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"60\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_Tachycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of tachycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Tachycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"100\")"
+ }
+ }
+ },
+ {
+ "key": "temperature",
+ "type": "edit_text",
+ "hint": "Temperature (\u2103)",
+ "openmrs_entity_id": "temperature",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the temperature"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Temperature must be equal or greater than 10"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Temperature must be equal or less than 50"
+ }
+ },
+ {
+ "key": "notify_client_has_fever",
+ "type": "toaster_notes",
+ "text": "Conduct relevant laboratory tests to elicit the cause of fever and manage according to standard guidelines ",
+ "openmrs_entity_id": "notify_client_has_fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"37.8\")"
+ }
+ }
+ },
+ {
+ "key": "notify_client_has_hypothermia",
+ "type": "toaster_notes",
+ "text": "Manage the hypothermia according to standard guidelines",
+ "openmrs_entity_id": "notify_client_has_hypothermia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"36.5\")"
+ }
+ }
+ },
+ {
+ "key": "breast",
+ "type": "native_radio",
+ "label": "Breasts",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breast",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Normal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "Abnormal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_breasts",
+ "type": "toaster_notes",
+ "text": "Palpate the breast to elicit mastitis or breast lump.\nProvide antibiotics for mastitis and manage according to standard guidelines.\nRefer for further management if she has a breast lump",
+ "openmrs_entity_id": "prompt_for_breasts",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:breast": {
+ "type": "string",
+ "ex": "equalTo(.,\"abnormal\")"
+ }
+ }
+ },
+ {
+ "key": "lymph_node_under_arm",
+ "type": "native_radio",
+ "label": "Lymph Node (under the arm)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lymph_node_under_arm",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Normal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "Abnormal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_lymph_under_the_arm",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "prompt_for_lymph_under_the_arm",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:lymph_node_under_arm": {
+ "type": "string",
+ "ex": "equalTo(.,\"abnormal\")"
+ }
+ }
+ },
+ {
+ "key": "lymph_node_cervical",
+ "type": "native_radio",
+ "label": "Lymph Node (cervical)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lymph_node_cervical",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Normal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "Abnormal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_lymph_cervical",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "prompt_for_lymph_cervical",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:lymph_node_cervical": {
+ "type": "string",
+ "ex": "equalTo(.,\"abnormal\")"
+ }
+ }
+ },
+ {
+ "key": "consultation_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "consultation_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_rv_lab_test.json b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_lab_test.json
new file mode 100644
index 0000000000..b2b03d1dc9
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_lab_test.json
@@ -0,0 +1,1226 @@
+{
+ "count": "1",
+ "encounter_type": "ANC Lab Tests",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "ANC Lab Tests",
+ "fields": [
+ {
+ "key": "hb_level_test",
+ "type": "native_radio",
+ "label": "HB Level Test",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "HB Level Test conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "HB Level Test not conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "hb_level",
+ "type": "edit_text",
+ "hint": "HB Level (g/dl)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the HB level"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "HB level must be equal or greater than 0 (g/dl)"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "HB level must be equal or less than 20 (g/dl)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please provide a value"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_severe_anaemia_treatment",
+ "type": "toaster_notes",
+ "text": "Manage the severe anaemia according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_severe_anaemia_treatment",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_moderate_anaemia_management",
+ "type": "toaster_notes",
+ "text": "Manage the mild anaemia according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_moderate_anaemia_management",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hb_test",
+ "type": "spinner",
+ "hint": "Reason as to why the HB Level test was not conducted",
+ "values": [
+ "Cuvette Cartridges Out of Stock",
+ "Haemoque machine out of order",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other"
+ ],
+ "keys": [
+ "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "stock_out_of_cuvettes_cartridges": "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order": "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:hb_level_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_hb_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_hb_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Other reason for why the HB Level test was not conducted",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hb_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "blood_for_glucose_test",
+ "type": "native_radio",
+ "label": "Blood For Glucose Test",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_for_glucose_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "test_conducted",
+ "text": "Blood for Glucose Test conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Blood for Glucose Test not conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "type_of_blood_for_glucose_test",
+ "type": "native_radio",
+ "label": "Type Of Blood For Glucose Test Conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_blood_for_glucose_test",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "rbg",
+ "text": " Random Blood Glucose Test (rbg)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rbg",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "gtt",
+ "text": "Glucose Tolerance test (GTT)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gtt"
+ },
+ {
+ "key": "fbg",
+ "text": "Fasting Blood Glucose Test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fbg"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:blood_for_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "blood_for_glucose",
+ "type": "edit_text",
+ "hint": "Blood For Glucose (mmol/L)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_for_glucose",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the blood for glucose (mmol/L)"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Blood for glucose must be equal or greater than 0 (mmol/L)"
+ },
+ "v_max": {
+ "value": "45",
+ "err": "Blood for glucose must be equal or less than 45 (mmol/L)"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the blood for glucose (mmol/L)"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_gestational_diabetes_mellitus",
+ "type": "toaster_notes",
+ "text": "Manage the gestational diabetes mellitus according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_gestational_diabetes_mellitus",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_hypoglycaemia",
+ "type": "toaster_notes",
+ "text": "Manage the hypoglycaemia according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_hypoglycaemia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_blood_glucose_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_blood_glucose_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Blood for Glucose test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other"
+ ],
+ "keys": [
+ "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_are_out_of_stock": "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:blood_for_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_blood_glucose_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_blood_glucose_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Other reason for why the Blood for Glucose test was not conducted",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_blood_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "glucose_in_urine",
+ "type": "native_radio",
+ "label": "Glucose In Urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "glucose_in_urine",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Glucose In Urine Test not conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_glucose_in_urine",
+ "type": "toaster_notes",
+ "text": "Check Random Blood Glucose to rule-out gestational diabetes ",
+ "openmrs_entity_id": "prompt_for_glucose_in_urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:glucose_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_glucose_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_glucose_in_urine_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Glucose in Urine test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other"
+ ],
+ "keys": [
+ "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_are_out_of_stock": "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:glucose_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_glucose_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_glucose_in_urine_test",
+ "type": "edit_text",
+ "hint": "Other reason for why the Glucose in Urine test was not conducted",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_glucose_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "protein_in_urine",
+ "type": "native_radio",
+ "label": "Protein In Urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "protein_in_urine",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Protein In Urine Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_protein_in_urine",
+ "type": "toaster_notes",
+ "text": "Monitor Blood Pressure to rule out pre-eclampsia, elicit symptoms of Urinary Tract Infection and manage the cause of proteinuria according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_protein_in_urine",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:protein_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_protein_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_protein_in_urine_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Protein in Urine test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other"
+ ],
+ "keys": [
+ "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_are_out_of_stock": "test_kits_are_out_of_stock",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:protein_in_urine": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_protein_in_urine_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_protein_in_urine_test",
+ "type": "edit_text",
+ "hint": "Other reason for why the Protein in Urine test was not conducted",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_protein_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "blood_group",
+ "type": "spinner",
+ "hint": "Blood Group",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_group",
+ "openmrs_entity_parent": "",
+ "values": [
+ "A",
+ "B",
+ "AB",
+ "O",
+ "Blood Type Test Not Conducted"
+ ],
+ "keys": [
+ "A",
+ "B",
+ "AB",
+ "O",
+ "test_not_conducted"
+ ],
+ "openmrs_choice_ids": {
+ "A": "A",
+ "B": "B",
+ "AB": "AB",
+ "O": "O",
+ "test_not_conducted": "test_not_conducted"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_blood_group_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_blood_group_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Blood Type Test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:blood_group": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_blood_group_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_blood_group_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting the Blood Type Test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_blood_group_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "rh_factor",
+ "type": "native_radio",
+ "label": "Rh",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rh_factor",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_rh_factor",
+ "type": "toaster_notes",
+ "text": "Refer the client for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:rh_factor": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "hiv",
+ "type": "native_radio",
+ "label": "HIV Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "HIV Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hiv_test",
+ "type": "spinner",
+ "hint": "Reason as to why the HIV test was not conducted",
+ "values": [
+ "Test kits out of stock",
+ "A client was in an emergency situation",
+ "Client refused to be tested",
+ "We are still counselling a client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:hiv": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_hiv_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting HIV test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hiv_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "register_pmtct",
+ "type": "toaster_notes",
+ "text": "Register the client for PMTCT care and follow up",
+ "openmrs_entity_id": "register_pmtct",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hiv": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prescribe_arv",
+ "type": "toaster_notes",
+ "text": "Prescribe ARVs to the client according to standard guidelines",
+ "openmrs_entity_id": "prescribe_arv",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:hiv": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_counselling_before_testing",
+ "type": "native_radio",
+ "label": "Was the client provided with counselling before HIV testing?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_counselling_before_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_counselling_after_testing",
+ "type": "native_radio",
+ "label": "Was the client provided with counselling after HIV testing?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_counselling_after_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "syphilis",
+ "type": "native_radio",
+ "label": "Syphilis Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Syphilis Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prescribe_anti_sy",
+ "type": "toaster_notes",
+ "text": "Prescribe client to Antibiotics",
+ "openmrs_entity_id": "prescribe_anti_sy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "syphilis_treatment",
+ "type": "native_radio",
+ "label": "Was syphilis treatment provided?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis_treatment",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_syphilis_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Syphilis test was not conducted",
+ "values": [
+ "Test kits out of stock",
+ "A client was in an emergency situation",
+ "Client refused to be tested",
+ "We are still counselling a client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:syphilis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_syphilis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_syphilis_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Syphilis test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_syphilis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "hepatitis",
+ "type": "native_radio",
+ "label": "Hepatitis B Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hepatitis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Hepatitis B Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prescribe_arv_hepb_at_above_twenty_eight",
+ "type": "toaster_notes",
+ "text": "Prescribe ARVs to the client according to standard guidelines",
+ "openmrs_entity_id": "prescribe_arv_hepb_at_above_twenty_eight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "counsel_arv_hepb_below_twenty_eight",
+ "type": "toaster_notes",
+ "text": "Counsel on ARVs uptake at 28-weeks of gestation",
+ "openmrs_entity_id": "counsel_arv_hepb_below_twenty_eight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hepatitis_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Hepatitis B test was not conducted",
+ "values": [
+ "Test kits out of stock",
+ "A client was in an emergency situation",
+ "Client refused to be tested",
+ "We are still counselling a client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:hepatitis": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_hepatitis_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_hepatitis_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Hepatitis B test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hepatitis_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_test_at_32",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_at_32",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_test_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_number",
+ "type": "hidden"
+ },
+ {
+ "key": "date_anc_hiv_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "date_anc_hiv_test",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_lab_test_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "lab_test_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lab_test_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_rv_malaria_investigation_form.json b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_malaria_investigation_form.json
new file mode 100644
index 0000000000..f9db361621
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_malaria_investigation_form.json
@@ -0,0 +1,606 @@
+{
+ "count": "1",
+ "encounter_type": "Malaria Investigation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {
+ },
+ "step1": {
+ "title": "Malaria Investigation",
+ "fields": [
+ {
+ "key": "client_on_malaria_medication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_on_malaria_medication",
+ "type": "native_radio",
+ "label": "Is the client on malaria medication",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ]
+ },
+ {
+ "key": "malaria_symptoms_screening",
+ "type": "check_box",
+ "label": "Please select if the client has any of the following Malaria symptoms",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "malaria_symptoms_screening",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "fever_and_chills",
+ "text": "Fever and chills",
+ "openmrs_entity_id": "fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "headache",
+ "text": "Headache",
+ "openmrs_entity_id": "headache",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "pallor",
+ "text": "Pallor",
+ "opemrs_entity_id": "pallor",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "diarrhea",
+ "text": "Diarrhea",
+ "openmrs_entity_id": "diarrhea",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "nausea_and_vomiting",
+ "text": "Nausea And Vomiting",
+ "openmrs_entity_id": "nausea_and_vomiting",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "joint_pains",
+ "text": "Joint Pains",
+ "openmrs_entity_id": "joint_pains",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "body_ache",
+ "text": "Body Ache",
+ "openmrs_entity_id": "body_ache",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "poor_appetite",
+ "text": "Poor Appetite",
+ "openmrs_entity_id": "poor_appetite",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "body_weakness",
+ "text": "Body Weakness",
+ "openmrs_entity_id": "body_weakness",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "enlarged_spleen",
+ "text": "Enlarged Spleen",
+ "openmrs_entity_id": "enlarged_spleen",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "none",
+ "text": "None of the above",
+ "openmrs_entity_id": "none",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:client_on_malaria_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "mRDT_for_malaria",
+ "type": "native_radio",
+ "label": "mRDT for Malaria Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mRDT_for_malaria",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Malaria Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ],
+ "relevance": {
+ "step1:malaria_symptoms_screening": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "fever_and_chills",
+ "headache",
+ "pallor",
+ "diarrhea",
+ "nausea_and_vomiting",
+ "joint_pains",
+ "body_ache",
+ "poor_appetite",
+ "body_weakness",
+ "enlarged_spleen"
+ ]
+ }
+ ]
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "prompt_for_mRDT",
+ "type": "toaster_notes",
+ "text": "Provide anti-malaria medication and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_mRDT",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:mRDT_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_further_management",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "prompt_for_mRDT",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:mRDT_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_malaria_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_malaria_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Malaria test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:mRDT_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_malaria_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_malaria_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Malaria test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_malaria_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy",
+ "type": "hidden",
+ "openmrs_entity_id": "malaria_preventive_therapy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_fv_malaria_investigation_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy_ipt1",
+ "type": "native_radio",
+ "openmrs_entity_id": "malaria_preventive_therapy_ipt1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Malaria Preventive Therapy",
+ "options": [
+ {
+ "key": "ipt1",
+ "text": "IPT1",
+ "openmrs_entity_id": "ipt1",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "medication_not_given",
+ "text": "Malaria preventive therapy not given",
+ "openmrs_entity_id": "medication_not_given",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the medication for Malaria Preventive Therapy"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy_ipt2",
+ "type": "native_radio",
+ "openmrs_entity_id": "malaria_preventive_therapy_ipt2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Malaria Preventive Therapy",
+ "options": [
+ {
+ "key": "ipt2",
+ "text": "IPT2",
+ "openmrs_entity_id": "ipt2",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "medication_not_given",
+ "text": "Malaria preventive therapy not given",
+ "openmrs_entity_id": "medication_not_given",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the medication for Malaria Preventive Therapy"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy_ipt3",
+ "type": "native_radio",
+ "openmrs_entity_id": "malaria_preventive_therapy_ipt3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Malaria Preventive Therapy",
+ "options": [
+ {
+ "key": "ipt3",
+ "text": "IPT3",
+ "openmrs_entity_id": "ipt3",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "medication_not_given",
+ "text": "Malaria preventive therapy not given",
+ "openmrs_entity_id": "medication_not_given",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the medication for Malaria Preventive Therapy"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "malaria_preventive_therapy_ipt4",
+ "type": "native_radio",
+ "openmrs_entity_id": "malaria_preventive_therapy_ipt4",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Malaria Preventive Therapy",
+ "options": [
+ {
+ "key": "ipt4",
+ "text": "IPT4",
+ "openmrs_entity_id": "ipt4",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "medication_not_given",
+ "text": "Malaria preventive therapy not given",
+ "openmrs_entity_id": "medication_not_given",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the medication for Malaria Preventive Therapy"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_malaria_medication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_malaria_medication",
+ "type": "spinner",
+ "hint": "Reason as to why the Malaria medication was not given",
+ "values": [
+ "Out of stock",
+ "The client did not agree to take the medication",
+ "The client is allergic to medication",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_reason_malaria_medication_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_malaria_medication_not_given",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not giving the Malaria medication",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_malaria_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "llin_provision",
+ "type": "native_radio",
+ "openmrs_entity_id": "llin_provision",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Was the client provided with LLINs(Long lasting insecticidal nets)?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity": "concept"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_id": "no",
+ "openmrs_entity": "concept"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_malaria_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_llin",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_llin",
+ "type": "spinner",
+ "hint": "Reason as to why the client was not provided with LLINs",
+ "values": [
+ "Out of stock",
+ "The client refused",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "the_client_refused",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "the_client_refused": "the_client_refused",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:llin_provision": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_llin_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_llin_not_given",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not providing the LLINs",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_providing_llin": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "malaria_investigation_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "malaria_investigation_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_rv_pharmacy.json b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_pharmacy.json
new file mode 100644
index 0000000000..a72c03f85c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_pharmacy.json
@@ -0,0 +1,335 @@
+{
+ "count": "1",
+ "encounter_type": "Medication and Supplements",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Medication and Supplements",
+ "fields": [
+ {
+ "key": "pharmacy",
+ "type": "label",
+ "text": "Prescribe and issue supplements and prophylactic medications",
+ "text_color": "#000000",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "iron_folate_supplements",
+ "type": "native_radio",
+ "label": "Iron and Folate Supplement",
+ "openmrs_entity_id": "iron_folate_supplements",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "text": "FeFo",
+ "key": "FeFo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "FeFo"
+ },
+ {
+ "text": "Folic Acid",
+ "key": "folic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "folic"
+ },
+ {
+ "text": "Medication not given",
+ "key": "medication_not_given",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_not_given"
+ }
+ ]
+ },
+ {
+ "key": "reason_for_giving_folic_acid",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_giving_folic_acid",
+ "type": "spinner",
+ "hint": "Reason as to why Folic Acid was given instead of FEFO",
+ "values": [
+ "Out of stock",
+ "Sickle Cell",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "sickle_cell",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "sickle_cell": "sickle_cell",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:iron_folate_supplements": {
+ "type": "string",
+ "ex": "equalTo(., \"folic\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_giving_folic_acid",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_giving_folic_acid",
+ "type": "edit_text",
+ "hint": "Specify other reasons for giving Folic Acid medication",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_giving_folic_acid": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_iron_folate_supplements",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_iron_folate_supplements",
+ "type": "spinner",
+ "hint": "Reason as to why Iron and Folate Supplement was not given",
+ "values": [
+ "Out of stock",
+ "The client did not agree to take the medication",
+ "The client is allergic to medication",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:iron_folate_supplements": {
+ "type": "string",
+ "ex": "equalTo(., \"medication_not_given\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_fefo_medication_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_fefo_medication_not_given",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not giving FEFO medication",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_iron_folate_supplements": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "deworming",
+ "type": "check_box",
+ "label": "Deworming",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "deworming",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "mebendazole",
+ "albendazole",
+ "medication_not_given"
+ ],
+ "options": [
+ {
+ "text": "Mebendazole(500Mg)",
+ "key": "mebendazole",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mebendazole"
+ },
+ {
+ "text": "Albendazole(400Mg)",
+ "key": "albendazole",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "albendazole"
+ },
+ {
+ "text": "Deworming medication not given",
+ "key": "medication_not_given",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_not_given"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_pharmacy_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_giving_deworming_medication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_giving_deworming_medication",
+ "type": "spinner",
+ "hint": "Reason as to why the Deworming medication was not given",
+ "values": [
+ "Out of stock",
+ "The client did not agree to take the medication",
+ "The client is allergic to medication",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "out_of_stock",
+ "client_did_not_agree_medication",
+ "client_is_allergic_to_medication",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "out_of_stock": "out_of_stock",
+ "client_did_not_agree_medication": "client_did_not_agree_medication",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "client_is_allergic_to_medication": "client_is_allergic_to_medication",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:deworming": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "medication_not_given"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "other_reason_deworming_medication_not_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_deworming_medication_not_given",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not giving the Deworming medication",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_giving_deworming_medication": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "medication_purchased_externally_and_used_under_clinician_supervision",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_purchased_externally_and_used_under_clinician_supervision",
+ "label": "Did the client purchase the Medication/Supplements outside of the facility and take it?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes"
+ },
+ {
+ "key": "no",
+ "text": "No"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_pharmacy_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pharmacy_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pharmacy_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_rv_pregnancy_status.json b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_pregnancy_status.json
new file mode 100644
index 0000000000..c804cc3b37
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_pregnancy_status.json
@@ -0,0 +1,188 @@
+{
+ "count": "1",
+ "encounter_type": "Pregnancy Status",
+ "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"
+ },
+ "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": "Pregnancy Status",
+ "fields": [
+ {
+ "key": "pregnancy_status",
+ "type": "native_radio",
+ "label": "Pregnancy Status",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_status",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "viable",
+ "text": "Viable",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "viable"
+ },
+ {
+ "key": "spontaneous_abortion",
+ "text": "Spontaneous Abortion",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spontaneous_abortion"
+ },
+ {
+ "key": "intrauterine_fetal_death",
+ "text": "Intrauterine Fetal Death (Still Birth)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "intrauterine_fetal_death"
+ }
+ ]
+ },
+ {
+ "key": "reg_cpac",
+ "type": "toaster_notes",
+ "text": "Provide comprehensive post-abortal care (cPAC) according to standard guidelines",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:pregnancy_status": {
+ "type": "string",
+ "ex": "equalTo(.,\"spontaneous_abortion\")"
+ }
+ }
+ },
+ {
+ "key": "still_birth",
+ "type": "toaster_notes",
+ "text": "Manage the client according to Standard Guidelines and counsel the client on appropriate Family Planning methods",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:pregnancy_status": {
+ "type": "string",
+ "ex": "equalTo(.,\"intrauterine_fetal_death\")"
+ }
+ }
+ },
+ {
+ "key": "pregnancy_status_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy_status_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ },
+ {
+ "key": "delivery_place",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_place",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "hint": "The place the mother gave birth",
+ "values": [
+ "At a health facility",
+ "Birth before Arrival (BBA)",
+ "At home",
+ "Traditional birth attendant"
+ ],
+ "keys": [
+ "At a health facility",
+ "Birth before Arrival (BBA)",
+ "At home",
+ "Traditional birth attendant"
+ ],
+ "openmrs_choice_ids": {
+ "At a health facility": "At a health facility",
+ "Birth before Arrival (BBA)": "Birth before Arrival (BBA)",
+ "At home": "At home",
+ "Traditional birth attendant": "Traditional birth attendant"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one option"
+ },
+ "relevance": {
+ "step1:pregnancy_status": {
+ "type": "string",
+ "ex": "equalTo(.,\"intrauterine_fetal_death\")"
+ }
+ }
+ },
+ {
+ "key": "delivery_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_date",
+ "type": "date_picker",
+ "hint": "Delivery Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today",
+ "relevance": {
+ "step1:pregnancy_status": {
+ "type": "string",
+ "ex": "equalTo(.,\"intrauterine_fetal_death\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select the delivery date"
+ }
+ },
+ {
+ "key": "preg_outcome",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "type": "hidden",
+ "openmrs_entity_id": "preg_outcome",
+ "value": "still_born",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_pregnancy_status_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/anc_rv_triage.json b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_triage.json
new file mode 100644
index 0000000000..78e4a512ce
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/anc_rv_triage.json
@@ -0,0 +1,389 @@
+{
+ "count": "1",
+ "encounter_type": "Triage",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Triage",
+ "fields": [
+ {
+ "key": "gest_age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "hint": "Gestational Age (GA) in Weeks",
+ "type": "edit_text",
+ "editable": true,
+ "read_only": true
+ },
+ {
+ "key": "edd",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "edd",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_triage_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_menstrual_period",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_triage_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "rapid_examination",
+ "type": "check_box",
+ "label": "Assess general condition of the woman immediately on arrival at antenatal clinic",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rapid_examination",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "facial_expression",
+ "text": "Facial Expression (pain expression)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facial_expression"
+ },
+ {
+ "key": "pallor",
+ "text": "Pallor",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pallor"
+ },
+ {
+ "key": "sweating",
+ "text": "Sweating",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sweating"
+ },
+ {
+ "key": "shivering",
+ "text": "Shivering",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "shivering"
+ },
+ {
+ "key": "difficulty_in_breathing",
+ "text": "Difficulty in breathing",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "difficulty_in_breathing"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_rapid_examination",
+ "type": "toaster_notes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prompt_for_rapid_examination",
+ "openmrs_entity_parent": "",
+ "text": "Provide supportive care and refer the client for advanced emergency care",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:rapid_examination": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "pallor",
+ "sweating",
+ "shivering",
+ "difficulty_in_breathing",
+ "facial_expression"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "reasons_to_clinic",
+ "type": "native_radio",
+ "label": "Why did you come to the clinic today?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_to_clinic",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "text": "Routine Scheduled Visit",
+ "key": "routine_visit",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "routine_visit"
+ },
+ {
+ "text": "Sick/Concerned",
+ "key": "sick_concerned",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sick_concerned"
+ }
+ ]
+ },
+ {
+ "key": "client_concern",
+ "type": "edit_text",
+ "edit_type": "text",
+ "hint": "What is your concern?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_concern",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_triage_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "danger_signs",
+ "type": "check_box",
+ "label": "Ask, look, and feel if the woman is/has: ",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "danger_signs",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "bleeding_vag",
+ "text": "Bleeding Vaginally",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bleeding_vag"
+ },
+ {
+ "key": "headache_visual_disturbance",
+ "text": "Headache and Visual Disturbance",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "headache_visual_disturbance"
+ },
+ {
+ "key": "severely_pale",
+ "text": "Severely Pale",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severely_pale"
+ },
+ {
+ "key": "severe_vomiting",
+ "text": "Severe Vomiting",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_vomiting"
+ },
+ {
+ "key": "convulsion",
+ "text": "Convulsion",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "convulsion"
+ },
+ {
+ "key": "looking_very_ill",
+ "text": "Looking Very Ill (lethargic, drowsy)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "looking_very_ill"
+ },
+ {
+ "key": "fever",
+ "text": "A Fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fever"
+ },
+ {
+ "key": "unconscious",
+ "text": "Unconscious",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unconscious"
+ },
+ {
+ "key": "severe_pain",
+ "text": "Severe Pain",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_pain"
+ },
+ {
+ "key": "severe_breathing_difficulty",
+ "text": "Severe Breathing Difficulty",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_breathing_difficulty"
+ },
+ {
+ "key": "in_labour",
+ "text": "In Labour",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "in_labour"
+ },
+ {
+ "key": "imminent_labour",
+ "text": "Imminent Labour",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "imminent_labour"
+ },
+ {
+ "key": "reduced_fetal_movement",
+ "text": "Reduced or no fetal movement",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reduced_fetal_movement"
+ },
+ {
+ "key": "sacrum_oedema",
+ "text": "Oedema of the face and sacrum",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sacrum_oedema"
+ },
+ {
+ "key": "other",
+ "text": "Other (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ]
+ },
+ {
+ "key": "is_emergency",
+ "type": "toaster_notes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_emergency",
+ "openmrs_entity_parent": "",
+ "text": "Provide emergency care to the client",
+ "toaster_type": "problem",
+ "toaster_info": "The client exhibits one or more of the emergency signs and needs emergency care",
+ "relevance": {
+ "step1:danger_signs": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "bleeding_vag",
+ "headache_visual_disturbance",
+ "severely_pale",
+ "severe_vomiting",
+ "severe_breathing_difficulty",
+ "convulsion",
+ "looking_very_ill",
+ "fever",
+ "unconscious",
+ "severe_pain",
+ "in_labour",
+ "imminent_labour",
+ "reduced_fetal_movement",
+ "sacrum_oedema"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "other_danger_signs",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_danger_signs",
+ "type": "edit_text",
+ "hint": "Other danger sign(s)",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the other danger sign(s)"
+ },
+ "relevance": {
+ "step1:danger_signs": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "anc_rv_triage_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "triage_completion_status",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "triage_completion_status",
+ "openmrs_entity_parent": "",
+ "value": "pending"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/birth_certification.json b/opensrp-chw-hf/src/main/assets/json.form/birth_certification.json
index 7ec9b260de..568a5487a8 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/birth_certification.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/birth_certification.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/cdp_condom_distribution_outside.json b/opensrp-chw-hf/src/main/assets/json.form/cdp_condom_distribution_outside.json
new file mode 100644
index 0000000000..39e0bc8eae
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/cdp_condom_distribution_outside.json
@@ -0,0 +1,488 @@
+{
+ "count": "1",
+ "encounter_type": "CDP Distribution Outside Facility",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Condom Distribution",
+ "fields": [
+ {
+ "key": "number_of_condoms_available",
+ "type": "toaster_notes",
+ "text": "",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_brand",
+ "label": "Select condom brand",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "public_sc",
+ "text": "Zana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "public_sc"
+ },
+ {
+ "key": "dume",
+ "text": "Dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dume"
+ },
+ {
+ "key": "salama",
+ "text": "Salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "salama"
+ },
+ {
+ "key": "familia",
+ "text": "Familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "familia"
+ },
+ {
+ "key": "others",
+ "text": "Others",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the condom brand"
+ }
+ },
+ {
+ "key": "male_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom_brand",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "female_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom_brand",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_condom_brand",
+ "type": "edit_text",
+ "hint": "Other condom brand",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the other condom brand"
+ },
+ "relevance": {
+ "step1:condom_brand": {
+ "type": "string",
+ "ex": "equalTo(., \"others\")"
+ }
+ }
+ },
+ {
+ "key": "condom_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_public_sc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_public_sc",
+ "type": "edit_text",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_public_sc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_public_sc",
+ "type": "edit_text",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_dume",
+ "type": "edit_text",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_dume",
+ "type": "edit_text",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_salama",
+ "type": "edit_text",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_salama",
+ "type": "edit_text",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_familia",
+ "type": "edit_text",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_familia",
+ "type": "edit_text",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_other",
+ "type": "edit_text",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_other",
+ "type": "hidden",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms_offset",
+ "type": "hidden",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms_offset",
+ "type": "hidden",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "quantity_response",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "quantity_response",
+ "type": "hidden",
+ "hint": "Number of condoms distributed (Pieces)",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "stock_event_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stock_event_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "condom_restock_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_restock_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/cdp_condom_distribution_within.json b/opensrp-chw-hf/src/main/assets/json.form/cdp_condom_distribution_within.json
new file mode 100644
index 0000000000..f391943982
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/cdp_condom_distribution_within.json
@@ -0,0 +1,657 @@
+{
+ "count": "1",
+ "encounter_type": "CDP Distribution Within Facility",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Condom Distribution",
+ "fields": [
+ {
+ "key": "condom_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_type",
+ "label": "Select condom type",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "male_condom",
+ "text": "Male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom"
+ },
+ {
+ "key": "female_condom",
+ "text": "Female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the condom type"
+ }
+ },
+ {
+ "key": "number_of_condoms_available",
+ "type": "toaster_notes",
+ "text": "",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_brand",
+ "label": "Select condom brand",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "public_sc",
+ "text": "Zana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "public_sc"
+ },
+ {
+ "key": "dume",
+ "text": "Dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dume"
+ },
+ {
+ "key": "salama",
+ "text": "Salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "salama"
+ },
+ {
+ "key": "familia",
+ "text": "Familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "familia"
+ },
+ {
+ "key": "others",
+ "text": "Others",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the condom brand"
+ }
+ },
+ {
+ "key": "male_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom_brand",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "female_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom_brand",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_condom_brand",
+ "type": "edit_text",
+ "hint": "Other condom brand",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the other condom brand"
+ },
+ "relevance": {
+ "step1:condom_brand": {
+ "type": "string",
+ "ex": "equalTo(., \"others\")"
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_public_sc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_public_sc",
+ "type": "edit_text",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_public_sc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_public_sc",
+ "type": "edit_text",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_dume",
+ "type": "edit_text",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_dume",
+ "type": "edit_text",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_salama",
+ "type": "edit_text",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_salama",
+ "type": "edit_text",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_familia",
+ "type": "edit_text",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_familia",
+ "type": "edit_text",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_male_condoms_other",
+ "type": "edit_text",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_female_condoms_other",
+ "type": "hidden",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms_offset",
+ "type": "hidden",
+ "hint": "Number of male condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms_offset",
+ "type": "hidden",
+ "hint": "Number of female condoms distributed (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "quantity_response",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "quantity_response",
+ "type": "hidden",
+ "hint": "Number of condoms distributed (Pieces)",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "stock_event_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stock_event_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "condom_restock_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_restock_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "condom_restock_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_restock_date",
+ "type": "date_picker",
+ "hint": "Condom distribution date",
+ "expanded": false,
+ "min_date": "today-1m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the distribution date"
+ }
+ },
+ {
+ "key": "stock_event_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stock_event_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_distribution_within_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "point_of_service",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "point_of_service",
+ "label": "Select point of service",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "ctc",
+ "text": "CTC",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc"
+ },
+ {
+ "key": "rch_clinic",
+ "text": "RCH Clinic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rch_clinic"
+ },
+ {
+ "key": "opd",
+ "text": "OPD",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "opd"
+ },
+ {
+ "key": "tb_clinic",
+ "text": "TB Clinic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_clinic"
+ },
+ {
+ "key": "outreach",
+ "text": "Outreach",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach"
+ },
+ {
+ "key": "other",
+ "text": "Other (Specify)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the point of service"
+ }
+ },
+ {
+ "key": "other_pos",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_pos",
+ "type": "edit_text",
+ "hint": "Other point of service",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the other condom brand"
+ },
+ "relevance": {
+ "step1:point_of_service": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "distributing_person_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "distributing_person_name",
+ "type": "edit_text",
+ "hint": "Distributing person's name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the name"
+ }
+ },
+ {
+ "key": "distributing_person_position",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "distributing_person_position",
+ "type": "edit_text",
+ "hint": "Distributing person's position",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the position"
+ }
+ },
+ {
+ "key": "distributing_person_phone",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "distributing_person_phone",
+ "type": "edit_text",
+ "hint": "Distributing person's phone number",
+ "edit_type": "number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the phone number"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/cdp_facility_order_form.json b/opensrp-chw-hf/src/main/assets/json.form/cdp_facility_order_form.json
new file mode 100644
index 0000000000..9569a42744
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/cdp_facility_order_form.json
@@ -0,0 +1,160 @@
+{
+ "count": "1",
+ "encounter_type": "CDP Order From Facility",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Request Condoms",
+ "fields": [
+ {
+ "key": "condom_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_type",
+ "label": "Select condom type",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "male_condom",
+ "text": "Male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom"
+ },
+ {
+ "key": "female_condom",
+ "text": "Female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the condom type"
+ }
+ },
+ {
+ "key": "other_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_condom_brand",
+ "type": "edit_text",
+ "hint": "Other condom brand",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the other condom brand"
+ },
+ "relevance": {
+ "step1:condom_brand": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "requested_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "requested_condoms",
+ "type": "edit_text",
+ "hint": "Number of condoms ordered (Pieces)",
+ "edit_type": "number",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err":"Please enter the number"
+ }
+ },
+ {
+ "key": "receiving_order_facility",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_order_facility",
+ "buttonText": "Select Facility",
+ "sort": true,
+ "maxSelectable": 1,
+ "dialogTitle": "Choose Health Facility Receiving Order",
+ "searchHint": "Type Health Facility Name",
+ "options": [
+ ],
+ "type": "multi_select_list",
+ "v_required": {
+ "value": true,
+ "err": "Please select the health facility"
+ }
+ },
+ {
+ "key": "request_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "request_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_order_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "condom_order_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_order_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_condom_order_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/cdp_receive_condom_facility.json b/opensrp-chw-hf/src/main/assets/json.form/cdp_receive_condom_facility.json
new file mode 100644
index 0000000000..c3ed3f735f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/cdp_receive_condom_facility.json
@@ -0,0 +1,211 @@
+{
+ "count": "1",
+ "encounter_type": "CDP Receive From Facility",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Receive Condom from Facility",
+ "fields": [
+ {
+ "key": "condom_receive_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_receive_date",
+ "type": "date_picker",
+ "hint": "Condom receive date",
+ "expanded": false,
+ "min_date": "today-1m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the receiving date"
+ }
+ },
+ {
+ "key": "receiving_person_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_name",
+ "type": "edit_text",
+ "hint": "Condom receiving person's name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the name"
+ }
+ },
+ {
+ "key": "receiving_person_position",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_position",
+ "type": "edit_text",
+ "hint": "Condom receiving person's position",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the position"
+ }
+ },
+ {
+ "key": "receiving_person_phone",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_phone",
+ "type": "edit_text",
+ "hint": "Condom receiving person's phone number",
+ "edit_type": "number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the phone number"
+ }
+ },
+ {
+ "key": "condom_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_receive_condom_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_male_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms_offset",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_receive_condom_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_female_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms_offset",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_receive_condom_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "batch_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "batch_number",
+ "type": "edit_text",
+ "hint": "Batch Number",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the batch number"
+ }
+ },
+ {
+ "key": "expiry_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "expiry_date",
+ "type": "date_picker",
+ "hint": "Expiry Date",
+ "expanded": false,
+ "min_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Expiry date is required"
+ }
+ },
+ {
+ "key": "stock_event_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stock_event_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_receive_condom_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "condom_restock_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_restock_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_receive_condom_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/cdp_receive_condom_from_organizations.json b/opensrp-chw-hf/src/main/assets/json.form/cdp_receive_condom_from_organizations.json
new file mode 100644
index 0000000000..bbdbdce90b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/cdp_receive_condom_from_organizations.json
@@ -0,0 +1,523 @@
+{
+ "count": "1",
+ "encounter_type": "CDP Restock",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Receive Condom from Organizations",
+ "fields": [
+ {
+ "key": "condom_receive_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_receive_date",
+ "type": "date_picker",
+ "hint": "Condom receive date",
+ "expanded": false,
+ "min_date": "today-1m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the receiving date"
+ }
+ },
+ {
+ "key": "condom_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_type",
+ "type": "check_box",
+ "label": "Select condom type",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "male_condom",
+ "text": "Male",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom"
+ },
+ {
+ "key": "female_condom",
+ "text": "Female",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the condom type"
+ }
+ },
+ {
+ "key": "male_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condom_brand",
+ "label": "Select the Male condom brand",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "public_sc",
+ "text": "Zana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "public_sc"
+ },
+ {
+ "key": "dume",
+ "text": "Dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dume"
+ },
+ {
+ "key": "salama",
+ "text": "Salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "salama"
+ },
+ {
+ "key": "familia",
+ "text": "Familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "familia"
+ },
+ {
+ "key": "other",
+ "text": "Other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the condom brand"
+ },
+ "relevance": {
+ "step1:condom_type": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "male_condom"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "other_male_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_male_condom_brand",
+ "type": "edit_text",
+ "hint": "Other condom brand",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the brand"
+ },
+ "relevance": {
+ "step1:male_condom_brand": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "restocked_male_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms_offset",
+ "type": "edit_text",
+ "hint": "Number of restocked Male condoms (Pieces)",
+ "edit_type": "number",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err":"Please enter the number"
+ },
+ "relevance": {
+ "step1:condom_type": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "male_condom"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "female_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condom_brand",
+ "label": "Select the Female condom brand",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "public_sc",
+ "text": "Zana",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "public_sc"
+ },
+ {
+ "key": "dume",
+ "text": "Dume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dume"
+ },
+ {
+ "key": "salama",
+ "text": "Salama",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "salama"
+ },
+ {
+ "key": "familia",
+ "text": "Familia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "familia"
+ },
+ {
+ "key": "other",
+ "text": "Other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the condom brand"
+ },
+ "relevance": {
+ "step1:condom_type": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "female_condom"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "other_female_condom_brand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_female_condom_brand",
+ "type": "edit_text",
+ "hint": "Other condom brand",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the brand"
+ },
+ "relevance": {
+ "step1:female_condom_brand": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "restocked_female_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms_offset",
+ "type": "edit_text",
+ "hint": "Number of restocked Female condoms (Pieces)",
+ "edit_type": "number",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err":"Please enter the number"
+ },
+ "relevance": {
+ "step1:condom_type": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "female_condom"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "issuing_organization",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "issuing_organization",
+ "label": "Select issuing organization",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "MSD",
+ "text": "MSD",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "MSD"
+ },
+ {
+ "key": "PSI",
+ "text": "PSI",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "PSI"
+ },
+ {
+ "key": "T-MARC",
+ "text": "T-MARC",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "T-MARC"
+ },
+ {
+ "key": "other",
+ "text": "Other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the organization"
+ }
+ },
+ {
+ "key": "other_issuing_organization",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_issuing_organization",
+ "type": "edit_text",
+ "hint": "Other issuing organization",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the name"
+ },
+ "relevance": {
+ "step1:issuing_organization": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "batch_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "batch_number",
+ "type": "edit_text",
+ "hint": "Batch Number",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the batch number"
+ }
+ },
+ {
+ "key": "expiry_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "expiry_date",
+ "type": "date_picker",
+ "hint": "Expiry Date",
+ "expanded": false,
+ "min_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Expiry date is required"
+ }
+ },
+ {
+ "key": "delivering_person_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivering_person_name",
+ "type": "edit_text",
+ "hint": "Condom delivering person's name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the name"
+ }
+ },
+ {
+ "key": "delivering_person_position",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivering_person_position",
+ "type": "edit_text",
+ "hint": "Condom delivering person's position",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the position"
+ }
+ },
+ {
+ "key": "delivering_person_phone",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivering_person_phone",
+ "type": "edit_text",
+ "hint": "Condom delivering person's phone number",
+ "edit_type": "number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the phone number"
+ }
+ },
+ {
+ "key": "receiving_person_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_name",
+ "type": "edit_text",
+ "hint": "Condom receiving person's name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the name"
+ }
+ },
+ {
+ "key": "receiving_person_position",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_position",
+ "type": "edit_text",
+ "hint": "Condom receiving person's position",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the position"
+ }
+ },
+ {
+ "key": "receiving_person_phone",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "receiving_person_phone",
+ "type": "edit_text",
+ "hint": "Condom receiving person's phone number",
+ "edit_type": "number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the phone number"
+ }
+ },
+ {
+ "key": "stock_event_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stock_event_type",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_receive_condom_msd_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "condom_restock_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_restock_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "cdp_receive_condom_msd_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/child_enrollment.json b/opensrp-chw-hf/src/main/assets/json.form/child_enrollment.json
index d43ddb333c..e6a1359911 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/child_enrollment.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/child_enrollment.json
@@ -16,11 +16,6 @@
"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",
@@ -54,35 +49,14 @@
"step1": {
"title": "Add Child Under 5",
"fields": [
- {
- "key": "sync_location_id",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "sync_location_id",
- "type": "spinner",
- "hint": "Select CHW Location",
- "v_required": {
- "value": "true",
- "err": "Please select CHW Location"
- }
- },
- {
- "key": "photo",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "",
- "type": "choose_image",
- "uploadButtonText": "Take a picture of the person"
- },
{
"key": "unique_id",
"openmrs_entity_parent": "",
"openmrs_entity": "person_identifier",
"openmrs_entity_id": "opensrp_id",
- "type": "barcode",
- "barcode_type": "qrcode",
- "hint": "Boresha Afya ID",
- "scanButtonText": "Scan QR Code",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Kituoni ID",
"v_numeric": {
"value": "true",
"err": "Please enter a valid ID"
@@ -101,7 +75,7 @@
"hint": "Surname",
"edit_type": "name",
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
"err": "Please enter a valid name"
},
"v_required": {
@@ -174,7 +148,7 @@
"err": "Please enter first name"
},
"v_regex": {
- "value": "[A-Za-z\\s\\-]*",
+ "value": "[A-Za-z\\s\\-\\']*",
"err": "Please enter a valid name"
}
},
@@ -193,7 +167,7 @@
"err": "Please enter middle name"
},
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
"err": "Please Enter a Valid Name"
}
},
@@ -237,7 +211,14 @@
"text_size": "18px",
"value": "false"
}
- ]
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family-child-relevance.yml"
+ }
+ }
+ }
},
{
"key": "age",
@@ -278,9 +259,9 @@
"type": "spinner",
"hint": "Health insurance provider",
"values": [
- "Community Health Fund (CHF)",
- "iCHF",
+ "Community Health Fund (CHF)/(iCHF)",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
"Tiba Kwa Kadi (TIKA)",
"AAR Healthcare",
"Strategies Insurance",
@@ -294,8 +275,8 @@
],
"keys": [
"Community Health Fund (CHF)",
- "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
"Tiba Kwa Kadi (TIKA)",
"AAR Healthcare",
"Strategies Insurance",
@@ -309,8 +290,8 @@
],
"openmrs_choice_ids": {
"Community Health Fund (CHF)": "Community_Health_Fund",
- "iCHF": "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
"Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
"AAR Healthcare": "AAR_Healthcare",
"AAR Strategies Insurance": "Strategies_Insurance",
@@ -389,7 +370,7 @@
"key": "disabilities",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "disabilities",
"type": "spinner",
"hint": "Physical disabilities",
"values": [
@@ -401,8 +382,8 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
@@ -413,10 +394,62 @@
"key": "type_of_disability",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "edit_type": "name",
- "hint": "Type of physical disabilities",
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "label": "Type of physical disabilities",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Mobility and Physical Impairments",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Spinal Cord Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Head Injuries - Brain Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Vision Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Hearing Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Cognitive or Learning Disabilities",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Psychological Disorders",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Invisible Disabilities",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -426,14 +459,14 @@
},
"v_required": {
"value": true,
- "err": "Please enter type of physical disabilities"
+ "err": "Please select the type of physical disabilities"
}
},
{
"key": "birth_cert_available",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "165406AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "birth_cert_available",
"type": "spinner",
"hint": "Birth registration/certificate",
"values": [
@@ -445,15 +478,22 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family-child-relevance.yml"
+ }
+ }
}
},
{
"key": "birth_regist_number",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "birth_regist_number",
"type": "edit_text",
"hint": "Birth registration number",
"relevance": {
@@ -468,7 +508,7 @@
"key": "rhc_card",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164147AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "rhc_card",
"type": "spinner",
"hint": "Does the child have RCH card 1/child growth booklet?",
"values": [
@@ -480,15 +520,15 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
}
},
{
"key": "nutrition_status",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "163301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "nutrition_status",
"type": "spinner",
"hint": "Nutrition status",
"values": [
@@ -502,9 +542,9 @@
"Red"
],
"openmrs_choice_ids": {
- "Green": "160909AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Grey": "163639AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "Red": "127778AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Green": "Green",
+ "Grey": "Grey",
+ "Red": "Red"
},
"v_required": {
"value": "true",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/child_hv_deworming.json b/opensrp-chw-hf/src/main/assets/json.form/child_hv_deworming.json
index d9b992c422..a93986677f 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/child_hv_deworming.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/child_hv_deworming.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/child_hv_vaccine_card_received.json b/opensrp-chw-hf/src/main/assets/json.form/child_hv_vaccine_card_received.json
index d919375b1f..19e68a3ce8 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/child_hv_vaccine_card_received.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/child_hv_vaccine_card_received.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/child_hv_vitamin_a.json b/opensrp-chw-hf/src/main/assets/json.form/child_hv_vitamin_a.json
index 589d441713..890cde9ab4 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/child_hv_vitamin_a.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/child_hv_vitamin_a.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/child_sick_form.json b/opensrp-chw-hf/src/main/assets/json.form/child_sick_form.json
index 685882890e..2b72a5ee3d 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/child_sick_form.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/child_sick_form.json
@@ -18,11 +18,6 @@
"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",
@@ -206,32 +201,27 @@
{
"key": "Bloody_diarrhoea",
"openmrs_choice_id": "138868AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Bloody diarrhoea",
- "value": false
+ "text": "Bloody diarrhoea"
},
{
"key": "Fever",
"openmrs_choice_id": "140238AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Fever",
- "value": false
+ "text": "Fever"
},
{
"key": "Vomiting",
"openmrs_choice_id": "122983AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Vomiting",
- "value": false
+ "text": "Vomiting"
},
{
"key": "Other",
"openmrs_choice_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Other",
- "value": false
+ "text": "Other"
},
{
"key": "None",
"openmrs_choice_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "None",
- "value": false
+ "text": "None"
}
],
"exclusive": [
@@ -356,32 +346,27 @@
{
"key": "ORS_solution",
"openmrs_choice_id": "351AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "ORS solution",
- "value": false
+ "text": "ORS solution"
},
{
"key": "IV_infusion_drip",
"openmrs_choice_id": "162651AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "IV infusion (drip)",
- "value": false
+ "text": "IV infusion (drip)"
},
{
"key": "Zinc",
"openmrs_choice_id": "86672AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Zinc",
- "value": false
+ "text": "Zinc"
},
{
"key": "Other_treatments",
"openmrs_choice_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Other treatments",
- "value": false
+ "text": "Other treatments"
},
{
"key": "None",
"openmrs_choice_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "None",
- "value": false
+ "text": "None"
}
],
"exclusive": [
@@ -471,20 +456,17 @@
{
"key": "ORS_Packs",
"openmrs_choice_id": "351AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "ORS Packs",
- "value": false
+ "text": "ORS Packs"
},
{
"key": "Zinc_pills",
"openmrs_choice_id": "86672AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Zinc (pills)",
- "value": false
+ "text": "Zinc (pills)"
},
{
"key": "Other_drugs",
"openmrs_choice_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "text": "Other drugs",
- "value": false
+ "text": "Other drugs"
}
],
"relevance": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form/family_details_register.json b/opensrp-chw-hf/src/main/assets/json.form/family_details_register.json
index cf37fb39e1..5498da3abc 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/family_details_register.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/family_details_register.json
@@ -16,11 +16,6 @@
"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",
@@ -54,30 +49,13 @@
"step1": {
"title": "Family Details",
"fields": [
- {
- "key": "fam_name",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "first_name",
- "type": "edit_text",
- "hint": "Family name",
- "edit_type": "name",
- "v_required": {
- "value": "true",
- "err": "Please enter the family name"
- },
- "v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Please enter a valid name"
- }
- },
{
"key": "unique_id",
"openmrs_entity_parent": "",
"openmrs_entity": "person_identifier",
"openmrs_entity_id": "opensrp_id",
"hidden": "true",
- "type": "barcode",
+ "type": "edit_text",
"barcode_type": "qrcode",
"hint": "ID *",
"scanButtonText": "Scan QR Code",
@@ -92,10 +70,10 @@
"openmrs_entity": "person_address",
"openmrs_entity_id": "cityVillage",
"type": "edit_text",
- "hint": "Village/Town",
+ "hint": "Area name",
"v_required": {
"value": "true",
- "err": "Please enter the village or town"
+ "err": "Please enter the name of area or town"
}
},
{
@@ -107,25 +85,15 @@
"hint": "Landmark"
},
{
- "key": "gps",
+ "key": "sync_location_id",
"openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "text",
- "type": "gps"
- },
- {
- "key": "nearest_facility",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "162724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "text",
- "type": "tree",
- "hint": "Nearest health facility",
- "tree": [],
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "sync_location_id",
+ "type": "spinner",
+ "hint": "Select CHW Location",
"v_required": {
- "value": true,
- "err": "Please enter the nearest health facility"
+ "value": "true",
+ "err": "Please select CHW Location"
}
}
]
diff --git a/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_child.json b/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_child.json
index 2aa281f5f1..0b041f686b 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_child.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_child.json
@@ -16,11 +16,6 @@
"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",
@@ -114,6 +109,25 @@
"Other": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
},
+ {
+ "key": "other_reason_for_removing_the_client",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_removing_the_client",
+ "type": "edit_text",
+ "hint": "Specify other reasons",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:remove_reason": {
+ "type": "string",
+ "ex": "equalTo(., \"Other\")"
+ }
+ }
+ },
{
"key": "dob",
"openmrs_entity_parent": "",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_family.json b/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_family.json
index d9c23b6bd3..1f6687eca2 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_family.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_family.json
@@ -16,11 +16,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_member.json b/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_member.json
index 2176efa5ce..773b656e45 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_member.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/family_details_remove_member.json
@@ -16,11 +16,6 @@
"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",
@@ -114,6 +109,25 @@
"Other": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
},
+ {
+ "key": "other_reason_for_removing_the_client",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_removing_the_client",
+ "type": "edit_text",
+ "hint": "Specify other reasons",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:remove_reason": {
+ "type": "string",
+ "ex": "equalTo(., \"Other\")"
+ }
+ }
+ },
{
"key": "dob",
"openmrs_entity_parent": "",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/family_member_register.json b/opensrp-chw-hf/src/main/assets/json.form/family_member_register.json
index f4e80e3ca5..7e33e4f700 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/family_member_register.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/family_member_register.json
@@ -16,11 +16,6 @@
"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",
@@ -54,35 +49,14 @@
"step1": {
"title": "Add Family Member",
"fields": [
- {
- "key": "sync_location_id",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "sync_location_id",
- "type": "spinner",
- "hint": "Select CHW Location",
- "v_required": {
- "value": "true",
- "err": "Please select CHW Location"
- }
- },
- {
- "key": "photo",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "",
- "type": "choose_image",
- "uploadButtonText": "Take a picture of the person"
- },
{
"key": "unique_id",
"openmrs_entity_parent": "",
"openmrs_entity": "person_identifier",
"openmrs_entity_id": "opensrp_id",
- "type": "barcode",
- "barcode_type": "qrcode",
- "hint": "Boresha Afya ID",
- "scanButtonText": "Scan QR Code",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Kituoni ID",
"v_numeric": {
"value": "true",
"err": "Please enter a valid ID"
@@ -95,13 +69,13 @@
{
"key": "surname",
"openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "last_name",
"type": "edit_text",
"hint": "Surname",
"edit_type": "name",
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
"err": "Please enter a valid name"
},
"v_required": {
@@ -172,7 +146,7 @@
"err": "Please enter the first name"
},
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
"err": "Please enter a valid name"
}
},
@@ -185,7 +159,7 @@
"hint": "Middle name",
"edit_type": "name",
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
"err": "Please enter a valid name"
},
"v_required": {
@@ -246,7 +220,14 @@
"text_size": "18px",
"value": "false"
}
- ]
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_member_relevance.yml"
+ }
+ }
+ }
},
{
"key": "age",
@@ -255,6 +236,11 @@
"openmrs_entity_id": "age",
"type": "edit_text",
"hint": "Age",
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid age"
+ },
"v_numeric": {
"value": "true",
"err": "Number must begin with 0 and must be a total of 10 digits in length"
@@ -279,13 +265,106 @@
"err": "Please enter the age"
}
},
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Sex",
+ "values": [
+ "Male",
+ "Female"
+ ],
+ "keys": [
+ "Male",
+ "Female"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the sex"
+ }
+ },
+ {
+ "key": "marital_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "marital_status",
+ "type": "spinner",
+ "hint": "Client's Marital Status?",
+ "values": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "keys": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "openmrs_choice_ids": {
+ "Single": "Single",
+ "Married": "Married",
+ "Divorced": "Divorced",
+ "Widowed": "Widowed",
+ "Cohabitation": "Cohabitation"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_member_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Phone number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ }
+ },
+ {
+ "key": "other_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_phone_number",
+ "type": "edit_text",
+ "hint": "Alternative phone number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ }
+ },
{
"key": "id_avail",
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "id_avail",
"type": "check_box",
- "label": "Do have any of the following IDs?",
+ "combine_checkbox_option_values": "true",
+ "label": "Do you have any of the following IDs?",
"label_text_style": "normal",
"text_color": "#C0C0C0",
"exclusive": [
@@ -295,35 +374,24 @@
{
"key": "chk_national_id",
"text": "National ID",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_national_id"
},
{
"key": "chk_voters_id",
"text": "Voter's registration ID",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_voters_id"
},
{
"key": "chk_drivers_license",
"text": "Driver's license",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_drivers_license"
},
- {
- "key": "chk_passport",
- "text": "Passport",
- "value": false,
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "chk_passport"
- },
{
"key": "chk_none",
"text": "None",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_none"
}
@@ -341,9 +409,25 @@
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "National_ID",
- "type": "edit_text",
- "hint": "National ID number",
- "edit_type": "name",
+ "type": "mask_edit_text",
+ "mask": "########-#####-#####-##",
+ "mask_hint": "12345678912345678912",
+ "allowed_chars": "0123456789",
+ "hint": "National ID number e.g 12345678-91234-56789-12",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "23",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid national id"
+ },
+ "v_regex": {
+ "value": "^\\d{8}-\\d{5}-\\d{5}-\\d{2}$",
+ "err": "National ID number should be of the format (XXXXXXXX-XXXXX-XXXXX-XX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid national ID"
+ },
"relevance": {
"step1:id_avail": {
"ex-checkbox": [
@@ -361,9 +445,25 @@
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Voter_Registration_Number",
- "type": "edit_text",
- "hint": "Voter's registration number",
- "edit_type": "name",
+ "type": "mask_edit_text",
+ "mask": "T-####-####-###-#",
+ "mask_hint": "123456789123",
+ "allowed_chars": "0123456789",
+ "hint": "Voter's registration number e.g T-1234-5678-912-3",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid voters registration"
+ },
+ "v_regex": {
+ "value": "^T-\\d{4}-\\d{4}-\\d{3}-\\d{1}$",
+ "err": "Voter's registration number should be of the format (T-XXXX-XXXX-XXX-X)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid voters registration number"
+ },
"relevance": {
"step1:id_avail": {
"ex-checkbox": [
@@ -381,9 +481,25 @@
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Driver_License_Number",
- "type": "edit_text",
- "hint": "Driver's license number",
- "edit_type": "name",
+ "type": "mask_edit_text",
+ "mask": "##########",
+ "mask_hint": "1234567891",
+ "allowed_chars": "0123456789",
+ "hint": "Driver's license number e.g 1234567891",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "10",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid drivers license number"
+ },
+ "v_regex": {
+ "value": "^([0-9]{10})",
+ "err": "Driver's license number should be of the format (XXXXXXXXXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid driver's license number"
+ },
"relevance": {
"step1:id_avail": {
"ex-checkbox": [
@@ -396,26 +512,6 @@
}
}
},
- {
- "key": "passport",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "Passport_Number",
- "type": "edit_text",
- "hint": "Passport number",
- "edit_type": "name",
- "relevance": {
- "step1:id_avail": {
- "ex-checkbox": [
- {
- "or": [
- "chk_passport"
- ]
- }
- ]
- }
- }
- },
{
"key": "insurance_provider",
"openmrs_entity_parent": "",
@@ -424,9 +520,9 @@
"type": "spinner",
"hint": "Health insurance provider",
"values": [
- "Community Health Fund (CHF)",
- "iCHF",
+ "Community Health Fund (CHF)/(iCHF)",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
"Tiba Kwa Kadi (TIKA)",
"AAR Healthcare",
"Strategies Insurance",
@@ -440,8 +536,8 @@
],
"keys": [
"Community Health Fund (CHF)",
- "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
"Tiba Kwa Kadi (TIKA)",
"AAR Healthcare",
"Strategies Insurance",
@@ -455,8 +551,8 @@
],
"openmrs_choice_ids": {
"Community Health Fund (CHF)": "Community_Health_Fund",
- "iCHF": "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
"Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
"AAR Healthcare": "AAR_Healthcare",
"AAR Strategies Insurance": "Strategies_Insurance",
@@ -511,26 +607,6 @@
}
}
},
- {
- "key": "sex",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "gender",
- "type": "spinner",
- "hint": "Sex",
- "values": [
- "Male",
- "Female"
- ],
- "keys": [
- "Male",
- "Female"
- ],
- "v_required": {
- "value": "true",
- "err": "Please enter the sex"
- }
- },
{
"key": "wra",
"openmrs_entity_parent": "",
@@ -563,7 +639,7 @@
"key": "preg_1yr",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160692AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "preg_1yr",
"type": "spinner",
"hint": "Has the woman delivered in the last 1 year?",
"values": [
@@ -575,8 +651,8 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
@@ -594,7 +670,7 @@
"key": "disabilities",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "disabilities",
"type": "spinner",
"hint": "Physical disabilities",
"values": [
@@ -606,8 +682,8 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
@@ -616,15 +692,64 @@
},
{
"key": "type_of_disability",
- "openmrs_entity_parent": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Type of disability",
- "v_required": {
- "value": "true",
- "err": "Please enter type of disability"
- },
+ "openmrs_entity_id": "type_of_disability",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Type of disability",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "physical_impairments",
+ "text": "Mobility and Physical Impairments",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_impairments"
+ },
+ {
+ "key": "spinal_cord_disability",
+ "text": "Spinal Cord Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spinal_cord_disability"
+ },
+ {
+ "key": "brain_disability",
+ "text": "Head Injuries - Brain Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "brain_disability"
+ },
+ {
+ "key": "vision_disability",
+ "text": "Vision Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vision_disability"
+ },
+ {
+ "key": "hearing_disability",
+ "text": "Hearing Disability",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hearing_disability"
+ },
+ {
+ "key": "learning_disabilities",
+ "text": "Cognitive or Learning Disabilities",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "learning_disabilities"
+ },
+ {
+ "key": "psychological_disorders",
+ "text": "Psychological Disorders",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychological_disorders"
+ },
+ {
+ "key": "invisible_disabilities",
+ "text": "Invisible Disabilities",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
"relevance": {
"rules-engine": {
"ex-rules": {
@@ -637,7 +762,7 @@
"key": "is_primary_caregiver",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "",
+ "openmrs_entity_id": "is_primary_caregiver",
"type": "spinner",
"hint": "Is primary caregiver?",
"values": [
@@ -653,145 +778,46 @@
"err": "Please select one"
}
},
- {
- "key": "phone_number",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Phone number",
- "v_numeric": {
- "value": "true",
- "err": "Number must be a total of 10 digits in length"
- },
- "v_regex": {
- "value": "(0[0-9]{9})|\\s*",
- "err": "Number must be 10 digits and must start with 0."
- },
- "v_required": {
- "value": false,
- "err": "Please specify the phone number"
- }
- },
- {
- "key": "other_phone_number",
- "openmrs_entity_parent": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Other phone number",
- "v_numeric": {
- "value": "true",
- "err": "Number must be a total of 10 digits in length"
- },
- "v_regex": {
- "value": "(0[0-9]{9})|\\s*",
- "err": "Number must be 10 digits and must start with 0."
- }
- },
{
"key": "service_provider",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1542AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "check_box",
+ "openmrs_entity_id": "service_provider",
+ "type": "native_radio",
"label": "Occupation of the family member",
"label_text_style": "normal",
"text_color": "#C0C0C0",
- "exclusive": [
- "chk_none"
- ],
"options": [
{
- "key": "chk_farmer",
- "text": "Farmer",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_cs",
- "text": "Civil Servant",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "162944AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_nurse",
- "text": "Nurse",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_teacher",
- "text": "Teacher",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "162946AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_th",
- "text": "Traditional Healer",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1821AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_chw",
- "text": "Community Health Worker (CHW)",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_tba",
- "text": "Traditional Birth Attendant",
- "value": false,
+ "key": "chk_self_employed",
+ "text": "Self-Employed",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_self_employed"
},
{
- "key": "chk_chmis",
- "text": "Community HMIS (cHMIS)",
- "value": false,
+ "key": "chk_employed",
+ "text": "Employed",
"openmrs_entity": "concept",
- "openmrs_entity_id": "163334AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_employed"
},
{
- "key": "chk_cbd",
- "text": "Community Based Distributor",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1744AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_hbc",
- "text": "Home Based Care (HBC)",
- "value": false,
+ "key": "chk_unemployed",
+ "text": "Unemployed",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161359AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_unemployed"
},
{
- "key": "chk_cimmci",
- "text": "Community IMCI",
- "value": false,
+ "key": "chk_farmer",
+ "text": "Farmer",
"openmrs_entity": "concept",
- "openmrs_entity_id": "163096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_farmer"
},
{
- "key": "chk_other",
- "text": "Other",
+ "key": "chk_traditional_healer",
+ "text": "Traditional healer",
"value": false,
"openmrs_entity": "concept",
- "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_none",
- "text": "None",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_traditional_healer"
}
],
"v_required": {
@@ -805,6 +831,7 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Community_Leader",
"type": "check_box",
+ "combine_checkbox_option_values": "true",
"label": "Any leadership role in the community?",
"label_text_style": "normal",
"text_color": "#C0C0C0",
@@ -815,42 +842,36 @@
{
"key": "chk_religious",
"text": "Religious leader",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Religious_Leader"
},
{
"key": "chk_traditional",
"text": "Traditional leader",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Traditional_leader"
},
{
"key": "chk_political",
"text": "Political leader",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Political_leader"
},
{
"key": "chk_influential",
"text": "Influential leader",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Influential_Leader"
},
{
"key": "chk_other",
"text": "Other",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Other_Community_Leader_Type"
},
{
"key": "chk_none",
"text": "None",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Not_a_Community_Leader"
}
diff --git a/opensrp-chw-hf/src/main/assets/json.form/family_planning_change_method.json b/opensrp-chw-hf/src/main/assets/json.form/family_planning_change_method.json
index 8b1028a8ec..a58e7d9941 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/family_planning_change_method.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/family_planning_change_method.json
@@ -18,11 +18,6 @@
"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",
@@ -119,7 +114,6 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "163494AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "value": false,
"text": "Decided to change method"
},
{
@@ -225,7 +219,6 @@
}
}
},
-
{
"key": "no_condoms",
"openmrs_entity_parent": "190AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/family_register.json b/opensrp-chw-hf/src/main/assets/json.form/family_register.json
index a038f78628..4206930f6d 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/family_register.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/family_register.json
@@ -1,6 +1,4 @@
{
- "validate_on_submit": true,
- "show_errors_on_submit": false,
"count": "2",
"encounter_type": "Family Registration",
"entity_id": "",
@@ -18,11 +16,6 @@
"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",
@@ -63,24 +56,58 @@
"openmrs_entity": "person",
"openmrs_entity_id": "first_name",
"type": "edit_text",
- "hint": "Family name",
+ "hint": "Family name (Family Head's Surname)",
"edit_type": "name",
"v_required": {
"value": "true",
"err": "Please enter the family name"
},
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
"err": "Please enter a valid name"
}
},
+ {
+ "key": "client_first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "Family Head's First name",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the first name"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ }
+ },
+ {
+ "key": "client_middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Family Head's Middle name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the middle name"
+ }
+ },
{
"key": "unique_id",
"openmrs_entity_parent": "",
"openmrs_entity": "person_identifier",
"openmrs_entity_id": "opensrp_id",
"hidden": "true",
- "type": "barcode",
+ "type": "edit_text",
"barcode_type": "qrcode",
"hint": "ID",
"scanButtonText": "Scan QR Code",
@@ -96,14 +123,10 @@
"openmrs_entity_id": "cityVillage",
"type": "edit_text",
"edit_type": "name",
- "hint": "Village",
+ "hint": "Area Name",
"v_required": {
"value": "true",
- "err": "Please enter the village or town"
- },
- "v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
- "err": "Please enter a valid village name"
+ "err": "Please enter the area name"
}
},
{
@@ -112,21 +135,12 @@
"openmrs_entity": "person_address",
"openmrs_entity_id": "landmark",
"type": "edit_text",
- "edit_type": "name",
- "hint": "Landmark/ description of house location",
+ "hint": "Landmark/Description of house location",
"v_required": {
"value": true,
"err": "Please enter the landmark/description of location."
}
},
- {
- "key": "gps",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_data_type": "text",
- "type": "gps"
- },
{
"key": "spacer",
"openmrs_entity_parent": "",
@@ -152,14 +166,6 @@
"step2": {
"title": "Family head",
"fields": [
- {
- "key": "photo",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "",
- "type": "choose_image",
- "uploadButtonText": "Take a picture of the person"
- },
{
"key": "unique_id",
"openmrs_entity_parent": "",
@@ -191,8 +197,16 @@
"err": "Please enter the first name"
},
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
"err": "Please enter a valid name"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_calculation.yml"
+ }
+ }
}
},
{
@@ -208,21 +222,29 @@
"err": "Please enter the middle name"
},
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
"err": "Please enter a valid name"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_calculation.yml"
+ }
+ }
}
},
{
"key": "surname",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "",
+ "openmrs_entity_id": "last_name",
"type": "edit_text",
"hint": "Surname",
"edit_type": "name",
"read_only": "true",
"v_regex": {
- "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
"err": "Please enter a valid name"
},
"calculation": {
@@ -286,7 +308,14 @@
"text_size": "18px",
"value": "false"
}
- ]
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
+ }
},
{
"key": "age",
@@ -319,6 +348,82 @@
"err": "Please enter the age"
}
},
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Sex",
+ "values": [
+ "Male",
+ "Female"
+ ],
+ "keys": [
+ "Male",
+ "Female"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the sex"
+ }
+ },
+ {
+ "key": "marital_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "marital_status",
+ "type": "spinner",
+ "hint": "Client's Marital Status?",
+ "values": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "keys": [
+ "Single",
+ "Married",
+ "Divorced",
+ "Widowed",
+ "Cohabitation"
+ ],
+ "openmrs_choice_ids": {
+ "Single": "Single",
+ "Married": "Married",
+ "Divorced": "Divorced",
+ "Widowed": "Widowed",
+ "Cohabitation": "Cohabitation"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Phone number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ }
+ },
{
"key": "id_avail",
"openmrs_entity_parent": "",
@@ -326,6 +431,7 @@
"openmrs_entity_id": "id_avail",
"type": "check_box",
"label": "Does he/she have any of the following IDs?",
+ "combine_checkbox_option_values": "true",
"label_text_style": "normal",
"text_color": "#C0C0C0",
"exclusive": [
@@ -335,48 +441,60 @@
{
"key": "chk_national_id",
"text": "National ID",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_national_id"
},
{
"key": "chk_voters_id",
"text": "Voter's registration ID",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_voters_id"
},
{
"key": "chk_drivers_license",
"text": "Driver's license",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_drivers_license"
},
- {
- "key": "chk_passport",
- "text": "Passport",
- "value": false,
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "chk_passport"
- },
{
"key": "chk_none",
"text": "None",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "chk_none"
}
- ]
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
+ }
},
{
"key": "national_id",
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "National_ID",
- "type": "edit_text",
- "hint": "National ID number",
- "edit_type": "name",
+ "type": "mask_edit_text",
+ "mask": "########-#####-#####-##",
+ "mask_hint": "12345678912345678912",
+ "allowed_chars": "0123456789",
+ "hint": "National ID number e.g 12345678-91234-56789-12",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "^\\d{8}-\\d{5}-\\d{5}-\\d{2}$",
+ "err": "National ID number should be of the format (XXXXXXXX-XXXXX-XXXXX-XX)"
+ },
+ "v_max_length": {
+ "value": "23",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid national id"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid national ID"
+ },
"relevance": {
"step2:id_avail": {
"ex-checkbox": [
@@ -394,9 +512,25 @@
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Voter_Registration_Number",
- "type": "edit_text",
- "hint": "Voter's registration number",
- "edit_type": "name",
+ "type": "mask_edit_text",
+ "mask": "T-####-####-###-#",
+ "mask_hint": "123456789123",
+ "allowed_chars": "0123456789",
+ "hint": "Voter's registration number e.g T-1234-5678-912-3",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "^T-\\d{4}-\\d{4}-\\d{3}-\\d{1}$",
+ "err": "Voter's registration number should be of the format (T-XXXX-XXXX-XXX-X)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid voters registration"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid voters registration number"
+ },
"relevance": {
"step2:id_avail": {
"ex-checkbox": [
@@ -414,9 +548,25 @@
"openmrs_entity_parent": "",
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Driver_License_Number",
- "type": "edit_text",
- "hint": "Driver's license number",
- "edit_type": "name",
+ "type": "mask_edit_text",
+ "mask": "##########",
+ "mask_hint": "1234567891",
+ "allowed_chars": "0123456789",
+ "hint": "Driver's license number e.g 1234567891",
+ "edit_type": "number",
+ "v_max_length": {
+ "value": "10",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid drivers license number"
+ },
+ "v_regex": {
+ "value": "^([0-9]{10})",
+ "err": "Driver's license number should be of the format (XXXXXXXXXX)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid driver's license number"
+ },
"relevance": {
"step2:id_avail": {
"ex-checkbox": [
@@ -429,26 +579,6 @@
}
}
},
- {
- "key": "passport",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "Passport_Number",
- "type": "edit_text",
- "hint": "Passport number",
- "edit_type": "name",
- "relevance": {
- "step2:id_avail": {
- "ex-checkbox": [
- {
- "or": [
- "chk_passport"
- ]
- }
- ]
- }
- }
- },
{
"key": "insurance_provider",
"openmrs_entity_parent": "",
@@ -457,9 +587,9 @@
"type": "spinner",
"hint": "Health insurance provider",
"values": [
- "Community Health Fund (CHF)",
- "iCHF",
+ "Community Health Fund (CHF)/(iCHF)",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
"Tiba Kwa Kadi (TIKA)",
"AAR Healthcare",
"Strategies Insurance",
@@ -473,8 +603,8 @@
],
"keys": [
"Community Health Fund (CHF)",
- "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)",
+ "National Health Insurance Fund (NHIF)",
"Tiba Kwa Kadi (TIKA)",
"AAR Healthcare",
"Strategies Insurance",
@@ -488,8 +618,8 @@
],
"openmrs_choice_ids": {
"Community Health Fund (CHF)": "Community_Health_Fund",
- "iCHF": "iCHF",
"National Social Security Fund - Social Health Insurance Benefit (SHIB)": "National_Social_Security_Fund",
+ "National Health Insurance Fund (NHIF)": "National_Health_Insurance_Fund",
"Tiba Kwa Kadi (TIKA)": "Tiba_kwa_Kadi",
"AAR Healthcare": "AAR_Healthcare",
"AAR Strategies Insurance": "Strategies_Insurance",
@@ -544,26 +674,6 @@
}
}
},
- {
- "key": "sex",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person",
- "openmrs_entity_id": "gender",
- "type": "spinner",
- "hint": "Sex",
- "values": [
- "Male",
- "Female"
- ],
- "keys": [
- "Male",
- "Female"
- ],
- "v_required": {
- "value": "true",
- "err": "Please enter the sex"
- }
- },
{
"key": "wra",
"openmrs_entity_parent": "",
@@ -590,7 +700,7 @@
"key": "preg_1yr",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "160692AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "preg_1yr",
"type": "spinner",
"hint": "Has the woman delivered in the last 1 year?",
"values": [
@@ -602,8 +712,8 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
@@ -621,7 +731,7 @@
"key": "disabilities",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "disabilities",
"type": "spinner",
"hint": "Physical disabilities",
"values": [
@@ -633,8 +743,8 @@
"No"
],
"openmrs_choice_ids": {
- "Yes": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "No": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "Yes": "Yes",
+ "No": "No"
},
"v_required": {
"value": "true",
@@ -643,163 +753,133 @@
},
{
"key": "type_of_disability",
- "openmrs_entity_parent": "162558AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Type of disability",
- "v_required": {
- "value": "true",
- "err": "Please enter type of disability"
- },
- "relevance": {
- "rules-engine": {
- "ex-rules": {
- "rules-file": "family_register_relevance.yml"
- }
- }
- }
- },
- {
- "key": "phone_number",
- "openmrs_entity_parent": "",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Phone number",
- "v_numeric": {
- "value": "true",
- "err": "Number must be a total of 10 digits in length"
- },
- "v_regex": {
- "value": "(0[0-9]{9})|\\s*",
- "err": "Number must be 10 digits and must start with 0."
- }
- },
- {
- "key": "other_phone_number",
- "openmrs_entity_parent": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "openmrs_entity": "concept",
- "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
- "type": "edit_text",
- "hint": "Other phone number",
- "v_numeric": {
- "value": "true",
- "err": "Number must be a total of 10 digits in length"
- },
- "v_regex": {
- "value": "(0[0-9]{9})|\\s*",
- "err": "Number must be 10 digits and must start with 0."
- }
- },
- {
- "key": "service_provider",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1542AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+ "openmrs_entity_id": "type_of_disability",
"type": "check_box",
- "label": "Occupation of the family member",
+ "label": "Type of disability",
+ "combine_checkbox_option_values": "true",
"label_text_style": "normal",
"text_color": "#C0C0C0",
- "exclusive": [
- "chk_none"
- ],
"options": [
{
- "key": "chk_farmer",
- "text": "Farmer",
- "value": false,
+ "key": "physical_impairments",
+ "text": "Mobility and Physical Impairments",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "physical_impairments"
},
{
- "key": "chk_cs",
- "text": "Civil Servant",
- "value": false,
+ "key": "spinal_cord_disability",
+ "text": "Spinal Cord Disability",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162944AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "spinal_cord_disability"
},
{
- "key": "chk_nurse",
- "text": "Nurse",
- "value": false,
+ "key": "brain_disability",
+ "text": "Head Injuries - Brain Disability",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "brain_disability"
},
{
- "key": "chk_teacher",
- "text": "Teacher",
- "value": false,
+ "key": "vision_disability",
+ "text": "Vision Disability",
"openmrs_entity": "concept",
- "openmrs_entity_id": "162946AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "vision_disability"
},
{
- "key": "chk_th",
- "text": "Traditional Healer",
- "value": false,
+ "key": "hearing_disability",
+ "text": "Hearing Disability",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1821AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "hearing_disability"
},
{
- "key": "chk_chw",
- "text": "Community Health Worker (CHW)",
- "value": false,
+ "key": "learning_disabilities",
+ "text": "Cognitive or Learning Disabilities",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "learning_disabilities"
},
{
- "key": "chk_tba",
- "text": "Traditional Birth Attendant",
- "value": false,
+ "key": "psychological_disorders",
+ "text": "Psychological Disorders",
"openmrs_entity": "concept",
- "openmrs_entity_id": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "psychological_disorders"
},
{
- "key": "chk_chmis",
- "text": "Community HMIS (cHMIS)",
- "value": false,
+ "key": "invisible_disabilities",
+ "text": "Invisible Disabilities",
"openmrs_entity": "concept",
- "openmrs_entity_id": "163334AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
- {
- "key": "chk_cbd",
- "text": "Community Based Distributor",
- "value": false,
- "openmrs_entity": "concept",
- "openmrs_entity_id": "1744AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
- },
+ "openmrs_entity_id": "invisible_disabilities"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_phone_number",
+ "type": "edit_text",
+ "hint": "Other phone number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ }
+ },
+ {
+ "key": "service_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_provider",
+ "type": "native_radio",
+ "label": "Occupation of the family head",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
{
- "key": "chk_hbc",
- "text": "Home Based Care (HBC)",
- "value": false,
+ "key": "chk_self_employed",
+ "text": "Self-Employed",
"openmrs_entity": "concept",
- "openmrs_entity_id": "161359AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_self_employed"
},
{
- "key": "chk_cimmci",
- "text": "Community IMCI",
- "value": false,
+ "key": "chk_employed",
+ "text": "Employed",
"openmrs_entity": "concept",
- "openmrs_entity_id": "163096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_employed"
},
{
- "key": "chk_other",
- "text": "Other",
- "value": false,
+ "key": "chk_unemployed",
+ "text": "Unemployed",
"openmrs_entity": "concept",
- "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_unemployed"
},
{
- "key": "chk_none",
- "text": "None",
- "value": false,
+ "key": "chk_farmer",
+ "text": "Farmer",
"openmrs_entity": "concept",
- "openmrs_entity_id": "164369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ "openmrs_entity_id": "chk_farmer"
}
],
"v_required": {
"value": "true",
"err": "Please pick at least one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
}
},
{
@@ -808,6 +888,7 @@
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Community_Leader",
"type": "check_box",
+ "combine_checkbox_option_values": "true",
"label": "Any leadership role in the community?",
"label_text_style": "normal",
"text_color": "#C0C0C0",
@@ -818,42 +899,36 @@
{
"key": "chk_religious",
"text": "Religious leader",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Religious_Leader"
},
{
"key": "chk_traditional",
"text": "Traditional leader",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Traditional_leader"
},
{
"key": "chk_political",
"text": "Political leader",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Political_leader"
},
{
"key": "chk_influential",
"text": "Influential leader",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Influential_Leader"
},
{
"key": "chk_other",
"text": "Other",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Other_Community_Leader_Type"
},
{
"key": "chk_none",
"text": "None",
- "value": false,
"openmrs_entity": "person_attribute",
"openmrs_entity_id": "Not_a_Community_Leader"
}
@@ -861,6 +936,13 @@
"v_required": {
"value": "true",
"err": "Please pick at least one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "family_register_relevance.yml"
+ }
+ }
}
},
{
diff --git a/opensrp-chw-hf/src/main/assets/json.form/female_family_planning_change_method.json b/opensrp-chw-hf/src/main/assets/json.form/female_family_planning_change_method.json
index 8b1028a8ec..a58e7d9941 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/female_family_planning_change_method.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/female_family_planning_change_method.json
@@ -18,11 +18,6 @@
"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",
@@ -119,7 +114,6 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "163494AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity_parent": "",
- "value": false,
"text": "Decided to change method"
},
{
@@ -225,7 +219,6 @@
}
}
},
-
{
"key": "no_condoms",
"openmrs_entity_parent": "190AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/female_family_planning_registration.json b/opensrp-chw-hf/src/main/assets/json.form/female_family_planning_registration.json
index 601ebe6fe4..c2118a35a7 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/female_family_planning_registration.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/female_family_planning_registration.json
@@ -18,11 +18,6 @@
"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",
@@ -57,18 +52,6 @@
"title": "Family planning registration Info",
"next": "step2",
"fields": [
- {
- "key": "sync_location_id",
- "openmrs_entity_parent": "",
- "openmrs_entity": "person_attribute",
- "openmrs_entity_id": "sync_location_id",
- "type": "spinner",
- "hint": "Select CHW Location",
- "v_required": {
- "value": "true",
- "err": "Please select CHW Location"
- }
- },
{
"key": "fp_reg_date",
"openmrs_entity_parent": "",
@@ -128,8 +111,7 @@
"options": [
{
"key": "pregnant_option",
- "text": "Verify that the woman is not pregnant",
- "value": false
+ "text": "Verify that the woman is not pregnant"
}
]
},
@@ -139,7 +121,7 @@
"openmrs_entity": "concept",
"openmrs_entity_id": "couselling_HIV_STI",
"openmrs_entity_parent": "",
- "label": "Was she counselled on HIV and STI prevention?",
+ "label": "Was she counselled on HIV and STI/RTI prevention?",
"options": [
{
"key": "yes",
@@ -253,8 +235,7 @@
"openmrs_entity_parent": "190AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"openmrs_entity": "concept",
"openmrs_entity_id": "fp_start_condom",
- "type": "edit_text",
- "hidden": true,
+ "type": "hidden",
"calculation": {
"rules-engine": {
"ex-rules": {
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_counseling.json b/opensrp-chw-hf/src/main/assets/json.form/fp_counseling.json
new file mode 100644
index 0000000000..3d1dc79616
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_counseling.json
@@ -0,0 +1,258 @@
+{
+ "count": "1",
+ "encounter_type": "Provide FP Counseling",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "global": {},
+ "step1": {
+ "title": "Provide FP Counseling",
+ "fields": [
+ {
+ "key": "provide_counseling_notes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provide_counseling_notes",
+ "type": "toaster_notes",
+ "text": "Provide counseling for informed family planning choice",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": ""
+ },
+ {
+ "key": "client_counseled_with_her_partner",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_counseled_with_her_partner",
+ "type": "native_radio",
+ "label": "Was the client counseled with her partner?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_counseling_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_agreed_on_fp_choice",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_agreed_on_fp_choice",
+ "type": "native_radio",
+ "label": "Has the client agreed on the family planning of choice?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "selected_fp_method_after_counseling_female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "selected_fp_method_after_counseling_female",
+ "type": "native_radio",
+ "label": "Selected family planning method after counseling",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "pop",
+ "text": "POP",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pop"
+ },
+ {
+ "key": "coc",
+ "text": "COC",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "coc"
+ },
+ {
+ "key": "injectable",
+ "text": "Injectable",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "injectable"
+ },
+ {
+ "key": "condom",
+ "text": "Condom",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom"
+ },
+ {
+ "key": "jadelle",
+ "text": "Jadelle",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jadelle"
+ },
+ {
+ "key": "implanon",
+ "text": "Implanon",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "implanon"
+ },
+ {
+ "key": "iucd",
+ "text": "IUCD",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iucd"
+ },
+ {
+ "key": "sdm",
+ "text": "SDM",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sdm"
+ },
+ {
+ "key": "lam",
+ "text": "LAM",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lam"
+ },
+ {
+ "key": "btl",
+ "text": "BTL",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "btl"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_counseling_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "selected_fp_method_after_counseling_male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "selected_fp_method_after_counseling_male",
+ "type": "native_radio",
+ "label": "Selected family planning method after counseling",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "condom",
+ "text": "Condom",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom"
+ },
+ {
+ "key": "vasectomy",
+ "text": "Vasectomy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vasectomy"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_counseling_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "selected_fp_method_after_counseling",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "selected_fp_method_after_counseling",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "selected_fp_method_after_counseling_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_ecp_screening.json b/opensrp-chw-hf/src/main/assets/json.form/fp_ecp_screening.json
new file mode 100644
index 0000000000..4d836b50b9
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_ecp_screening.json
@@ -0,0 +1,251 @@
+{
+ "count": "1",
+ "encounter_type": "FP ECP Screening",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "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": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Eligible for ECP",
+ "fields": [
+ {
+ "key": "provide_counseling_notes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provide_counseling_notes",
+ "type": "toaster_notes",
+ "text": "Provide ECP counseling to the client",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": ""
+ },
+ {
+ "key": "ecp_counseling_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ecp_counseling_provided",
+ "type": "native_radio",
+ "label": "Was ECP counseling provided?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "type_of_incident",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_incident",
+ "type": "native_radio",
+ "label": "Type of the incidence",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "raped",
+ "text": "Raped",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "raped"
+ },
+ {
+ "key": "incorrect",
+ "text": "Incorrect use/breakage/slip of Condom",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "incorrect"
+ },
+ {
+ "key": "missed_days",
+ "text": "3 or more missed days of COC dose/3 or more missed hours of POP dose",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "missed_days"
+ },
+ {
+ "key": "iucd_expelled",
+ "text": "IUCD expelled",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iucd_expelled"
+ },
+ {
+ "key": "missed_weeks",
+ "text": "4 weeks or more missed on depo",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "missed_weeks"
+ },
+ {
+ "key": "other",
+ "text": "Others (specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "specify_other_incident",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_incident",
+ "type": "edit_text",
+ "hint": "Specify other incident",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_eligible_for_ecp_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "when_did_incidence_occur",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "when_did_incidence_occur",
+ "type": "native_radio",
+ "label": "When did the incidence occur?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "1_3_days",
+ "text": "1-3 days",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1_3_days"
+ },
+ {
+ "key": "4_5_days",
+ "text": "4-5 days",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "4_5_days"
+ },
+ {
+ "key": "more_than_5_days",
+ "text": "More than 5 days",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "more_than_5_days"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "provide_ecp_incidence_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provide_ecp_incidence_prompt",
+ "type": "toaster_notes",
+ "text": "Provide ECP to the client",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_eligible_for_ecp_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_to_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_to_prompt",
+ "type": "toaster_notes",
+ "text": "Ask the client to return after 14 days",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_eligible_for_ecp_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "ecp_eligibility",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ecp_eligibility",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_eligible_for_ecp_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_enrollment.json b/opensrp-chw-hf/src/main/assets/json.form/fp_enrollment.json
new file mode 100644
index 0000000000..ceb19fc003
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_enrollment.json
@@ -0,0 +1,147 @@
+
+{
+ "count": "1",
+ "encounter_type": "Family Planning Registration",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "FP Enrollment",
+ "fields": [
+ {
+ "key": "client_used_fp_before",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_used_fp_before",
+ "type": "native_radio",
+ "label": "Has the client ever used any family planning method?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "fp_registration_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_registration_number",
+ "type": "mask_edit_text",
+ "mask": "####/###",
+ "mask_hint": "1234567",
+ "allowed_chars": "0123456789",
+ "hint": "Client Registration Number",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{4}/\\d{3})?",
+ "err": "Client registration number should be of the format (XXXX/XXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid Client Registration Number"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid Client Registration Number"
+ }
+ },
+ {
+ "key": "client_level_education",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_level_education",
+ "type": "native_radio",
+ "label": "Client’s Level of Education",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "primary",
+ "text": "Primary",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "primary"
+ },
+ {
+ "key": "secondary",
+ "text": "Secondary",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "secondary"
+ },
+ {
+ "key": "college_university",
+ "text": "College/University",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "college_university"
+ },
+ {
+ "key": "no_any",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_any"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_followup_visit_method_continuation.json b/opensrp-chw-hf/src/main/assets/json.form/fp_followup_visit_method_continuation.json
new file mode 100644
index 0000000000..aeefc1da31
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_followup_visit_method_continuation.json
@@ -0,0 +1,296 @@
+{
+ "count": "1",
+ "encounter_type": "Continue with the method",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "global": {},
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Continue with the method",
+ "fields": [
+ {
+ "key": "method_expired",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "method_expired",
+ "type": "native_radio",
+ "label": "Has the FP method expired?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_continue_with_the_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "method_expired_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "method_expired_prompt",
+ "type": "toaster_notes",
+ "text": "Remove the FP Method",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_continue_with_the_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_wants_continue_with_fp_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_wants_continue_with_fp_method",
+ "type": "native_radio",
+ "label": "Does the client want to continue with the family planning method?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "client_want_to_switch_stop",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_want_to_switch_stop",
+ "type": "native_radio",
+ "label": "Does the client want to switch or stop",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "switch",
+ "text": "Switch",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "switch"
+ },
+ {
+ "key": "stop",
+ "text": "Stop",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stop"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_continue_with_the_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_want_to_switch_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_want_to_switch_prompt",
+ "type": "toaster_notes",
+ "text": "Provide FP counseling for informed choice",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_continue_with_the_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "jadelle_removed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jadelle_removed",
+ "type": "native_radio",
+ "label": "Jadelle removed?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_continue_with_the_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "implanon_removed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "implanon_removed",
+ "type": "native_radio",
+ "label": "Implanon removed?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_continue_with_the_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "iud_removed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iud_removed",
+ "type": "native_radio",
+ "label": "IUD removed?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_continue_with_the_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "followup_outcome",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "followup_outcome",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_followup_visit_method_satisfaction.json b/opensrp-chw-hf/src/main/assets/json.form/fp_followup_visit_method_satisfaction.json
new file mode 100644
index 0000000000..70561dfb87
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_followup_visit_method_satisfaction.json
@@ -0,0 +1,527 @@
+{
+ "count": "1",
+ "encounter_type": "Satisfaction of FP Method",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "global": {},
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Satisfaction of FP Method",
+ "fields": [
+ {
+ "key": "client_satisfied_with_fp_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_satisfied_with_fp_method",
+ "type": "native_radio",
+ "label": "Is the client satisfied with the family planning method?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "reason_for_dissatisfaction",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_dissatisfaction",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Reason for dissatisfaction",
+ "hint": "Reason for dissatisfaction",
+ "options": [
+ {
+ "key": "side_effects",
+ "text": "Side effects",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "side_effects"
+ },
+ {
+ "key": "complication",
+ "text": "Complication",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "complication"
+ },
+ {
+ "key": "other",
+ "text": "Others (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please choose reasons for dissatisfaction"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_has_side_effects_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_has_side_effects_prompt",
+ "type": "toaster_notes",
+ "text": "Provide FP counseling and manage",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_has_complications_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_has_complications_prompt",
+ "type": "toaster_notes",
+ "text": "Manage with SOP",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "side_effects",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "side_effects",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "What are the side effects?",
+ "hint": "What are the side effects?",
+ "options": [
+ {
+ "key": "heavy_bleeding",
+ "text": "Heavy bleeding",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heavy_bleeding"
+ },
+ {
+ "key": "severe_headache",
+ "text": "Severe Headache",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_headache"
+ },
+ {
+ "key": "other",
+ "text": "Others (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please choose side effects"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "side_effects_specify_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "side_effects_specify_other",
+ "type": "edit_text",
+ "hint": "Specify side effects",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "complication",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "complication",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "What are the complications?",
+ "hint": "What are the complications?",
+ "options": [
+ {
+ "key": "severe_lower",
+ "text": "Severe Lower Abdominal pain",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_lower"
+ },
+ {
+ "key": "severe_chest",
+ "text": "Severe Chest pain",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_chest"
+ },
+ {
+ "key": "pregnancy",
+ "text": "Pregnancy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pregnancy"
+ },
+ {
+ "key": "other",
+ "text": "Others (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please choose the complication"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "complication_specify_other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "complication_specify_other",
+ "type": "edit_text",
+ "hint": "Specify complication",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "specify_other_reasons_for_dissatisfaction",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_reasons_for_dissatisfaction",
+ "type": "edit_text",
+ "hint": "reason for dissatisfaction",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dissatisfaction_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dissatisfaction_prompt",
+ "type": "toaster_notes",
+ "text": "Manage according to SOP",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_want_to_switch_stop",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_want_to_switch_stop",
+ "type": "native_radio",
+ "label": "Does the client want to switch or stop",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "switch",
+ "text": "Switch",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "switch"
+ },
+ {
+ "key": "stop",
+ "text": "Stop",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stop"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_want_to_switch_stop_continue",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_want_to_switch_stop_continue",
+ "type": "native_radio",
+ "label": "Does the client want to switch, stop or continue",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "switch",
+ "text": "Switch",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "switch"
+ },
+ {
+ "key": "stop",
+ "text": "Stop",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "stop"
+ },
+ {
+ "key": "continue",
+ "text": "Continue",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "continue"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_want_to_switch_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_want_to_switch_prompt",
+ "type": "toaster_notes",
+ "text": "Provide FP counseling for informed choice",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "jadelle_removed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jadelle_removed",
+ "type": "native_radio",
+ "label": "Jadelle removed?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "implanon_removed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "implanon_removed",
+ "type": "native_radio",
+ "label": "Implanon removed?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "iud_removed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iud_removed",
+ "type": "native_radio",
+ "label": "IUD removed?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_satisfaction_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "followup_outcome",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "followup_outcome",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_followup_visit_vitals.json b/opensrp-chw-hf/src/main/assets/json.form/fp_followup_visit_vitals.json
new file mode 100644
index 0000000000..24f92314ca
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_followup_visit_vitals.json
@@ -0,0 +1,230 @@
+{
+ "count": "1",
+ "encounter_type": "Vitals",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "global": {},
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Vitals",
+ "fields": [
+ {
+ "key": "weight",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "entity_id": "",
+ "type": "edit_text",
+ "hint": "Weight (KG)",
+ "edit_type": "number",
+ "look_up": "true",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the Client’s Weight (KG)"
+ },
+ "v_min": {
+ "value": "20",
+ "err": "client weight must be equal or greater than 20kg"
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Blood Pressure)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the systolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Systolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Systolic value must be equal or less than 320"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the Systolic (Blood Pressure)"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Blood Pressure)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the diastolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Diastolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Diastolic value must be equal or less than 200"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the Diastolic (Blood Pressure)"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "The diastolic value must be less than the systolic value"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Manage the hypertension according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_vitals_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of hypotension and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_vitals_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "last_normal_menstruation_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_normal_menstruation_period",
+ "type": "date_picker",
+ "min_date": "today-5y",
+ "max_date": "today",
+ "expanded": false,
+ "hint": "Last Normal Menstrual Period (LNMP)",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_vitals_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_have_any_complain",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_have_any_complain",
+ "type": "native_radio",
+ "label": "Does the client have any complain?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "specify_other_complain",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_complain",
+ "type": "edit_text",
+ "hint": "Specify other clients complains",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_vitals_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_gynecological_history.json b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_gynecological_history.json
new file mode 100644
index 0000000000..a9aabd2eb2
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_gynecological_history.json
@@ -0,0 +1,199 @@
+{
+ "count": "1",
+ "encounter_type": "Gynecological history",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Gynecological history",
+ "fields": [
+ {
+ "key": "menarche",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "menarche",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Menarche",
+ "v_min": {
+ "value": "9",
+ "err": "Menarche age must be equal or greater than 9"
+ },
+ "v_max": {
+ "value": "16",
+ "err": "Menarche age must be equal or less than 17"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the menarche age"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ }
+ },
+ {
+ "key": "lnmp",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lnmp",
+ "type": "date_picker",
+ "expanded": false,
+ "hint": "L.N.M.P",
+ "max_date": "today",
+ "min_date": "today-50w",
+ "v_required": {
+ "value": "true",
+ "err": "Please select date"
+ }
+ },
+ {
+ "key": "mp_duration",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mp_duration",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "MP Duration",
+ "v_min": {
+ "value": "2",
+ "err": "MP Duration must be equal or greater than 2 days"
+ },
+ "v_max": {
+ "value": "7",
+ "err": "MP Duration must be equal or less than 7 days"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the MP Duration"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ }
+ },
+ {
+ "key": "blood_loss",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_loss",
+ "type": "native_radio",
+ "label": "Blood Loss",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Normal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "heavy",
+ "text": "Heavy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heavy"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "cycle_length",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cycle_length",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Cycle length",
+ "v_min": {
+ "value": "21",
+ "err": "Cycle length must be equal or greater than 21 days"
+ },
+ "v_max": {
+ "value": "31",
+ "err": "Cycle length must be equal or less than 31 days"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the Cycle length"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ }
+ },
+ {
+ "key": "dysmenorrhoea",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dysmenorrhoea",
+ "type": "native_radio",
+ "label": "Dysmenorrhoea",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_medical_eligibility_criteria.json b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_medical_eligibility_criteria.json
new file mode 100644
index 0000000000..070601d543
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_medical_eligibility_criteria.json
@@ -0,0 +1,201 @@
+{
+ "count": "1",
+ "encounter_type": "Medical eligibility criteria",
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Medical eligibility criteria",
+ "fields": [
+ {
+ "key": "client_category_after_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_category_after_screening",
+ "type": "native_radio",
+ "label": "Select client category after screening",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "category_1",
+ "text": "Category 1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_1"
+ },
+ {
+ "key": "category_2",
+ "text": "Category 2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_2"
+ },
+ {
+ "key": "category_3",
+ "text": "Category 3",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_3"
+ },
+ {
+ "key": "category_4",
+ "text": "Category 4",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_4"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "category_1_notes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_1_notes",
+ "type": "toaster_notes",
+ "text": "Give the method in any circumstance",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "category_2_notes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_2_notes",
+ "type": "toaster_notes",
+ "text": "Generally use; advantages outweigh risks",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "category_3_notes_first",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_3_notes_first",
+ "type": "toaster_notes",
+ "text": "Generally do not use; risks outweigh the benefit",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "category_3_notes_second",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_3_notes_second",
+ "type": "toaster_notes",
+ "text": "The Client is not eligible for the family planning method counsel for other methods",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "category_4_notes_first",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_4_notes_first",
+ "type": "toaster_notes",
+ "text": "Method not to be used",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "category_4_notes_second",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "category_4_notes_second",
+ "type": "toaster_notes",
+ "text": "The Client is not eligible for the family planning method counsel for other methods",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_eligibility_criteria_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_medical_history.json b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_medical_history.json
new file mode 100644
index 0000000000..c8dc8b02a0
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_medical_history.json
@@ -0,0 +1,198 @@
+{
+ "count": "1",
+ "encounter_type": "Medical History",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Medical History",
+ "fields": [
+ {
+ "key": "client_medical_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_medical_history",
+ "openmrs_data_type": "select one",
+ "combine_checkbox_option_values": "true",
+ "type": "check_box",
+ "label": "Does the client have any of the following medical history?",
+ "hint": "Does the client have any of the following medical history?",
+ "options": [
+ {
+ "key": "headache",
+ "text": "Headache",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "headache"
+ },
+ {
+ "key": "jaundice",
+ "text": "Jaundice",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jaundice"
+ },
+ {
+ "key": "heart_disease",
+ "text": "Heart disease",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "heart_disease"
+ },
+ {
+ "key": "high_blood_pressure",
+ "text": "High blood pressure",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "high_blood_pressure"
+ },
+ {
+ "key": "diabetes",
+ "text": "Diabetes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "diabetes"
+ },
+ {
+ "key": "breast_lump",
+ "text": "Breast lump",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breast_lump"
+ },
+ {
+ "key": "severe_varicose_veins",
+ "text": "Severe varicose veins",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_varicose_veins"
+ },
+ {
+ "key": "anti_conversant",
+ "text": "Anti- convulsant",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anti_conversant"
+ },
+ {
+ "key": "ant_tb_drugs",
+ "text": "Ant TB drugs",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ant_tb_drugs"
+ },
+ {
+ "key": "on_art",
+ "text": "On ART",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "on_art"
+ },
+ {
+ "key": "other",
+ "text": "Any other serious condition",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "exclusive": [
+ "none"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please choose client medical history"
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "Specify CTC ID",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "CTC number should be of the format (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC Number"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid CTC Number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "specify_other_condition",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_condition",
+ "type": "edit_text",
+ "hint": "Specify other condition",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_medical_history_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_obstetric_history.json b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_obstetric_history.json
new file mode 100644
index 0000000000..0c1707b5e5
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_obstetric_history.json
@@ -0,0 +1,452 @@
+{
+ "count": "1",
+ "encounter_type": "Obstestric History",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Obstetric History",
+ "fields": [
+ {
+ "key": "number_of_pregnancies",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_pregnancies",
+ "hint": "Total number of Pregnancies",
+ "type": "edit_text",
+ "v_min": {
+ "value": "0",
+ "err": "Pregnancies value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Pregnancies value must be equal or less than 20"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the pregnancies value"
+ }
+ },
+ {
+ "key": "number_of_miscarriages",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_miscarriages",
+ "hint": "Number of Miscarriages",
+ "type": "edit_text",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Miscarriages value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Miscarriages value must be equal or less than 20"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the miscarriages value"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(., step1:number_of_pregnancies)",
+ "err": "Total miscarriages value must be less than total pregnancies value"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_still_births",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_still_births",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of Still Births",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_max_length": {
+ "value": "2",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid total number of still births"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(., step1:number_of_pregnancies)",
+ "err": "Total still birth value must be less or equal to total pregnancies value"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_live_births",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_live_births",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of Live Births",
+ "v_min": {
+ "value": "0",
+ "err": "Live births value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Live births value must be equal or less than 20"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the live births value"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_max_length": {
+ "value": "2",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid total number of live births"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(., step1:number_of_pregnancies)",
+ "err": "Total live birth value must be less or equal to total pregnancies value"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_children_alive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_children_alive",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of children Alive",
+ "v_min": {
+ "value": "0",
+ "err": "Alive children value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "Alive children value must be equal or less than 20"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the alive children value"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_max_length": {
+ "value": "2",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid total number of alive children"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(., step1:number_of_pregnancies)",
+ "err": "Total alive children value must be less or equal to total pregnancies value"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "date_last_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "date_last_delivery",
+ "type": "date_picker",
+ "expanded": false,
+ "max_date": "today",
+ "hint": "Date of Last Delivery",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "mode_of_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mode_of_delivery",
+ "type": "native_radio",
+ "label": "Mode of delivery",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "svd",
+ "text": "SVD",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "svd"
+ },
+ {
+ "key": "cs",
+ "text": "CS",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cs"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "place_of_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_of_delivery",
+ "type": "native_radio",
+ "label": "Place of delivery",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "facility",
+ "text": "Health Facility",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facility"
+ },
+ {
+ "key": "home_delivery",
+ "text": "Home delivery",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "home_delivery"
+ },
+ {
+ "key": "birth_before_arrival",
+ "text": "Birth before arrival",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "birth_before_arrival"
+ },
+ {
+ "key": "tba",
+ "text": "TBA",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tba"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "outcome",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outcome",
+ "type": "native_radio",
+ "label": "Outcome",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "alive",
+ "text": "Alive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "alive"
+ },
+ {
+ "key": "death",
+ "text": "Death",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "death"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "type_of_child_death",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_child_death",
+ "type": "native_radio",
+ "label": "Type of death",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "fsb",
+ "text": "FSB",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fsb"
+ },
+ {
+ "key": "msb",
+ "text": "MSB",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "msb"
+ },
+ {
+ "key": "early_neonatal_death",
+ "text": "Early neonatal death",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "early_neonatal_death"
+ },
+ {
+ "key": "late_neonatal_death",
+ "text": "Late neonatal death",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "late_neonatal_death"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "is_client_breastfeeding",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_client_breastfeeding",
+ "type": "native_radio",
+ "label": "Is the client breastfeeding?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_obstetric_history_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_physical_examination.json b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_physical_examination.json
new file mode 100644
index 0000000000..4a929c30ba
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_physical_examination.json
@@ -0,0 +1,372 @@
+{
+ "count": "1",
+ "encounter_type": "Physical examination",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Physical examination",
+ "fields": [
+ {
+ "key": "weight",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "entity_id": "",
+ "type": "edit_text",
+ "hint": "Weight (KG)",
+ "edit_type": "number",
+ "look_up": "true",
+ "v_min": {
+ "value": "20",
+ "err": "client weight must be equal or greater than 20kg"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the weight"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the Client’s Weight (KG)"
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Blood Pressure)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the systolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Systolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Systolic value must be equal or less than 320"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the systolic value"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Blood Pressure)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the diastolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Diastolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Diastolic value must be equal or less than 200"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the diastolic value"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "The diastolic value must be less than the systolic value"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Manage the hypertension according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_physical_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of hypotension and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_physical_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "anaemia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anaemia",
+ "type": "native_radio",
+ "label": "Anaemia",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "jaundice",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jaundice",
+ "type": "native_radio",
+ "label": "Jaundice",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "thyroid_enlarged",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "thyroid_enlarged",
+ "type": "native_radio",
+ "label": "Thyroid enlarged",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "chest_movement",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chest_movement",
+ "type": "native_radio",
+ "label": "Chest movement",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "symmetrical",
+ "text": "Symmetrical",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "symmetrical"
+ },
+ {
+ "key": "asymmetric",
+ "text": "Asymmetric",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "asymmetric"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "breast_condition",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breast_condition",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Breast condition",
+ "hint": "Breast condition",
+ "options": [
+ {
+ "key": "lamp",
+ "text": "Lamp",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lamp"
+ },
+ {
+ "key": "sore",
+ "text": "Sore",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sore"
+ },
+ {
+ "key": "discoloration",
+ "text": "Discoloration of the skin",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "discoloration"
+ },
+ {
+ "key": "blood_discharge",
+ "text": "Blood/pus discharge",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_discharge"
+ },
+ {
+ "key": "absess",
+ "text": "Absess",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "absess"
+ },
+ {
+ "key": "other",
+ "text": "Others (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "exclusive": [
+ "none"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please choose breast condition"
+ }
+ },
+ {
+ "key": "specify_other_condition",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_condition",
+ "type": "edit_text",
+ "hint": "Specify other",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify condition"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_physical_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "breast_condition_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breast_condition_prompt",
+ "type": "toaster_notes",
+ "text": "Refer client for further management",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_physical_examination_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_vaginal_examination.json b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_vaginal_examination.json
new file mode 100644
index 0000000000..7457c16dc0
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_method_screening_vaginal_examination.json
@@ -0,0 +1,281 @@
+{
+ "count": "1",
+ "encounter_type": "Vaginal examination",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Vaginal examination",
+ "fields": [
+ {
+ "key": "speculum_exam_label",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "speculum_exam_label",
+ "type": "label",
+ "text": "Speculum Exam",
+ "hint_on_text": false,
+ "text_color": "#2980b9",
+ "text_size": "7sp"
+ },
+ {
+ "key": "cervix",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cervix",
+ "type": "native_radio",
+ "label": "Cervix",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Normal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "Abnormal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "discharge",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "discharge",
+ "type": "native_radio",
+ "label": "Discharge",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "growth",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "growth",
+ "type": "native_radio",
+ "label": "Growth",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "speculum_exam_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "speculum_exam_prompt",
+ "type": "toaster_notes",
+ "text": "Manage according to SOP",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_vaginal_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "digital_exam",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "digital_exam",
+ "type": "label",
+ "text": "Digital exam",
+ "hint_on_text": false,
+ "text_color": "#2980b9",
+ "text_size": "7sp"
+ },
+ {
+ "key": "uterine_size",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "uterine_size",
+ "type": "native_radio",
+ "label": "Uterine size",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Normal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "Abnormal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "uterine_position",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "uterine_position",
+ "type": "native_radio",
+ "label": "Uterine position",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "midline",
+ "text": "Midline",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "midline"
+ },
+ {
+ "key": "retroverted",
+ "text": "Retroverted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "retroverted"
+ },
+ {
+ "key": "anteverted",
+ "text": "Anteverted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "anteverted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "adnexa",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "adnexa",
+ "type": "native_radio",
+ "label": "Adnexa",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "painful",
+ "text": "Painful/Fixed",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "painful"
+ },
+ {
+ "key": "painless",
+ "text": "Painless/Free",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "painless"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "digital_exam_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "digital_exam_prompt",
+ "type": "toaster_notes",
+ "text": "Manage according to SOP",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_method_screening_vaginal_examination_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_other_services_offered.json b/opensrp-chw-hf/src/main/assets/json.form/fp_other_services_offered.json
new file mode 100644
index 0000000000..4d1a158fb4
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_other_services_offered.json
@@ -0,0 +1,94 @@
+{
+ "count": "1",
+ "encounter_type": "Other services offered",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Other services offered",
+ "fields": [
+ {
+ "key": "other_services_offered",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_services_offered",
+ "openmrs_data_type": "select one",
+ "combine_checkbox_option_values": "true",
+ "type": "check_box",
+ "label": "Other services offered",
+ "hint": "Other services offered",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "hts",
+ "text": "HTS",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hts"
+ },
+ {
+ "key": "cervical_cancer",
+ "text": "Cervical Cancer",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cervical_cancer"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ }
+
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_other_services_offered_cervical_cancer.json b/opensrp-chw-hf/src/main/assets/json.form/fp_other_services_offered_cervical_cancer.json
new file mode 100644
index 0000000000..276532057f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_other_services_offered_cervical_cancer.json
@@ -0,0 +1,179 @@
+{
+ "count": "1",
+ "encounter_type": "Cervical Cancer",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Cervical Cancer",
+ "fields": [
+ {
+ "key": "counseling_cervical_cancer_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "counseling_cervical_cancer_provided",
+ "type": "native_radio",
+ "label": "Was counseling on cervical cancer screening provided?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "client_eligible_for_via",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_eligible_for_via",
+ "type": "native_radio",
+ "label": "Is the client eligible for VIA?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "via_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "via_results",
+ "type": "native_radio",
+ "label": "VIA results",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_cervical_cancer_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_eligible_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_eligible_prompt",
+ "type": "toaster_notes",
+ "text": "Refer client for further management",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_cervical_cancer_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "via_results_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "via_results_prompt",
+ "type": "toaster_notes",
+ "text": "Manage according to SOP",
+ "toaster_type": "info",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_cervical_cancer_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_other_services_offered_hts.json b/opensrp-chw-hf/src/main/assets/json.form/fp_other_services_offered_hts.json
new file mode 100644
index 0000000000..c2ce81cd9d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_other_services_offered_hts.json
@@ -0,0 +1,273 @@
+{
+ "count": "1",
+ "encounter_type": "HTS",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "global": {},
+ "step1": {
+ "title": "HTS",
+ "fields": [
+ {
+ "key": "client_hiv_test_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_hiv_test_results",
+ "type": "native_radio",
+ "label": "Client HIV test results",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "client_referred_to_ctc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_referred_to_ctc",
+ "type": "native_radio",
+ "label": "Has the client been referred to CTC?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "CTC Number",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "CTC number should be of the format (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC Number"
+ },
+ "relevance": {
+ "step1:client_referred_to_ctc": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "partner_tested_for_hiv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_tested_for_hiv",
+ "type": "native_radio",
+ "label": "Was partner tested for HIV?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_hiv_test_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv_test_results",
+ "type": "native_radio",
+ "label": "Partner HIV test results",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_referred_to_ctc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_referred_to_ctc",
+ "type": "native_radio",
+ "label": "Has the partner been referred to CTC?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "CTC Number",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "CTC number should be of the format (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC Number"
+ },
+ "relevance": {
+ "step1:partner_referred_to_ctc": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_point_of_service_delivery.json b/opensrp-chw-hf/src/main/assets/json.form/fp_point_of_service_delivery.json
new file mode 100644
index 0000000000..288689bb9d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_point_of_service_delivery.json
@@ -0,0 +1,177 @@
+{
+ "count": "1",
+ "encounter_type": "Point of Service Delivery",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Record Point of Service Delivery",
+ "fields": [
+ {
+ "key": "point_of_service_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "point_of_service_delivery",
+ "type": "native_radio",
+ "label": "Point of service delivery?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "facility",
+ "text": "Facility",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facility"
+ },
+ {
+ "key": "outreach",
+ "text": "Outreach",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "service_delivery_point_facility",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_delivery_point_facility",
+ "type": "native_radio",
+ "label": "Choose service delivery point",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "rch",
+ "text": "RCH",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rch"
+ },
+ {
+ "key": "ctc",
+ "text": "CTC",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_point_of_service_delivery_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "service_delivery_point_outreach",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "service_delivery_point_outreach",
+ "type": "native_radio",
+ "label": "Choose service delivery point",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "static",
+ "text": "Static based",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "static"
+ },
+ {
+ "key": "community",
+ "text": "Community",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_point_of_service_delivery_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "family_planning_education_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "family_planning_education_provided",
+ "type": "native_radio",
+ "label": "Was family planning health education provided?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_provision_of_ecp.json b/opensrp-chw-hf/src/main/assets/json.form/fp_provision_of_ecp.json
new file mode 100644
index 0000000000..0200596bca
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_provision_of_ecp.json
@@ -0,0 +1,127 @@
+{
+ "count": "1",
+ "encounter_type": "FP ECP Provision",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "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": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Provide ECP",
+ "fields": [
+ {
+ "key": "was_ecp_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "was_ecp_provided",
+ "type": "native_radio",
+ "label": "Was the ECP provided?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "type_of_ecp_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_ecp_provided",
+ "type": "native_radio",
+ "label": "What type of ECP was provided?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "coc",
+ "text": "COC",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "coc"
+ },
+ {
+ "key": "pop",
+ "text": "POP",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pop"
+ },
+ {
+ "key": "postinor",
+ "text": "Postinor 2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "postinor"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_ecp_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_provision_of_method.json b/opensrp-chw-hf/src/main/assets/json.form/fp_provision_of_method.json
new file mode 100644
index 0000000000..0d912c5444
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_provision_of_method.json
@@ -0,0 +1,662 @@
+{
+ "count": "1",
+ "encounter_type": "Provide FP method",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "global": {},
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Provide FP method",
+ "fields": [
+ {
+ "key": "pop",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pop",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number cycles dispensed (POP)",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_max": {
+ "value": "3",
+ "err": "POP value must be equal or less than 3"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "coc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "coc",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number cycles dispensed (COC)",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_max": {
+ "value": "3",
+ "err": "COC value must be equal or less than 3"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "injection_administered",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "injection_administered",
+ "type": "native_radio",
+ "label": "Injection administered?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "jadelle_inserted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jadelle_inserted",
+ "type": "native_radio",
+ "label": "Jadelle inserted?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "implanon_inserted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "implanon_inserted",
+ "type": "native_radio",
+ "label": "Implanon inserted?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "iucd_inserted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iucd_inserted",
+ "type": "native_radio",
+ "label": "IUCD inserted?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "cycle_beads_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cycle_beads_provided",
+ "type": "native_radio",
+ "label": "Cycle beads provided (SDM)?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_counseled_on_lam",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_counseled_on_lam",
+ "type": "native_radio",
+ "label": "Has the client been counseled on the LAM criteria?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "vasectomy",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vasectomy",
+ "type": "native_radio",
+ "label": "Has Vasectomy procedure been conducted?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "btl",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "btl",
+ "type": "native_radio",
+ "label": "Has BTL procedure been conducted?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "post_instruction_fp_method_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "post_instruction_fp_method_provided",
+ "type": "native_radio",
+ "label": "Was post instruction given on the family planning method provided?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "post_instruction_fp_method_provided_prompt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "post_instruction_fp_method_provided_prompt",
+ "type": "toaster_notes",
+ "text": "Please provide post family planning instruction to the client",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reasons_for_not_providing_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_not_providing_method",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Reasons for not providing method",
+ "options": [
+ {
+ "key": "out_of_stock",
+ "text": "Out of stock",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_stock"
+ },
+ {
+ "key": "client_changed_mind",
+ "text": "Client changed mind",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_changed_mind"
+ },
+ {
+ "key": "other",
+ "text": "Others (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please choose reasons for not providing method "
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "specify_other_reasons",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "specify_other_reasons",
+ "type": "edit_text",
+ "hint": "Specify other condition",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_provided_condom",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_provided_condom",
+ "type": "native_radio",
+ "label": "Was the client provided condom?",
+ "text_color": "#000000",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ },
+ {
+ "key": "type_of_condom_collected",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_condom_collected",
+ "openmrs_data_type": "select one",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Select the type of condom collected",
+ "hint": "Select the type of condom collected",
+ "options": [
+ {
+ "key": "male",
+ "text": "Male",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male"
+ },
+ {
+ "key": "female",
+ "text": "Female",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please choose type of condom collected"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_male_condoms_collected",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_male_condoms_collected",
+ "type": "edit_text",
+ "edit_type": "number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number of condoms"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "Number of condoms should be greater than 0"
+ },
+ "v_max": {
+ "value": "144",
+ "err": "Number of condoms shouldn't be greater than 144"
+ },
+ "hint": "Specify quantity (Male)",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_female_condoms_collected",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_female_condoms_collected",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Specify quantity (Female)",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Number of condoms shouldn't be greater than 50"
+ },
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number of condoms"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "Number of condoms should be greater than 0"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "counsel_for_other_methods",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "counsel_for_other_methods",
+ "type": "toaster_notes",
+ "text": "Counsel for other family planning methods",
+ "toaster_type": "warning",
+ "toaster_info_text": "",
+ "toaster_info_title": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "provided_fp_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_fp_method",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "next_appointment_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "next_appointment_date",
+ "type": "date_picker",
+ "min_date": "today",
+ "max_date": "today+5y",
+ "expanded": false,
+ "hint": "Select next appointment date",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_provide_method_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_refill_condom.json b/opensrp-chw-hf/src/main/assets/json.form/fp_refill_condom.json
new file mode 100644
index 0000000000..ad04c12f38
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_refill_condom.json
@@ -0,0 +1,124 @@
+{
+ "count": "1",
+ "encounter_type": "Refill pills/condom",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Refill pills/condom",
+ "fields": [
+ {
+ "key": "condom_refilled",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_refilled",
+ "openmrs_data_type": "select one",
+ "combine_checkbox_option_values": "true",
+ "type": "check_box",
+ "label": "Condom",
+ "hint": "Condom",
+ "options": [
+ {
+ "key": "male",
+ "text": "Male",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male"
+ },
+ {
+ "key": "female",
+ "text": "Female",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please choose type of condom refilled"
+ }
+ },
+ {
+ "key": "number_male_condoms_refilled",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_male_condoms_refilled",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Specify quantity (Male)",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_refill_condom_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_female_condoms_refilled",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_female_condoms_refilled",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Specify quantity (Female)",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "fp_refill_condom_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/fp_set_appointment_date.json b/opensrp-chw-hf/src/main/assets/json.form/fp_set_appointment_date.json
new file mode 100644
index 0000000000..05d6f83a81
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/fp_set_appointment_date.json
@@ -0,0 +1,70 @@
+{
+ "count": "1",
+ "encounter_type": "Set appointment date",
+ "validate_on_submit": true,
+ "entity_id": "",
+ "relational_id": "",
+ "metadata": {
+ "start": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "start",
+ "openmrs_entity_id": "165000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "end": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "end",
+ "openmrs_entity_id": "165001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "deviceid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "deviceid",
+ "openmrs_entity_id": "165003AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "subscriberid": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "subscriberid",
+ "openmrs_entity_id": "165004AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "simserial": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "simserial",
+ "openmrs_entity_id": "165005AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "phonenumber": {
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_data_type": "phonenumber",
+ "openmrs_entity_id": "165006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
+ },
+ "encounter_location": "",
+ "look_up": {
+ "entity_id": "",
+ "value": ""
+ }
+ },
+ "step1": {
+ "title": "Set appointment date",
+ "fields": [
+ {
+ "key": "next_appointment_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "next_appointment_date",
+ "type": "date_picker",
+ "min_date": "today",
+ "max_date": "today+5y",
+ "expanded": false,
+ "hint": "Select appointment date",
+ "v_required": {
+ "value": "true",
+ "err": "Required"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hei_arv_prescription_high_or_low_risk_infant.json b/opensrp-chw-hf/src/main/assets/json.form/hei_arv_prescription_high_or_low_risk_infant.json
new file mode 100644
index 0000000000..d636caa384
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hei_arv_prescription_high_or_low_risk_infant.json
@@ -0,0 +1,196 @@
+{
+ "count": "1",
+ "encounter_type": "HEI ARV prophylaxis for low risk infants",
+ "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"
+ },
+ "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": "ARV prophylaxis",
+ "fields": [
+ {
+ "key": "prompt_for_nvp_syrup",
+ "type": "toaster_notes",
+ "text": "Please provide NVP Syrup",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "provided_nvp_syrup",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_nvp_syrup",
+ "type": "native_radio",
+ "label": "Has the infant been provided NVP Syrup?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "number_of_nvp_days_dispensed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_nvp_days_dispensed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of days dispensed",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter number of days dispensed"
+ },
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "Number of dispensed days should be greater than 0"
+ },
+ "v_max": {
+ "value": "180",
+ "err": "Number of dispensed days should be less than or equal to 180"
+ },
+ "relevance": {
+ "step1:provided_nvp_syrup": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_nvp_syrup",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_nvp_syrup",
+ "type": "native_radio",
+ "label": "Please specify the reasons",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "out_of_stock",
+ "text": "Out of stock",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_stock"
+ },
+ {
+ "key": "medication_expired",
+ "text": "Medication expired",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_expired"
+ },
+ {
+ "key": "home_delivery",
+ "text": "Home delivery",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "home_delivery"
+ },
+ {
+ "key": "other",
+ "text": "Other (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:provided_nvp_syrup": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_providing_nvp_syrup",
+ "type": "edit_text",
+ "hint": "Please specify the other reason(s)",
+ "openmrs_entity_id": "other_reason_for_not_providing_nvp_syrup",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please specify the other reason(s)"
+ },
+ "relevance": {
+ "step1:reason_for_not_providing_nvp_syrup": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "type": "hidden"
+ },
+ {
+ "key": "prophylaxis_arv_for_high_and_low_risk_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prophylaxis_arv_for_high_and_low_risk_given",
+ "type": "hidden",
+ "value": "true"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hei_arv_prescription_high_risk_infant.json b/opensrp-chw-hf/src/main/assets/json.form/hei_arv_prescription_high_risk_infant.json
new file mode 100644
index 0000000000..4db3f24917
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hei_arv_prescription_high_risk_infant.json
@@ -0,0 +1,243 @@
+{
+ "count": "1",
+ "encounter_type": "HEI ARV prophylaxis for high risk infants",
+ "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"
+ },
+ "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": "ARV prophylaxis",
+ "fields": [
+ {
+ "key": "prompt_for_azt_nvp_syrup",
+ "type": "toaster_notes",
+ "text": "Please provide AZT + 3TC and NVP Syrup",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info"
+ },
+ {
+ "key": "provided_azt_nvp_syrup",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_azt_nvp_syrup",
+ "type": "native_radio",
+ "label": "Has the infant been provided AZT + 3TC and NVP Syrup?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "provided_other_combinations",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_other_combinations",
+ "type": "native_radio",
+ "label": "Has the infant been provided other combinations?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:provided_azt_nvp_syrup": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "specify_the_combinations",
+ "type": "edit_text",
+ "hint": "Please specify the combinations",
+ "openmrs_entity_id": "specify_the_combinations",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please specify the combinations"
+ },
+ "relevance": {
+ "step1:provided_other_combinations": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "number_of_azt_nvp_days_dispensed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_azt_nvp_days_dispensed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of days dispensed",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter number of days dispensed"
+ },
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "Number of dispensed days should be greater than 0"
+ },
+ "v_max": {
+ "value": "180",
+ "err": "Number of dispensed days should be less than or equal to 180"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_arv_prescription_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_providing_other_combination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_providing_other_combination",
+ "type": "native_radio",
+ "label": "Please specify the reasons",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "out_of_stock",
+ "text": "Out of stock",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_stock"
+ },
+ {
+ "key": "medication_expired",
+ "text": "Medication expired",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_expired"
+ },
+ {
+ "key": "other",
+ "text": "Other (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:provided_other_combinations": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_providing_other_combination",
+ "type": "edit_text",
+ "hint": "Please specify the other reason(s)",
+ "openmrs_entity_id": "other_reason_for_not_providing_other_combination",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please specify the other reason(s)"
+ },
+ "relevance": {
+ "step1:reason_for_not_providing_other_combination": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "type": "hidden"
+ },
+ {
+ "key": "prophylaxis_arv_for_high_risk_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prophylaxis_arv_for_high_risk_given",
+ "type": "hidden",
+ "value": "true"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hei_baseline_investigation.json b/opensrp-chw-hf/src/main/assets/json.form/hei_baseline_investigation.json
new file mode 100644
index 0000000000..4f6b2f721b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hei_baseline_investigation.json
@@ -0,0 +1,288 @@
+{
+ "count": "1",
+ "encounter_type": "HEI Baseline Investigation",
+ "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"
+ },
+ "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": "HEI Baseline Investigation",
+ "fields": [
+ {
+ "key": "followup_status",
+ "openmrs_entity_id": "followup_status",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Visit Type",
+ "type": "spinner",
+ "values": [
+ "Infant and Mother (IM)",
+ "Infant with other caregiver (IC)",
+ "Transit (O)",
+ "Lost to Followup"
+ ],
+ "keys": [
+ "infant_and_mother",
+ "infant_with_other_caregiver",
+ "transfer_out",
+ "lost_to_followup"
+ ],
+ "openmrs_choice_ids": {
+ "infant_and_mother": "infant_and_mother",
+ "infant_with_other_caregiver": "infant_with_other_caregiver",
+ "transfer_out": "transfer_out",
+ "lost_to_followup": "lost_to_followup"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please select the visit type"
+ }
+ },
+ {
+ "key": "name_of_hf",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "name_of_hf",
+ "buttonText": "Select Health Facility",
+ "sort": true,
+ "maxSelectable": 1,
+ "dialogTitle": "Health Facility",
+ "searchHint": "Type Health Facility Name",
+ "options": [
+ ],
+ "type": "multi_select_list",
+ "v_required": {
+ "value": true,
+ "err": "Please select the health facility"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "health_status",
+ "openmrs_entity_id": "health_status",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Health Status",
+ "type": "spinner",
+ "values": [
+ "Diarrhoea",
+ "DEAR Draining Ears",
+ "Fever",
+ "KS Kaposi Sarcoma",
+ "MAL Malnutrition",
+ "OC Oesophageal Candidiasis",
+ "Pneumonia",
+ "SD Skin Disease",
+ "Thrush (Oral Candidiasis)",
+ "TB Tuberculosis",
+ "Well",
+ "LN Lymphadenopathy"
+ ],
+ "keys": [
+ "diarrhoea",
+ "draining_ears",
+ "fever",
+ "kaposi_sarcoma",
+ "malnutrition",
+ "oesophageal_candidiasis",
+ "pneumonia",
+ "skin_disease",
+ "thrush",
+ "tuberculosis",
+ "well",
+ "lymphadenopathy"
+ ],
+ "openmrs_choice_ids": {
+ "diarrhoea": "diarrhoea",
+ "draining_ears": "draining_ears",
+ "fever": "fever",
+ "kaposi_sarcoma": "kaposi_sarcoma",
+ "malnutrition": "malnutrition",
+ "oesophageal_candidiasis": "oesophageal_candidiasis",
+ "pneumonia": "pneumonia",
+ "skin_disease": "skin_disease",
+ "thrush": "thrush",
+ "tuberculosis": "tuberculosis",
+ "well": "well",
+ "lymphadenopathy": "lymphadenopathy"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please select the health status"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_health_status",
+ "type": "toaster_notes",
+ "text": "Refer the client for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "infant_feeding_practice",
+ "openmrs_entity_id": "infant_feeding_practice",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "hint": "Infant Feeding Practice",
+ "type": "spinner",
+ "values": [
+ "EBF: Infant fed by only breast milk",
+ "RF: Infant fed only by formula milk",
+ "MF: Infant fed by breast milk and formula milk",
+ "BF + additional food: Infant fed by breast milk as well as other complementary food",
+ "RF + additional food: Infant fed by formula milk and complementary food",
+ "SBF: Child has stopped breast milk completely"
+ ],
+ "keys": [
+ "ebf",
+ "rf",
+ "mf",
+ "bf+",
+ "rf+",
+ "sbf"
+ ],
+ "openmrs_choice_ids": {
+ "ebf": "ebf",
+ "rf": "rf",
+ "mf": "mf",
+ "bf+": "bf+",
+ "rf+": "rf+",
+ "sbf": "sbf"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please select the infant feeding practice"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Weight (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the weight"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The weight must be equal or greater than 0 (KG)"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "The weight must be equal or less than 20 (KG)"
+ },
+ "v_max_length": {
+ "value": "5",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid weight."
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the weight"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_baseline_investigation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "followup_visit_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "followup_visit_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_followup_visit_date_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "type": "hidden"
+ },
+ {
+ "key": "actual_age",
+ "type": "hidden",
+ "openmrs_entity_id": "actual_age",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hei_community_followup_referral.json b/opensrp-chw-hf/src/main/assets/json.form/hei_community_followup_referral.json
new file mode 100644
index 0000000000..256f3f4c16
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hei_community_followup_referral.json
@@ -0,0 +1,134 @@
+{
+ "count": "1",
+ "encounter_type": "HEI Community Followup",
+ "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"
+ },
+ "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": "HEI Community Followup Referral",
+ "fields": [
+ {
+ "key": "last_client_visit_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_client_visit_date",
+ "type": "date_picker",
+ "hint": "Client's last facility visit date",
+ "expanded": false,
+ "max_date": "today",
+ "editable": false,
+ "read_only": true,
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the client's last facility visit date"
+ }
+ },
+ {
+ "key": "reasons_for_issuing_community_referral",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_issuing_community_referral",
+ "type": "native_radio",
+ "label": "Reasons for issuing community followup referral",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "missed_appointment",
+ "text": "Missed Appointment",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "missed_appointment"
+ },
+ {
+ "key": "lost_to_followup",
+ "text": "Lost to followup client",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lost_to_followup"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select reason for issuing the referral"
+ }
+ },
+ {
+ "key": "mother_champion_location",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mother_champion_location",
+ "type": "spinner",
+ "hint": "Mother Champion Location",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the Mother Champion Location"
+ }
+ },
+ {
+ "key": "comment_pmtct_community_followup",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment_pmtct_community_followup",
+ "type": "edit_text",
+ "hint": "Remarks/Comments"
+ },
+ {
+ "key": "pmtct_community_referral_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct_community_referral_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "pmtct_community_followup_referral_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "child_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "child_name",
+ "type": "hidden"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hei_dna_pcr_sample_collection.json b/opensrp-chw-hf/src/main/assets/json.form/hei_dna_pcr_sample_collection.json
new file mode 100644
index 0000000000..efdb486ee7
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hei_dna_pcr_sample_collection.json
@@ -0,0 +1,175 @@
+{
+ "count": "1",
+ "encounter_type": "HEI DNA PCR Sample Collection",
+ "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"
+ },
+ "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": "DNA-PCR Sample Collection",
+ "fields": [
+ {
+ "key": "clinician_name",
+ "type": "edit_text",
+ "hint": "Healthcare Provider's Name",
+ "openmrs_entity_id": "clinician_name",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter the healthcare provider's name"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the healthcare provider's name"
+ }
+ },
+ {
+ "key": "clinician_position",
+ "type": "spinner",
+ "hint": "Healthcare Provider's Title",
+ "openmrs_entity_id": "clinician_position",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "values": [
+ "Medical Officer",
+ "Assistant Medical Officer",
+ "Clinical Officer",
+ "Assistant Clinical Officer",
+ "Nurse",
+ "Laboratory personnel"
+ ],
+ "keys": [
+ "medical_officer",
+ "assistant_medical_officer",
+ "clinical_officer",
+ "assistant_clinical_officer",
+ "nurse",
+ "laboratory_personnel"
+ ],
+ "openmrs_choice_ids": {
+ "medical_officer": "medical_officer",
+ "assistant_medical_officer": "assistant_medical_officer",
+ "clinical_officer": "clinical_officer",
+ "assistant_clinical_officer": "assistant_clinical_officer",
+ "nurse": "nurse",
+ "laboratory_personnel": "laboratory_personnel"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the healthcare provider's title"
+ }
+ },
+ {
+ "key": "clinician_phone_number",
+ "type": "edit_text",
+ "hint": "Healthcare Provider's Phone Number",
+ "edit_type": "number",
+ "openmrs_entity_id": "clinician_phone_number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits and must start with 06 au 07."
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the healthcare provider's phone number"
+ }
+ },
+ {
+ "key": "sample_collection_date",
+ "type": "date_picker",
+ "hint": "DNA-PCR Sample Collection Date",
+ "openmrs_entity_id": "sample_collection_date",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "min_date": "today-5y",
+ "max_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the collection date"
+ }
+ },
+ {
+ "key": "dna_pcr_collection_time",
+ "type": "time_picker",
+ "hint": "DNA-PCR Sample Collection Time",
+ "openmrs_entity_id": "dna_pcr_collection_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the collection time"
+ }
+ },
+ {
+ "key": "sample_id",
+ "type": "edit_text",
+ "hint": "DNA-PCR Sample ID",
+ "openmrs_entity_id": "sample_id",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the sample ID"
+ }
+ },
+ {
+ "key": "type_of_hiv_test",
+ "type": "hidden",
+ "openmrs_entity_id": "type_of_hiv_test",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "value": "DNA PCR"
+ },
+ {
+ "key": "test_at_age",
+ "type": "hidden",
+ "openmrs_entity_id": "test_at_age",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hei_hiv_test_results.json b/opensrp-chw-hf/src/main/assets/json.form/hei_hiv_test_results.json
new file mode 100644
index 0000000000..3429054d29
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hei_hiv_test_results.json
@@ -0,0 +1,333 @@
+{
+ "count": "1",
+ "encounter_type": "HEI HIV Test Results",
+ "entity_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "HIV Test Results",
+ "fields": [
+ {
+ "key": "sample_id",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sample_id",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "hiv_test_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_status",
+ "type": "native_radio",
+ "label": "Select the test result",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "confirmation_hiv_test_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "confirmation_hiv_test_result",
+ "type": "native_radio",
+ "label": "Is this a confirmation test result?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "relevance": {
+ "step1:hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(.,\"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_confirm_hiv_results",
+ "type": "toaster_notes",
+ "text": "Conduct another DNA PCR test on the child to confirm the HIV status",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:confirmation_hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_hiv_test_results",
+ "type": "toaster_notes",
+ "text": "The Child is HIV-infected, refer to HIV Care and Treatment services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:confirmation_hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "hiv_test_result_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_result_date",
+ "type": "date_picker",
+ "hint": "Date of receiving results",
+ "expanded": false,
+ "min_date": "today-3y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please select the date of receiving the results"
+ }
+ },
+ {
+ "key": "results_provided_to_parents",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "results_provided_to_parents",
+ "type": "native_radio",
+ "label": "Have the results been provided to the parents?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hei_hiv_test_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_test_result_to_parent_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_result_to_parent_date",
+ "type": "date_picker",
+ "hint": "Date Results given to Mother/Caregiver",
+ "expanded": false,
+ "min_date": "today-3y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Tafadhali chagua Tarehe ya majibu kupewa mzazi"
+ },
+ "relevance": {
+ "step1:results_provided_to_parents": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_provide_results_to_parents",
+ "type": "toaster_notes",
+ "text": "Provide the results to the parents",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:results_provided_to_parents": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "linkage_to_ctc",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "linkage_to_ctc",
+ "type": "native_radio",
+ "label": "Is the child linked to CTC services?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:confirmation_hiv_test_result": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "CTC Number",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "CTC number should be of the format (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC Number"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid CTC Number"
+ },
+ "relevance": {
+ "step1:linkage_to_ctc": {
+ "type": "string",
+ "ex": "equalTo(.,\"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_linkage_to_ctc",
+ "type": "toaster_notes",
+ "text": "Link the child to CTC services and issue a CTC number",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:linkage_to_ctc": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "type_of_hiv_test",
+ "type": "hidden",
+ "openmrs_entity_id": "type_of_hiv_test",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "value": "Antibody Test"
+ },
+ {
+ "key": "test_at_age",
+ "type": "hidden",
+ "openmrs_entity_id": "test_at_age",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "actual_age",
+ "type": "hidden",
+ "openmrs_entity_id": "actual_age",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hei_number_edit.json b/opensrp-chw-hf/src/main/assets/json.form/hei_number_edit.json
new file mode 100644
index 0000000000..49350a81fa
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hei_number_edit.json
@@ -0,0 +1,81 @@
+{
+ "count": "1",
+ "encounter_type": "Edit HEI Number",
+ "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"
+ },
+ "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": "HEI Number Registration",
+ "fields": [
+ {
+ "key": "hei_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hei_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######-C##",
+ "mask_hint": "1234567891234567",
+ "allowed_chars": "0123456789",
+ "hint": "HEI Number",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6}-C\\d{2})?",
+ "err": "HEI number should be of the format (XX-XX-XXXX-XXXXXX-CXX)"
+ },
+ "v_max_length": {
+ "value": "21",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid HEI Number"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid HEI Number"
+ }
+ },
+ {
+ "key": "previous_hei_number",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "previous_hei_number",
+ "openmrs_entity_parent": "",
+ "type": "hidden"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hei_number_registration.json b/opensrp-chw-hf/src/main/assets/json.form/hei_number_registration.json
new file mode 100644
index 0000000000..e1a1d4ba8d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hei_number_registration.json
@@ -0,0 +1,74 @@
+{
+ "count": "1",
+ "encounter_type": "HEI Number Registration",
+ "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"
+ },
+ "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": "HEI Number Registration",
+ "fields": [
+ {
+ "key": "hei_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hei_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######-C##",
+ "mask_hint": "1234567891234567",
+ "allowed_chars": "0123456789",
+ "hint": "HEI Number",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6}-C\\d{2})?",
+ "err": "HEI number should be of the format (XX-XX-XXXX-XXXXXX-CXX)"
+ },
+ "v_max_length": {
+ "value": "21",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid HEI Number"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter a valid HEI Number"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hei_rv_ctx.json b/opensrp-chw-hf/src/main/assets/json.form/hei_rv_ctx.json
new file mode 100644
index 0000000000..2701e7fd80
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hei_rv_ctx.json
@@ -0,0 +1,207 @@
+{
+ "count": "1",
+ "encounter_type": "HEI CTX Prescription",
+ "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"
+ },
+ "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": "CTX Prescription",
+ "fields": [
+ {
+ "key": "prescribed_ctx",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prescribed_ctx",
+ "type": "native_radio",
+ "label": "Has the infant been prescribed CTX?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "form_of_ctx_prescribed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "form_of_ctx_prescribed",
+ "type": "native_radio",
+ "label": "Select the form of CTX prescribed",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "tabs",
+ "text": "tablets",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tabs"
+ },
+ {
+ "key": "syrup",
+ "text": "syrup",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syrup"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:prescribed_ctx": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "number_of_ctx_days_dispensed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_ctx_days_dispensed",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of days dispensed",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter number of days dispensed"
+ },
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "Number of dispensed days should be greater than 0"
+ },
+ "v_max": {
+ "value": "180",
+ "err": "Number of dispensed days should be less than or equal to 180"
+ },
+ "relevance": {
+ "step1:prescribed_ctx": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_prescribing_ctx",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_prescribing_ctx",
+ "type": "native_radio",
+ "label": "Reason for not prescribing CTX",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "out_of_stock",
+ "text": "Out of stock",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_stock"
+ },
+ {
+ "key": "medication_expired",
+ "text": "Medication expired",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "medication_expired"
+ },
+ {
+ "key": "other",
+ "text": "Other (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:prescribed_ctx": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_prescribing_ctx",
+ "type": "edit_text",
+ "hint": "Please specify the other reason(s)",
+ "openmrs_entity_id": "other_reason_for_not_prescribing_ctx",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please specify the other reason(s)"
+ },
+ "relevance": {
+ "step1:reason_for_not_prescribing_ctx": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "visit_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "type": "hidden"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hiv_client_update_ctc_number.json b/opensrp-chw-hf/src/main/assets/json.form/hiv_client_update_ctc_number.json
new file mode 100644
index 0000000000..0cd736e070
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hiv_client_update_ctc_number.json
@@ -0,0 +1,83 @@
+{
+ "form": "Update CTC Number",
+ "count": "1",
+ "encounter_type": "Update CTC Number",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_index_contact_ctc_enrollment_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Update CTC Number",
+ "fields": [
+ {
+ "name": "ctc_number",
+ "type": "masked_edit_text",
+ "properties": {
+ "hint": "CTC Number e.g 12-34-5678-912345",
+ "type": "Care and Treatment Clinic registration number (CTC Number)",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "input_type": "number",
+ "allowed_chars": "0123456789"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "CTC Number should be of the format (XX-XX-XXXX-XXXXXX)."
+ }
+ ],
+ "required_status": "yes:Please specify client's CTC number"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hiv_community_followup_referral.json b/opensrp-chw-hf/src/main/assets/json.form/hiv_community_followup_referral.json
new file mode 100644
index 0000000000..3217df13dd
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hiv_community_followup_referral.json
@@ -0,0 +1,151 @@
+{
+ "form": "HIV Community Followup",
+ "count": "1",
+ "encounter_type": "HIV Community Followup",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_community_followup_referral_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "HIV Community Followup Referral",
+ "fields": [
+ {
+ "name": "reasons_for_issuing_community_referral",
+ "type": "radio_group",
+ "properties": {
+ "text": "Reasons for issuing community followup referral"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_issuing_community_referral",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "missed_appointment",
+ "text": "Missed Appointment",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "missed_appointment",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "lost_to_followup",
+ "text": "Lost to followup client",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lost_to_followup",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "Other",
+ "text": "Other",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select reason for issuing the referral",
+ "dependent_calculations": [
+ "hiv_community_referral_date"
+ ]
+ },
+ {
+ "name": "reason_for_issuing_community_referral_other",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Other Reasons",
+ "type": "name"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_issuing_community_referral_other",
+ "openmrs_entity_parent": "reasons_for_issuing_community_referral"
+ },
+ "required_status": "true:Please specify other reasons",
+ "subjects": "reasons_for_issuing_community_referral:map"
+ },
+ {
+ "name": "last_client_visit_date",
+ "type": "datetime_picker",
+ "properties": {
+ "hint": "Clients last facility visit date",
+ "type": "date_picker",
+ "display_format": "dd/MM/yyyy",
+ "max_date": "today"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_client_visit_date",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Please specify the clients last facility visit date",
+ "subjects": "reasons_for_issuing_community_referral:map"
+ },
+ {
+ "name": "comment_hiv_community_followup",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Remarks/Comments"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment_hiv_community_followup",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hiv_index_clients_contacts_registration_form.json b/opensrp-chw-hf/src/main/assets/json.form/hiv_index_clients_contacts_registration_form.json
new file mode 100644
index 0000000000..c0a04defc5
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hiv_index_clients_contacts_registration_form.json
@@ -0,0 +1,949 @@
+{
+ "count": "2",
+ "encounter_type": "Family 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"
+ },
+ "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": ""
+ }
+ },
+ "global": {},
+ "step1": {
+ "title": "Location details",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "fam_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "fam_name",
+ "type": "edit_text",
+ "hint": "Surname",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the surname"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter surname"
+ }
+ },
+ {
+ "key": "client_first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "First name",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the first name"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ }
+ },
+ {
+ "key": "client_middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Middle name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the middle name"
+ }
+ },
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "hidden": "true",
+ "type": "edit_text",
+ "barcode_type": "qrcode",
+ "hint": "ID",
+ "scanButtonText": "Scan QR Code",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid ID"
+ }
+ },
+ {
+ "key": "fam_village",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "cityVillage",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Area Name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the area name"
+ }
+ },
+ {
+ "key": "landmark",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_address",
+ "openmrs_entity_id": "landmark",
+ "type": "edit_text",
+ "hint": "Landmark/Description of house location",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the landmark/description of location."
+ }
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "15dp"
+ },
+ {
+ "key": "sync_location_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "sync_location_id",
+ "type": "spinner",
+ "hint": "Select CHW Location",
+ "v_required": {
+ "value": "true",
+ "err": "Please select CHW Location"
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "Client details",
+ "fields": [
+ {
+ "key": "unique_id",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_identifier",
+ "openmrs_entity_id": "opensrp_id",
+ "type": "edit_text",
+ "read_only": true,
+ "hint": "Kituoni ID",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid ID"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the UNIQUE ID"
+ }
+ },
+ {
+ "key": "surname",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "last_name",
+ "type": "edit_text",
+ "hint": "Surname",
+ "edit_type": "name",
+ "read_only": true,
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the surname"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "first_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "first_name",
+ "type": "edit_text",
+ "hint": "First name",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the first name"
+ },
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "err": "Please enter a valid name"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "middle_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "middle_name",
+ "type": "edit_text",
+ "hint": "Middle name",
+ "edit_type": "name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-]*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the middle name"
+ },
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdate",
+ "type": "hidden",
+ "hint": "Date of birth (DOB)",
+ "expanded": false,
+ "duration": {
+ "label": "Age"
+ },
+ "min_date": "today-120y",
+ "max_date": "today-5y",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the date of birth"
+ }
+ },
+ {
+ "key": "age_calculated",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "dob_unknown",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "birthdateApprox",
+ "type": "hidden",
+ "label": "",
+ "value": "true",
+ "options": [
+ {
+ "key": "dob_unknown",
+ "text": "DOB unknown?",
+ "text_size": "18px",
+ "value": "true"
+ }
+ ]
+ },
+ {
+ "key": "age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person_attribute",
+ "openmrs_entity_id": "age",
+ "type": "edit_text",
+ "hint": "Age",
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Must be a rounded number"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Enter a valid age"
+ },
+ "v_max": {
+ "value": "120",
+ "err": "Age must be equal or less than 120"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the age"
+ }
+ },
+ {
+ "key": "sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "person",
+ "openmrs_entity_id": "gender",
+ "type": "spinner",
+ "hint": "Sex",
+ "values": [
+ "Male",
+ "Female"
+ ],
+ "keys": [
+ "Male",
+ "Female"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the sex"
+ }
+ },
+ {
+ "key": "wra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "mra",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "phone_number",
+ "type": "edit_text",
+ "hint": "Client phone number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ },
+ "v_required": {
+ "value": false,
+ "err": "Please specify the phone number"
+ }
+ },
+ {
+ "key": "other_phone_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_phone_number",
+ "type": "edit_text",
+ "hint": "Alternative phone number",
+ "v_numeric": {
+ "value": "true",
+ "err": "Number must be a total of 10 digits in length"
+ },
+ "v_regex": {
+ "value": "(0[6-7][1-9][0-9][0-9]{6})|\\s*",
+ "err": "Number must be 10 digits and must start with 06 or 07."
+ },
+ "v_required": {
+ "value": false,
+ "err": "Please specify the alternative phone number"
+ }
+ },
+ {
+ "key": "relationship_under_15_for_possible_children",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Relationship",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "biological_child",
+ "text": "Biological child",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "biological_child"
+ },
+ {
+ "key": "siblings",
+ "text": "Siblings",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "siblings"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Relationship is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_under_15",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Relationship",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "siblings",
+ "text": "Siblings",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "siblings"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Relationship is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_above_15_to_18_possible_children",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Relationship",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "biological_child",
+ "text": "Biological child",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "biological_child"
+ },
+ {
+ "key": "siblings",
+ "text": "Siblings",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "siblings"
+ },
+ {
+ "key": "sexual_partner",
+ "text": "Sexual partner",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ },
+ {
+ "key": "needle_sharing_partner",
+ "text": "Needle Sharing partner",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_sharing_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Relationship is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_above_15_to_18",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Relationship",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "siblings",
+ "text": "Siblings",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "siblings"
+ },
+ {
+ "key": "sexual_partner",
+ "text": "Sexual partner",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ },
+ {
+ "key": "needle_sharing_partner",
+ "text": "Needle Sharing partner",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_sharing_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Relationship is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_above_18_possible_parents_female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Relationship",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "biological_mother",
+ "text": "Biological Mother",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "biological_mother"
+ },
+ {
+ "key": "sexual_partner",
+ "text": "Sexual partner",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ },
+ {
+ "key": "needle_sharing_partner",
+ "text": "Needle Sharing partner",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_sharing_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Relationship is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_above_18_possible_parents_male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Relationship",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "biological_father",
+ "text": "Biological Father (If the mother is deceased)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "biological_father"
+ },
+ {
+ "key": "sexual_partner",
+ "text": "Sexual partner",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ },
+ {
+ "key": "needle_sharing_partner",
+ "text": "Needle Sharing partner",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_sharing_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Relationship is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship_above_18",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "native_radio",
+ "label": "Relationship",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "sexual_partner",
+ "text": "Sexual partner",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ },
+ {
+ "key": "needle_sharing_partner",
+ "text": "Needle Sharing partner",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_sharing_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Relationship is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "relationship",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "relationship",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_client_contacts_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gbv_analysis",
+ "type": "toaster_notes",
+ "text": "Conduct GBV Screening",
+ "text_color": "#1199F9",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "physical_abuse",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_abuse",
+ "type": "native_radio",
+ "label": "Has the contact client ever emotionally or physically hurt you in your lifetime?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "The answer to this question is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "threatened_to_be_hurt",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "threatened_to_be_hurt",
+ "type": "native_radio",
+ "label": "Has the contact client ever hit, kicked, slapped, or physically hurt you within the last year?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "The answer to this question is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "sexual_assault",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_assault",
+ "type": "native_radio",
+ "label": "Has the contact client ever forced you to have sexual activities within the last year?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "The answer to this question is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "fearful_of_contact_client",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fearful_of_contact_client",
+ "type": "native_radio",
+ "label": "Are you threatened or fear the contact client?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "The answer to this question is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "additional_details",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fearful_of_contact_client",
+ "type": "native_radio",
+ "label": "Do you have any complimentary information regarding the violence you have been subjected to?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_ipv_service",
+ "type": "toaster_notes",
+ "text": "Refer the client for post-IPV Services\n\nDiscuss with the client on the appropriate referral to communicate with Index Contact",
+ "openmrs_entity_id": "prompt_for_ipv_service",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hiv_index_contacts_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "how_to_notify_the_contact_client",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "how_to_notify_the_contact_client",
+ "type": "native_radio",
+ "label": "How to communicate with contact client",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "client_referral",
+ "text": "Client Referral",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_referral"
+ },
+ {
+ "key": "provider_referral",
+ "text": "Provider Referral",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provider_referral"
+ },
+ {
+ "key": "contract_referral",
+ "text": "Contract Referral",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "contract_referral"
+ },
+ {
+ "key": "dual_referral",
+ "text": "Dual Referral",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dual_referral"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "The answer to this question is required"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hiv_index_contact_community_followup_referral.json b/opensrp-chw-hf/src/main/assets/json.form/hiv_index_contact_community_followup_referral.json
new file mode 100644
index 0000000000..82ac719fa5
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hiv_index_contact_community_followup_referral.json
@@ -0,0 +1,102 @@
+{
+ "form": "HIV Index Contact Community Followup Referral",
+ "count": "1",
+ "encounter_type": "HIV Index Contact Community Followup Referral",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_index_contact_community_followup_referral_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Index Contact Community Followup",
+ "fields": [
+ {
+ "name": "toast_refer_to_chw",
+ "type": "toast_notification",
+ "properties": {
+ "notification_type": "info",
+ "dismissible": "no",
+ "title": "Client will be referred to CHW",
+ "text": "The client is about to be referred to the CHW tied to client's village for follow-up at the community level.\n\nAdd any additional comments that should be sent the the CHW\n\nSave the form to send the referral",
+ "background_color": "#082455",
+ "text_color": "#EBEE2F"
+ }
+ },
+ {
+ "name": "chw_referral_hf",
+ "type": "spinner",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chw_referral_hf",
+ "openmrs_entity_parent": ""
+ },
+ "properties": {
+ "text": "CHW Location"
+ },
+ "options": [],
+ "dependent_calculations": [
+ "hiv_index_contact_community_followup_referral_date",
+ "refer_to_chw"
+ ],
+ "required_status": "yes:Please specify"
+ },
+ {
+ "name": "comment",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Remarks/Comments"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hiv_index_contact_ctc_enrollment.json b/opensrp-chw-hf/src/main/assets/json.form/hiv_index_contact_ctc_enrollment.json
new file mode 100644
index 0000000000..aeb84c9777
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hiv_index_contact_ctc_enrollment.json
@@ -0,0 +1,120 @@
+{
+ "form": "HIV Index Contact CTC Enrollment",
+ "count": "1",
+ "encounter_type": "Update HIV Index Contact Testing Followup",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_index_contact_ctc_enrollment_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Index Contact HIV Outcome",
+ "fields": [
+ {
+ "name": "ctc_number",
+ "type": "masked_edit_text",
+ "properties": {
+ "hint": "CTC Number e.g 12-34-5678-912345",
+ "type": "Care and Treatment Clinic registration number (CTC Number)",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "input_type": "number",
+ "allowed_chars": "0123456789"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "CTC Number should be of the format (XX-XX-XXXX-XXXXXX)."
+ }
+ ],
+ "required_status": "yes:Please specify client's CTC number"
+ },
+ {
+ "name": "comment",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Remarks/Comments"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ },
+ {
+ "name": "place_where_test_was_conducted",
+ "type": "text_input_edit_text",
+ "properties": {
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_where_test_was_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "subjects": "place_where_test_was_conducted:map"
+ },
+ {
+ "name": "test_results",
+ "type": "text_input_edit_text",
+ "properties": {
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_results",
+ "openmrs_entity_parent": ""
+ },
+ "subjects": "test_results:map"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hiv_index_contact_followup.json b/opensrp-chw-hf/src/main/assets/json.form/hiv_index_contact_followup.json
new file mode 100644
index 0000000000..9ed32e8b4c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hiv_index_contact_followup.json
@@ -0,0 +1,483 @@
+{
+ "form": "HIV Index Contact Testing Followup",
+ "count": "1",
+ "encounter_type": "HIV Index Contact Testing Followup",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_index_contact_followup_for_non_sex_partner_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "Index Contact HIV Outcome",
+ "fields": [
+ {
+ "name": "has_the_client_been_reached",
+ "type": "radio_group",
+ "properties": {
+ "text": "Has the Index Contact been reached?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_the_client_been_reached",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Yes",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "No",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer",
+ "dependent_calculations": [
+ "relationship"
+ ]
+ },
+ {
+ "name": "eligibility_for_testing",
+ "type": "radio_group",
+ "properties": {
+ "text": "Is the Index Contact Eligible for testing?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "eligibility_for_testing",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Yes",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "No",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer",
+ "subjects": "has_the_client_been_reached:map"
+ },
+ {
+ "name": "has_the_contact_client_been_tested",
+ "type": "radio_group",
+ "properties": {
+ "text": "Has the Index Contact been tested for HIV?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_the_contact_client_been_tested",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Yes",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "No",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer",
+ "subjects": "has_the_client_been_reached:map, eligibility_for_testing:map"
+ },
+ {
+ "name": "reasons_conducting_testing_for_index_contact",
+ "type": "spinner",
+ "properties": {
+ "text": "Reasons as to why the Index Contact was not tested"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_conducting_testing_for_index_contact",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "test_kits_are_out_of_stock",
+ "text": "Test kits are out of stock",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_kits_are_out_of_stock",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "the_client_refused_to_be_tested",
+ "text": "The client refused to be tested",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "the_client_refused_to_be_tested",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "we_are_still_counselling_the_client",
+ "text": "We are still counselling the client",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "we_are_still_counselling_the_client",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Other",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select a reason",
+ "subjects": "eligibility_for_testing:map,has_the_contact_client_been_tested:map,has_the_client_been_reached:map"
+ },
+ {
+ "name": "other_reason_for_not_testing",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Specify the other reason for not testing the Index Contact"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_testing",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "yes:Please enter the reason",
+ "subjects": "reasons_conducting_testing_for_index_contact:map,eligibility_for_testing:map,has_the_contact_client_been_tested:map,has_the_client_been_reached:map"
+ },
+ {
+ "name": "test_results",
+ "type": "radio_group",
+ "properties": {
+ "text": "What are the HIV test results?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_results",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "positive",
+ "text": "Positive",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "negative",
+ "text": "Negative",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the test results",
+ "subjects": "has_the_contact_client_been_tested:map, eligibility_for_testing:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "place_where_test_was_conducted",
+ "type": "radio_group",
+ "properties": {
+ "text": "Where was the test conducted?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_where_test_was_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "outpatient_department",
+ "text": "Outpatient department",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "inpatient_department",
+ "text": "Inpatient department",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "inpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "community_based_hiv_testing_service",
+ "text": "Community Based HIV Testing Service",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_based_hiv_testing_service",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "ctc",
+ "text": "CTC",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outreach_services",
+ "text": "Outreach services",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach_services",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Other",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer",
+ "subjects": "test_results:map, eligibility_for_testing:map, has_the_contact_client_been_tested:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "client_test_date",
+ "type": "datetime_picker",
+ "properties": {
+ "hint": "Client's test date",
+ "type": "date_picker",
+ "display_format": "dd/MM/yyyy",
+ "max_date": "today"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_test_date",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Please specify the client's test date",
+ "subjects": "test_results:map, eligibility_for_testing:map, has_the_contact_client_been_tested:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "toast_enroll_the_client_to_prep",
+ "type": "toast_notification",
+ "properties": {
+ "notification_type": "info",
+ "dismissible": "no",
+ "title": "Client should be enrolled to KVP/PrEP",
+ "text": "The client is a sex partner of a HIV Positive client and should be enrolled to KVP/PrEP",
+ "background_color": "#082455",
+ "text_color": "#EBEE2F"
+ },
+ "subjects": "relationship:text, test_results:map, has_the_contact_client_been_tested:map, eligibility_for_testing:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "enrolled_to_clinic",
+ "type": "radio_group",
+ "properties": {
+ "text": "Has the client been enrolled to care and treatment?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_to_clinic",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Yes",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "No",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer",
+ "subjects": "test_results:map, eligibility_for_testing:map, has_the_contact_client_been_tested:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "reasons_for_ineligibility_for_testing",
+ "type": "spinner",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reasons_for_ineligibility_for_testing",
+ "openmrs_entity_parent": ""
+ },
+ "properties": {
+ "text": "Reasons for Ineligibility for testing"
+ },
+ "options": [
+ {
+ "name": "known_positive",
+ "text": "The contact is known HIV positive",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Other",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes: Please Select",
+ "subjects": "has_the_client_been_reached:map,eligibility_for_testing:map"
+ },
+ {
+ "name": "other_reason_for_ineligibility",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Other"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_ineligibility",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "yes: Please input the other reason",
+ "subjects": "reasons_for_ineligibility_for_testing:map, eligibility_for_testing:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "ctc_number",
+ "type": "masked_edit_text",
+ "properties": {
+ "hint": "CTC Number e.g 12-34-5678-912345",
+ "type": "Care and Treatment Clinic registration number (CTC Number)",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "input_type": "number",
+ "allowed_chars": "0123456789"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "CTC Number should be of the format (XX-XX-XXXX-XXXXXX)."
+ }
+ ],
+ "required_status": "yes:Please specify client's CTC number",
+ "subjects": "enrolled_to_clinic:map, reasons_for_ineligibility_for_testing:map, eligibility_for_testing:map, test_results:map, has_the_contact_client_been_tested:map, has_the_client_been_reached:map"
+ },
+ {
+ "name": "comment",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Remarks/Comments"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hiv_outcome.json b/opensrp-chw-hf/src/main/assets/json.form/hiv_outcome.json
new file mode 100644
index 0000000000..1be4da7937
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hiv_outcome.json
@@ -0,0 +1,402 @@
+{
+ "form": "HIV Outcome",
+ "count": "1",
+ "encounter_type": "HIV Outcome",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_outcome_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "HIV Testing Outcome",
+ "fields": [
+ {
+ "name": "action_taken_hiv_problems",
+ "type": "radio_group",
+ "properties": {
+ "text": "Action taken by health facility."
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "action_taken_hiv_problems",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "no_action_taken",
+ "text": "Not Tested",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_action_taken",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "tested",
+ "text": "Tested",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tested",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "referred",
+ "text": "Referred",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "referred",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select action taken",
+ "dependent_calculations": [
+ "hiv_facility_visit_date",
+ "test_results_calculation"
+ ]
+ },
+ {
+ "name": "where_was_test_conducted",
+ "type": "radio_group",
+ "properties": {
+ "text": "Where was the test conducted?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "where_was_test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "outpatient_department",
+ "text": "Outpatient department",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "inpatient_department",
+ "text": "Inpatient department",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "inpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "community_based_hiv_testing_services",
+ "text": "Community Based HIV Testing Services",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_based_hiv_testing_services",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "ctc",
+ "text": "CTC",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outreach_services",
+ "text": "Outreach Services",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach_services",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Other",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select where the test was conducted",
+ "subjects": "action_taken_hiv_problems:map"
+ },
+ {
+ "name": "other_where_was_test_conducted",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Others (Specify)"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_where_was_test_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Please specity where was the test conducted",
+ "subjects": "where_was_test_conducted:map"
+ },
+ {
+ "name": "reason_no_action_was_taken",
+ "type": "radio_group",
+ "properties": {
+ "text": "Reasons client was not tested"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_no_action_was_taken",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "known_positive",
+ "text": "Known Positive",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "client_declined",
+ "text": "Client Declined",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_declined",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "test_not_required_based_on_risk_assessment",
+ "text": "Test not required based on risk assessment",
+ "is_exclusive": true,
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_required_based_on_risk_assessment",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Other",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select action taken",
+ "subjects": "action_taken_hiv_problems:map",
+ "dependent_calculations": [
+ "test_results_calculation"
+ ]
+ },
+ {
+ "name": "other_reason_no_action_was_taken",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Others (Specify)"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_no_action_was_taken",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Please specity other reason",
+ "subjects": "reason_no_action_was_taken:map, action_taken_hiv_problems:map"
+ },
+ {
+ "name": "test_results",
+ "type": "radio_group",
+ "properties": {
+ "text": "Select client’s HIV test results."
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_results",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "positive",
+ "text": "Positive",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "negative",
+ "text": "Negative",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "inconclusive",
+ "text": "Inconclusive",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "inconclusive",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the test results",
+ "subjects": "action_taken_hiv_problems:map"
+ },
+ {
+ "name": "prompt_for_hiv_inconclusive",
+ "type": "toast_notification",
+ "properties": {
+ "notification_type": "warning",
+ "dismissible": "no",
+ "text": "Counsel the client to re-test after 2 weeks",
+ "background_color": "#ffc107",
+ "text_color": "#000000"
+ },
+ "subjects": "test_results:map, action_taken_hiv_problems:map"
+ },
+ {
+ "name": "enrolled_to_clinic",
+ "type": "radio_group",
+ "properties": {
+ "text": "Is the client enrolled to CTC clinic?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_to_clinic",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "yes",
+ "text": "Yes",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "no",
+ "text": "No",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer",
+ "subjects": "test_results:map, action_taken_hiv_problems:map"
+ },
+ {
+ "name": "ctc_number",
+ "type": "masked_edit_text",
+ "properties": {
+ "hint": "CTC Number e.g 12-34-5678-912345",
+ "type": "name",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "input_type": "number",
+ "allowed_chars": "0123456789"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "CTC Number should be of the format (XX-XX-XXXX-XXXXXX)."
+ }
+ ],
+ "required_status": "true:Please fill client's CTC number",
+ "subjects": "reason_no_action_was_taken:map, enrolled_to_clinic:map,test_results:map, action_taken_hiv_problems:map"
+ },
+ {
+ "name": "prompt_for_ctc_enrollment",
+ "type": "toast_notification",
+ "properties": {
+ "notification_type": "info",
+ "dismissible": "no",
+ "text": "Continue with counseling until the client is ready to be enrolled",
+ "background_color": "#082455",
+ "text_color": "#EBEE2F"
+ },
+ "subjects": "enrolled_to_clinic:map, test_results:map, action_taken_hiv_problems:map"
+ },
+ {
+ "name": "comment_hiv_problems",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Remarks/Comments"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "comment_hiv_problems",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "false"
+ }
+ ]
+ }
+ ]
+}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hiv_registration.json b/opensrp-chw-hf/src/main/assets/json.form/hiv_registration.json
new file mode 100644
index 0000000000..3fa69cb52f
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hiv_registration.json
@@ -0,0 +1,267 @@
+{
+ "form": "HIV Registration form",
+ "count": "1",
+ "encounter_type": "HIV Registration",
+ "entity_id": "",
+ "relational_id": "",
+ "rules_file": "rule/hiv_registration_form_rules.yml",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "steps": [
+ {
+ "title": "HIV Clients Registration form",
+ "fields": [
+ {
+ "name": "new_or_current_hiv_client",
+ "type": "radio_group",
+ "properties": {
+ "text": "Is the registered client a new HIV Client or an existing HIV Client?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "new_or_current_hiv_client",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "new",
+ "text": "New HIV client",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "new",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "existing",
+ "text": "Existing HIV Client",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "existing",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer"
+ },
+ {
+ "name": "place_where_test_was_conducted",
+ "type": "radio_group",
+ "properties": {
+ "text": "Where was the test conducted?"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_where_test_was_conducted",
+ "openmrs_entity_parent": ""
+ },
+ "options": [
+ {
+ "name": "tb_clinic_outpatient",
+ "text": "Tuberculosis clinic (out patient)",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_clinic_outpatient",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "sexual_transmitted_diseases_clinic",
+ "text": "Sexual transmitted diseases clinic",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_transmitted_diseases_clinic",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outpatient_department",
+ "text": "Outpatient department",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "inpatient_department",
+ "text": "Inpatient department",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "inpatient_department",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "blood_transfusion_service",
+ "text": "Blood transfusion service",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_transfusion_service",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "community_based_hiv_testing_service",
+ "text": "Community Based HIV Testing Service",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community_based_hiv_testing_service",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "voluntary_patients",
+ "text": "Voluntary patients",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "voluntary_patients",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "family_planning_clinic",
+ "text": "Family planning clinic",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "family_planning_clinic",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "ctc",
+ "text": "CTC",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "men_circumcision",
+ "text": "Men circumcision",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "men_circumcision",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "outreach_services",
+ "text": "Outreach services",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "outreach_services",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "reproductive_an_child_health",
+ "text": "Reproductive and child health",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reproductive_an_child_health",
+ "openmrs_entity_parent": ""
+ }
+ },
+ {
+ "name": "other",
+ "text": "Other",
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other",
+ "openmrs_entity_parent": ""
+ }
+ }
+ ],
+ "required_status": "yes:Please select the answer"
+ },
+ {
+ "name": "place_where_test_was_conducted_other",
+ "type": "text_input_edit_text",
+ "properties": {
+ "hint": "Other (Specify)",
+ "type": "name"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "place_where_test_was_conducted_other",
+ "openmrs_entity_parent": ""
+ },
+ "required_status": "true:Please specify the place where the test was conducted",
+ "subjects": "place_where_test_was_conducted:map"
+ },
+ {
+ "name": "ctc_number",
+ "type": "masked_edit_text",
+ "properties": {
+ "hint": "CTC Number e.g 12-34-5678-912345",
+ "type": "Care and Treatment Clinic registration number (CTC Number)",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "input_type": "number",
+ "allowed_chars": "0123456789"
+ },
+ "meta_data": {
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "openmrs_entity_parent": ""
+ },
+ "validation": [
+ {
+ "condition": "value.matches(\"(\\\\d{2}-\\\\d{2}-\\\\d{4}-\\\\d{6})?\")",
+ "message": "CTC Number should be of the format (XX-XX-XXXX-XXXXXX)."
+ }
+ ],
+ "required_status": "yes:Please specify client's CTC number",
+ "dependent_calculations": [
+ "hiv_registration_date",
+ "client_hiv_status_during_registration",
+ "test_results"
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hivst_issue_kits.json b/opensrp-chw-hf/src/main/assets/json.form/hivst_issue_kits.json
new file mode 100644
index 0000000000..ff63891bc3
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hivst_issue_kits.json
@@ -0,0 +1,598 @@
+{
+ "count": "1",
+ "encounter_type": "Self Testing Kits Issue",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Providing Self Test Kits",
+ "fields": [
+ {
+ "key": "pre_test_counselling_and_instructions",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pre_test_counselling_and_instructions",
+ "label": "Has the client been offered pre-test counselling and instructions?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "self_test_kit_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "self_test_kit_given",
+ "label": "Was the client provided with HIVST kit?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "kit_code",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "kit_code",
+ "type": "edit_text",
+ "hint": "Kit code",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_kit_batch_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_kit_batch_number",
+ "type": "edit_text",
+ "hint": "Client's Kit Batch Number",
+ "v_required": {
+ "value": true,
+ "err": "Please fill the batch number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_kit_expiry_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_kit_expiry_date",
+ "type": "date_picker",
+ "hint": "Client's Kit Expiry Date",
+ "expanded": false,
+ "min_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Please select the Expiry date"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_testing_approach",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_testing_approach",
+ "label": "Client's testing approach",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "assisted_testing_on_site",
+ "text": "Assisted testing on site",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "assisted_testing_on_site"
+ },
+ {
+ "key": "assisted_testing_off_site",
+ "text": "Assisted testing off site",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "assisted_testing_off_site"
+ },
+ {
+ "key": "unassisted_testing_on_site",
+ "text": "Unassisted testing on site",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unassisted_testing_on_site"
+ },
+ {
+ "key": "unassisted_testing_off_site",
+ "text": "Unassisted testing off site",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unassisted_testing_off_site"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "extra_kits_required",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "extra_kits_required",
+ "label": "Does the client require kits for peer or sexual partner?'",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "extra_kits_issued_for",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "extra_kits_issued_for",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Extra Kits were issued for?",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "peer_friend",
+ "text": "Peer Friend",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "peer_friend"
+ },
+ {
+ "key": "sexual_partner",
+ "text": "Sexual Partner",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step1:extra_kits_required": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "peer_friend_kit_code",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "peer_friend_kit_code",
+ "type": "edit_text",
+ "hint": "Peer Friend Kit code",
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "peer_friend"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "peer_friend_kit_batch_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "peer_friend_kit_batch_number",
+ "type": "edit_text",
+ "hint": "Peer Friend's Kit Batch Number",
+ "v_required": {
+ "value": true,
+ "err": "Please fill the batch number"
+ },
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "peer_friend"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "peer_friend_kit_expiry_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "peer_friend_kit_expiry_date",
+ "type": "date_picker",
+ "hint": "Peer Friend's Kit Expiry Date",
+ "expanded": false,
+ "min_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Please select the Expiry date"
+ },
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "peer_friend"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "sexual_partner_kit_code",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner_kit_code",
+ "type": "edit_text",
+ "hint": "Sexual Partner Kit code",
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "sexual_partner"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "sexual_partner_kit_batch_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner_kit_batch_number",
+ "type": "edit_text",
+ "hint": "Sexual Partner's Kit Batch Number",
+ "v_required": {
+ "value": true,
+ "err": "Please fill the batch number"
+ },
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "sexual_partner"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "sexual_partner_kit_expiry_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner_kit_expiry_date",
+ "type": "date_picker",
+ "hint": "Sexual Partner's Kit Expiry Date",
+ "expanded": false,
+ "min_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Please select the Expiry date"
+ },
+ "relevance": {
+ "step1:extra_kits_issued_for": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "sexual_partner"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "condoms_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condoms_given",
+ "label": "Was the client given condoms?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "type_of_issued_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_issued_condoms",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Select the type of condoms issued",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "male_condoms",
+ "text": "Male Condoms",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms"
+ },
+ {
+ "key": "female_condoms",
+ "text": "Female Condoms",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step1:condoms_given": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "number_of_male_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_male_condoms_issued",
+ "type": "edit_text",
+ "hint": "Number of Male condoms issued (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "The number must be equal or greater than 0"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "step1:type_of_issued_condoms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "male_condoms"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_of_female_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_female_condoms_issued",
+ "type": "edit_text",
+ "hint": "Number of Female condoms issued (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "The number must be equal or greater than 0"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "step1:type_of_issued_condoms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "female_condoms"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "sms_notification_service",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sms_notification_service",
+ "label": "Has the client opted for sms notification service?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "collection_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "collection_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_issue_kits_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hivst_mobilization_session.json b/opensrp-chw-hf/src/main/assets/json.form/hivst_mobilization_session.json
new file mode 100644
index 0000000000..153e9839d5
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hivst_mobilization_session.json
@@ -0,0 +1,216 @@
+{
+ "count": "1",
+ "encounter_type": "HIVST Mobilization Session",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Self Testing Mobilization Session",
+ "fields": [
+ {
+ "key": "mobilization_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobilization_date",
+ "type": "date_picker",
+ "hint": "Mobilization Date",
+ "expanded": false,
+ "min_date": "today-6m",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the mobilization date"
+ }
+ },
+ {
+ "key": "female_clients_reached",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_clients_reached",
+ "type": "edit_text",
+ "hint": "Number of Female clients reached",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The number must be equal or greater than 0"
+ },
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "The number of female clients reached must be less than or equal to 999"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the number"
+ }
+ },
+ {
+ "key": "male_clients_reached",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_clients_reached",
+ "type": "edit_text",
+ "hint": "Number of Male clients reached",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The number must be equal or greater than 0"
+ },
+ "v_max_length": {
+ "value": "3",
+ "is_fixed_size": "true",
+ "err": "The number of male clients reached must be less than or equal to 999"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the number"
+ }
+ },
+ {
+ "key": "gps",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gps",
+ "openmrs_data_type": "text",
+ "type": "gps"
+ },
+ {
+ "key": "female_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms_issued",
+ "type": "edit_text",
+ "hint": "Female condoms issued (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The number must be equal or greater than 0"
+ },
+ "v_max_length": {
+ "value": "4",
+ "is_fixed_size": "true",
+ "err": "The number of condoms issued must be less than or equal to 9999"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the number"
+ }
+ },
+ {
+ "key": "male_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms_issued",
+ "type": "edit_text",
+ "hint": "Male condoms issued (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The number must be equal or greater than 0"
+ },
+ "v_max_length": {
+ "value": "4",
+ "is_fixed_size": "true",
+ "err": "The number of condoms issued must be less than or equal to 9999"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the number"
+ }
+ },
+ {
+ "key": "kit_used_in_demonstration",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "kit_used_in_demonstration",
+ "label": "Was a kit used for demonstration in this session?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "kit_code",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "kit_code",
+ "type": "edit_text",
+ "hint": "Kit code",
+ "relevance": {
+ "step1:kit_used_in_demonstration": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hivst_registration.json b/opensrp-chw-hf/src/main/assets/json.form/hivst_registration.json
new file mode 100644
index 0000000000..adc6361c83
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hivst_registration.json
@@ -0,0 +1,290 @@
+{
+ "count": "1",
+ "encounter_type": "Self Testing Registration",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "HIVST Enrollment",
+ "fields": [
+ {
+ "key": "client_testing_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_testing_history",
+ "label": "Select the client's testing history",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "new_client",
+ "text": "New Client (MP)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "new_client"
+ },
+ {
+ "key": "returning_client",
+ "text": "Returning Client (HM)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "returning_client"
+ },
+ {
+ "key": "known_positive",
+ "text": "Known Positive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "client_group",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_group_female_15_24",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group_female_15_24",
+ "label": "Select the client's group as screened by the health care provider",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "fsw",
+ "text": "WHR",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fsw"
+ },
+ {
+ "key": "pwid",
+ "text": "PWID",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "prisoners",
+ "text": "Prisoners",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoners"
+ },
+ {
+ "key": "agyw",
+ "text": "vAGYW",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "agyw"
+ },
+ {
+ "key": "others",
+ "text": "Others",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_group_female",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group_female",
+ "label": "Select the client's group as screened by the health care provider",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "fsw",
+ "text": "WHR",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fsw"
+ },
+ {
+ "key": "pwid",
+ "text": "PWID",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "prisoners",
+ "text": "Prisoners",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoners"
+ },
+ {
+ "key": "others",
+ "text": "Others",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_group_male",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group_male",
+ "label": "Select the client's group as screened by the health care provider",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "msm",
+ "text": "MHR",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "msm"
+ },
+ {
+ "key": "pwid",
+ "text": "PWID",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "prisoners",
+ "text": "Prisoners",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoners"
+ },
+ {
+ "key": "others",
+ "text": "Others",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_group",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_group",
+ "type": "edit_text",
+ "hint": "Other Group",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the other group"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "known_positive_during_reg",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive_during_reg",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_registration_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/hivst_results.json b/opensrp-chw-hf/src/main/assets/json.form/hivst_results.json
new file mode 100644
index 0000000000..c3b22f1427
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/hivst_results.json
@@ -0,0 +1,394 @@
+{
+ "count": "1",
+ "encounter_type": "Self Testing Results",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Record HIVST results",
+ "fields": [
+ {
+ "key": "has_the_client_been_found",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_the_client_been_found",
+ "label": "Has the client been found?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "disclose_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disclose_result",
+ "label": "Did the client disclose the result?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_test_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_test_result",
+ "label": "Select the client's test result",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "reactive",
+ "text": "Reactive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reactive"
+ },
+ {
+ "key": "non_reactive",
+ "text": "Non-reactive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "non_reactive"
+ },
+ {
+ "key": "invalid",
+ "text": "Invalid",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invalid"
+ },
+ {
+ "key": "wastage",
+ "text": "Wastage",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "wastage"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "prompt_for_referral",
+ "type": "toaster_notes",
+ "text": "The client should be linked for HIV conventional test",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_invalid_or_wastage_for_client",
+ "type": "toaster_notes",
+ "text": "Provide additional kit",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "peer_test_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "peer_test_result",
+ "label": "Select the peer's test result",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "reactive",
+ "text": "Reactive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reactive"
+ },
+ {
+ "key": "non_reactive",
+ "text": "Non-reactive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "non_reactive"
+ },
+ {
+ "key": "invalid",
+ "text": "Invalid",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invalid"
+ },
+ {
+ "key": "wastage",
+ "text": "Wastage",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "wastage"
+ },
+ {
+ "key": "not_returned",
+ "text": "Results not returned",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_returned"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "sexual_partner_test_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_partner_test_result",
+ "label": "Select the sexual partner's test result",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "reactive",
+ "text": "Reactive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reactive"
+ },
+ {
+ "key": "non_reactive",
+ "text": "Non-reactive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "non_reactive"
+ },
+ {
+ "key": "invalid",
+ "text": "Invalid",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "invalid"
+ },
+ {
+ "key": "wastage",
+ "text": "Wastage",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "wastage"
+ },
+ {
+ "key": "not_returned",
+ "text": "Results not returned",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_returned"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hivst_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hivst_result",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_referral_for_peer_or_sexual_partner",
+ "type": "toaster_notes",
+ "text": "Counsel the client to advise their Sexual Partner/Peer Friend to visit health facility for Confirmatory tests",
+ "toaster_info_text": "Counsel the client to advise their Sexual Partner/Peer Friend to visit health facility for Confirmatory tests",
+ "toaster_info_title": "Counsel the client",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_invalid_or_wastage_for_peer_or_sexual_partner",
+ "type": "toaster_notes",
+ "text": "Provide additional kit for Sexual Partner/Peer Friend",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "register_to_hts",
+ "type": "hidden",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "register_to_hts",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "result_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "result_date",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "hivst_results_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/in_app_monthly_tallies_report.json b/opensrp-chw-hf/src/main/assets/json.form/in_app_monthly_tallies_report.json
index 1d410e4021..f3ca2ea6d9 100644
--- a/opensrp-chw-hf/src/main/assets/json.form/in_app_monthly_tallies_report.json
+++ b/opensrp-chw-hf/src/main/assets/json.form/in_app_monthly_tallies_report.json
@@ -15,11 +15,6 @@
"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",
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_cervical_cancer_screening.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_cervical_cancer_screening.json
new file mode 100644
index 0000000000..ce4366f657
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_cervical_cancer_screening.json
@@ -0,0 +1,76 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Cervical Cancer Screening",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Cervical Cancer Screening",
+ "fields": [
+ {
+ "key": "cervical_cancer_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cervical_cancer_screening",
+ "type": "native_radio",
+ "label": "Was the client screened for Cervical Cancer?",
+ "options": [
+ {
+ "key": "screened",
+ "text": "Screened",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "screened"
+ },
+ {
+ "key": "not_screened",
+ "text": "Not screened",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_provided"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_client_status.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_client_status.json
new file mode 100644
index 0000000000..f7da3cd346
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_client_status.json
@@ -0,0 +1,183 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Client Status",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Client Status",
+ "fields": [
+ {
+ "key": "client_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_status",
+ "label": "Type of visit",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "new_client",
+ "text": "New client",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "new_visit"
+ },
+ {
+ "key": "transfer_in",
+ "text": "Transfer-in",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "transfer_in"
+ },
+ {
+ "key": "return",
+ "text": "Return",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "return"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "other_kvp_category",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_kvp_category",
+ "type": "check_box",
+ "label": "Other client's KVP category",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "pwud",
+ "text": "PWUD",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwud"
+ },
+ {
+ "key": "pwid",
+ "text": "PWID",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "fsw",
+ "text": "WHR",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fsw"
+ },
+ {
+ "key": "msm",
+ "text": "MHR",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "msm"
+ },
+ {
+ "key": "agyw",
+ "text": "vAGYW",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "agyw"
+ },
+ {
+ "key": "prisoner",
+ "text": "Prisoners",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner"
+ },
+ {
+ "key": "rumandee",
+ "text": "Rumandee",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rumandee"
+ },
+ {
+ "key": "mobile_population",
+ "text": "Mobile population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobile_population"
+ },
+ {
+ "key": "serodiscordant_couple",
+ "text": "Serodiscordant couple",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "serodiscordant_couple"
+ },
+ {
+ "key": "other_vulnerable_population",
+ "text": "Other vulnerable population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_vulnerable_population"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please pick at least one"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_condom_provision.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_condom_provision.json
new file mode 100644
index 0000000000..e86608fdb4
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_condom_provision.json
@@ -0,0 +1,186 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Condom Provision",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Condom Provision",
+ "fields": [
+ {
+ "key": "condoms_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condoms_given",
+ "label": "Was the client given condoms?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "type_of_issued_condoms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_issued_condoms",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Select the type of condoms issued",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "male_condoms",
+ "text": "Male Condoms",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "male_condoms"
+ },
+ {
+ "key": "female_condoms",
+ "text": "Female Condoms",
+ "value": false,
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "female_condoms"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step1:condoms_given": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "number_of_male_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_male_condoms_issued",
+ "type": "edit_text",
+ "hint": "Number of Male condoms issued (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": 0,
+ "err": "The value must be 0 or higher"
+ },
+ "v_max": {
+ "value": 999,
+ "err": "The value should be less than to 1000"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "step1:type_of_issued_condoms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "male_condoms"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "number_of_female_condoms_issued",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_female_condoms_issued",
+ "type": "edit_text",
+ "hint": "Number of Female condoms issued (Pieces)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": 0,
+ "err": "The value must be 0 or higher"
+ },
+ "v_max": {
+ "value": 999,
+ "err": "The value should be less than to 1000"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "step1:type_of_issued_condoms": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "female_condoms"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_female_family_planning_services.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_female_family_planning_services.json
new file mode 100644
index 0000000000..bf4833875d
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_female_family_planning_services.json
@@ -0,0 +1,154 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Family Planning",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Family Planning",
+ "fields": [
+ {
+ "key": "family_planning_service",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "family_planning_service",
+ "type": "native_radio",
+ "label": "Family planning service provided",
+ "options": [
+ {
+ "key": "pill",
+ "text": "Pill",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pill"
+ },
+ {
+ "key": "injectable",
+ "text": "Injectables",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "injectable"
+ },
+ {
+ "key": "implanon",
+ "text": "Implanon",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "implanon"
+ },
+ {
+ "key": "jadelle",
+ "text": "Jadelle",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "jadelle"
+ },
+ {
+ "key": "iucd",
+ "text": "IUCD",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iucd"
+ },
+ {
+ "key": "traditional",
+ "text": "Traditional",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "traditional"
+ },
+ {
+ "key": "tube_ligation",
+ "text": "Tube Ligation/Vasectomy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tube_ligation"
+ },
+ {
+ "key": "refused",
+ "text": "Refused",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "refused"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "condom_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_provided",
+ "label": "Was the client also provided with condom as a family planning method?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_family_planning_services_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_gbv_analysis.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_gbv_analysis.json
new file mode 100644
index 0000000000..4d3515df64
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_gbv_analysis.json
@@ -0,0 +1,122 @@
+{
+ "count": "1",
+ "encounter_type": "KVP GBV Analysis",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "GBV Analysis",
+ "fields": [
+ {
+ "key": "gbv_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gbv_screening",
+ "type": "native_radio",
+ "label": "Gender Based Violence (GBV) case reported",
+ "options": [
+ {
+ "key": "physical_violence",
+ "text": "Physical violence.",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "physical_violence"
+ },
+ {
+ "key": "emotional_violence",
+ "text": "Emotional violence.",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "emotional_violence"
+ },
+ {
+ "key": "sexual_violence",
+ "text": "Sexual violence.",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_violence"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "post_gbv_care_provision",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "post_gbv_care_provision",
+ "type": "native_radio",
+ "label": "Was Post GBV Care Provided?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes.",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No.",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_gbv_analysis_relevance.yml"
+ }
+ }
+ }
+ }
+
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_health_education.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_health_education.json
new file mode 100644
index 0000000000..29f2d0e370
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_health_education.json
@@ -0,0 +1,163 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Health Education",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Health Education",
+ "fields": [
+ {
+ "key": "health_education_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "health_education_provided",
+ "type": "check_box",
+ "label": "Health education provided to the client",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "sti",
+ "text": "STI",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sti"
+ },
+ {
+ "key": "hbv_hcv",
+ "text": "HBV and HCV",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hbv_hcv"
+ },
+ {
+ "key": "tb",
+ "text": "TB",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb"
+ },
+ {
+ "key": "gbv",
+ "text": "GBV",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gbv"
+ },
+ {
+ "key": "pep",
+ "text": "PEP",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pep"
+ },
+ {
+ "key": "vmmc",
+ "text": "VMMC",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vmmc"
+ },
+ {
+ "key": "cacx",
+ "text": "CaCx",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cacx"
+ },
+ {
+ "key": "drug_disorder",
+ "text": "Drug use disorder",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_disorder"
+ },
+ {
+ "key": "hiv_aids",
+ "text": "HIV and AIDS",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_aids"
+ },
+ {
+ "key": "other",
+ "text": "Other(Please specify)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please pick at least one"
+ }
+ },
+ {
+ "key": "others_health_education_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others_health_education_provided",
+ "type": "edit_text",
+ "hint": "Other",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "step1:health_education_provided": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_hepatitis.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_hepatitis.json
new file mode 100644
index 0000000000..22ee3d68cf
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_hepatitis.json
@@ -0,0 +1,241 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Hepatitis",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Hepatitis B&C",
+ "fields": [
+ {
+ "key": "hep_b_testing",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hep_b_testing",
+ "type": "native_radio",
+ "label": "Has a client been tested for Hepatitis B virus (HBV)",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "hep_b_result_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hep_b_testing_given",
+ "type": "native_radio",
+ "label": "HBV result returned?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+
+ {
+ "key": "no",
+ "text": "No,waiting result",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hepatitis_relevance.yml"
+ }
+ }
+ }
+
+ },
+ {
+ "key": "hep_b_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hep_b_result",
+ "type": "native_radio",
+ "label": "Client HBV test result",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hepatitis_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hep_c_testing",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hep_c_testing",
+ "type": "native_radio",
+ "label": "Has a client been tested for Hepatitis C virus (HCV)",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "hep_c_result_given",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hep_c_testing_given",
+ "type": "native_radio",
+ "label": "HCV result returned?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+
+ {
+ "key": "no",
+ "text": "No,waiting result",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hepatitis_relevance.yml"
+ }
+ }
+ }
+
+ },
+ {
+ "key": "hep_c_result",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hep_c_result",
+ "type": "native_radio",
+ "label": "Client HCV test result",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hepatitis_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_hts.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_hts.json
new file mode 100644
index 0000000000..1b8c560645
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_hts.json
@@ -0,0 +1,456 @@
+{
+ "count": "1",
+ "encounter_type": "KVP HTS",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "HTS",
+ "fields": [
+ {
+ "key": "tested_hiv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tested_hiv",
+ "label": "Has the client tested for HIV?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "previous_hiv_testing_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "previous_hiv_testing_method",
+ "label": "HIV testing method",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "hivst",
+ "text": "HIVST",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hivst"
+ },
+ {
+ "key": "hiv_cv_test",
+ "text": "HIV conventional test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_cv_test"
+ },
+ {
+ "key": "hivst_and_hiv_cv_test",
+ "text": "HIVST and HIV conventional test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hivst_and_hiv_cv_test"
+ },
+ {
+ "key": "other_method",
+ "text": "Other method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_method"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_previous_hiv_testing_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_previous_hiv_testing_method",
+ "type": "edit_text",
+ "hint": "Other(Specify)",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "step1:previous_hiv_testing_method": {
+ "type": "string",
+ "ex": "equalTo(., \"other_method\")"
+ }
+ }
+ },
+ {
+ "key": "testing_site",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "testing_site",
+ "label": "Client's testing site",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "community",
+ "text": "Community",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community"
+ },
+ {
+ "key": "facility",
+ "text": " Facility",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facility"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_type",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_type",
+ "label": "Client Type",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "sns_client",
+ "text": "SNS",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sns_client"
+ },
+ {
+ "key": "index_client",
+ "text": " Index",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "index_client"
+ },
+ {
+ "key": "normal_client",
+ "text": "Normal Client",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal_client"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "received_test_results",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "received_test_results",
+ "label": "Has the client received post-test counseling and results?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "step1:tested_hiv": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_status",
+ "label": "HIV testing results",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "known_positive",
+ "text": "Known Positive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "known_positive"
+ },
+ {
+ "key": "inconclusive",
+ "text": "Inconclusive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "inconclusive"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_hiv_negative",
+ "type": "toaster_notes",
+ "text": "Client should be enrolled into PrEP Services",
+ "openmrs_entity_id": "prompt_for_hiv_negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:hiv_status": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_hiv_status_inconclusive",
+ "type": "toaster_notes",
+ "text": "Repeat Test after 14 Days",
+ "openmrs_entity_id": "prompt_for_hiv_status_inconclusive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:hiv_status": {
+ "type": "string",
+ "ex": "equalTo(., \"inconclusive\")"
+ }
+ }
+ },
+ {
+ "key": "ctc_services",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_services",
+ "label": "Enrollment to CTC services",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "enrolled_but_not_on_arv",
+ "text": "Enrolled but not initiated on ART",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_but_not_on_arv"
+ },
+ {
+ "key": "enrolled_and_on_arv",
+ "text": "Enrolled and initiated on ART",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_and_on_arv"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "ctc_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ctc_number",
+ "type": "mask_edit_text",
+ "mask": "##-##-####-######",
+ "mask_hint": "12345678912345",
+ "allowed_chars": "0123456789",
+ "hint": "CTC Number",
+ "edit_type": "number",
+ "v_regex": {
+ "value": "(\\d{2}-\\d{2}-\\d{4}-\\d{6})?",
+ "err": "CTC number should be of the format (XX-XX-XXXX-XXXXXX)"
+ },
+ "v_max_length": {
+ "value": "17",
+ "is_fixed_size": "true",
+ "err": "Please enter a valid CTC Number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_hts_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "kits_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "kits_distributed",
+ "label": "HIVST kits distributed",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "prompt_for_hivst",
+ "type": "toaster_notes",
+ "text": "Please use HIVST Module to record the Information",
+ "openmrs_entity_id": "prompt_for_hivst",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:kits_distributed": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_iec_sbcc.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_iec_sbcc.json
new file mode 100644
index 0000000000..297be0f222
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_iec_sbcc.json
@@ -0,0 +1,66 @@
+{
+ "count": "1",
+ "encounter_type": "KVP IEC/SBCC",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "IEC/SBCC",
+ "fields": [
+ {
+ "key": "iec_sbcc_materials",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iec_sbcc_materials",
+ "type": "edit_text",
+ "hint": "Number of IEC/SBCC materials provided to the client",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the number"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_male_family_planning_services.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_male_family_planning_services.json
new file mode 100644
index 0000000000..65f9d0a566
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_male_family_planning_services.json
@@ -0,0 +1,124 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Family Planning",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Family Planning",
+ "fields": [
+ {
+ "key": "family_planning_service",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "family_planning_service",
+ "type": "native_radio",
+ "label": "Family planning service provided",
+ "options": [
+ {
+ "key": "vasectomy",
+ "text": "Vasectomy",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vasectomy"
+ },
+ {
+ "key": "traditional",
+ "text": "Traditional",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "traditional"
+ },
+ {
+ "key": "refused",
+ "text": "Refused",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "refused"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "condom_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom_provided",
+ "label": "Was the client also provided with condom as a family planning method?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_family_planning_services_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_mat.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_mat.json
new file mode 100644
index 0000000000..5a0dc025f2
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_mat.json
@@ -0,0 +1,170 @@
+{
+ "count": "1",
+ "encounter_type": "KVP MAT",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "MAT Services",
+ "fields": [
+ {
+ "key": "mat_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mat_provided",
+ "type": "native_radio",
+ "label": "Was the client provided with MAT services?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no_but_referral_given",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_but_referral_given"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "ost_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ost_provided",
+ "type": "native_radio",
+ "label": "Was Opiod Substitution Therapy(OST) provided?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_mat_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "needle_syringe_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "needle_syringe_distributed",
+ "type": "native_radio",
+ "label": "Was needle and syringe distributed?",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_mat_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_needle_syringe_distributed",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_needle_syringe_distributed",
+ "type": "edit_text",
+ "hint": "Number of needle and syringe distributed.",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_max": {
+ "value": 99,
+ "err": "The required quantity must be less than 100"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the number"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_mat_relevance.yml"
+ }
+ }
+ }
+ }
+
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_other_services_and_referrals.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_other_services_and_referrals.json
new file mode 100644
index 0000000000..c1d692e800
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_other_services_and_referrals.json
@@ -0,0 +1,299 @@
+{
+ "count": "1",
+ "encounter_type": "KVP Other Services",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "Other Services and Referral",
+ "fields": [
+ {
+ "key": "other_services_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_services_provided",
+ "type": "check_box",
+ "label": "Other services provided to the Client",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "rch",
+ "text": "RCH",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rch"
+ },
+ {
+ "key": "mental_health",
+ "text": "Mental health",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mental_health"
+ },
+ {
+ "key": "covid_vaccine",
+ "text": "Vaccination(Specify)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "covid_vaccine"
+ },
+ {
+ "key": "legal_services",
+ "text": "Legal services",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "legal_services"
+ },
+ {
+ "key": "iga",
+ "text": "IGA",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iga"
+ },
+ {
+ "key": "other",
+ "text": "Other",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please pick at least one"
+ }
+ },
+ {
+ "key": "covid_vaccine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "covid_vaccine",
+ "type": "edit_text",
+ "hint": "Specify Vaccination",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "step1:other_services_provided": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "covid_vaccine"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "others_services_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others_services_provided",
+ "type": "edit_text",
+ "hint": "Specify other services",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "step1:other_services_provided": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "other_services_referrals_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_services_referrals_provided",
+ "type": "check_box",
+ "label": "Referrals provided to the client",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "rch",
+ "text": "RCH",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rch"
+ },
+ {
+ "key": "psychosocial",
+ "text": "Psychosocial",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "psychosocial"
+ },
+ {
+ "key": "vaccine_type",
+ "text": "Vaccination (Specify)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vaccine_type"
+ },
+ {
+ "key": "legal_service",
+ "text": "Legal services",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "legal_service"
+ },
+ {
+ "key": "iga1",
+ "text": "IGA",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iga1"
+ },
+ {
+ "key": "pep",
+ "text": "PEP",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pep"
+ },
+ {
+ "key": "vmmc",
+ "text": "VMMC",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vmmc"
+ },
+ {
+ "key": "fp",
+ "text": "Family Planning",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fp"
+ },
+ {
+ "key": "hvbc",
+ "text": "Hepatitis B & C",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hvbc"
+ },
+ {
+ "key": "sti",
+ "text": "STI",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sti"
+ },
+ {
+ "key": "cecap",
+ "text": "CECAP",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cecap"
+ },
+ {
+ "key": "mat",
+ "text": "MAT",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mat"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please pick at least one"
+ }
+ },
+ {
+ "key": "vaccine",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vaccine",
+ "type": "edit_text",
+ "hint": "Specify Vaccination",
+ "v_required": {
+ "value": "true",
+ "err": "Please specify"
+ },
+ "relevance": {
+ "step1:other_services_referrals_provided": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "vaccine_type"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }}
+
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_prep_pep.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_prep_pep.json
new file mode 100644
index 0000000000..3ab519e9aa
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_prep_pep.json
@@ -0,0 +1,93 @@
+{
+ "count": "1",
+ "encounter_type": "KVP PrEP and PEP",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "PEP assesment",
+ "fields": [
+ {
+ "key": "enrolled_to_prep",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrolled_to_prep",
+ "text_color": "#000000",
+ "type": "hidden"
+ },
+ {
+ "key": "pep_provision",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pep_provision",
+ "label": "PEP provision after the client was at risk of contracting HIV",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "provided",
+ "text": "Provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "community"
+ },
+ {
+ "key": "not_provided",
+ "text": "Not provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "facility"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ },
+ "relevance": {
+ "step1:enrolled_to_prep": {
+ "type": "string",
+ "ex": "notEqualTo(., \"true\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_screening_female.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_screening_female.json
new file mode 100644
index 0000000000..c5a78551d6
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_screening_female.json
@@ -0,0 +1,1098 @@
+{
+ "count": "9",
+ "skip_blank_steps": true,
+ "encounter_type": "KVP Registration",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "PWUD",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "drug_use",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_use",
+ "label": "Has the client used illegal drugs in the past 12 months?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "is_pwud",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_pwud",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "PWID",
+ "next": "step3",
+ "fields": [
+ {
+ "key": "drug_injection",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_injection",
+ "label": "Has the client ever injected him or herself with drugs?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "is_pwid",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_pwid",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step3": {
+ "title": "Sexual Behavior",
+ "next": "step4",
+ "fields": [
+ {
+ "key": "sexual_intercourse",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_intercourse",
+ "label": "Have you ever engaged in sexual activity, do you think about engaging in sexual activity, or are you at risk of engaging in sexual activity?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ }
+ ]
+ },
+ "step4": {
+ "title": "Serodiscordant Couple",
+ "next": "step5",
+ "fields": [
+ {
+ "key": "hiv_status_on_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_status_on_screening",
+ "label": "What is the client's HIV status?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "unknown",
+ "text": "Unknown",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unknown"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_positive_partner",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_positive_partner",
+ "label": "Is the client in a sexual relationship with a partner who is HIV positive?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_hiv_care_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv_care_status",
+ "label": "Select the partner's criteria of HIV care status",
+ "text_color": "#000000",
+ "type": "check_box",
+ "exclusive": [
+ "not_started_art"
+ ],
+ "options": [
+ {
+ "key": "not_started_art",
+ "text": "Has not started ART",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_started_art"
+ },
+ {
+ "key": "art_more_than_six_months_unused",
+ "text": "Has not taken ART for more than six months",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "art_more_than_six_months_unused"
+ },
+ {
+ "key": "art_adherence_doubt",
+ "text": "Doubt about adherence/use of ART",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "art_adherence_doubt"
+ },
+ {
+ "key": "no_evidence_low_vl",
+ "text": "The partner has no evidence of low viral load count",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_evidence_low_vl"
+ }
+ ],
+ "relevance": {
+ "step4:hiv_positive_partner": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_counsel_for_testing",
+ "type": "toaster_notes",
+ "text": "Counsel for HIV testing",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step4:hiv_status": {
+ "type": "string",
+ "ex": "equalTo(., \"unknown\")"
+ }
+ }
+ },
+ {
+ "key": "is_sdc",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_sdc",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step5": {
+ "title": "WHR",
+ "next": "step6",
+ "fields": [
+ {
+ "key": "sex_for_money",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sex_for_money",
+ "label": "In the last six months has the client had sex to get things, money or favors?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "main_income_source_is_sex",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "main_income_source_is_sex",
+ "label": "Is sex work the main source of income?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step5:sex_for_money": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "is_fsw",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_fsw",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step6": {
+ "title": "vAGYW",
+ "next": "step7",
+ "fields": [
+ {
+ "key": "client_in_school",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_in_school",
+ "label": "Is the client currently in school?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "harsh_condition_impact",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "harsh_condition_impact",
+ "type": "check_box",
+ "label": "Impact and vulnerability of living in harsh conditions",
+ "combine_checkbox_option_values": "true",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "not_applicable"
+ ],
+ "options": [
+ {
+ "key": "sex_for_material",
+ "text": "In the last 6 months the client has had sex to get things or money",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sex_for_material"
+ },
+ {
+ "key": "sexually_abused",
+ "text": "A victim who continues to be sexually abused",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexually_abused"
+ },
+ {
+ "key": "sex_last_three_months",
+ "text": "Has had sex in the last 3 months",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sex_last_three_months"
+ },
+ {
+ "key": "infected_with_sexual_disease",
+ "text": "Infected with a sexual disease in the last 3 months",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "infected_with_sexual_disease"
+ },
+ {
+ "key": "not_applicable",
+ "text": "Not applicable",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_applicable"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step6:client_in_school": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "is_agyw",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_agyw",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step7": {
+ "title": "Other Vulnerable Population",
+ "next": "step8",
+ "fields": [
+ {
+ "key": "prisoner_or_rumandee",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner_or_rumandee",
+ "label": "Is the client a prisoner or a rumandee?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "prisoner",
+ "text": "Prisoner",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner"
+ },
+ {
+ "key": "rumandee",
+ "text": "Rumandee",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rumandee"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "mobile_population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobile_population",
+ "label": "Mobile population",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "long_distance_drivers",
+ "text": "Long distance drivers",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "long_distance_drivers"
+ },
+ {
+ "key": "fishermen",
+ "text": "Fishermen",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fishermen"
+ },
+ {
+ "key": "mining_workers",
+ "text": "Mining workers",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mining_workers"
+ },
+ {
+ "key": "large_farm_farmers",
+ "text": "Farmers in large farms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "large_farm_farmers"
+ },
+ {
+ "key": "road_builders",
+ "text": "Road builders",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "road_builders"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "other_groups_at_risk",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_groups_at_risk",
+ "label": "Other groups at risk of HIV infection",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "disabled",
+ "text": "Disabled",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabled"
+ },
+ {
+ "key": "street_children_or_orphans",
+ "text": "Street children or orphans",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "street_children_or_orphans"
+ },
+ {
+ "key": "street_working_children",
+ "text": "Young working children on the streets",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "street_working_children"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "is_ovp_kvp",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_ovp_kvp",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step8": {
+ "title": "PrEP Assessment",
+ "next": "step9",
+ "fields": [
+ {
+ "key": "should_enroll",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "should_enroll",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prep_assessment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_assessment",
+ "label": "Has the client been assessed for the use of PrEP?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "prep_qualified",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_qualified",
+ "label": "Is the client eligible to receive PrEP?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step8:prep_assessment": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step9": {
+ "title": "KVP Enrollment",
+ "fields": [
+ {
+ "key": "prompt_for_sdc_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in SDC KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_agyw_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in vAGYW KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_ovp_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in Other vulnerable population KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_fsw_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in WHR KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_pwud_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in PWUD KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_pwid_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in PWID KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_no_group",
+ "type": "toaster_notes",
+ "text": "The client does not fall in any of the KVP groups and won't be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "birth_region",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "birth_region",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "label_info_title": "Client's Region of Birth",
+ "label_info_text": "",
+ "hint": "Select the client's Region of Birth",
+ "values": [
+ "Arusha",
+ "Dar es Salaam",
+ "Dodoma",
+ "Geita",
+ "Iringa",
+ "Kagera",
+ "Katavi",
+ "Kigoma",
+ "Kilimanjaro",
+ "Lindi",
+ "Manyara",
+ "Mara",
+ "Mbeya",
+ "Morogoro",
+ "Mtwara",
+ "Mwanza",
+ "Njombe",
+ "Pwani",
+ "Rukwa",
+ "Ruvuma",
+ "Shinyanga",
+ "Simiyu",
+ "Singida",
+ "Songwe",
+ "Tabora",
+ "Tanga"
+
+ ],
+ "keys": [
+ "Arusha",
+ "Dar es Salaam",
+ "Dodoma",
+ "Geita",
+ "Iringa",
+ "Kagera",
+ "Katavi",
+ "Kigoma",
+ "Kilimanjaro",
+ "Lindi",
+ "Manyara",
+ "Mara",
+ "Mbeya",
+ "Morogoro",
+ "Mtwara",
+ "Mwanza",
+ "Njombe",
+ "Pwani",
+ "Rukwa",
+ "Ruvuma",
+ "Shinyanga",
+ "Simiyu",
+ "Singida",
+ "Songwe",
+ "Tabora",
+ "Tanga"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the region"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "enrollment_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrollment_date",
+ "type": "date_picker",
+ "hint": "Enrollment date",
+ "expanded": false,
+ "min_date": "01-05-2018",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_group",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group",
+ "label": "Select the client group as screened by the health care provider",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "fsw",
+ "text": "WHR",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fsw"
+ },
+ {
+ "key": "pwud",
+ "text": "PWUD",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwud"
+ },
+ {
+ "key": "pwid",
+ "text": "PWID",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "prisoner",
+ "text": "Prisoners",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner"
+ },
+ {
+ "key": "rumandee",
+ "text": "Rumandee",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rumandee"
+ },
+ {
+ "key": "agyw",
+ "text": "vAGYW",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "agyw"
+ },
+ {
+ "key": "serodiscordant_couple",
+ "text": "Serodiscordant couple",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "serodiscordant_couple"
+ },
+ {
+ "key": "mobile_population",
+ "text": "Mobile population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobile_population"
+ },
+ {
+ "key": "other_vulnerable_population",
+ "text": "Other vulnerable population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_vulnerable_population"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_female_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_screening_male.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_screening_male.json
new file mode 100644
index 0000000000..1eb3b1fd50
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_screening_male.json
@@ -0,0 +1,927 @@
+{
+ "count": "8",
+ "skip_blank_steps": true,
+ "encounter_type": "KVP Registration",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "PWUD",
+ "next": "step2",
+ "fields": [
+ {
+ "key": "drug_use",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_use",
+ "label": "Has the client used illegal drugs in the past 12 months?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "is_pwud",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_pwud",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step2": {
+ "title": "PWID",
+ "next": "step3",
+ "fields": [
+ {
+ "key": "drug_injection",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "drug_injection",
+ "label": "Has the client ever injected him or herself with drugs?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "is_pwid",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_pwid",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step3": {
+ "title": "Sexual Behavior",
+ "next": "step4",
+ "fields": [
+ {
+ "key": "sexual_intercourse",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_intercourse",
+ "label": "Have you ever engaged in sexual activity, do you think about engaging in sexual activity, or are you at risk of engaging in sexual activity?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ }
+ ]
+ },
+ "step4": {
+ "title": "Men at High Risk(MHR)",
+ "next": "step5",
+ "fields": [
+ {
+ "key": "sexual_intercourse_with",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sexual_intercourse_with",
+ "label": "Does the client have sexual intercourse with man, woman or both?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "man",
+ "text": "Man",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "man"
+ },
+ {
+ "key": "woman",
+ "text": "Woman",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "woman"
+ },
+ {
+ "key": "both",
+ "text": "Both",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "both"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "is_msm",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_msm",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step5": {
+ "title": "Serodiscordant Couple",
+ "next": "step6",
+ "fields": [
+ {
+ "key": "hiv_status_on_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_status_on_screening",
+ "label": "What is the client's HIV status?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "unknown",
+ "text": "Unknown",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unknown"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_positive_partner",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_positive_partner",
+ "label": "Is the client in a sexual relationship with a partner who is HIV positive?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partner_hiv_care_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partner_hiv_care_status",
+ "label": "Select the partner's criteria of HIV care status",
+ "text_color": "#000000",
+ "type": "check_box",
+ "exclusive": [
+ "not_started_art"
+ ],
+ "options": [
+ {
+ "key": "not_started_art",
+ "text": "Has not started ART",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_started_art"
+ },
+ {
+ "key": "art_more_than_six_months_unused",
+ "text": "Has not taken ART for more than six months",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "art_more_than_six_months_unused"
+ },
+ {
+ "key": "art_adherence_doubt",
+ "text": "Doubt about adherence/use of ART",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "art_adherence_doubt"
+ },
+ {
+ "key": "no_evidence_low_vl",
+ "text": "The partner has no evidence of low viral load count",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_evidence_low_vl"
+ }
+ ],
+ "relevance": {
+ "step5:hiv_positive_partner": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_counsel_for_testing",
+ "type": "toaster_notes",
+ "text": "Counsel for HIV testing",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step5:hiv_status": {
+ "type": "string",
+ "ex": "equalTo(., \"unknown\")"
+ }
+ }
+ },
+ {
+ "key": "is_sdc",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_sdc",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step6": {
+ "title": "Other Vulnerable Population",
+ "next": "step7",
+ "fields": [
+ {
+ "key": "prisoner_or_rumandee",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner_or_rumandee",
+ "label": "Is the client a prisoner or a rumandee?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "prisoner",
+ "text": "Prisoner",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner"
+ },
+ {
+ "key": "rumandee",
+ "text": "Rumandee",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rumandee"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "mobile_population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobile_population",
+ "label": "Mobile population",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "long_distance_drivers",
+ "text": "Long distance drivers",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "long_distance_drivers"
+ },
+ {
+ "key": "fishermen",
+ "text": "Fishermen",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fishermen"
+ },
+ {
+ "key": "mining_workers",
+ "text": "Mining workers",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mining_workers"
+ },
+ {
+ "key": "large_farm_farmers",
+ "text": "Farmers in large farms",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "large_farm_farmers"
+ },
+ {
+ "key": "road_builders",
+ "text": "Road builders",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "road_builders"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "other_groups_at_risk",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_groups_at_risk",
+ "label": "Other groups at risk of HIV infection",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "disabled",
+ "text": "Disabled",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "disabled"
+ },
+ {
+ "key": "street_children_or_orphans",
+ "text": "Street children or orphans",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "street_children_or_orphans"
+ },
+ {
+ "key": "street_working_children",
+ "text": "Young working children on the streets",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "street_working_children"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "is_ovp_kvp",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "is_ovp_kvp",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step7": {
+ "title": "PrEP Assessment",
+ "next": "step8",
+ "fields": [
+ {
+ "key": "should_enroll",
+ "type": "hidden",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "should_enroll",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prep_assessment",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_assessment",
+ "label": "Has the client been assessed for the use of PrEP?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "prep_qualified",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prep_qualified",
+ "label": "Is the client eligible to receive PrEP?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step7:prep_assessment": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ },
+ "step8": {
+ "title": "KVP Enrollment",
+ "fields": [
+ {
+ "key": "prompt_for_sdc_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in SDC KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_msm_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in MHR KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_pwud_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in PWUD KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_pwid_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in PWID KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_no_group",
+ "type": "toaster_notes",
+ "text": "The client does not fall in any of the KVP groups and won't be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_ovp_kvp",
+ "type": "toaster_notes",
+ "text": "The client falls in Other vulnerable population KVP group\nThe client should be enrolled to KVP friendly services",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "birth_region",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "birth_region",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "label_info_title": "Client's Region of Birth",
+ "label_info_text": "",
+ "hint": "Select the client's Region of Birth",
+ "values": [
+ "Arusha",
+ "Dar es Salaam",
+ "Dodoma",
+ "Geita",
+ "Iringa",
+ "Kagera",
+ "Katavi",
+ "Kigoma",
+ "Kilimanjaro",
+ "Lindi",
+ "Manyara",
+ "Mara",
+ "Mbeya",
+ "Morogoro",
+ "Mtwara",
+ "Mwanza",
+ "Njombe",
+ "Pwani",
+ "Rukwa",
+ "Ruvuma",
+ "Shinyanga",
+ "Simiyu",
+ "Singida",
+ "Songwe",
+ "Tabora",
+ "Tanga"
+ ],
+ "keys": [
+ "Arusha",
+ "Dar es Salaam",
+ "Dodoma",
+ "Geita",
+ "Iringa",
+ "Kagera",
+ "Katavi",
+ "Kigoma",
+ "Kilimanjaro",
+ "Lindi",
+ "Manyara",
+ "Mara",
+ "Mbeya",
+ "Morogoro",
+ "Mtwara",
+ "Mwanza",
+ "Njombe",
+ "Pwani",
+ "Rukwa",
+ "Ruvuma",
+ "Shinyanga",
+ "Simiyu",
+ "Singida",
+ "Songwe",
+ "Tabora",
+ "Tanga"
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the region"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "enrollment_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "enrollment_date",
+ "type": "date_picker",
+ "hint": "Enrollment date",
+ "expanded": false,
+ "min_date": "01-05-2018",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "client_group",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "client_group",
+ "label": "Select the client group as screened by the health care provider",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "msm",
+ "text": "MHR",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "msm"
+ },
+ {
+ "key": "pwud",
+ "text": "PWUD",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwud"
+ },
+ {
+ "key": "pwid",
+ "text": "PWID",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pwid"
+ },
+ {
+ "key": "prisoner",
+ "text": "Prisoners",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prisoner"
+ },
+ {
+ "key": "rumandee",
+ "text": "Rumandee",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rumandee"
+ },
+ {
+ "key": "serodiscordant_couple",
+ "text": "Serodiscordant couple",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "serodiscordant_couple"
+ },
+ {
+ "key": "mobile_population",
+ "text": "Mobile population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mobile_population"
+ },
+ {
+ "key": "other_vulnerable_population",
+ "text": "Other vulnerable population",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_vulnerable_population"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "kvp_screening_male_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_sti_screening.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_sti_screening.json
new file mode 100644
index 0000000000..3b2c8dadfc
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_sti_screening.json
@@ -0,0 +1,129 @@
+{
+ "count": "1",
+ "encounter_type": "KVP STI",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "STI",
+ "fields": [
+ {
+ "key": "sti_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "sti_screening",
+ "type": "native_radio",
+ "label": "Sexual Transmitted Infection (STI) screening",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "screening_not_conducted",
+ "text": "Not Screened",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "screening_not_conducted"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "treatment_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "treatment_provided",
+ "type": "native_radio",
+ "label": "Select the treatment provided to the client",
+ "options": [
+ {
+ "key": "treated",
+ "text": "Treated",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "treated"
+ },
+ {
+ "key": "not_treated",
+ "text": "Not Treated",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_treated"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ },
+ "relevance": {
+ "step1:sti_screening": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_further_management",
+ "type": "toaster_notes",
+ "text": "Refer for Further Management",
+ "openmrs_entity_id": "prompt_for_further_management",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:treatment_provided": {
+ "type": "string",
+ "ex": "equalTo(., \"not_treated\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_tb_investigation.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_tb_investigation.json
new file mode 100644
index 0000000000..936f251b1b
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_tb_investigation.json
@@ -0,0 +1,97 @@
+{
+ "count": "1",
+ "encounter_type": "KVP TB Investigation",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "TB Investigation",
+ "fields": [
+ {
+ "key": "tb_screening",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tb_screening",
+ "type": "native_radio",
+ "label": "TB screening conducted on client",
+ "options": [
+ {
+ "key": "presumptive",
+ "text": "Presumptive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "presumptive"
+ },
+ {
+ "key": "not_presumptive",
+ "text": "Not presumptive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_presumptive"
+ },
+ {
+ "key": "not_screened",
+ "text": "Not screened",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_screened"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ },
+ {
+ "key": "prompt_for_tb_investigation",
+ "type": "toaster_notes",
+ "text": "Refer for TB investigation",
+ "openmrs_entity_id": "prompt_for_Tachycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:tb_screening": {
+ "type": "string",
+ "ex": "equalTo(., \"presumptive\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/kvp_vmmc_services.json b/opensrp-chw-hf/src/main/assets/json.form/kvp_vmmc_services.json
new file mode 100644
index 0000000000..5bec6adc64
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/kvp_vmmc_services.json
@@ -0,0 +1,82 @@
+{
+ "count": "1",
+ "encounter_type": "KVP VMMC",
+ "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"
+ },
+ "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": ""
+ },
+ "global": {},
+ "step1": {
+ "title": "VMMC",
+ "fields": [
+ {
+ "key": "vmcc_provided",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vmcc_provided",
+ "type": "native_radio",
+ "label": "Was the client provided with VMMC services?",
+ "options": [
+ {
+ "key": "provided",
+ "text": "Provided",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided"
+ },
+ {
+ "key": "not_provided",
+ "text": "Not provided",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_provided"
+ },
+ {
+ "key": "circumcised",
+ "text": "Circumcised",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "circumcised"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select an answer"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_blood_group_test.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_blood_group_test.json
new file mode 100644
index 0000000000..2e9cb8c6b7
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_blood_group_test.json
@@ -0,0 +1,187 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Blood Group Test",
+ "entity_id": "",
+ "relational_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "Blood Group Test",
+ "fields": [
+ {
+ "key": "blood_group",
+ "type": "spinner",
+ "hint": "Blood Group",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_group",
+ "openmrs_entity_parent": "",
+ "values": [
+ "A",
+ "B",
+ "AB",
+ "O",
+ "Test not conducted"
+ ],
+ "keys": [
+ "A",
+ "B",
+ "AB",
+ "O",
+ "test_not_conducted"
+ ],
+ "openmrs_choice_ids": {
+ "A": "A",
+ "B": "B",
+ "AB": "AB",
+ "O": "O",
+ "test_not_conducted": "test_not_conducted"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please choose a blood group"
+ }
+ },
+ {
+ "key": "rh_factor",
+ "type": "native_radio",
+ "label": "Rh",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rh_factor",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:blood_group": {
+ "type": "string",
+ "ex": "notEqualTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "management_provided_for_rh",
+ "type": "native_radio",
+ "label": "Was management provided for negative RH?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "management_provided_for_rh",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:rh_factor": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_rh_negative",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:management_provided_for_rh": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_blood_group_test",
+ "type": "edit_text",
+ "hint": "Why was the Blood Group Test not conducted?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_blood_group_test",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "step1:blood_group": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the reason"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_cervix_dilation_monitoring.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_cervix_dilation_monitoring.json
new file mode 100644
index 0000000000..f2b79403de
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_cervix_dilation_monitoring.json
@@ -0,0 +1,170 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Cervix Dilation Monitoring",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "global": {
+ "last_vaginal_exam_time": "12:00"
+ },
+ "step1": {
+ "title": "Cervix Dilation Monitoring",
+ "fields": [
+ {
+ "key": "vaginal_exam_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vaginal_exam_date",
+ "type": "date_picker",
+ "hint": "Vaginal examination Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the vaginal examination date"
+ }
+ },
+ {
+ "key": "last_vaginal_exam_time",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_vaginal_exam_time",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_cervix_dilation_monitoring_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "vaginal_exam_time",
+ "type": "time_picker",
+ "hint": "Vaginal examination Time",
+ "openmrs_entity_id": "vaginal_exam_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "constraints": [
+ {
+ "type": "time",
+ "ex": "greaterThan(., step1:last_vaginal_exam_time)",
+ "err": "The vaginal examination time cannot be less than the previous vaginal examination time"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please enter vaginal examination time"
+ }
+ },
+ {
+ "key": "cervix_state",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cervix_state",
+ "label": "Cervix (State)",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "soft_thin",
+ "text": "Soft and thin",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "soft_thin"
+ },
+ {
+ "key": "hard",
+ "text": "Hard",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hard"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select the cervix (state) option"
+ }
+ },
+ {
+ "key": "cervix_dilation_label",
+ "type": "label",
+ "text": "Cervix (Dilation)",
+ "text_size": "7sp",
+ "text_color": "#000000",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": ""
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "8dp"
+ },
+ {
+ "key": "cervix_dilation",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cervix_dilation",
+ "type": "numbers_selector",
+ "start_number": "1",
+ "max_value": "10",
+ "text_size": "18px",
+ "text_color": "#000000",
+ "selected_text_color": "#ffffff",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the cervix dilation number"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_eclampsia_management_form.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_eclampsia_management_form.json
new file mode 100644
index 0000000000..e8416e01cd
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_eclampsia_management_form.json
@@ -0,0 +1,195 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Uterus Massage",
+ "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"
+ },
+ "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": "Pre-Eclampsia and Eclampsia Management",
+ "fields": [
+ {
+ "key": "has_signs_of_eclampsia",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "has_signs_of_eclampsia",
+ "label": "Does the client have signs of pre-eclampsia/eclampsia?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "administered_magnesium_sulphate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "administered_magnesium_sulphate",
+ "label": "Was the client administered Magnesium Sulphate?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:has_signs_of_eclampsia": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_administering_magnesium_sulphate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_administering_magnesium_sulphate",
+ "type": "native_radio",
+ "label": "Please specify the reasons",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "out_of_stock",
+ "text": "Out of stock",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "out_of_stock"
+ },
+ {
+ "key": "lack_of_skills",
+ "text": "Lack of Skills",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "lack_of_skills"
+ },
+ {
+ "key": "other",
+ "text": "Other (Specify)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other"
+ }
+ ],
+ "relevance": {
+ "step1:administered_magnesium_sulphate": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "prompt_for_not_administering_magnesium_sulphate",
+ "type": "toaster_notes",
+ "text": "Refer the client for further management.",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_eclampsia_management_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_for_not_administering_magnesium_sulphate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_for_not_administering_magnesium_sulphate",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not administering Magnesium Sulphate",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_administering_magnesium_sulphate": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_fetal_well_being.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_fetal_well_being.json
new file mode 100644
index 0000000000..083593bdd2
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_fetal_well_being.json
@@ -0,0 +1,263 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "LD Partograph - Fetal Well-being",
+ "entity_id": "",
+ "relational_id": "",
+ "global": {
+ },
+ "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"
+ },
+ "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": "Well-being of a fetal",
+ "fields": [
+ {
+ "key": "fetal_heart_rate",
+ "type": "edit_text",
+ "hint": "Count Fetal Heart Rate (bpm)",
+ "openmrs_entity_id": "fetal_heart_rate",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the fetal heart rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Fetal heart rate must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Fetal heart rate must be equal or less than 300"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please input the fetal heart rate"
+ }
+ },
+ {
+ "key": "prompt_for_fetal_distress",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "prompt_for_fetal_distress",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_fetal_wellbeing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "moulding_options",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "moulding_options",
+ "label": "Moulding",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "Ø",
+ "text": "Ø",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Ø"
+ },
+ {
+ "key": "+",
+ "text": "+",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+"
+ },
+ {
+ "key": "++",
+ "text": "++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "++"
+ },
+ {
+ "key": "+++",
+ "text": "+++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+++"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_moulding",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_fetal_wellbeing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "caput",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "caput",
+ "label": "Caput",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "Ø",
+ "text": "Ø",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "Ø"
+ },
+ {
+ "key": "+",
+ "text": "+",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+"
+ },
+ {
+ "key": "++",
+ "text": "++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "++"
+ },
+ {
+ "key": "+++",
+ "text": "+++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+++"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_caput",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_fetal_wellbeing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "amniotic_fluid",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "amniotic_fluid",
+ "label": "Amniotic fluid",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "membrane_intact",
+ "text": "Membrane Intact (I)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "membrane_intact"
+ },
+ {
+ "key": "membrane_ruptured_liquor_clear",
+ "text": "Membrane ruptured liquor clear (C)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "membrane_ruptured_liquor_clear"
+ },
+ {
+ "key": "meconium_stained_liquor",
+ "text": "Meconium Stained Liquor (M)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "meconium_stained_liquor"
+ },
+ {
+ "key": "blood_stained_liquor",
+ "text": "Blood-Stained Liquor (B)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_stained_liquor"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_amniotic_fluid",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_fetal_wellbeing_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_general_examination.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_general_examination.json
new file mode 100644
index 0000000000..d5cb5df7d0
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_general_examination.json
@@ -0,0 +1,783 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "General Examination",
+ "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"
+ },
+ "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": "General Examination",
+ "fields": [
+ {
+ "key": "general_condition",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "general_condition",
+ "label": "General Condition",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "good",
+ "text": "Good",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "good"
+ },
+ {
+ "key": "fair",
+ "text": "Fair",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fair"
+ },
+ {
+ "key": "bad",
+ "text": "Serious",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bad"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the general condition of the client"
+ }
+ },
+ {
+ "key": "prompt_for_general_condition",
+ "type": "toaster_notes",
+ "text": "Take action according to standard guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:general_condition": {
+ "type": "string",
+ "ex": "equalTo(., \"bad\")"
+ }
+ }
+ },
+ {
+ "key": "pulse_rate",
+ "type": "edit_text",
+ "hint": "Pulse Rate (Beats per minute)",
+ "openmrs_entity_id": "pulse_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the pulse rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The pulse rate must be equal or greater than 0 (bpm)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "The pulse rate must be equal or less than 200 (bpm)"
+ }
+ },
+ {
+ "key": "prompt_for_Bradycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of bradycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Bradycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"60\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_Tachycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of tachycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Tachycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"100\")"
+ }
+ }
+ },
+ {
+ "key": "respiratory_rate",
+ "type": "edit_text",
+ "hint": "Respiratory Rate (Breaths per minute)",
+ "openmrs_entity_id": "respiratory_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the respiratory rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The respiratory rate must be equal or greater than 0 (Breaths per minute)"
+ },
+ "v_max": {
+ "value": "100",
+ "err": "The respiratory rate must be equal or less than 100 (Breaths per minute)"
+ }
+ },
+ {
+ "key": "prompt_for_respiratory_rate",
+ "type": "toaster_notes",
+ "text": "Manage according to SOP and National guideline",
+ "openmrs_entity_id": "prompt_for_respiratory_rate",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_general_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "temperature",
+ "type": "edit_text",
+ "hint": "Temperature (\u2103)",
+ "openmrs_entity_id": "temperature",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the temperature"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Temperature must be equal or greater than 10"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Temperature must be equal or less than 50"
+ }
+ },
+ {
+ "key": "notify_client_has_fever",
+ "type": "toaster_notes",
+ "text": "Conduct relevant laboratory tests to elicit the cause of fever and manage according to standard guidelines ",
+ "openmrs_entity_id": "notify_client_has_fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"37.8\")"
+ }
+ }
+ },
+ {
+ "key": "notify_client_has_hypothermia",
+ "type": "toaster_notes",
+ "text": "Manage the hypothermia according to standard guidelines",
+ "openmrs_entity_id": "notify_client_has_hypothermia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"36.5\")"
+ }
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Blood Pressure)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the systolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Systolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Systolic value must be equal or less than 320"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Blood Pressure)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the diastolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Diastolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Diastolic value must be equal or less than 200"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "The diastolic value must be less than the systolic value"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Manage the hypertension according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_general_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of hypotension and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_general_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "urine_protein",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "urine_protein",
+ "label": "Urine Protein",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "nil",
+ "text": "Nil",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "nil"
+ },
+ {
+ "key": "+",
+ "text": "+",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+"
+ },
+ {
+ "key": "++",
+ "text": "++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "++"
+ },
+ {
+ "key": "+++",
+ "text": "+++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+++"
+ },
+ {
+ "key": "not_tested",
+ "text": "Not Tested",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_tested"
+ }
+ ]
+ },
+ {
+ "key": "urine_acetone",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "urine_acetone",
+ "label": "Urine Acetone",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "nil",
+ "text": "Nil",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "nil"
+ },
+ {
+ "key": "+",
+ "text": "+",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+"
+ },
+ {
+ "key": "++",
+ "text": "++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "++"
+ },
+ {
+ "key": "+++",
+ "text": "+++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+++"
+ },
+ {
+ "key": "not_tested",
+ "text": "Not Tested",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_tested"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_urine",
+ "type": "toaster_notes",
+ "text": "Manage or refer for further management",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_general_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "fundal_height",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fundal_height",
+ "type": "edit_text",
+ "hint": "Fundal Height (CM)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Has to be a number"
+ },
+ "v_min": {
+ "value": "12",
+ "err": "Fundal height must be equal or more than 12 CM"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Fundal height must be equal or less than 50 CM"
+ }
+ },
+ {
+ "key": "prompt_for_fundal_height",
+ "type": "toaster_notes",
+ "text": "Abnormal fundal height",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:fundal_height": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"36\")"
+ }
+ }
+ },
+ {
+ "key": "lie",
+ "type": "native_radio",
+ "openmrs_entity_id": "lie",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Lie",
+ "options": [
+ {
+ "key": "transverse",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "transverse",
+ "openmrs_entity_parent": "",
+ "text": "Transverse"
+ },
+ {
+ "key": "oblique",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "oblique",
+ "openmrs_entity_parent": "",
+ "text": "Oblique"
+ },
+ {
+ "key": "longitudinal",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "longitudinal",
+ "openmrs_entity_parent": "",
+ "text": "Longitudinal"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_lie",
+ "type": "toaster_notes",
+ "text": "Refer for further consultation",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_general_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "presentation",
+ "type": "native_radio",
+ "openmrs_entity_id": "presentation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "label": "Presentation",
+ "options": [
+ {
+ "key": "breech",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breech",
+ "openmrs_entity_parent": "",
+ "text": "Breech Presentation"
+ },
+ {
+ "key": "cephalic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cephalic",
+ "openmrs_entity_parent": "",
+ "text": "Cephalic Presentation"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_general_examination_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select the presentation"
+ }
+ },
+ {
+ "key": "prompt_for_presentation",
+ "type": "toaster_notes",
+ "text": "Manage according to standard guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:presentation": {
+ "type": "string",
+ "ex": "equalTo(.,\"breech\")"
+ }
+ }
+ },
+ {
+ "key": "contraction_frequency",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "contraction_frequency",
+ "label": "Contraction Frequency",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "no_contraction",
+ "text": "No contraction",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no_contraction"
+ },
+ {
+ "key": "1",
+ "text": "1",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1"
+ },
+ {
+ "key": "2",
+ "text": "2",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "2"
+ },
+ {
+ "key": "3",
+ "text": "3",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "3"
+ },
+ {
+ "key": "4",
+ "text": "4",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "4"
+ },
+ {
+ "key": "5",
+ "text": "5",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "5"
+ }
+ ]
+ },
+ {
+ "key": "contraction_in_ten_minutes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "contraction_in_ten_minutes",
+ "label": "Contraction in ten minutes",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "less_than_20_secs",
+ "text": "<20 secs",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "less_than_20_secs"
+ },
+ {
+ "key": "over_20_less_40_secs",
+ "text": "20-40 secs",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "over_20_less_40_secs"
+ },
+ {
+ "key": "over_40_secs",
+ "text": ">40 secs",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "over_40_secs"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_general_examination_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select the contraction time"
+ }
+ },
+ {
+ "key": "prompt_for_contraction_less_than_20_secs",
+ "type": "toaster_notes",
+ "text": "Slight contraction",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "step1:contraction_in_ten_minutes": {
+ "type": "string",
+ "ex": "equalTo(., \"less_than_20_secs\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_contraction_over_10_less_40_secs",
+ "type": "toaster_notes",
+ "text": "Moderate contraction",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "step1:contraction_in_ten_minutes": {
+ "type": "string",
+ "ex": "equalTo(., \"over_20_less_40_secs\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_contraction_over_40_secs",
+ "type": "toaster_notes",
+ "text": "Strong contraction",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "info",
+ "relevance": {
+ "step1:contraction_in_ten_minutes": {
+ "type": "string",
+ "ex": "equalTo(., \"over_40_secs\")"
+ }
+ }
+ },
+ {
+ "key": "fetal_heart_rate",
+ "type": "edit_text",
+ "hint": "Count Fetal Heart Rate (bpm)",
+ "openmrs_entity_id": "fetal_heart_rate",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the fetal heart rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Fetal heart rate must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Fetal heart rate must be equal or less than 300"
+ }
+ },
+ {
+ "key": "prompt_for_fetal_distress",
+ "type": "toaster_notes",
+ "text": "Take action or refer for further management",
+ "openmrs_entity_id": "prompt_for_fetal_distress",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_general_examination_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "level",
+ "type": "native_radio",
+ "label": "Level",
+ "openmrs_entity_id": "level",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "5",
+ "text": "5/5",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "4",
+ "text": "4/5",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "4"
+ },
+ {
+ "key": "3",
+ "text": "3/5",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "3"
+ },
+ {
+ "key": "2",
+ "text": "2/5",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "2"
+ },
+ {
+ "key": "1",
+ "text": "1/5",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1"
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_hb_test_form.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_hb_test_form.json
new file mode 100644
index 0000000000..2a7bf4c049
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_hb_test_form.json
@@ -0,0 +1,248 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "HB Test",
+ "entity_id": "",
+ "relational_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "HB Test",
+ "fields": [
+ {
+ "key": "hb_test_conducted",
+ "type": "native_radio",
+ "label": "Has the HB test been conducted?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_test_conducted",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ]
+ },
+ {
+ "key": "reason_for_not_conducting_hb_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_hb_test",
+ "type": "spinner",
+ "hint": "Reason as to why the HB Level test was not conducted",
+ "values": [
+ "Cuvette Cartridges Out of Stock",
+ "Haemoque machine out of order",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other"
+ ],
+ "keys": [
+ "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "stock_out_of_cuvettes_cartridges": "stock_out_of_cuvettes_cartridges",
+ "haemoque_machine_out_of_order": "haemoque_machine_out_of_order",
+ "the_client_was_in_an_emergency_situation": "the_client_was_in_an_emergency_situation",
+ "the_client_refused_to_be_tested": "the_client_refused_to_be_tested",
+ "we_are_still_counselling_the_client": "we_are_still_counselling_the_client",
+ "other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:hb_test_conducted": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_hb_test_not_conducted",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_hb_test_not_conducted",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting the HB Level Test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_hb_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ },
+ {
+ "key": "hb_level",
+ "type": "edit_text",
+ "hint": "Enter Measured HB Level (g/dl)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the HB level"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "HB level must be equal or greater than 0 (g/dl)"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "HB level must be equal or less than 20 (g/dl)"
+ },
+ "relevance": {
+ "step1:hb_test_conducted": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the HB level results"
+ }
+ },
+ {
+ "key": "management_provided_for_hb_level",
+ "type": "native_radio",
+ "label": "Was management provided for abnormal HB Level?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "management_provided_for_hb_level",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:hb_level": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"8.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_to_provide_management",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and standard guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:management_provided_for_hb_level": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_moderate_anaemia_management",
+ "type": "toaster_notes",
+ "text": "Manage the mild anaemia according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_moderate_anaemia_management",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_test_rules.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hb_test_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_test_date",
+ "type": "hidden",
+ "hint": "HB Measurement Date",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_test_rules.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_hiv_test.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_hiv_test.json
new file mode 100644
index 0000000000..efd4354ba4
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_hiv_test.json
@@ -0,0 +1,200 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "HIV Test",
+ "entity_id": "",
+ "relational_id": "",
+ "global": {},
+ "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"
+ },
+ "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": "HIV Test",
+ "fields": [
+ {
+ "key": "hiv_test_conducted",
+ "type": "native_radio",
+ "label": "Has the client been tested for HIV?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_test_conducted",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ]
+ },
+ {
+ "key": "reason_for_no_hiv_test",
+ "type": "edit_text",
+ "hint": "Why was the client not tested for HIV?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_no_hiv_test",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_hiv_test_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the reason"
+ }
+ },
+ {
+ "key": "hiv_counselling_before_testing",
+ "type": "native_radio",
+ "label": "Was the client provided with counselling before HIV testing?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_counselling_before_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_hiv_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv",
+ "type": "native_radio",
+ "label": "HIV Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_hiv_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pmtct_test_date",
+ "type": "hidden",
+ "label": "HIV Test Results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct_test_date",
+ "openmrs_entity_parent": "",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_hiv_test_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hiv_counselling_after_testing",
+ "type": "native_radio",
+ "label": "Was the client provided with counselling after HIV testing?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv_counselling_after_testing",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_hiv_test_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_labour_progress.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_labour_progress.json
new file mode 100644
index 0000000000..f8b566ad65
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_labour_progress.json
@@ -0,0 +1,290 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "LD Partograph : Labour Progress",
+ "entity_id": "",
+ "relational_id": "",
+ "global": {
+ },
+ "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"
+ },
+ "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": "Progress of Labour",
+ "fields": [
+ {
+ "key": "cervix_dilation_label",
+ "type": "label",
+ "text": "Cervix (Dilation)",
+ "text_size": "10sp",
+ "text_color": "#000000",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": ""
+ },
+ {
+ "key": "cervix_dilation",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cervix_dilation",
+ "type": "numbers_selector",
+ "start_number": "1",
+ "number_of_selectors": "10",
+ "max_value": "10",
+ "text_size": "18px",
+ "text_color": "#000000",
+ "selected_text_color": "#ffffff"
+ },
+ {
+ "key": "notify_cervix_dilation_alert",
+ "type": "toaster_notes",
+ "text": "ALERT:\n\nCloser monitoring is required for this client",
+ "openmrs_entity_id": "notify_alert",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_labour_progress_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "notify_cervix_dilation_action",
+ "type": "toaster_notes",
+ "text": "ACTION REQUIRED:\n\nAn immediate action needs to be taken for this client!",
+ "openmrs_entity_id": "notify_action_required",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_labour_progress_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "spacer",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "spacer",
+ "spacer_height": "20dp"
+ },
+ {
+ "key": "descent_presenting_part",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "descent_presenting_part",
+ "label": "Descent of the Presenting Part (Every 4 hours)",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "5",
+ "text": "5",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "5"
+ },
+ {
+ "key": "4",
+ "text": "4",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "4"
+ },
+ {
+ "key": "3",
+ "text": "3",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "3"
+ },
+ {
+ "key": "2",
+ "text": "2",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "2"
+ },
+ {
+ "key": "1",
+ "text": "1",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1"
+ },
+ {
+ "key": "0",
+ "text": "0",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "0"
+ }
+ ]
+ },
+ {
+ "key": "head_descent_alert",
+ "type": "toaster_notes",
+ "text": "ALERT:\n\nManage according to guideline",
+ "openmrs_entity_id": "notify_alert",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_labour_progress_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "contraction_every_half_hour_label",
+ "type": "label",
+ "text": "Contraction (Every half an hour)",
+ "text_size": "7sp",
+ "text_color": "#000000",
+ "label_text_style": "bold",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": ""
+ },
+ {
+ "key": "contraction_every_half_hour_frequency",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "contraction_every_half_hour_frequency",
+ "label": "Contraction Frequency",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "1",
+ "text": "1",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1"
+ },
+ {
+ "key": "2",
+ "text": "2",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "2"
+ },
+ {
+ "key": "3",
+ "text": "3",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "3"
+ },
+ {
+ "key": "4",
+ "text": "4",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "4"
+ },
+ {
+ "key": "5",
+ "text": "5",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "5"
+ }
+ ]
+ },
+ {
+ "key": "contraction_every_half_hour_time",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "contraction_every_half_hour_time",
+ "label": "Contraction Time",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "less_than_20_secs",
+ "text": "<20 secs",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "less_than_20_secs"
+ },
+ {
+ "key": "over_20_less_40_secs",
+ "text": "20-40 secs",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "over_20_less_40_secs"
+ },
+ {
+ "key": "over_40_secs",
+ "text": ">40 secs",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "over_40_secs"
+ }
+ ],
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_labour_progress_relevance.yml"
+ }
+ }
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select the Contraction Time"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_labour_stage.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_labour_stage.json
new file mode 100644
index 0000000000..c12e22f755
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_labour_stage.json
@@ -0,0 +1,99 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Labour Stage Assessment",
+ "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"
+ },
+ "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": "Labour Stage",
+ "fields": [
+ {
+ "key": "labour_stage",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "labour_stage",
+ "label": "What is the client Labour Stage?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "1",
+ "text": "Stage 1",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "1"
+ },
+ {
+ "key": "2",
+ "text": "Stage 2",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "2"
+ },
+ {
+ "key": "3",
+ "text": "Stage 3",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "3"
+ },
+ {
+ "key": "4",
+ "text": "Stage 4",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "4"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_malaria_test.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_malaria_test.json
new file mode 100644
index 0000000000..932174b27a
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_malaria_test.json
@@ -0,0 +1,183 @@
+{
+ "count": "1",
+ "skip_blank_steps": true,
+ "encounter_type": "Labour and Delivery Malaria Test",
+ "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"
+ },
+ "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": "Malaria Test",
+ "fields": [
+ {
+ "key": "malaria",
+ "type": "native_radio",
+ "label": "Malaria test results",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "malaria",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ },
+ {
+ "key": "test_not_conducted",
+ "text": "Test not conducted",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "test_not_conducted"
+ }
+ ]
+ },
+ {
+ "key": "management_provided_for_malaria",
+ "type": "native_radio",
+ "label": "Was management provided for malaria?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "management_provided_for_malaria",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_malaria_management_not_done",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:management_provided_for_malaria": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "reason_for_not_conducting_malaria_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_not_conducting_malaria_test",
+ "type": "spinner",
+ "hint": "Reason as to why the Malaria test was not conducted",
+ "values": [
+ "Test kits are out of stock",
+ "The client was in an emergency situation",
+ "The client refused to be tested",
+ "We are still counselling the client",
+ "Other (Specify)"
+ ],
+ "keys": [
+ "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested",
+ "still_counselling_the_client",
+ "other"
+ ],
+ "openmrs_choice_ids": {
+ "test_kits_out_of_stock": "test_kits_out_of_stock",
+ "client_was_in_an_emergency_situation": "client_was_in_an_emergency_situation",
+ "client_refused_to_be_tested": "client_refused_to_be_tested",
+ "still_counselling_the_client": "still_counselling_the_client",
+ "Other": "other"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select a reason"
+ },
+ "relevance": {
+ "step1:malaria_test": {
+ "type": "string",
+ "ex": "equalTo(., \"test_not_conducted\")"
+ }
+ }
+ },
+ {
+ "key": "other_reason_for_not_conducting_malaria_test",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "other_reason_for_not_conducting_malaria_test",
+ "type": "edit_text",
+ "hint": "Specify other reasons for not conducting Malaria test",
+ "edit_type": "name",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the reason"
+ },
+ "relevance": {
+ "step1:reason_for_not_conducting_malaria_test": {
+ "type": "string",
+ "ex": "equalTo(., \"other\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_maternal_complications.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_maternal_complications.json
new file mode 100644
index 0000000000..feb3e81572
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_maternal_complications.json
@@ -0,0 +1,286 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Mother Observation",
+ "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"
+ },
+ "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": "Maternal Complications During Labour",
+ "fields": [
+ {
+ "key": "maternal_complications_before_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "maternal_complications_before_delivery",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Complications before delivery",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_aph",
+ "text": "APH",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_aph"
+ },
+ {
+ "key": "chk_prom",
+ "text": "Pre-mature Rupture of Membrane (PROM)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_prom"
+ },
+ {
+ "key": "chk_high_bp",
+ "text": "High BP",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_high_bp"
+ },
+ {
+ "key": "chk_pre_eclampsia",
+ "text": "Pre-eclampsia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_pre_eclampsia"
+ },
+ {
+ "key": "chk_eclampsia",
+ "text": "Eclampsia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_eclampsia"
+ },
+ {
+ "key": "chk_anaemia",
+ "text": "Anaemia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_anaemia"
+ },
+ {
+ "key": "chk_malaria",
+ "text": "Malaria",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_malaria"
+ },
+ {
+ "key": "chk_maternal_diabetes",
+ "text": "Maternal Diabetes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_maternal_diabetes"
+ },
+ {
+ "key": "chk_hiv_stage_3_or_4",
+ "text": "HIV + Stage III or IV",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_hiv_stage_3_or_4"
+ },
+ {
+ "key": "chk_fgm",
+ "text": "FGM",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_fgm"
+ },
+ {
+ "key": "chk_other",
+ "text": "Other",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_other"
+ },
+ {
+ "key": "chk_none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_none"
+ }
+ ]
+ },
+ {
+ "key": "maternal_complications_before_delivery_other",
+ "type": "edit_text",
+ "hint": "Other complications before delivery",
+ "openmrs_entity_id": "maternal_complications_before_delivery_other",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:maternal_complications_before_delivery": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "maternal_complications_during_and_after_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "maternal_complications_during_and_after_delivery",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Complications during and after delivery",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_none"
+ ],
+ "options": [
+ {
+ "key": "chk_pph",
+ "text": "PPH",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_pph"
+ },
+ {
+ "key": "chk_pre_eclampsia",
+ "text": "Pre-eclampsia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_pre_eclampsia"
+ },
+ {
+ "key": "chk_eclampsia",
+ "text": "Eclampsia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_eclampsia"
+ },
+ {
+ "key": "chk_obstructed_labour",
+ "text": "Obstructed labour",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_obstructed_labour"
+ },
+ {
+ "key": "chk_prolonged_labour",
+ "text": "Prolonged labour",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_prolonged_labour"
+ },
+ {
+ "key": "chk_retained_placenta",
+ "text": "Retained placenta",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_retained_placenta"
+ },
+ {
+ "key": "chk_3_degree_tear",
+ "text": "Third degree tear",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_3_degree_tear"
+ },
+ {
+ "key": "chk_ruptured_uterus",
+ "text": "Ruptured uterus",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_ruptured_uterus"
+ },
+ {
+ "key": "chk_sepsis",
+ "text": "Sepsis",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_sepsis"
+ },
+ {
+ "key": "chk_meconium_stained_liquor",
+ "text": "Meconium Stained Liquor",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_meconium_stained_liquor"
+ },
+ {
+ "key": "chk_other",
+ "text": "Other",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_other"
+ },
+ {
+ "key": "chk_none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_none"
+ }
+ ]
+ },
+ {
+ "key": "maternal_complications_during_and_after_delivery_other",
+ "type": "edit_text",
+ "hint": "Other complications during and after delivery",
+ "openmrs_entity_id": "maternal_complications_during_and_after_delivery_other",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step1:maternal_complications_during_and_after_delivery": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_other"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "maternal_complications_module_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "maternal_complications_module_status",
+ "type": "hidden",
+ "value": "PENDING"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mode_of_delivery.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mode_of_delivery.json
new file mode 100644
index 0000000000..8b921b2312
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mode_of_delivery.json
@@ -0,0 +1,205 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Mode of Delivery",
+ "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"
+ },
+ "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": "Mode of Delivery",
+ "fields": [
+ {
+ "key": "mode_of_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mode_of_delivery",
+ "label": "Mode of delivery",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "spontaneous_vaginal_delivery",
+ "text": "Spontaneous vertex delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spontaneous_vaginal_delivery"
+ },
+ {
+ "key": "cesarean",
+ "text": "Caesarian",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cesarean"
+ },
+ {
+ "key": "vacuum_extraction",
+ "text": "Vacuum Extraction",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vacuum_extraction"
+ },
+ {
+ "key": "breech_delivery",
+ "text": "Breech Delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breech_delivery"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "labour_stage",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "labour_stage",
+ "type": "hidden",
+ "value": 3
+ },
+ {
+ "key": "delivery_mode_caesarian_reason",
+ "type": "check_box",
+ "label": "Reason for caesarian",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "delivery_mode_caesarian_reason",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "fetal_distress",
+ "text": "Fetal distress",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fetal_distress"
+ },
+ {
+ "key": "previous_scar",
+ "text": "Previous Scar",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "previous_scar"
+ },
+ {
+ "key": "maternal_request",
+ "text": "Maternal request",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "maternal_request"
+ },
+ {
+ "key": "failed_induction",
+ "text": "Failed induction",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "failed_induction"
+ },
+ {
+ "key": "malpresentation",
+ "text": "Malpresentation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "malpresentation"
+ },
+ {
+ "key": "prolonged_labor",
+ "text": "Prolonged labor",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "prolonged_labor"
+ },
+ {
+ "key": "obstructed_labor",
+ "text": "Obstructed labor",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "obstructed_labor"
+ },
+ {
+ "key": "multiple_gestation",
+ "text": "Multiple Gestation",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "multiple_gestation"
+ },
+ {
+ "key": "others",
+ "text": "Others",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "others"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the reason for caesarian"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mode_of_delivery_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "delivery_mode_caesarian_reason_other",
+ "type": "edit_text",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "openmrs_entity_id": "delivery_mode_reason",
+ "hint": "Specify other reason for caesarian delivery mode",
+ "v_required": {
+ "value": true,
+ "err": "Value is required"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mode_of_delivery_relevance.yml"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mother_observation.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mother_observation.json
new file mode 100644
index 0000000000..4aa9239250
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mother_observation.json
@@ -0,0 +1,628 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Mother Observation",
+ "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"
+ },
+ "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": "Mother - Observation",
+ "fields": [
+ {
+ "key": "vagina_observation",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vagina_observation",
+ "type": "check_box",
+ "combine_checkbox_option_values": "true",
+ "label": "Vagina",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "exclusive": [
+ "chk_intact"
+ ],
+ "options": [
+ {
+ "key": "chk_intact",
+ "text": "Intact",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_intact"
+ },
+ {
+ "key": "chk_bleeding",
+ "text": "Bleeding",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_bleeding"
+ },
+ {
+ "key": "chk_tear",
+ "text": "Tear",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_tear"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "prompt_for_vagina_observation",
+ "type": "toaster_notes",
+ "text": "Action to be taken per National guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:vagina_observation": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_tear"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "vaginal_bleeding_observation",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vaginal_bleeding_observation",
+ "label": "Vaginal bleeding observation",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Normal",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "abnormal",
+ "text": "Abnormal",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "abnormal"
+ }
+ ],
+ "relevance": {
+ "step1:vagina_observation": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "chk_bleeding"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "prompt_for_abnormal_bleeding",
+ "type": "toaster_notes",
+ "text": "Abnormal bleeding, take action per National guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:vaginal_bleeding_observation": {
+ "type": "string",
+ "ex": "equalTo(.,\"abnormal\")"
+ }
+ }
+ },
+ {
+ "key": "perineum_observation",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "perineum_observation",
+ "label": "Perineum",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "intact",
+ "text": "Intact",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "intact"
+ },
+ {
+ "key": "bruised_laceration",
+ "text": "Bruised/Laceration",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bruised_laceration"
+ },
+ {
+ "key": "tear",
+ "text": "Tear",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tear"
+ }
+ ]
+ },
+ {
+ "key": "degree_of_perineum_tear",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "degree_of_perineum_tear",
+ "label": "Degree of tear",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "first_degree",
+ "text": "1st degree tear",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "first_degree"
+ },
+ {
+ "key": "second_degree",
+ "text": "2nd degree tear",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "second_degree"
+ },
+ {
+ "key": "third_degree",
+ "text": "3rd degree tear",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "third_degree"
+ },
+ {
+ "key": "fourth_degree",
+ "text": "4th degree tear",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fourth_degree"
+ }
+ ],
+ "relevance": {
+ "step1:perineum_observation": {
+ "type": "string",
+ "ex": "equalTo(.,\"tear\")"
+ }
+ }
+ },
+ {
+ "key": "perineum_repair_person_name",
+ "type": "edit_text",
+ "hint": "Name of doctor/nurse who repaired the perineum",
+ "openmrs_entity_id": "perineum_repair_person_name",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please specify the name of doctor/nurse who repaired the perineum"
+ },
+ "relevance": {
+ "step1:perineum_observation": {
+ "type": "string",
+ "ex": "equalTo(., \"tear\")"
+ }
+ }
+ },
+ {
+ "key": "perineum_repair_occupation",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "perineum_repair_occupation",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "hint": "Perineum repaired by",
+ "values": [
+ "A doctor",
+ "A nurse"
+ ],
+ "keys": [
+ "doctor",
+ "nurse"
+ ],
+ "openmrs_choice_ids": {
+ "doctor": "A Doctor",
+ "nurse": "A Nurse"
+ },
+ "relevance": {
+ "step1:perineum_observation": {
+ "type": "string",
+ "ex": "equalTo(., \"tear\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_perineum_observation",
+ "type": "toaster_notes",
+ "text": "Action to be taken per National guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:perineum_observation": {
+ "type": "string",
+ "ex": "equalTo(.,\"tear\")"
+ }
+ }
+ },
+ {
+ "key": "cervix_observation",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "cervix_observation",
+ "label": "Cervix observation",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "normal",
+ "text": "Normal",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "normal"
+ },
+ {
+ "key": "tear",
+ "text": "Tear",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tear"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_cervix_observation",
+ "type": "toaster_notes",
+ "text": "Manage according to standard guidelines",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:cervix_observation": {
+ "type": "string",
+ "ex": "equalTo(.,\"tear\")"
+ }
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Blood Pressure)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the systolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Systolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Systolic value must be equal or less than 320"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Blood Pressure)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the diastolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Diastolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Diastolic value must be equal or less than 200"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "The diastolic value must be less than the systolic value"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Manage the hypertension according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mother_observation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of hypotension and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mother_observation_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pulse_rate",
+ "type": "edit_text",
+ "hint": "Pulse Rate (Beats per minute)",
+ "openmrs_entity_id": "pulse_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the pulse rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The pulse rate must be equal or greater than 0 (bpm)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "The pulse rate must be equal or less than 200 (bpm)"
+ }
+ },
+ {
+ "key": "prompt_for_Bradycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of bradycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Bradycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"60\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_Tachycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of tachycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Tachycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"100\")"
+ }
+ }
+ },
+ {
+ "key": "temperature",
+ "type": "edit_text",
+ "hint": "Temperature (\u2103)",
+ "openmrs_entity_id": "temperature",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the temperature"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Temperature must be equal or greater than 10"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Temperature must be equal or less than 50"
+ }
+ },
+ {
+ "key": "notify_client_has_fever",
+ "type": "toaster_notes",
+ "text": "Conduct relevant laboratory tests to elicit the cause of fever and manage according to standard guidelines ",
+ "openmrs_entity_id": "notify_client_has_fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"37.8\")"
+ }
+ }
+ },
+ {
+ "key": "notify_client_has_hypothermia",
+ "type": "toaster_notes",
+ "text": "Manage the hypothermia according to standard guidelines",
+ "openmrs_entity_id": "notify_client_has_hypothermia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"36.5\")"
+ }
+ }
+ },
+ {
+ "key": "uterus_contraction",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "uterus_contraction",
+ "label": "Has Uterus Contracted?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_uterus_contraction",
+ "type": "toaster_notes",
+ "text": "Manage according to national guidelines",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:uterus_contraction": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "urination",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "urination",
+ "label": "Urination",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_urination",
+ "type": "toaster_notes",
+ "text": "Action to be taken per National guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:urination": {
+ "type": "string",
+ "ex": "equalTo(.,\"no\")"
+ }
+ }
+ },
+ {
+ "key": "observation_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "observation_date",
+ "type": "date_picker",
+ "hint": "Observation Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today"
+ },
+ {
+ "key": "observation_time",
+ "type": "time_picker",
+ "hint": "Observation Time",
+ "openmrs_entity_id": "observation_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": ""
+ },
+ {
+ "key": "mother_observation_module_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mother_observation_module_status",
+ "type": "hidden",
+ "value": "PENDING"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mother_status.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mother_status.json
new file mode 100644
index 0000000000..835c9cb466
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mother_status.json
@@ -0,0 +1,372 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "PPFP",
+ "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"
+ },
+ "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": "Mother - Status",
+ "fields": [
+ {
+ "key": "status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "status",
+ "label": "Status",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "alive",
+ "text": "Alive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "alive"
+ },
+ {
+ "key": "died",
+ "text": "Died",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "died"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "cause_of_death",
+ "type": "edit_text",
+ "hint": "Cause of death",
+ "openmrs_entity_id": "cause_of_death",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "step1:status": {
+ "type": "string",
+ "ex": "equalTo(., \"died\")"
+ }
+ }
+ },
+ {
+ "key": "time_of_death",
+ "type": "time_picker",
+ "hint": "Time of death",
+ "openmrs_entity_id": "time_of_death",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "step1:status": {
+ "type": "string",
+ "ex": "equalTo(., \"died\")"
+ }
+ }
+ },
+ {
+ "key": "mode_of_delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mode_of_delivery",
+ "label": "Mode of delivery",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "spontaneous_vaginal_delivery",
+ "text": "Spontaneous vertex delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "spontaneous_vaginal_delivery"
+ },
+ {
+ "key": "vacuum_extraction",
+ "text": "Vacuum Extraction",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "vacuum_extraction"
+ },
+ {
+ "key": "breech_delivery",
+ "text": "Breech Delivery",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "breech_delivery"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "delivery_place",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_place",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "hint": "Place of delivery",
+ "values": [
+ "At a health facility (HF)",
+ "Birth before Arrival (BBA)",
+ "Home delivery",
+ "Traditional birth attendant (TBA)"
+ ],
+ "keys": [
+ "at_a_health_facility",
+ "bba",
+ "at_home",
+ "tba"
+ ],
+ "openmrs_choice_ids": {
+ "at_a_health_facility": "at_a_health_facility",
+ "bba": "bba",
+ "at_home": "at_home",
+ "tba": "tba"
+ }
+ },
+ {
+ "key": "designation_of_delivery_personnel",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "designation_of_delivery_personnel",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "hint": "Designation of Delivery Person",
+ "values": [
+ "Obstetrician",
+ "Gynecologist",
+ "Medical doctor",
+ "Assistant Nurse officer",
+ "Clinical officer",
+ "Midwife officer",
+ "Enrolled Nurse",
+ "Student"
+ ],
+ "keys": [
+ "obstetrician",
+ "gynecologist",
+ "medical_doctor",
+ "assistant_nurse_officer",
+ "clinical_officer",
+ "midwife_officer",
+ "enrolled_nurse",
+ "student"
+ ],
+ "openmrs_choice_ids": {
+ "medical_doctor": "medical_doctor",
+ "obstetrician": "obstetrician",
+ "assistant_midwife_officer": "assistant_midwife_officer",
+ "clinical_officer": "clinical_officer",
+ "midwife_officer": "midwife_officer",
+ "gynecologist": "gynecologist",
+ "nurse": "nurse",
+ "student": "student"
+ },
+ "relevance": {
+ "step1:delivery_place": {
+ "type": "string",
+ "ex": "equalTo(., \"at_a_health_facility\")"
+ }
+ }
+ },
+ {
+ "key": "name_of_delivery_person",
+ "type": "edit_text",
+ "hint": "Name of delivery personnel",
+ "openmrs_entity_id": "name_of_delivery_person",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "step1:delivery_place": {
+ "type": "string",
+ "ex": "equalTo(., \"at_a_health_facility\")"
+ }
+ }
+ },
+ {
+ "key": "supervised_by_occupation",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "supervised_by_occupation",
+ "openmrs_data_type": "select one",
+ "type": "spinner",
+ "hint": "Supervision by",
+ "values": [
+ "Medical doctor",
+ "Obstetrician",
+ "Assistant midwife officer",
+ "Clinical officer",
+ "Midwife officer",
+ "Gynecologist",
+ "Nurse"
+ ],
+ "keys": [
+ "medical_doctor",
+ "obstetrician",
+ "assistant_midwife_officer",
+ "clinical_officer",
+ "midwife_officer",
+ "gynecologist",
+ "nurse"
+ ],
+ "openmrs_choice_ids": {
+ "medical_doctor": "medical_doctor",
+ "obstetrician": "obstetrician",
+ "assistant_midwife_officer": "assistant_midwife_officer",
+ "clinical_officer": "clinical_officer",
+ "midwife_officer": "midwife_officer",
+ "gynecologist": "gynecologist",
+ "nurse": "nurse"
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mother_status_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "name_of_supervising_person",
+ "type": "edit_text",
+ "hint": "Name of supervisor",
+ "openmrs_entity_id": "name_of_supervising_person",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mother_status_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "number_of_children_born",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_children_born",
+ "type": "edit_text",
+ "hint": "Number of Children Born",
+ "v_numeric_integer": {
+ "value": "true",
+ "err": "Please enter a valid number"
+ },
+ "v_max": {
+ "value": "5",
+ "err": "The number of children born should be equal or less than 5"
+ },
+ "v_min": {
+ "value": "1",
+ "err": "The number of children born should greater than 0"
+ }
+ },
+ {
+ "key": "delivery_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "delivery_date",
+ "type": "date_picker",
+ "hint": "Delivery Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Please select the delivery date"
+ }
+ },
+ {
+ "key": "delivery_time",
+ "type": "time_picker",
+ "hint": "Delivery Time",
+ "openmrs_entity_id": "delivery_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please select the delivery time"
+ }
+ },
+ {
+ "key": "mother_status_module_status",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "mother_status_module_status",
+ "type": "hidden",
+ "value": "PENDING"
+ },
+ {
+ "key": "labour_duration",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "labour_duration",
+ "label": "Labour information/conditions",
+ "type": "hidden"
+ },
+ {
+ "key": "labour_stage",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "labour_stage",
+ "type": "hidden",
+ "value": "complete"
+ },
+ {
+ "key": "hiv",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hiv",
+ "type": "edit_text",
+ "hidden": true
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mother_well_being.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mother_well_being.json
new file mode 100644
index 0000000000..2a84c7ae36
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_mother_well_being.json
@@ -0,0 +1,436 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "LD Partograph : Mother Well-being",
+ "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"
+ },
+ "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": "Well-being of Mother",
+ "fields": [
+ {
+ "key": "contraction_every_half_hour_label",
+ "type": "label",
+ "text": "Pulse rate (Every half an hour)",
+ "text_size": "7sp",
+ "text_color": "#000000",
+ "label_text_style": "bold",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": ""
+ },
+ {
+ "key": "pulse_rate",
+ "type": "edit_text",
+ "hint": "Pulse Rate (Beats per minute)",
+ "openmrs_entity_id": "pulse_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the pulse rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The pulse rate must be equal or greater than 0 (bpm)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "The pulse rate must be equal or less than 200 (bpm)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please input the pulse rate"
+ }
+ },
+ {
+ "key": "prompt_for_Bradycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of bradycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Bradycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"60\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_Tachycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of tachycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Tachycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"100\")"
+ }
+ }
+ },
+ {
+ "key": "respiratory_rate",
+ "type": "edit_text",
+ "hint": "Respiratory Rate (Breaths per minute)",
+ "openmrs_entity_id": "respiratory_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the respiratory rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The respiratory rate must be equal or greater than 0 (Breaths per minute)"
+ },
+ "v_max": {
+ "value": "100",
+ "err": "The respiratory rate must be equal or less than 100 (Breaths per minute)"
+ }
+ },
+ {
+ "key": "prompt_for_respiratory_rate",
+ "type": "toaster_notes",
+ "text": "Manage according to SOP and National guideline",
+ "openmrs_entity_id": "prompt_for_respiratory_rate",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mother_wellbeing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "temperature",
+ "type": "edit_text",
+ "hint": "Temperature (\u2103)",
+ "openmrs_entity_id": "temperature",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the temperature"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Temperature must be equal or greater than 10"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Temperature must be equal or less than 50"
+ }
+ },
+ {
+ "key": "notify_client_has_fever",
+ "type": "toaster_notes",
+ "text": "Conduct relevant laboratory tests to elicit the cause of fever and manage according to standard guidelines ",
+ "openmrs_entity_id": "notify_client_has_fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"37.8\")"
+ }
+ }
+ },
+ {
+ "key": "notify_client_has_hypothermia",
+ "type": "toaster_notes",
+ "text": "Manage the hypothermia according to standard guidelines",
+ "openmrs_entity_id": "notify_client_has_hypothermia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"36.5\")"
+ }
+ }
+ },
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Blood Pressure)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the systolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Systolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Systolic value must be equal or less than 320"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Blood Pressure)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the diastolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Diastolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Diastolic value must be equal or less than 200"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "The diastolic value must be less than the systolic value"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Manage the hypertension according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mother_wellbeing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of hypotension and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mother_wellbeing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "urine_protein",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "urine_protein",
+ "label": "Urine Protein",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "nil",
+ "text": "Nil",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "nil"
+ },
+ {
+ "key": "+",
+ "text": "+",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+"
+ },
+ {
+ "key": "++",
+ "text": "++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "++"
+ },
+ {
+ "key": "+++",
+ "text": "+++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+++"
+ },
+ {
+ "key": "not_tested",
+ "text": "Not Tested",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_tested"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_protein",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mother_wellbeing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "urine_acetone",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "urine_acetone",
+ "label": "Urine Acetone",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "nil",
+ "text": "Nil",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "nil"
+ },
+ {
+ "key": "+",
+ "text": "+",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+"
+ },
+ {
+ "key": "++",
+ "text": "++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "++"
+ },
+ {
+ "key": "+++",
+ "text": "+++",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "+++"
+ },
+ {
+ "key": "not_tested",
+ "text": "Not Tested",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "not_tested"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_acetone",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_mother_wellbeing_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "urine_volume",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "urine_volume",
+ "text_color": "#000000",
+ "type": "edit_text",
+ "hint": "Urine Volume(Output) in mls",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the urine volume"
+ }
+ },
+ {
+ "key": "oral_intake",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "oral_intake",
+ "text_color": "#000000",
+ "type": "edit_text",
+ "hint": "Oral Intake (mls)",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the oral intake"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_partograph_time.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_partograph_time.json
new file mode 100644
index 0000000000..939a636c7c
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_partograph_time.json
@@ -0,0 +1,128 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Partograph Period",
+ "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"
+ },
+ "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": ""
+ }
+ },
+ "global": {},
+ "step1": {
+ "title": "Partograph Time",
+ "fields": [
+ {
+ "key": "name_of_the_health_care_provider",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "name_of_the_health_care_provider",
+ "type": "edit_text",
+ "edit_type": "name",
+ "hint": "Name of the Healthcare Provider Conducting the Partograph Session",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter a valid name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please specify the name of the healthcare provider."
+ }
+ },
+ {
+ "key": "partograph_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "partograph_date",
+ "type": "date_picker",
+ "hint": "Partograph Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today"
+ },
+ {
+ "key": "last_partograph_monitoring_time",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_partograph_monitoring_time",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_partograph_monitoring_time_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "thirty_minutes_ago",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "thirty_minutes_ago",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_partograph_monitoring_time_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "partograph_time",
+ "type": "time_picker",
+ "hint": "Partograph Time",
+ "openmrs_entity_id": "partograph_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "constraints": [
+ {
+ "type": "time",
+ "ex": "greaterThan(., step1:last_partograph_monitoring_time)",
+ "err": "The partograph monitoring time cannot be before the last partograph time"
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_past_obstetric_history.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_past_obstetric_history.json
new file mode 100644
index 0000000000..34afaf7592
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_past_obstetric_history.json
@@ -0,0 +1,66 @@
+{
+ "validate_on_submit": true,
+ "count": "1",
+ "encounter_type": "Past Obstetric History",
+ "entity_id": "",
+ "relational_id": "",
+ "form_version": "0.0.1",
+ "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"
+ },
+ "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": "Past Obstetric History",
+ "fields": [
+ {
+ "key": "para_1_obstetric_history",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "para_1_obstetric_history",
+ "text": "Para 1: Obstetric History",
+ "type": "expansion_panel",
+ "content_form": "labour_and_delivery_registration_past_obstetric_history_sub_form",
+ "container": "anc_test"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_placenta_and_membrane.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_placenta_and_membrane.json
new file mode 100644
index 0000000000..1ab7f759f8
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_placenta_and_membrane.json
@@ -0,0 +1,399 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "Placenta and Membrane",
+ "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"
+ },
+ "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": "Expulsion of the placenta and membranes",
+ "fields": [
+ {
+ "key": "method_used_to_remove_the_placenta",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "method_used_to_remove_the_placenta",
+ "label": "The method used to remove/deliver the placenta",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "control_cord_traction",
+ "text": "Control Cord Traction",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "control_cord_traction"
+ },
+ {
+ "key": "manual",
+ "text": "Manual",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "manual"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "placenta_and_membrane_expulsion",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "placenta_and_membrane_expulsion",
+ "label": "Expulsion of the Placenta and Membranes",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "complete_placenta",
+ "text": "Complete placenta",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "complete_placenta"
+ },
+ {
+ "key": "incomplete_placenta",
+ "text": "Incomplete placenta",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "incomplete_placenta"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "type_of_incomplete_placenta",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "type_of_incomplete_placenta",
+ "label": "Type of incomplete placenta",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "retained_product",
+ "text": "Retained Product",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "retained_product"
+ },
+ {
+ "key": "retained_placenta",
+ "text": "Retained Placenta",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "retained_placenta"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:placenta_and_membrane_expulsion": {
+ "type": "string",
+ "ex": "equalTo(., \"incomplete_placenta\")"
+ }
+ }
+ },
+ {
+ "key": "placenta_removed_by_hand",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "placenta_removed_by_hand",
+ "label": "Was the placenta/product removed by hand?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:placenta_and_membrane_expulsion": {
+ "type": "string",
+ "ex": "equalTo(., \"incomplete_placenta\")"
+ }
+ }
+ },
+ {
+ "key": "conducted_mva",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "conducted_mva",
+ "label": "MVA.D&C was conducted?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:placenta_removed_by_hand": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_placenta_and_membrane_expulsion",
+ "type": "toaster_notes",
+ "text": "Manage according to SOP and National guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:conducted_mva": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "administered_antibiotics",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "administered_antibiotics",
+ "label": "Was the client administered antibiotics?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:placenta_and_membrane_expulsion": {
+ "type": "string",
+ "ex": "equalTo(., \"incomplete_placenta\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_provision_of_antibiotics",
+ "type": "toaster_notes",
+ "text": "Provide the client with antibiotic",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:administered_antibiotics": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ },
+ {
+ "key": "removal_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "removal_date",
+ "type": "date_picker",
+ "hint": "Removal Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today",
+ "v_required": {
+ "value": true,
+ "err": "Removal date is required"
+ }
+ },
+ {
+ "key": "removal_duration",
+ "type": "edit_text",
+ "hint": "How long did it take to remove the placenta? (In minutes)",
+ "openmrs_entity_id": "removal_duration",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "edit_type": "number",
+ "v_required": {
+ "value": true,
+ "err": "Removal duration is required"
+ }
+ },
+ {
+ "key": "estimated_blood_loss",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "estimated_blood_loss",
+ "hint": "Estimated blood loss (mls)",
+ "text_color": "#000000",
+ "type": "edit_text",
+ "v_numeric": {
+ "value": true,
+ "err": "Please enter a valid number"
+ },
+ "v_min": {
+ "value": 0,
+ "err": "Please enter a valid number"
+ }
+ },
+ {
+ "key": "prompt_for_excessive_blood_loss",
+ "type": "toaster_notes",
+ "text": "Manage according to SOP and National guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:estimated_blood_loss": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"500\")"
+ }
+ }
+ },
+ {
+ "key": "provided_blood_transfusion",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "provided_blood_transfusion",
+ "label": "Provided blood transfusion?",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:estimated_blood_loss": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"500\")"
+ }
+ }
+ },
+ {
+ "key": "name_of_the_provider_who_removed_the_placenta",
+ "type": "edit_text",
+ "hint": "Name of the Provider who removed the placenta",
+ "openmrs_entity_id": "name_of_the_provider_who_removed_the_placenta",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please specify the name of the provider"
+ }
+ },
+ {
+ "key": "labour_stage",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "labour_stage",
+ "type": "hidden",
+ "value": 4
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_ppfp.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_ppfp.json
new file mode 100644
index 0000000000..cb977737cc
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_ppfp.json
@@ -0,0 +1,141 @@
+{
+ "validate_on_submit": true,
+ "show_errors_on_submit": false,
+ "count": "1",
+ "encounter_type": "PPFP",
+ "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"
+ },
+ "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": "Post-Partum Family Planning (PPFP)",
+ "fields": [
+ {
+ "key": "ppfp",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ppfp",
+ "label": "Post-Partum Family Planning (PPFP)",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ }
+ },
+ {
+ "key": "ppfp_method",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ppfp_method",
+ "label": "Post-Partum Family Planning (PPFP) Method",
+ "text_color": "#000000",
+ "type": "native_radio",
+ "options": [
+ {
+ "key": "iucd",
+ "text": "IUCD",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "iucd"
+ },
+ {
+ "key": "implants",
+ "text": "Implants",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "implants"
+ },
+ {
+ "key": "btl",
+ "text": "BTL",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "btl"
+ },
+ {
+ "key": "pop",
+ "text": "Progesterone only pills (POP)",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pop"
+ },
+ {
+ "key": "condom",
+ "text": "Condom",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "condom"
+ }
+ ],
+ "v_required": {
+ "value": true,
+ "err": "Please select an option"
+ },
+ "relevance": {
+ "step1:ppfp": {
+ "type": "string",
+ "ex": "equalTo(., \"yes\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_registration.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_registration.json
new file mode 100644
index 0000000000..042c37c764
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_registration.json
@@ -0,0 +1,1488 @@
+{
+ "count": "6",
+ "skip_blank_steps": true,
+ "encounter_type": "Labour and Delivery Registration",
+ "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"
+ },
+ "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": {
+ "next": "step2",
+ "title": "Triage",
+ "fields": [
+ {
+ "key": "systolic",
+ "type": "edit_text",
+ "hint": "Systolic (Blood Pressure)",
+ "openmrs_entity_id": "systolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the systolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Systolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "320",
+ "err": "Systolic value must be equal or less than 320"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the systolic value"
+ }
+ },
+ {
+ "key": "diastolic",
+ "type": "edit_text",
+ "hint": "Diastolic (Blood Pressure)",
+ "openmrs_entity_id": "diastolic",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the diastolic value"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Diastolic value must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "Diastolic value must be equal or less than 200"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the diastolic value"
+ },
+ "constraints": [
+ {
+ "type": "numeric",
+ "ex": "lessThan(., step1:systolic)",
+ "err": "The diastolic value must be less than the systolic value"
+ }
+ ]
+ },
+ {
+ "key": "prompt_for_management_of_hypertension",
+ "type": "toaster_notes",
+ "text": "Manage the hypertension according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypertension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_triage_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_management_of_hypotension",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of hypotension and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_management_of_hypotension",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_triage_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "pulse_rate",
+ "type": "edit_text",
+ "hint": "Pulse Rate (Beats per minute)",
+ "openmrs_entity_id": "pulse_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the pulse rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The pulse rate must be equal or greater than 0 (bpm)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "The pulse rate must be equal or less than 200 (bpm)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the pulse rate"
+ }
+ },
+ {
+ "key": "prompt_for_Bradycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of bradycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Bradycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"70\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_Tachycardia",
+ "type": "toaster_notes",
+ "text": "Elicit the cause of tachycardia and manage according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_Tachycardia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:pulse_rate": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"140\")"
+ }
+ }
+ },
+ {
+ "key": "respiratory_rate",
+ "type": "edit_text",
+ "hint": "Respiratory Rate (Breaths per minute)",
+ "openmrs_entity_id": "respiratory_rate",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the respiratory rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "The pulse rate must be equal or greater than 0 (Breaths per minute)"
+ },
+ "v_max": {
+ "value": "100",
+ "err": "The pulse rate must be equal or less than 100 (Breaths per minute)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the pulse rate"
+ }
+ },
+ {
+ "key": "fetal_heart_rate",
+ "type": "edit_text",
+ "hint": "Count Fetal Heart Rate (bpm)",
+ "openmrs_entity_id": "fetal_heart_rate",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the fetal heart rate"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Fetal heart rate must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "Fetal heart rate must be equal or less than 300"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the fetal heart rate"
+ }
+ },
+ {
+ "key": "prompt_for_fetal_distress",
+ "type": "toaster_notes",
+ "text": "Refer for further management",
+ "openmrs_entity_id": "prompt_for_fetal_distress",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_triage_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "temperature",
+ "type": "edit_text",
+ "hint": "Temperature (\u2103)",
+ "openmrs_entity_id": "temperature",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the temperature"
+ },
+ "v_min": {
+ "value": "10",
+ "err": "Temperature must be equal or greater than 10"
+ },
+ "v_max": {
+ "value": "50",
+ "err": "Temperature must be equal or less than 50"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the temperature"
+ }
+ },
+ {
+ "key": "notify_client_has_fever",
+ "type": "toaster_notes",
+ "text": "Conduct relevant laboratory tests to elicit the cause of fever and manage according to standard guidelines ",
+ "openmrs_entity_id": "notify_client_has_fever",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "greaterThan(.,\"37.8\")"
+ }
+ }
+ },
+ {
+ "key": "notify_client_has_hypothermia",
+ "type": "toaster_notes",
+ "text": "Manage the hypothermia according to standard guidelines",
+ "openmrs_entity_id": "notify_client_has_hypothermia",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:temperature": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"36.5\")"
+ }
+ }
+ },
+ {
+ "key": "weight",
+ "type": "edit_text",
+ "hint": "Weight (KG)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "weight",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the weight"
+ },
+ "v_min": {
+ "value": "20",
+ "err": "The weight must be equal or greater than 20 (KG)"
+ },
+ "v_max": {
+ "value": "300",
+ "err": "The weight must be equal or less than 300 (KG)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the weight"
+ }
+ },
+ {
+ "key": "height",
+ "type": "edit_text",
+ "hint": "Height (CM)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "height",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the height"
+ },
+ "v_min": {
+ "value": "60",
+ "err": "The height must be equal or greater than 60 (CM)"
+ },
+ "v_max": {
+ "value": "200",
+ "err": "The height must be equal or less than 200 (CM)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the height"
+ }
+ },
+ {
+ "key": "prompt_for_short_stature",
+ "type": "toaster_notes",
+ "text": "Counsel the client on her risk of obstructed labour and advise her to deliver at a health care facility",
+ "openmrs_entity_id": "prompt_for_short_stature",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:height": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"145\")"
+ }
+ }
+ },
+ {
+ "key": "bmi",
+ "type": "edit_text",
+ "hint": "Body Mass Index (BMI)",
+ "read_only": "true",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bmi",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the height"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please enter the height"
+ },
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_triage_calculation.yml"
+ }
+ }
+ },
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_triage_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "prompt_for_underweight",
+ "type": "toaster_notes",
+ "text": "Manage the undernourished client using standard guidelines",
+ "openmrs_entity_id": "prompt_for_underweight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "step1:bmi": {
+ "type": "numeric",
+ "ex": "lessThan(.,\"18.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_overweight",
+ "type": "toaster_notes",
+ "text": "Manage the overweight client using standard guidelines",
+ "openmrs_entity_id": "prompt_for_overweight",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step1:bmi": {
+ "type": "numeric",
+ "ex": "greaterThanEqualTo(.,\"29\")"
+ }
+ }
+ },
+ {
+ "key": "danger_signs",
+ "type": "check_box",
+ "label": "Danger signs present",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "danger_signs",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "bleeding_vag",
+ "text": "Bleeding Vaginally",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bleeding_vag"
+ },
+ {
+ "key": "severe_headache",
+ "text": "Severe Headache",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_headache"
+ },
+ {
+ "key": "severe_abdominal_pain",
+ "text": "Severe Abdominal Pain",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severely_abdominal_pain"
+ },
+ {
+ "key": "convulsion",
+ "text": "Convulsion",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "convulsion"
+ },
+ {
+ "key": "blurred_vision",
+ "text": "Blurred Vision",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blurred_vision"
+ },
+ {
+ "key": "severe_breathing_difficulty",
+ "text": "Severe Breathing Difficulty",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_breathing_difficulty"
+ },
+ {
+ "key": "unconscious",
+ "text": "Unconscious",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unconscious"
+ },
+ {
+ "key": "reduced_fetal_movement",
+ "text": "Reduced Fetal Movement",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reduced_fetal_movement"
+ },
+ {
+ "key": "dizziness",
+ "text": "Dizziness",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dizziness"
+ },
+ {
+ "key": "pale_anaemic",
+ "text": "Pale/Anaemic",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pale_anaemic"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the danger sings"
+ }
+ }
+ ]
+ },
+ "step2": {
+ "next": "step3",
+ "title": "True Labour",
+ "fields": [
+ {
+ "key": "true_labour",
+ "type": "check_box",
+ "label": "True labour?",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "true_labour",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "painful_uterine_contraction",
+ "text": "Painful, increasing frequency and duration",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "painful_uterine_contraction"
+ },
+ {
+ "key": "bloody_vaginal_discharge",
+ "text": "Show (Bloody mucoid vaginal discharge)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bloody_vaginal_discharge"
+ },
+ {
+ "key": "effacement_and_dilatation",
+ "text": "Effacement and dilatation of cervix",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "effacement_and_dilatation"
+ },
+ {
+ "key": "progressive_descent",
+ "text": "Progressive descent of the presenting part",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "progressive_descent"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select at least one"
+ }
+ }
+ ]
+ },
+ "step3": {
+ "next": "step4",
+ "title": "Admission Information",
+ "fields": [
+ {
+ "key": "admission_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "admission_date",
+ "type": "date_picker",
+ "hint": "Admission Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the admission date"
+ }
+ },
+ {
+ "key": "admission_time",
+ "type": "time_picker",
+ "hint": "Admission Time",
+ "openmrs_entity_id": "admission_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the admission time"
+ }
+ },
+ {
+ "key": "admitting_person_name",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "admitting_person_name",
+ "type": "edit_text",
+ "input_type": "name",
+ "hint": "Admitting Nurse/Doctor Name",
+ "v_regex": {
+ "value": "[A-Za-z\\u00C0-\\u017F\\s\\u00C0-\\u017F\\.\\-\\']*",
+ "err": "Please enter the admitting nurse/doctor's name"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the admitting nurse/doctor's name"
+ }
+ },
+ {
+ "key": "admission_place",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "admission_place",
+ "type": "edit_text",
+ "hint": "Admitted From",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the admission place"
+ }
+ },
+ {
+ "key": "admission_reason",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "admission_reason",
+ "type": "edit_text",
+ "hint": "Reason for Admission",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the admission reason"
+ }
+ },
+ {
+ "key": "reason_for_referral",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reason_for_referral",
+ "type": "edit_text",
+ "hint": "Reason for Referral/Management Received",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the referral/management reason"
+ }
+ },
+ {
+ "key": "danger_signs",
+ "type": "check_box",
+ "label": "Danger signs present",
+ "combine_checkbox_option_values": "true",
+ "openmrs_entity_id": "danger_signs",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "exclusive": [
+ "none"
+ ],
+ "options": [
+ {
+ "key": "bleeding_vag",
+ "text": "Bleeding Vaginally",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "bleeding_vag"
+ },
+ {
+ "key": "severe_headache",
+ "text": "Severe Headache",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_headache"
+ },
+ {
+ "key": "severe_abdominal_pain",
+ "text": "Severe Abdominal Pain",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severely_abdominal_pain"
+ },
+ {
+ "key": "convulsion",
+ "text": "Convulsion",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "convulsion"
+ },
+ {
+ "key": "blurred_vision",
+ "text": "Blurred Vision",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blurred_vision"
+ },
+ {
+ "key": "severe_breathing_difficulty",
+ "text": "Severe Breathing Difficulty",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "severe_breathing_difficulty"
+ },
+ {
+ "key": "unconscious",
+ "text": "Unconscious",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "unconscious"
+ },
+ {
+ "key": "reduced_fetal_movement",
+ "text": "Reduced Fetal Movement",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "reduced_fetal_movement"
+ },
+ {
+ "key": "dizziness",
+ "text": "Dizziness",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "dizziness"
+ },
+ {
+ "key": "none",
+ "text": "None",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "none"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select the danger sings"
+ }
+ },
+ {
+ "key": "danger_signs_present_toaster",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "type": "toaster_notes",
+ "text": "Manage the condition according to standard guideline",
+ "toaster_type": "problem",
+ "relevance": {
+ "step3:danger_signs": {
+ "ex-checkbox": [
+ {
+ "or": [
+ "bleeding_vag",
+ "severe_headache",
+ "unconscious",
+ "reduced_fetal_movement",
+ "dizziness",
+ "blurred_vision",
+ "severe_abdominal_pain",
+ "severe_breathing_difficulty",
+ "convulsion"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "step4": {
+ "next": "step5",
+ "title": "Obstetric History",
+ "fields": [
+ {
+ "key": "gravida",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gravida",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Gravida",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the gravida number"
+ },
+ "v_max": {
+ "value": "35",
+ "err": "Temperature must be equal or less than 50"
+ }
+ },
+ {
+ "key": "para",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "para",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Para",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the para number"
+ }
+ },
+ {
+ "key": "children_alive",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "children_alive",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of children alive",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number of children alive"
+ }
+ },
+ {
+ "key": "number_of_abortion",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "number_of_abortion",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of abortions",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the number of abortions"
+ }
+ },
+ {
+ "key": "last_menstrual_period",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "last_menstrual_period",
+ "type": "date_picker",
+ "hint": "Last Normal Menstrual Period (LNMP)",
+ "label_info_title": "LNMP",
+ "label_info_text": "LNMP = first day of Last Normal Menstrual Period. If the exact date is unknown, but the period of the month is known, use day 5 for beginning of the month, day 15 for middle of the month and day 25 for end of the month.",
+ "expanded": false,
+ "max_date": "today",
+ "min_date": "today-50w",
+ "v_required": {
+ "value": "true",
+ "err": "LMP required"
+ }
+ },
+ {
+ "key": "edd",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "edd",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_triage_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gest_age_note",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "",
+ "type": "edit_text",
+ "hint": "Gestational Age (GA) in Weeks",
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_triage_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "edd_note",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "",
+ "openmrs_entity_id": "",
+ "type": "edit_text",
+ "hint": "Expected Date of Delivery (EDD)",
+ "read_only": true,
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_triage_calculation.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "gest_age",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "gest_age",
+ "type": "hidden",
+ "calculation": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_triage_calculation.yml"
+ }
+ }
+ }
+ }
+ ]
+ },
+ "step5": {
+ "next": "step6",
+ "title": "ANC Clinic Findings",
+ "fields": [
+ {
+ "key": "visit_number",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "visit_number",
+ "type": "edit_text",
+ "edit_type": "number",
+ "hint": "Number of Visits",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the visit number"
+ }
+ },
+ {
+ "key": "ipt_doses",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ipt_doses",
+ "type": "edit_text",
+ "hint": "IPT Doses",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the ipt dose number"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "IPT dose must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "4",
+ "err": "IPT dose must be equal or less than 4"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the ipt dose number"
+ }
+ },
+ {
+ "key": "tt_doses",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "tt_doses",
+ "type": "edit_text",
+ "hint": "Td Doses",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the Td dose number"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "Td dose must be equal or greater than 0"
+ },
+ "v_max": {
+ "value": "5",
+ "err": "Td dose must be equal or less than 5"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the Td dose number"
+ }
+ },
+ {
+ "key": "itn_llin_used",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "itn_llin_used",
+ "type": "spinner",
+ "hint": "Was ITN/LLIN used?",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "hb_level",
+ "type": "edit_text",
+ "hint": "Last Measured HB Level (g/dl)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_level",
+ "openmrs_entity_parent": "",
+ "v_numeric": {
+ "value": "true",
+ "err": "Please enter the HB level"
+ },
+ "v_min": {
+ "value": "0",
+ "err": "HB level must be equal or greater than 0 (g/dl)"
+ },
+ "v_max": {
+ "value": "20",
+ "err": "HB level must be equal or less than 20 (g/dl)"
+ },
+ "v_required": {
+ "value": true,
+ "err": "Please provide a value"
+ }
+ },
+ {
+ "key": "management_provided_for_hb_level",
+ "type": "native_radio",
+ "label": "Was management provided for abnormal HB Level?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "management_provided_for_hb_level",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step5:hb_level": {
+ "type": "numeric",
+ "ex": "lessThanEqualTo(.,\"8.5\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_moderate_anaemia_management",
+ "type": "toaster_notes",
+ "text": "Manage the mild anaemia according to standard guidelines",
+ "openmrs_entity_id": "prompt_for_moderate_anaemia_management",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "toaster_type": "warning",
+ "relevance": {
+ "rules-engine": {
+ "ex-rules": {
+ "rules-file": "labour_and_delivery_triage_relevance.yml"
+ }
+ }
+ }
+ },
+ {
+ "key": "hb_test_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "hb_test_date",
+ "type": "date_picker",
+ "hint": "Last Measured HB Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the HB test date"
+ }
+ },
+ {
+ "key": "pmtct",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct",
+ "type": "native_radio",
+ "label": "PMTCT",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "chk_one",
+ "text": "1",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_one"
+ },
+ {
+ "key": "chk_two",
+ "text": "2",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "chk_two"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "management_provided_for_pmtct",
+ "type": "native_radio",
+ "label": "Was management provided for PMTCT?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "management_provided_for_pmtct",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step5:pmtct": {
+ "type": "string",
+ "ex": "equalTo(., \"chk_one\")"
+ }
+ }
+ },
+ {
+ "key": "pmtct_test_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "pmtct_test_date",
+ "type": "date_picker",
+ "hint": "Last PMTCT test Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the last PMTCT test date"
+ }
+ },
+ {
+ "key": "art_prescription",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "art_prescription",
+ "type": "native_radio",
+ "label": "ART/Prescription",
+ "label_text_style": "normal",
+ "text_color": "#C0C0C0",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "syphilis",
+ "type": "native_radio",
+ "label": "VDRL (Syphilis)",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "syphilis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "management_provided_for_syphilis",
+ "type": "native_radio",
+ "label": "Was management provided for syphilis?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "management_provided_for_syphilis",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step5:syphilis": {
+ "type": "string",
+ "ex": "equalTo(., \"positive\")"
+ }
+ }
+ },
+ {
+ "key": "blood_group",
+ "type": "spinner",
+ "hint": "Blood Group",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "blood_group",
+ "openmrs_entity_parent": "",
+ "values": [
+ "A",
+ "B",
+ "AB",
+ "O"
+ ],
+ "keys": [
+ "A",
+ "B",
+ "AB",
+ "O"
+ ],
+ "openmrs_choice_ids": {
+ "A": "A",
+ "B": "B",
+ "AB": "AB",
+ "O": "O"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please choose a blood group"
+ }
+ },
+ {
+ "key": "rh_factor",
+ "type": "native_radio",
+ "label": "Rh",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "rh_factor",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "positive",
+ "text": "Positive",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "positive"
+ },
+ {
+ "key": "negative",
+ "text": "Negative",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "negative"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ }
+ },
+ {
+ "key": "management_provided_for_rh",
+ "type": "native_radio",
+ "label": "Was management provided for negative RH?",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "management_provided_for_rh",
+ "openmrs_entity_parent": "",
+ "options": [
+ {
+ "key": "yes",
+ "text": "Yes",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "yes"
+ },
+ {
+ "key": "no",
+ "text": "No",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "no"
+ }
+ ],
+ "v_required": {
+ "value": "true",
+ "err": "Please answer this question"
+ },
+ "relevance": {
+ "step5:rh_factor": {
+ "type": "string",
+ "ex": "equalTo(., \"negative\")"
+ }
+ }
+ },
+ {
+ "key": "prompt_for_rh_negative",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step5:management_provided_for_rh": {
+ "type": "string",
+ "ex": "equalTo(., \"no\")"
+ }
+ }
+ }
+ ]
+ },
+ "step6": {
+ "title": "Current Labour",
+ "fields": [
+ {
+ "key": "labour_onset_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "labour_onset_date",
+ "type": "date_picker",
+ "hint": "Labour onset Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the labour onset date"
+ }
+ },
+ {
+ "key": "labour_onset_time",
+ "type": "time_picker",
+ "hint": "Labour onset Time",
+ "openmrs_entity_id": "labour_onset_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the labour onset time"
+ }
+ },
+ {
+ "key": "ruptured_membrane",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "ruptured_membrane",
+ "type": "spinner",
+ "hint": "Membrane ruptured?",
+ "values": [
+ "Yes",
+ "No"
+ ],
+ "keys": [
+ "Yes",
+ "No"
+ ],
+ "openmrs_choice_ids": {
+ "Yes": "Yes",
+ "No": "No"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "prompt_for_ruptured_membrane",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step6:ruptured_membrane": {
+ "type": "string",
+ "ex": "equalTo(., \"Yes\")"
+ }
+ }
+ },
+ {
+ "key": "membrane_ruptured_date",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "membrane_ruptured_date",
+ "type": "date_picker",
+ "hint": "Membrane rupture Date",
+ "expanded": false,
+ "min_date": "today-2y",
+ "max_date": "today",
+ "v_required": {
+ "value": "true",
+ "err": "Please enter the membrane rupture date"
+ },
+ "relevance": {
+ "step6:ruptured_membrane": {
+ "type": "string",
+ "ex": "equalTo(., \"Yes\")"
+ }
+ }
+ },
+ {
+ "key": "membrane_ruptured_time",
+ "type": "time_picker",
+ "hint": "Membrane rupture Time",
+ "openmrs_entity_id": "membrane_ruptured_time",
+ "openmrs_entity": "concept",
+ "openmrs_entity_parent": "",
+ "v_required": {
+ "value": true,
+ "err": "Please enter the membrane rupture time"
+ },
+ "relevance": {
+ "step6:ruptured_membrane": {
+ "type": "string",
+ "ex": "equalTo(., \"Yes\")"
+ }
+ }
+ },
+ {
+ "key": "fetal_movement",
+ "openmrs_entity_parent": "",
+ "openmrs_entity": "concept",
+ "openmrs_entity_id": "fetal_movement",
+ "type": "spinner",
+ "hint": "Fetal movement",
+ "values": [
+ "Present",
+ "Absent"
+ ],
+ "keys": [
+ "present",
+ "absent"
+ ],
+ "openmrs_choice_ids": {
+ "present": "present",
+ "absent": "absent"
+ },
+ "v_required": {
+ "value": "true",
+ "err": "Please select one"
+ }
+ },
+ {
+ "key": "prompt_for_fetal_movement",
+ "type": "toaster_notes",
+ "text": "Provide management according to SOP and Standard Guideline",
+ "openmrs_entity_id": "",
+ "openmrs_entity": "",
+ "openmrs_entity_parent": "",
+ "toaster_type": "problem",
+ "relevance": {
+ "step6:fetal_movement": {
+ "type": "string",
+ "ex": "equalTo(., \"absent\")"
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_registration_admission_information.json b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_registration_admission_information.json
new file mode 100644
index 0000000000..25f66cf686
--- /dev/null
+++ b/opensrp-chw-hf/src/main/assets/json.form/labour_and_delivery_registration_admission_information.json
@@ -0,0 +1,373 @@
+{
+ "count": "1",
+ "skip_blank_steps": true,
+ "encounter_type": "Labour and Delivery Registration Admission Information",
+ "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"
+ },
+ "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": "Admission Information",
+