diff --git a/android/app/gradle/wrapper/gradle-wrapper.properties b/android/app/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..8fc3bbec
--- /dev/null
+++ b/android/app/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Sun Sep 20 09:53:06 EEST 2020
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
diff --git a/android/app/gradlew b/android/app/gradlew
new file mode 100644
index 00000000..cccdd3d5
--- /dev/null
+++ b/android/app/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# 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
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$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=""
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# 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
+ ;;
+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"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ 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
+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
+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
+
+# 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\""
+ fi
+ i=$((i+1))
+ 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
+
+exec "$JAVACMD" "$@"
diff --git a/android/app/gradlew.bat b/android/app/gradlew.bat
new file mode 100644
index 00000000..f9553162
--- /dev/null
+++ b/android/app/gradlew.bat
@@ -0,0 +1,84 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@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=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling 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%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/android/app/local.properties b/android/app/local.properties
new file mode 100644
index 00000000..b29c63c9
--- /dev/null
+++ b/android/app/local.properties
@@ -0,0 +1,8 @@
+## This file must *NOT* be checked into Version Control Systems,
+# as it contains information specific to your local configuration.
+#
+# Location of the SDK. This is only used by Gradle.
+# For customization when using a Version Control System, please read the
+# header note.
+#Sun Sep 20 09:53:03 EEST 2020
+sdk.dir=/Users/erababah/Library/Android/sdk
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 884c7e09..f1a5a3f8 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -15,7 +15,8 @@
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/MainActivity.kt b/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/MainActivity.kt
index b8a87c8c..35ce314d 100644
--- a/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/MainActivity.kt
+++ b/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/MainActivity.kt
@@ -1,11 +1,36 @@
package com.cloud.diplomaticquarterapp
-import androidx.annotation.NonNull;
- import io.flutter.embedding.android.FlutterFragmentActivity
- import io.flutter.embedding.engine.FlutterEngine
- import io.flutter.plugins.GeneratedPluginRegistrant
+import android.content.ContentResolver
+import android.content.Context
+import android.media.RingtoneManager
+import io.flutter.embedding.android.FlutterActivity
+import io.flutter.embedding.engine.FlutterEngine
+import io.flutter.plugin.common.MethodCall
+import io.flutter.plugin.common.MethodChannel
+import io.flutter.plugins.GeneratedPluginRegistrant
-class MainActivity: FlutterFragmentActivity() {
- override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
- GeneratedPluginRegistrant.registerWith(flutterEngine);
- }
+class MainActivity : FlutterActivity() {
+ override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
+ GeneratedPluginRegistrant.registerWith(flutterEngine)
+ MethodChannel(flutterEngine.dartExecutor, "crossingthestreams.io/resourceResolver").setMethodCallHandler { call: MethodCall, result: MethodChannel.Result ->
+ if ("drawableToUri" == call.method) {
+ val resourceId = this@MainActivity.resources.getIdentifier(call.arguments as String, "drawable", this@MainActivity.packageName)
+ result.success(resourceToUriString(this@MainActivity.applicationContext, resourceId))
+ }
+ if ("getAlarmUri" == call.method) {
+ result.success(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM).toString())
+ }
+ }
+ }
+
+ companion object {
+ private fun resourceToUriString(context: Context, resId: Int): String {
+ return (ContentResolver.SCHEME_ANDROID_RESOURCE
+ + "://"
+ + context.resources.getResourcePackageName(resId)
+ + "/"
+ + context.resources.getResourceTypeName(resId)
+ + "/"
+ + context.resources.getResourceEntryName(resId))
+ }
+ }
}
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable/app_icon.png b/android/app/src/main/res/drawable/app_icon.png
new file mode 100644
index 00000000..c4cc798d
Binary files /dev/null and b/android/app/src/main/res/drawable/app_icon.png differ
diff --git a/android/app/src/main/res/drawable/food.png b/android/app/src/main/res/drawable/food.png
new file mode 100644
index 00000000..41b394d3
Binary files /dev/null and b/android/app/src/main/res/drawable/food.png differ
diff --git a/android/app/src/main/res/drawable/me.png b/android/app/src/main/res/drawable/me.png
new file mode 100644
index 00000000..ba75bc55
Binary files /dev/null and b/android/app/src/main/res/drawable/me.png differ
diff --git a/android/app/src/main/res/drawable/sample_large_icon.png b/android/app/src/main/res/drawable/sample_large_icon.png
new file mode 100644
index 00000000..f354ca23
Binary files /dev/null and b/android/app/src/main/res/drawable/sample_large_icon.png differ
diff --git a/android/app/src/main/res/drawable/secondary_icon.png b/android/app/src/main/res/drawable/secondary_icon.png
new file mode 100644
index 00000000..9de9ff41
Binary files /dev/null and b/android/app/src/main/res/drawable/secondary_icon.png differ
diff --git a/android/app/src/main/res/raw/keep.xml b/android/app/src/main/res/raw/keep.xml
new file mode 100644
index 00000000..944a7ace
--- /dev/null
+++ b/android/app/src/main/res/raw/keep.xml
@@ -0,0 +1,3 @@
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/raw/slow_spring_board.mp3 b/android/app/src/main/res/raw/slow_spring_board.mp3
new file mode 100644
index 00000000..60dbf979
Binary files /dev/null and b/android/app/src/main/res/raw/slow_spring_board.mp3 differ
diff --git a/assets/images/BloodChrt_EN.png b/assets/images/BloodChrt_EN.png
new file mode 100644
index 00000000..ac52957d
Binary files /dev/null and b/assets/images/BloodChrt_EN.png differ
diff --git a/assets/images/medical/active_medications.png b/assets/images/medical/active_medications.png
new file mode 100644
index 00000000..67122598
Binary files /dev/null and b/assets/images/medical/active_medications.png differ
diff --git a/assets/images/medical/ask_doctor_icon.png b/assets/images/medical/ask_doctor_icon.png
new file mode 100644
index 00000000..bcb1f279
Binary files /dev/null and b/assets/images/medical/ask_doctor_icon.png differ
diff --git a/assets/images/medical/check-in.png b/assets/images/medical/check-in.png
new file mode 100644
index 00000000..f6effbeb
Binary files /dev/null and b/assets/images/medical/check-in.png differ
diff --git a/assets/images/new-design/eye_measurement_icon.png b/assets/images/medical/eye_measurement_icon.png
similarity index 100%
rename from assets/images/new-design/eye_measurement_icon.png
rename to assets/images/medical/eye_measurement_icon.png
diff --git a/assets/images/medical/insurance_update_icon_.png b/assets/images/medical/insurance_update_icon_.png
new file mode 100644
index 00000000..0001bcd2
Binary files /dev/null and b/assets/images/medical/insurance_update_icon_.png differ
diff --git a/assets/images/medical/medical_reports_icon.png b/assets/images/medical/medical_reports_icon.png
new file mode 100644
index 00000000..ad9c9f7b
Binary files /dev/null and b/assets/images/medical/medical_reports_icon.png differ
diff --git a/assets/images/medical/monthly_reports_icon.png b/assets/images/medical/monthly_reports_icon.png
new file mode 100644
index 00000000..5d51e24c
Binary files /dev/null and b/assets/images/medical/monthly_reports_icon.png differ
diff --git a/assets/images/medical/my_allergies_icon.png b/assets/images/medical/my_allergies_icon.png
new file mode 100644
index 00000000..689b5321
Binary files /dev/null and b/assets/images/medical/my_allergies_icon.png differ
diff --git a/assets/images/medical/my_tracker_icon.png b/assets/images/medical/my_tracker_icon.png
new file mode 100644
index 00000000..1d46b859
Binary files /dev/null and b/assets/images/medical/my_tracker_icon.png differ
diff --git a/assets/images/medical/my_vaccines_icon.png b/assets/images/medical/my_vaccines_icon.png
new file mode 100644
index 00000000..23a7352b
Binary files /dev/null and b/assets/images/medical/my_vaccines_icon.png differ
diff --git a/assets/images/medical/sick_leaves_icons.png b/assets/images/medical/sick_leaves_icons.png
new file mode 100644
index 00000000..67a9c937
Binary files /dev/null and b/assets/images/medical/sick_leaves_icons.png differ
diff --git a/assets/images/medical/smartwatch_icon.png b/assets/images/medical/smartwatch_icon.png
new file mode 100644
index 00000000..c43fe468
Binary files /dev/null and b/assets/images/medical/smartwatch_icon.png differ
diff --git a/assets/images/medical/vital_signs.png b/assets/images/medical/vital_signs.png
new file mode 100644
index 00000000..7b642d6e
Binary files /dev/null and b/assets/images/medical/vital_signs.png differ
diff --git a/assets/images/new-design/allergiesDetails.png b/assets/images/new-design/allergiesDetails.png
new file mode 100644
index 00000000..fc268c9c
Binary files /dev/null and b/assets/images/new-design/allergiesDetails.png differ
diff --git a/assets/images/new-design/call.png b/assets/images/new-design/call.png
new file mode 100644
index 00000000..cf6713cb
Binary files /dev/null and b/assets/images/new-design/call.png differ
diff --git a/assets/images/new-design/navigate.png b/assets/images/new-design/navigate.png
new file mode 100644
index 00000000..99cfa09a
Binary files /dev/null and b/assets/images/new-design/navigate.png differ
diff --git a/assets/tracker/blood-pressure.png b/assets/tracker/blood-pressure.png
new file mode 100644
index 00000000..7aca3763
Binary files /dev/null and b/assets/tracker/blood-pressure.png differ
diff --git a/assets/tracker/blood-suger.png b/assets/tracker/blood-suger.png
new file mode 100644
index 00000000..76b1e448
Binary files /dev/null and b/assets/tracker/blood-suger.png differ
diff --git a/assets/tracker/devices.png b/assets/tracker/devices.png
new file mode 100644
index 00000000..f00f9d95
Binary files /dev/null and b/assets/tracker/devices.png differ
diff --git a/assets/tracker/weight.png b/assets/tracker/weight.png
new file mode 100644
index 00000000..385fcb81
Binary files /dev/null and b/assets/tracker/weight.png differ
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index 5ba52820..00000000
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,618 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
- 5A016D0DD1095D385566337C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AC606583E610E227F8186476 /* Pods_Runner.framework */; };
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- );
- name = "Embed Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 09DDD2020D673759BD0E86B8 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
- 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
- 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
- 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- A8949DBAE70E5B302D91F1DB /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
- AC606583E610E227F8186476 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- E2D9C922B5D0172FE487333D /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 97C146EB1CF9000F007C117D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5A016D0DD1095D385566337C /* Pods_Runner.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 0A1F078D9C068A8B18DE1EDB /* Pods */ = {
- isa = PBXGroup;
- children = (
- A8949DBAE70E5B302D91F1DB /* Pods-Runner.debug.xcconfig */,
- E2D9C922B5D0172FE487333D /* Pods-Runner.release.xcconfig */,
- 09DDD2020D673759BD0E86B8 /* Pods-Runner.profile.xcconfig */,
- );
- name = Pods;
- path = Pods;
- sourceTree = "";
- };
- 44EDA189DE1BB86E3A41BD4A /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- AC606583E610E227F8186476 /* Pods_Runner.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
- 9740EEB11CF90186004384FC /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 9740EEB31CF90195004384FC /* Generated.xcconfig */,
- );
- name = Flutter;
- sourceTree = "";
- };
- 97C146E51CF9000F007C117D = {
- isa = PBXGroup;
- children = (
- 9740EEB11CF90186004384FC /* Flutter */,
- 97C146F01CF9000F007C117D /* Runner */,
- 97C146EF1CF9000F007C117D /* Products */,
- 0A1F078D9C068A8B18DE1EDB /* Pods */,
- 44EDA189DE1BB86E3A41BD4A /* Frameworks */,
- );
- sourceTree = "";
- };
- 97C146EF1CF9000F007C117D /* Products */ = {
- isa = PBXGroup;
- children = (
- 97C146EE1CF9000F007C117D /* Runner.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 97C146F01CF9000F007C117D /* Runner */ = {
- isa = PBXGroup;
- children = (
- 97C146FA1CF9000F007C117D /* Main.storyboard */,
- 97C146FD1CF9000F007C117D /* Assets.xcassets */,
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
- 97C147021CF9000F007C117D /* Info.plist */,
- 97C146F11CF9000F007C117D /* Supporting Files */,
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
- );
- path = Runner;
- sourceTree = "";
- };
- 97C146F11CF9000F007C117D /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- );
- name = "Supporting Files";
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 97C146ED1CF9000F007C117D /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- B4860726BBF5BF6213BBC91C /* [CP] Check Pods Manifest.lock */,
- 9740EEB61CF901F6004384FC /* Run Script */,
- 97C146EA1CF9000F007C117D /* Sources */,
- 97C146EB1CF9000F007C117D /* Frameworks */,
- 97C146EC1CF9000F007C117D /* Resources */,
- 9705A1C41CF9048500538489 /* Embed Frameworks */,
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
- 72E9699567A7106FD141B9B3 /* [CP] Embed Pods Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Runner;
- productName = Runner;
- productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 97C146E61CF9000F007C117D /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 1020;
- ORGANIZATIONNAME = "";
- TargetAttributes = {
- 97C146ED1CF9000F007C117D = {
- CreatedOnToolsVersion = 7.3.1;
- LastSwiftMigration = 1100;
- };
- };
- };
- buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 9.3";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 97C146E51CF9000F007C117D;
- productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 97C146ED1CF9000F007C117D /* Runner */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 97C146EC1CF9000F007C117D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Thin Binary";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
- };
- 72E9699567A7106FD141B9B3 /* [CP] Embed Pods Frameworks */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
- "${PODS_ROOT}/../Flutter/Flutter.framework",
- "${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework",
- "${BUILT_PRODUCTS_DIR}/MTBBarcodeScanner/MTBBarcodeScanner.framework",
- "${BUILT_PRODUCTS_DIR}/PromisesObjC/FBLPromises.framework",
- "${BUILT_PRODUCTS_DIR}/Protobuf/protobuf.framework",
- "${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework",
- "${BUILT_PRODUCTS_DIR}/SwiftProtobuf/SwiftProtobuf.framework",
- "${BUILT_PRODUCTS_DIR}/TOCropViewController/TOCropViewController.framework",
- "${BUILT_PRODUCTS_DIR}/barcode_scan/barcode_scan.framework",
- "${BUILT_PRODUCTS_DIR}/connectivity/connectivity.framework",
- "${BUILT_PRODUCTS_DIR}/device_info/device_info.framework",
- "${BUILT_PRODUCTS_DIR}/flutter_flexible_toast/flutter_flexible_toast.framework",
- "${BUILT_PRODUCTS_DIR}/flutter_inappwebview/flutter_inappwebview.framework",
- "${BUILT_PRODUCTS_DIR}/flutter_local_notifications/flutter_local_notifications.framework",
- "${BUILT_PRODUCTS_DIR}/flutter_plugin_android_lifecycle/flutter_plugin_android_lifecycle.framework",
- "${BUILT_PRODUCTS_DIR}/hexcolor/hexcolor.framework",
- "${BUILT_PRODUCTS_DIR}/image_cropper/image_cropper.framework",
- "${BUILT_PRODUCTS_DIR}/image_picker/image_picker.framework",
- "${BUILT_PRODUCTS_DIR}/local_auth/local_auth.framework",
- "${BUILT_PRODUCTS_DIR}/manage_calendar_events/manage_calendar_events.framework",
- "${BUILT_PRODUCTS_DIR}/map_launcher/map_launcher.framework",
- "${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
- "${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
- "${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
- );
- name = "[CP] Embed Pods Frameworks";
- outputPaths = (
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MTBBarcodeScanner.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBLPromises.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/protobuf.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reachability.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftProtobuf.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/TOCropViewController.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/barcode_scan.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/connectivity.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/device_info.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_flexible_toast.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_inappwebview.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_local_notifications.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_plugin_android_lifecycle.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hexcolor.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/image_cropper.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/image_picker.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/local_auth.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/manage_calendar_events.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/map_launcher.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
- showEnvVarsInLog = 0;
- };
- 9740EEB61CF901F6004384FC /* Run Script */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Run Script";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
- };
- B4860726BBF5BF6213BBC91C /* [CP] Check Pods Manifest.lock */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
- "${PODS_ROOT}/Manifest.lock",
- );
- name = "[CP] Check Pods Manifest.lock";
- outputFileListPaths = (
- );
- outputPaths = (
- "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
- showEnvVarsInLog = 0;
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 97C146EA1CF9000F007C117D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C146FB1CF9000F007C117D /* Base */,
- );
- name = Main.storyboard;
- sourceTree = "";
- };
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C147001CF9000F007C117D /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 249021D3217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Profile;
- };
- 249021D4217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.cloud.diplomaticquarterapp;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Profile;
- };
- 97C147031CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 97C147041CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 97C147061CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.cloud.diplomaticquarterapp;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Debug;
- };
- 97C147071CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.cloud.diplomaticquarterapp;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147031CF9000F007C117D /* Debug */,
- 97C147041CF9000F007C117D /* Release */,
- 249021D3217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147061CF9000F007C117D /* Debug */,
- 97C147071CF9000F007C117D /* Release */,
- 249021D4217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 97C146E61CF9000F007C117D /* Project object */;
-}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 1d526a16..00000000
--- a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d98100..00000000
--- a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
deleted file mode 100644
index f9b0d7c5..00000000
--- a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- PreviewsEnabled
-
-
-
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
deleted file mode 100644
index a28140cf..00000000
--- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 21a3cc14..00000000
--- a/ios/Runner.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d98100..00000000
--- a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
deleted file mode 100644
index f9b0d7c5..00000000
--- a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- PreviewsEnabled
-
-
-
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
deleted file mode 100644
index 70693e4a..00000000
--- a/ios/Runner/AppDelegate.swift
+++ /dev/null
@@ -1,13 +0,0 @@
-import UIKit
-import Flutter
-
-@UIApplicationMain
-@objc class AppDelegate: FlutterAppDelegate {
- override func application(
- _ application: UIApplication,
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
- ) -> Bool {
- GeneratedPluginRegistrant.register(with: self)
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
- }
-}
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 8f1009c3..792eb95e 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -22,6 +22,8 @@
$(FLUTTER_BUILD_NUMBER)
LSRequiresIPhoneOS
+ NSCalendarsUsageDescription
+ We Need to access the calender to add reminder for you
UILaunchStoryboardName
LaunchScreen
UIMainStoryboardFile
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
deleted file mode 100644
index 308a2a56..00000000
--- a/ios/Runner/Runner-Bridging-Header.h
+++ /dev/null
@@ -1 +0,0 @@
-#import "GeneratedPluginRegistrant.h"
diff --git a/lib/config/config.dart b/lib/config/config.dart
index 90c37129..02b58b34 100644
--- a/lib/config/config.dart
+++ b/lib/config/config.dart
@@ -2,10 +2,11 @@ import 'dart:io';
import 'package:diplomaticquarterapp/models/Request.dart';
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
+import 'package:diplomaticquarterapp/widgets/mobile-no/mobile_no.dart';
const MAX_SMALL_SCREEN = 660;
-const BASE_URL = 'https://hmgwebservices.com/';
+const BASE_URL = 'https://uat.hmgwebservices.com/';
const GET_PROJECT = 'Services/Lists.svc/REST/GetProject';
@@ -67,6 +68,13 @@ const GET_FINDUS_REQUEST=
///LiveChat
const GET_LIVECHAT_REQUEST=
'Services/Patients.svc/REST/GetPatientICProjects';
+///BloodDenote
+const GET_CITIES_REQUEST=
+ 'Services/Lists.svc/REST/GetAllCities';
+
+///BloodDetails
+const GET_BLOOD_REQUEST=
+ 'services/PatientVarification.svc/REST/BloodDonation_GetBloodGroupDetails';
///Reports
@@ -80,7 +88,7 @@ const IS_LAST_APPOITMENT_RATED =
const GET_APPOINTMENT_DETAILS_BY_NO =
'Services/MobileNotifications.svc/REST/GetAppointmentDetailsByApptNo';
-const GET_QR_PARKING = '/Services/SWP.svc/REST/GetQRParkingByID';
+const GET_QR_PARKING = 'Services/SWP.svc/REST/GetQRParkingByID';
//const BASE_URL = 'https://hmgwebservices.com/'; // Production Environment
//const BASE_URL = 'https://hmgwebservices.com/Services'; // Production Environment
@@ -176,7 +184,7 @@ const CHANNEL = 3;
const GENERAL_ID = 'Cs2020@2016\$2958';
const IP_ADDRESS = '10.20.10.20';
const VERSION_ID = 5.6;
-const SETUP_ID = '91877';
+const SETUP_ID = '91877';
const LANGUAGE = 2;
const PATIENT_OUT_SA = 0;
const SESSION_ID = 'TMRhVmkGhOsvamErw';
@@ -210,6 +218,52 @@ const GET_PATIENT_INFO_BY_ID_AND_MOBILE_NUMBER = 'Services/Patients.svc/REST/AP_
const SEND_ACTIVATION_CODE_FOR_ADVANCE_PAYMENT = 'Services/Authentication.svc/REST/SendActivationCodeForAdvancePayment';
const CHECK_ACTIVATION_CODE_FOR_ADVANCE_PAYMENT = 'Services/Authentication.svc/REST/CheckActivationCodeForAdvancePayment';
+///My Trackers
+const GET_DIABETIC_RESULT_AVERAGE='Services/Patients.svc/REST/Patient_GetDiabeticResultAverage';
+const GET_DIABTEC_RESULT='Services/Patients.svc/REST/Patient_GetDiabtecResults';
+const ADD_DIABTEC_RESULT='Services/Patients.svc/REST/Patient_AddDiabtecResult';
+
+
+const GET_BLOOD_PRESSURE_RESULT_AVERAGE='Services/Patients.svc/REST/Patient_GetBloodPressureResultAverage';
+const GET_BLOOD_PRESSURE_RESULT='Services/Patients.svc/REST/Patient_GetBloodPressureResult';
+const ADD_BLOOD_PRESSURE_RESULT='Services/Patients.svc/REST/Patient_AddBloodPressureResult';
+
+const GET_WEIGHT_PRESSURE_RESULT_AVERAGE='Services/Patients.svc/REST/Patient_GetWeightMeasurementResultAverage';
+const GET_WEIGHT_PRESSURE_RESULT='Services/Patients.svc/REST/Patient_GetWeightMeasurementResult';
+const ADD_WEIGHT_PRESSURE_RESULT='Services/Patients.svc/REST/Patient_AddWeightMeasurementResult';
+
+
+const ADD_ACTIVE_PRESCRIPTIONS_REPORT_BY_PATIENT_ID='Services/Patients.svc/Rest/GetActivePrescriptionReportByPatientID';
+
+const GET_CALL_INFO_HOURS_RESULT = 'Services/Doctors.svc/REST/GetCallInfoHoursResult';
+const GET_CALL_REQUEST_TYPE_LOV = 'Services/Doctors.svc/REST/GetCallRequestType_LOV';
+const GET_DOCTOR_RESPONSE = 'Services/Patients.svc/REST/GetDoctorResponse';
+const UPDATE_READ_STATUS = 'Services/Patients.svc/REST/UpdateReadStatus';
+const INSERT_CALL_INFO = 'Services/Doctors.svc/REST/InsertCallInfo';
+
+const GET_PATIENT_ALLERGIES = 'Services/Patients.svc/REST/GetPatientAllergies';
+
+
+
+
+
+// H2O
+const H2O_GET_USER_PROGRESS = "Services/H2ORemainder.svc/REST/H2O_GetUserProgress";
+const H2O_INSERT_USER_ACTIVITY="Services/H2ORemainder.svc/REST/H2O_InsertUserActivity";
+
+
+
+
+
+//E_Referral Services
+
+const GET_ALL_RELATIONSHIP_TYPES = "Services/Patients.svc/REST/GetAllRelationshipTypes";
+const SEND_ACTIVATION_CODE_FOR_E_REFERRAL = 'Services/Authentication.svc/REST/SendActivationCodeForEReferral';
+const CHECK_ACTIVATION_CODE_FOR_E_REFERRAL = 'Services/Authentication.svc/REST/CheckActivationCodeForEReferral';
+const GET_ALL_CITIES = 'services/Lists.svc/rest/GetAllCities';
+const CREATE_E_REFERRAL = "Services/Patients.svc/REST/CreateEReferral";
+const GET_E_REFERRALS = "Services/Patients.svc/REST/GetEReferrals";
+
const TIMER_MIN = 10;
class AppGlobal {
diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart
index ac7ee547..40840423 100644
--- a/lib/config/localized_values.dart
+++ b/lib/config/localized_values.dart
@@ -430,7 +430,7 @@ const Map> localizedValues = {
"UpdateInsuranceSubtitle": {"en": "Card", "ar": "التأمين"},
"InsuranceApproval": {"en": "Insurance Approval", "ar": "موافقات"},
"InsuranceApprovalSubtitle": {"en": "Approvals", "ar": "موافقات التأمين"},
- "Allergies": {"en": "Approvals", "ar": "الحساسية"},
+ "Allergies": {"en": "Allergies", "ar": "الحساسية"},
"AllergiesSubtitle": {"en": "Diagnosed", "ar": "مسجلة"},
"MyVaccines": {"en": "My Vaccines", "ar": "تطعيماتي"},
"MyVaccinesSubtitle": {"en": "List", "ar": "قائمة"},
@@ -534,4 +534,38 @@ const Map> localizedValues = {
"en": "Please enter the verification code send to",
"ar": "الرجاء إدخال رمز التحقق المرسل إلى"
},
+ "EyeMeasurements":{"en":"Eye Measurements","ar":"قياسات النظر"},
+ "Measurements":{"en":"Measurements","ar":"قياسات"},
+ "Classes":{"en":"Classes","ar":"نظارات"},
+ "ContactLens":{"en":"Contact Lens","ar":"العدسات اللاصقة"},
+ "RightEye":{"en":"Right Eye","ar":"العين اليمين"},
+ "Sphere":{"en":"Sphere","ar":"القوة"},
+ "Cylinder":{"en":"Cylinder","ar":"الدائرية"},
+ "Axis":{"en":"Axis","ar":"المحاور"},
+ "Prism":{"en":"Prism","ar":"موشور"},
+ "VA":{"en":"Prism","ar":"المحاور"},
+ "LeftEye":{"en":"Left Eye","ar":"العين اليسرى"},
+ "Brand":{"en":"Brand","ar":"النوع"},
+ "Power":{"en":"Power","ar":"القوة"},
+ "Diameter":{"en":"Diameter","ar":"القطر"},
+ "Remarks":{"en":"Remarks","ar":"ملاحضات"},
+ "ActiveMedications":{"en":"Active Medications","ar":"ادويتي النشطة"},
+ "ExpDate":{"en":"Active Exp Date :","VA":"تاريخ الإنتهاء"},
+ "Route":{"en":"Route :","ar":"الطريقة"},
+ "Frequency":{"en":"Frequency :","ar":"المعدل"},
+ "DailyQuantity":{"en":"Daily Quantity :","ar":"جرعات يومية"},
+ "AddReminder":{"en":"Add Reminder","ar":"إضافة تذكير"},
+ "reminderDes":{"en":"Please select treatment start day and time to be notified when it\'s time to take the medicine","ar":" يرجى تحديد يوم بدء العلاج والوقت ليتم ارسال تنبيه عندما يحين الوقت لتناول الدواء"},
+ "StartDay":{"en":"Start Day","ar":"يوم البداية"},
+ "EndDay":{"en":"End Day","ar":"يوم الانتهاء"},
+ "Days":{"en":"Days ","ar":"أيام"},
+ "ScheduleTime":{"en":"Schedule time","ar":"الجدول الزمني"},
+ "AskDoctor":{"en":"Ask Doctor","ar":"اسأل طبيبك"},
+ "DoctorResponses":{"en":"Doctor Responses","ar":"ردود الأطباء"},
+ "New":{"en":"New","ar":"جديد"},
+ "All":{"en":"All","ar":"الكل"},
+ "QuestionHere":{"en":"Enter the question here...","ar":"اضف الاستفسار هنا"},
+ "ViewDoctorResponses":{"en":"View Doctor Responses","ar":"الاطلاع على ردود الأطباء"},
+
+
};
diff --git a/lib/core/model/AlHabibMedicalService/EReferral/check_activation_code_for_e_referral_request_model.dart b/lib/core/model/AlHabibMedicalService/EReferral/check_activation_code_for_e_referral_request_model.dart
new file mode 100644
index 00000000..3f26abe7
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/EReferral/check_activation_code_for_e_referral_request_model.dart
@@ -0,0 +1,57 @@
+class CheckActivationCodeForEReferralResponseModel {
+ String logInTokenID;
+ String activationCode;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+
+ CheckActivationCodeForEReferralResponseModel(
+ {this.logInTokenID,
+ this.activationCode,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID});
+
+ CheckActivationCodeForEReferralResponseModel.fromJson(
+ Map json) {
+ logInTokenID = json['LogInTokenID'];
+ activationCode = json['activationCode'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['LogInTokenID'] = this.logInTokenID;
+ data['activationCode'] = this.activationCode;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/EReferral/create_e_referral_request_model.dart b/lib/core/model/AlHabibMedicalService/EReferral/create_e_referral_request_model.dart
new file mode 100644
index 00000000..e13de327
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/EReferral/create_e_referral_request_model.dart
@@ -0,0 +1,153 @@
+class CreateEReferralRequestModel {
+ bool isInsuredPatient;
+ String cityCode;
+ String cityName;
+ String requesterName;
+ String requesterContactNo;
+ int requesterRelationship;
+ String otherRelationship;
+ String fullName;
+ int identificationNo;
+ String patientMobileNumber;
+ int preferredBranchCode;
+ String preferredBranchName;
+ List medicalReportAttachment;
+ dynamic insuranceCardAttachment;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int patientID;
+ String tokenID;
+ int patientTypeID;
+ int patientType;
+
+ CreateEReferralRequestModel(
+ {this.isInsuredPatient,
+ this.cityCode,
+ this.cityName,
+ this.requesterName,
+ this.requesterContactNo,
+ this.requesterRelationship,
+ this.otherRelationship,
+ this.fullName,
+ this.identificationNo,
+ this.patientMobileNumber,
+ this.preferredBranchCode,
+ this.preferredBranchName,
+ this.medicalReportAttachment,
+ this.insuranceCardAttachment,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.patientID,
+ this.tokenID,
+ this.patientTypeID,
+ this.patientType});
+
+ CreateEReferralRequestModel.fromJson(Map json) {
+ isInsuredPatient = json['IsInsuredPatient'];
+ cityCode = json['CityCode'];
+ cityName = json['CityName'];
+ requesterName = json['RequesterName'];
+ requesterContactNo = json['RequesterContactNo'];
+ requesterRelationship = json['RequesterRelationship'];
+ otherRelationship = json['OtherRelationship'];
+ fullName = json['FullName'];
+ identificationNo = json['IdentificationNo'];
+ patientMobileNumber = json['PatientMobileNumber'];
+ preferredBranchCode = json['PreferredBranchCode'];
+ preferredBranchName = json['PreferredBranchName'];
+ if (json['MedicalReportAttachment'] != null) {
+ medicalReportAttachment = new List();
+ json['MedicalReportAttachment'].forEach((v) {
+ medicalReportAttachment.add(new EReferralAttachment.fromJson(v));
+ });
+ }
+ insuranceCardAttachment = json['InsuranceCardAttachment'] != null
+ ? new EReferralAttachment.fromJson(json['InsuranceCardAttachment'])
+ : null;
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ patientID = json['PatientID'];
+ tokenID = json['TokenID'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['IsInsuredPatient'] = this.isInsuredPatient;
+ data['CityCode'] = this.cityCode;
+ data['CityName'] = this.cityName;
+ data['RequesterName'] = this.requesterName;
+ data['RequesterContactNo'] = this.requesterContactNo;
+ data['RequesterRelationship'] = this.requesterRelationship;
+ data['OtherRelationship'] = this.otherRelationship;
+ data['FullName'] = this.fullName;
+ data['IdentificationNo'] = this.identificationNo;
+ data['PatientMobileNumber'] = this.patientMobileNumber;
+ data['PreferredBranchCode'] = this.preferredBranchCode;
+ data['PreferredBranchName'] = this.preferredBranchName;
+ if (this.medicalReportAttachment != null) {
+ data['MedicalReportAttachment'] =
+ this.medicalReportAttachment.map((v) => v.toJson()).toList();
+ }
+ if (this.insuranceCardAttachment == null) {
+ data['InsuranceCardAttachment'] = {};
+ } else
+ data['InsuranceCardAttachment'] = this.insuranceCardAttachment.toJson();
+
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['PatientID'] = this.patientID;
+ data['TokenID'] = this.tokenID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ return data;
+ }
+}
+
+class EReferralAttachment {
+ String fileName;
+ String base64String;
+
+ EReferralAttachment({this.fileName, this.base64String});
+
+ EReferralAttachment.fromJson(Map json) {
+ fileName = json['FileName'];
+ base64String = json['Base64String'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['FileName'] = this.fileName;
+ data['Base64String'] = this.base64String;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/EReferral/get_all_cities_request_model.dart b/lib/core/model/AlHabibMedicalService/EReferral/get_all_cities_request_model.dart
new file mode 100644
index 00000000..dd46a48b
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/EReferral/get_all_cities_request_model.dart
@@ -0,0 +1,48 @@
+class GetAllCitiesRequestModel {
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+
+ GetAllCitiesRequestModel(
+ {this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID});
+
+ GetAllCitiesRequestModel.fromJson(Map json) {
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/EReferral/get_all_cities_response_model.dart b/lib/core/model/AlHabibMedicalService/EReferral/get_all_cities_response_model.dart
new file mode 100644
index 00000000..224cb84d
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/EReferral/get_all_cities_response_model.dart
@@ -0,0 +1,21 @@
+class GetAllCitiesResponseModel {
+ int iD;
+ String description;
+ String descriptionN;
+
+ GetAllCitiesResponseModel({this.iD, this.description, this.descriptionN});
+
+ GetAllCitiesResponseModel.fromJson(Map json) {
+ iD = json['ID'];
+ description = json['Description'];
+ descriptionN = json['DescriptionN'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ID'] = this.iD;
+ data['Description'] = this.description;
+ data['DescriptionN'] = this.descriptionN;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/EReferral/get_all_relationship_types_request_model.dart b/lib/core/model/AlHabibMedicalService/EReferral/get_all_relationship_types_request_model.dart
new file mode 100644
index 00000000..10eb03de
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/EReferral/get_all_relationship_types_request_model.dart
@@ -0,0 +1,48 @@
+class GetAllRelationshipTypeRequestModel {
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+
+ GetAllRelationshipTypeRequestModel(
+ {this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID});
+
+ GetAllRelationshipTypeRequestModel.fromJson(Map json) {
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/EReferral/get_all_relationship_types_response_model.dart b/lib/core/model/AlHabibMedicalService/EReferral/get_all_relationship_types_response_model.dart
new file mode 100644
index 00000000..997e3f3c
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/EReferral/get_all_relationship_types_response_model.dart
@@ -0,0 +1,25 @@
+class GetAllRelationshipTypeResponseModel {
+ int iD;
+ String text;
+ String textAr;
+ String textEn;
+
+ GetAllRelationshipTypeResponseModel(
+ {this.iD, this.text, this.textAr, this.textEn});
+
+ GetAllRelationshipTypeResponseModel.fromJson(Map json) {
+ iD = json['ID'];
+ text = json['Text'];
+ textAr = json['Text_Ar'];
+ textEn = json['Text_En'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ID'] = this.iD;
+ data['Text'] = this.text;
+ data['Text_Ar'] = this.textAr;
+ data['Text_En'] = this.textEn;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/EReferral/search_criteria_model.dart b/lib/core/model/AlHabibMedicalService/EReferral/search_criteria_model.dart
new file mode 100644
index 00000000..3ddbe331
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/EReferral/search_criteria_model.dart
@@ -0,0 +1,21 @@
+class SearchCriteriaModel {
+ String name;
+ String nameAr;
+ int value;
+
+ SearchCriteriaModel({this.name, this.nameAr, this.value});
+
+ SearchCriteriaModel.fromJson(Map json) {
+ name = json['name'];
+ nameAr = json['name_ar'];
+ value = json['value'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['name'] = this.name;
+ data['name_ar'] = this.nameAr;
+ data['value'] = this.value;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/EReferral/search_e_referral_request_model.dart b/lib/core/model/AlHabibMedicalService/EReferral/search_e_referral_request_model.dart
new file mode 100644
index 00000000..b06ce8e7
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/EReferral/search_e_referral_request_model.dart
@@ -0,0 +1,60 @@
+class SearchEReferralRequestModel {
+ String patientMobileNumber;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int referralNumber;
+ String identificationNo;
+
+ SearchEReferralRequestModel(
+ {this.patientMobileNumber,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.referralNumber,
+ this.identificationNo});
+
+ SearchEReferralRequestModel.fromJson(Map json) {
+ patientMobileNumber = json['PatientMobileNumber'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ referralNumber = json['ReferralNumber'];
+ identificationNo = json['IdentificationNo'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientMobileNumber'] = this.patientMobileNumber;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['ReferralNumber'] = this.referralNumber;
+ data['IdentificationNo'] = this.identificationNo;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/EReferral/search_e_referral_response_model.dart b/lib/core/model/AlHabibMedicalService/EReferral/search_e_referral_response_model.dart
new file mode 100644
index 00000000..801d8e13
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/EReferral/search_e_referral_response_model.dart
@@ -0,0 +1,60 @@
+class SearchEReferralResponseModel {
+ String patientMobileNumber;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int referralNumber;
+ String identificationNo;
+
+ SearchEReferralResponseModel(
+ {this.patientMobileNumber,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.referralNumber,
+ this.identificationNo});
+
+ SearchEReferralResponseModel.fromJson(Map json) {
+ patientMobileNumber = json['PatientMobileNumber'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ referralNumber = json['ReferralNumber'];
+ identificationNo = json['IdentificationNo'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientMobileNumber'] = this.patientMobileNumber;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['ReferralNumber'] = this.referralNumber;
+ data['IdentificationNo'] = this.identificationNo;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/EReferral/send_activation_code_for_e_referral_request_model.dart b/lib/core/model/AlHabibMedicalService/EReferral/send_activation_code_for_e_referral_request_model.dart
new file mode 100644
index 00000000..622ef143
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/EReferral/send_activation_code_for_e_referral_request_model.dart
@@ -0,0 +1,57 @@
+class SendActivationCodeForEReferralRequestModel {
+ int patientMobileNumber;
+ String zipCode;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+
+ SendActivationCodeForEReferralRequestModel(
+ {this.patientMobileNumber,
+ this.zipCode,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID});
+
+ SendActivationCodeForEReferralRequestModel.fromJson(
+ Map json) {
+ patientMobileNumber = json['PatientMobileNumber'];
+ zipCode = json['ZipCode'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientMobileNumber'] = this.patientMobileNumber;
+ data['ZipCode'] = this.zipCode;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/insert_user_activity_request_model.dart b/lib/core/model/AlHabibMedicalService/insert_user_activity_request_model.dart
new file mode 100644
index 00000000..2d27729b
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/insert_user_activity_request_model.dart
@@ -0,0 +1,76 @@
+class InsertUserActivityRequestModel {
+ String identificationNo;
+ String mobileNumber;
+ int quantityIntake;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int patientID;
+ String tokenID;
+ int patientTypeID;
+ int patientType;
+
+ InsertUserActivityRequestModel(
+ {this.identificationNo,
+ this.mobileNumber,
+ this.quantityIntake,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.patientID,
+ this.tokenID,
+ this.patientTypeID,
+ this.patientType});
+
+ InsertUserActivityRequestModel.fromJson(Map json) {
+ identificationNo = json['IdentificationNo'];
+ mobileNumber = json['MobileNumber'];
+ quantityIntake = json['QuantityIntake'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ patientID = json['PatientID'];
+ tokenID = json['TokenID'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['IdentificationNo'] = this.identificationNo;
+ data['MobileNumber'] = this.mobileNumber;
+ data['QuantityIntake'] = this.quantityIntake;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['PatientID'] = this.patientID;
+ data['TokenID'] = this.tokenID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/user_progress_for_month_data_model.dart b/lib/core/model/AlHabibMedicalService/user_progress_for_month_data_model.dart
new file mode 100644
index 00000000..a7f7805e
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/user_progress_for_month_data_model.dart
@@ -0,0 +1,22 @@
+class UserProgressForMonthDataModel {
+ int monthNumber;
+ String monthName;
+ int percentageConsumed;
+
+ UserProgressForMonthDataModel(
+ {this.monthNumber, this.monthName, this.percentageConsumed});
+
+ UserProgressForMonthDataModel.fromJson(Map json) {
+ monthNumber = json['MonthNumber'];
+ monthName = json['MonthName'];
+ percentageConsumed = json['PercentageConsumed'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['MonthNumber'] = this.monthNumber;
+ data['MonthName'] = this.monthName;
+ data['PercentageConsumed'] = this.percentageConsumed;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/user_progress_for_today_data_model.dart b/lib/core/model/AlHabibMedicalService/user_progress_for_today_data_model.dart
new file mode 100644
index 00000000..63c7093b
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/user_progress_for_today_data_model.dart
@@ -0,0 +1,28 @@
+class UserProgressForTodayDataModel {
+ dynamic quantityConsumed;
+ dynamic percentageConsumed;
+ dynamic percentageLeft;
+ dynamic quantityLimit;
+
+ UserProgressForTodayDataModel(
+ {this.quantityConsumed,
+ this.percentageConsumed,
+ this.percentageLeft,
+ this.quantityLimit});
+
+ UserProgressForTodayDataModel.fromJson(Map json) {
+ quantityConsumed = json['QuantityConsumed'];
+ percentageConsumed = json['PercentageConsumed'];
+ percentageLeft = json['PercentageLeft'];
+ quantityLimit = json['QuantityLimit'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['QuantityConsumed'] = this.quantityConsumed;
+ data['PercentageConsumed'] = this.percentageConsumed;
+ data['PercentageLeft'] = this.percentageLeft;
+ data['QuantityLimit'] = this.quantityLimit;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/user_progress_for_week_data_model.dart b/lib/core/model/AlHabibMedicalService/user_progress_for_week_data_model.dart
new file mode 100644
index 00000000..2641a678
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/user_progress_for_week_data_model.dart
@@ -0,0 +1,25 @@
+class UserProgressForWeekDataModel {
+ int dayNumber;
+ dynamic dayDate;
+ String dayName;
+ int percentageConsumed;
+
+ UserProgressForWeekDataModel(
+ {this.dayNumber, this.dayDate, this.dayName, this.percentageConsumed});
+
+ UserProgressForWeekDataModel.fromJson(Map json) {
+ dayNumber = json['DayNumber'];
+ dayDate = json['DayDate'];
+ dayName = json['DayName'];
+ percentageConsumed = json['PercentageConsumed'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['DayNumber'] = this.dayNumber;
+ data['DayDate'] = this.dayDate;
+ data['DayName'] = this.dayName;
+ data['PercentageConsumed'] = this.percentageConsumed;
+ return data;
+ }
+}
diff --git a/lib/core/model/AlHabibMedicalService/user_progress_request_model.dart b/lib/core/model/AlHabibMedicalService/user_progress_request_model.dart
new file mode 100644
index 00000000..d06e053b
--- /dev/null
+++ b/lib/core/model/AlHabibMedicalService/user_progress_request_model.dart
@@ -0,0 +1,76 @@
+class UserProgressRequestModel {
+ int progress;
+ String mobileNumber;
+ String identificationNo;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int patientID;
+ String tokenID;
+ int patientTypeID;
+ int patientType;
+
+ UserProgressRequestModel(
+ {this.progress,
+ this.mobileNumber,
+ this.identificationNo,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.patientID,
+ this.tokenID,
+ this.patientTypeID,
+ this.patientType});
+
+ UserProgressRequestModel.fromJson(Map json) {
+ progress = json['Progress'];
+ mobileNumber = json['MobileNumber'];
+ identificationNo = json['IdentificationNo'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ patientID = json['PatientID'];
+ tokenID = json['TokenID'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Progress'] = this.progress;
+ data['MobileNumber'] = this.mobileNumber;
+ data['IdentificationNo'] = this.identificationNo;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['PatientID'] = this.patientID;
+ data['TokenID'] = this.tokenID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ return data;
+ }
+}
diff --git a/lib/core/model/Allergy/Allergy.dart b/lib/core/model/Allergy/Allergy.dart
new file mode 100644
index 00000000..be71c7fe
--- /dev/null
+++ b/lib/core/model/Allergy/Allergy.dart
@@ -0,0 +1,48 @@
+class Allergy {
+ int patientID;
+ int allergyDiseaseType;
+ int allergyDiseaseID;
+ String description;
+ dynamic descriptionN;
+ dynamic remarks;
+ dynamic avgDoctorRatingList;
+ dynamic doctorRatingDetailsList;
+ dynamic notesDoctorRatingList;
+
+ Allergy(
+ {this.patientID,
+ this.allergyDiseaseType,
+ this.allergyDiseaseID,
+ this.description,
+ this.descriptionN,
+ this.remarks,
+ this.avgDoctorRatingList,
+ this.doctorRatingDetailsList,
+ this.notesDoctorRatingList});
+
+ Allergy.fromJson(Map json) {
+ patientID = json['PatientID'];
+ allergyDiseaseType = json['AllergyDiseaseType'];
+ allergyDiseaseID = json['AllergyDiseaseID'];
+ description = json['Description'];
+ descriptionN = json['DescriptionN'];
+ remarks = json['Remarks'];
+ avgDoctorRatingList = json['AvgDoctorRatingList'];
+ doctorRatingDetailsList = json['DoctorRatingDetailsList'];
+ notesDoctorRatingList = json['NotesDoctorRatingList'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientID'] = this.patientID;
+ data['AllergyDiseaseType'] = this.allergyDiseaseType;
+ data['AllergyDiseaseID'] = this.allergyDiseaseID;
+ data['Description'] = this.description;
+ data['DescriptionN'] = this.descriptionN;
+ data['Remarks'] = this.remarks;
+ data['AvgDoctorRatingList'] = this.avgDoctorRatingList;
+ data['DoctorRatingDetailsList'] = this.doctorRatingDetailsList;
+ data['NotesDoctorRatingList'] = this.notesDoctorRatingList;
+ return data;
+ }
+}
diff --git a/lib/core/model/active_medications/ActivePrescriptionReport.dart b/lib/core/model/active_medications/ActivePrescriptionReport.dart
new file mode 100644
index 00000000..866cb728
--- /dev/null
+++ b/lib/core/model/active_medications/ActivePrescriptionReport.dart
@@ -0,0 +1,146 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class ActivePrescriptionReport {
+ dynamic address;
+ int appointmentNo;
+ dynamic clinic;
+ dynamic companyName;
+ int days;
+ dynamic doctorName;
+ int doseDailyQuantity;
+ String frequency;
+ int frequencyNumber;
+ List image;
+ String imageExtension;
+ dynamic imageSRCUrl;
+ String imageString;
+ dynamic imageThumbUrl;
+ dynamic isCovered;
+ String itemDescription;
+ int itemID;
+ DateTime orderDate;
+ int patientID;
+ dynamic patientName;
+ dynamic phoneOffice1;
+ dynamic prescriptionQR;
+ int prescriptionTimes;
+ dynamic productImage;
+ String productImageBase64;
+ String productImageString;
+ int projectID;
+ dynamic projectName;
+ dynamic remarks;
+ String route;
+ String sKU;
+ int scaleOffset;
+ DateTime startDate;
+
+ ActivePrescriptionReport(
+ {this.address,
+ this.appointmentNo,
+ this.clinic,
+ this.companyName,
+ this.days,
+ this.doctorName,
+ this.doseDailyQuantity,
+ this.frequency,
+ this.frequencyNumber,
+ this.image,
+ this.imageExtension,
+ this.imageSRCUrl,
+ this.imageString,
+ this.imageThumbUrl,
+ this.isCovered,
+ this.itemDescription,
+ this.itemID,
+ this.orderDate,
+ this.patientID,
+ this.patientName,
+ this.phoneOffice1,
+ this.prescriptionQR,
+ this.prescriptionTimes,
+ this.productImage,
+ this.productImageBase64,
+ this.productImageString,
+ this.projectID,
+ this.projectName,
+ this.remarks,
+ this.route,
+ this.sKU,
+ this.scaleOffset,
+ this.startDate});
+
+ ActivePrescriptionReport.fromJson(Map json) {
+ address = json['Address'];
+ appointmentNo = json['AppointmentNo'];
+ clinic = json['Clinic'];
+ companyName = json['CompanyName'];
+ days = json['Days'];
+ doctorName = json['DoctorName'];
+ doseDailyQuantity = json['DoseDailyQuantity'];
+ frequency = json['Frequency'];
+ frequencyNumber = json['FrequencyNumber'];
+ image = json['Image'].cast();
+ imageExtension = json['ImageExtension'];
+ imageSRCUrl = json['ImageSRCUrl'];
+ imageString = json['ImageString'];
+ imageThumbUrl = json['ImageThumbUrl'];
+ isCovered = json['IsCovered'];
+ itemDescription = json['ItemDescription'];
+ itemID = json['ItemID'];
+ orderDate = DateUtil.convertStringToDate(json['OrderDate']);
+ patientID = json['PatientID'];
+ patientName = json['PatientName'];
+ phoneOffice1 = json['PhoneOffice1'];
+ prescriptionQR = json['PrescriptionQR'];
+ prescriptionTimes = json['PrescriptionTimes'];
+ productImage = json['ProductImage'];
+ productImageBase64 = json['ProductImageBase64'];
+ productImageString = json['ProductImageString'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ remarks = json['Remarks'];
+ route = json['Route'];
+ sKU = json['SKU'];
+ scaleOffset = json['ScaleOffset'];
+ startDate = DateUtil.convertStringToDate(json['StartDate']);
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Address'] = this.address;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['Clinic'] = this.clinic;
+ data['CompanyName'] = this.companyName;
+ data['Days'] = this.days;
+ data['DoctorName'] = this.doctorName;
+ data['DoseDailyQuantity'] = this.doseDailyQuantity;
+ data['Frequency'] = this.frequency;
+ data['FrequencyNumber'] = this.frequencyNumber;
+ data['Image'] = this.image;
+ data['ImageExtension'] = this.imageExtension;
+ data['ImageSRCUrl'] = this.imageSRCUrl;
+ data['ImageString'] = this.imageString;
+ data['ImageThumbUrl'] = this.imageThumbUrl;
+ data['IsCovered'] = this.isCovered;
+ data['ItemDescription'] = this.itemDescription;
+ data['ItemID'] = this.itemID;
+ data['OrderDate'] = this.orderDate;
+ data['PatientID'] = this.patientID;
+ data['PatientName'] = this.patientName;
+ data['PhoneOffice1'] = this.phoneOffice1;
+ data['PrescriptionQR'] = this.prescriptionQR;
+ data['PrescriptionTimes'] = this.prescriptionTimes;
+ data['ProductImage'] = this.productImage;
+ data['ProductImageBase64'] = this.productImageBase64;
+ data['ProductImageString'] = this.productImageString;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['Remarks'] = this.remarks;
+ data['Route'] = this.route;
+ data['SKU'] = this.sKU;
+ data['ScaleOffset'] = this.scaleOffset;
+ data['StartDate'] = this.startDate;
+ return data;
+ }
+}
diff --git a/lib/core/model/ask_doctor/AskDoctorReqTypes.dart b/lib/core/model/ask_doctor/AskDoctorReqTypes.dart
new file mode 100644
index 00000000..b306f97b
--- /dev/null
+++ b/lib/core/model/ask_doctor/AskDoctorReqTypes.dart
@@ -0,0 +1,92 @@
+class AskDoctorReqTypes {
+ dynamic setupID;
+ int parameterGroup;
+ int parameterType;
+ int parameterCode;
+ String description;
+ dynamic descriptionN;
+ dynamic alias;
+ dynamic aliasN;
+ dynamic prefix;
+ dynamic suffix;
+ dynamic isColorCodingRequired;
+ dynamic backColor;
+ dynamic foreColor;
+ bool isBuiltIn;
+ bool isActive;
+ int createdBy;
+ String createdOn;
+ dynamic editedBy;
+ dynamic editedOn;
+ dynamic rowVer;
+
+ AskDoctorReqTypes(
+ {this.setupID,
+ this.parameterGroup,
+ this.parameterType,
+ this.parameterCode,
+ this.description,
+ this.descriptionN,
+ this.alias,
+ this.aliasN,
+ this.prefix,
+ this.suffix,
+ this.isColorCodingRequired,
+ this.backColor,
+ this.foreColor,
+ this.isBuiltIn,
+ this.isActive,
+ this.createdBy,
+ this.createdOn,
+ this.editedBy,
+ this.editedOn,
+ this.rowVer});
+
+ AskDoctorReqTypes.fromJson(Map json) {
+ setupID = json['SetupID'];
+ parameterGroup = json['ParameterGroup'];
+ parameterType = json['ParameterType'];
+ parameterCode = json['ParameterCode'];
+ description = json['Description'];
+ descriptionN = json['DescriptionN'];
+ alias = json['Alias'];
+ aliasN = json['AliasN'];
+ prefix = json['Prefix'];
+ suffix = json['Suffix'];
+ isColorCodingRequired = json['IsColorCodingRequired'];
+ backColor = json['BackColor'];
+ foreColor = json['ForeColor'];
+ isBuiltIn = json['IsBuiltIn'];
+ isActive = json['IsActive'];
+ createdBy = json['CreatedBy'];
+ createdOn = json['CreatedOn'];
+ editedBy = json['EditedBy'];
+ editedOn = json['EditedOn'];
+ rowVer = json['RowVer'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['SetupID'] = this.setupID;
+ data['ParameterGroup'] = this.parameterGroup;
+ data['ParameterType'] = this.parameterType;
+ data['ParameterCode'] = this.parameterCode;
+ data['Description'] = this.description;
+ data['DescriptionN'] = this.descriptionN;
+ data['Alias'] = this.alias;
+ data['AliasN'] = this.aliasN;
+ data['Prefix'] = this.prefix;
+ data['Suffix'] = this.suffix;
+ data['IsColorCodingRequired'] = this.isColorCodingRequired;
+ data['BackColor'] = this.backColor;
+ data['ForeColor'] = this.foreColor;
+ data['IsBuiltIn'] = this.isBuiltIn;
+ data['IsActive'] = this.isActive;
+ data['CreatedBy'] = this.createdBy;
+ data['CreatedOn'] = this.createdOn;
+ data['EditedBy'] = this.editedBy;
+ data['EditedOn'] = this.editedOn;
+ data['RowVer'] = this.rowVer;
+ return data;
+ }
+}
diff --git a/lib/core/model/ask_doctor/DoctorResponse.dart b/lib/core/model/ask_doctor/DoctorResponse.dart
new file mode 100644
index 00000000..0dcd41b0
--- /dev/null
+++ b/lib/core/model/ask_doctor/DoctorResponse.dart
@@ -0,0 +1,76 @@
+class DoctorResponse {
+ int projectID;
+ int transactionNo;
+ int patientID;
+ int doctorID;
+ int requestType;
+ String requestTypeDescription;
+ dynamic requestTypeDescriptionN;
+ int status;
+ String remarks;
+ String createdOn;
+ dynamic readStatus;
+ String doctorName;
+ bool isDoctorRespond;
+ bool isPatientRead;
+ List transactions;
+
+ DoctorResponse(
+ {this.projectID,
+ this.transactionNo,
+ this.patientID,
+ this.doctorID,
+ this.requestType,
+ this.requestTypeDescription,
+ this.requestTypeDescriptionN,
+ this.status,
+ this.remarks,
+ this.createdOn,
+ this.readStatus,
+ this.doctorName,
+ this.isDoctorRespond,
+ this.isPatientRead,
+ this.transactions});
+
+ DoctorResponse.fromJson(Map json) {
+ projectID = json['ProjectID'];
+ transactionNo = json['TransactionNo'];
+ patientID = json['PatientID'];
+ doctorID = json['DoctorID'];
+ requestType = json['RequestType'];
+ requestTypeDescription = json['RequestTypeDescription'];
+ requestTypeDescriptionN = json['RequestTypeDescriptionN'];
+ status = json['Status'];
+ remarks = json['Remarks'];
+ createdOn = json['CreatedOn'];
+ readStatus = json['ReadStatus'];
+ doctorName = json['DoctorName'];
+ isDoctorRespond = json['IsDoctorRespond'];
+ isPatientRead = json['IsPatientRead'];
+ if (json['Transactions'] != null) {
+ transactions = json['Transactions'];
+ }
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ProjectID'] = this.projectID;
+ data['TransactionNo'] = this.transactionNo;
+ data['PatientID'] = this.patientID;
+ data['DoctorID'] = this.doctorID;
+ data['RequestType'] = this.requestType;
+ data['RequestTypeDescription'] = this.requestTypeDescription;
+ data['RequestTypeDescriptionN'] = this.requestTypeDescriptionN;
+ data['Status'] = this.status;
+ data['Remarks'] = this.remarks;
+ data['CreatedOn'] = this.createdOn;
+ data['ReadStatus'] = this.readStatus;
+ data['DoctorName'] = this.doctorName;
+ data['IsDoctorRespond'] = this.isDoctorRespond;
+ data['IsPatientRead'] = this.isPatientRead;
+ if (this.transactions != null) {
+ data['Transactions'] = this.transactions.map((v) => v.toJson()).toList();
+ }
+ return data;
+ }
+}
diff --git a/lib/core/model/blooddonation/blood_groub_details.dart b/lib/core/model/blooddonation/blood_groub_details.dart
new file mode 100644
index 00000000..34dcafe0
--- /dev/null
+++ b/lib/core/model/blooddonation/blood_groub_details.dart
@@ -0,0 +1,77 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+class List_BloodGroupDetailsModel {
+ int iD;
+ int patientID;
+ int patientType;
+ bool patientOutSA;
+ int zipCode;
+ String cellNumber;
+ String cityCode;
+ String city;
+ int gender;
+ String bloodGroup;
+ String nationalID;
+ bool isActive;
+ int createdBy;
+ DateTime createdOn;
+ int editedBy;
+ DateTime editedOn;
+
+ List_BloodGroupDetailsModel(
+ {this.iD,
+ this.patientID,
+ this.patientType,
+ this.patientOutSA,
+ this.zipCode,
+ this.cellNumber,
+ this.cityCode,
+ this.city,
+ this.gender,
+ this.bloodGroup,
+ this.nationalID,
+ this.isActive,
+ this.createdBy,
+ this.createdOn,
+ this.editedBy,
+ this.editedOn});
+
+ List_BloodGroupDetailsModel.fromJson(Map json) {
+ iD = json['ID'];
+ patientID = json['PatientID'];
+ patientType = json['PatientType'];
+ patientOutSA = json['PatientOutSA'];
+ zipCode = json['ZipCode'];
+ cellNumber = json['CellNumber'];
+ cityCode = json['CityCode'];
+ city = json['City'];
+ gender = json['Gender'];
+ bloodGroup = json['BloodGroup'];
+ nationalID = json['NationalID'];
+ isActive = json['IsActive'];
+ createdBy = json['CreatedBy'];
+ createdOn = DateUtil.convertStringToDate(json['CreatedOn']);// json['CreatedOn'];
+ editedBy = json['EditedBy'];
+ editedOn = DateUtil.convertStringToDate(json['EditedOn']);//json['EditedOn'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ID'] = this.iD;
+ data['PatientID'] = this.patientID;
+ data['PatientType'] = this.patientType;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['ZipCode'] = this.zipCode;
+ data['CellNumber'] = this.cellNumber;
+ data['CityCode'] = this.cityCode;
+ data['City'] = this.city;
+ data['Gender'] = this.gender;
+ data['BloodGroup'] = this.bloodGroup;
+ data['NationalID'] = this.nationalID;
+ data['IsActive'] = this.isActive;
+ data['CreatedBy'] = this.createdBy;
+ data['CreatedOn'] = this.createdOn;
+ data['EditedBy'] = this.editedBy;
+ data['EditedOn'] = this.editedOn;
+ return data;
+ }
+}
\ No newline at end of file
diff --git a/lib/core/model/blooddonation/get_all_cities.dart b/lib/core/model/blooddonation/get_all_cities.dart
new file mode 100644
index 00000000..3d685bb6
--- /dev/null
+++ b/lib/core/model/blooddonation/get_all_cities.dart
@@ -0,0 +1,21 @@
+class CitiesModel {
+ int iD;
+ String description;
+ String descriptionN;
+
+ CitiesModel({this.iD, this.description, this.descriptionN});
+
+ CitiesModel.fromJson(Map json) {
+ iD = json['ID'];
+ description = json['Description'];
+ descriptionN = json['DescriptionN'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ID'] = this.iD;
+ data['Description'] = this.description;
+ data['DescriptionN'] = this.descriptionN;
+ return data;
+ }
+}
\ No newline at end of file
diff --git a/lib/core/model/eye/AppoimentAllHistoryResult.dart b/lib/core/model/eye/AppoimentAllHistoryResult.dart
new file mode 100644
index 00000000..ed123023
--- /dev/null
+++ b/lib/core/model/eye/AppoimentAllHistoryResult.dart
@@ -0,0 +1,497 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class AppoimentAllHistoryResultList {
+ String setupID;
+ int projectID;
+ int appointmentNo;
+ String appointmentDate;
+ Null appointmentDateN;
+ int appointmentType;
+ DateTime bookDate;
+ dynamic patientType;
+ int patientID;
+ dynamic clinicID;
+ int doctorID;
+ String endDate;
+ String startTime;
+ String endTime;
+ dynamic status;
+ dynamic visitType;
+ int visitFor;
+ int patientStatusType;
+ int companyID;
+ int bookedBy;
+ String bookedOn;
+ int confirmedBy;
+ String confirmedOn;
+ int arrivalChangedBy;
+ String arrivedOn;
+ Null editedBy;
+ Null editedOn;
+ Null doctorName;
+ Null doctorNameN;
+ String statusDesc;
+ Null statusDescN;
+ bool vitalStatus;
+ Null vitalSignAppointmentNo;
+ int episodeID;
+ int actualDoctorRate;
+ String clinicName;
+ bool complainExists;
+ String doctorImageURL;
+ String doctorNameObj;
+ int doctorRate;
+ List doctorSpeciality;
+ String doctorTitle;
+ int gender;
+ String genderDescription;
+ bool iSAllowOnlineCheckedIN;
+ bool isActiveDoctor;
+ bool isActiveDoctorProfile;
+ bool isDoctorAllowVedioCall;
+ bool isExecludeDoctor;
+ int isFollowup;
+ bool isLiveCareAppointment;
+ bool isMedicalReportRequested;
+ bool isOnlineCheckedIN;
+ String latitude;
+ List listHISGetContactLensPerscription;
+ List listHISGetGlassPerscription;
+ String longitude;
+ int nextAction;
+ int noOfPatientsRate;
+ int originalClinicID;
+ int originalProjectID;
+ String projectName;
+ String qR;
+ int remaniningHoursTocanPay;
+ bool sMSButtonVisable;
+
+ AppoimentAllHistoryResultList(
+ {this.setupID,
+ this.projectID,
+ this.appointmentNo,
+ this.appointmentDate,
+ this.appointmentDateN,
+ this.appointmentType,
+ this.bookDate,
+ this.patientID,
+ this.doctorID,
+ this.endDate,
+ this.startTime,
+ this.endTime,
+ this.status,
+ this.visitFor,
+ this.patientStatusType,
+ this.companyID,
+ this.bookedBy,
+ this.bookedOn,
+ this.confirmedBy,
+ this.confirmedOn,
+ this.arrivalChangedBy,
+ this.arrivedOn,
+ this.editedBy,
+ this.editedOn,
+ this.doctorName,
+ this.doctorNameN,
+ this.statusDesc,
+ this.statusDescN,
+ this.vitalStatus,
+ this.vitalSignAppointmentNo,
+ this.episodeID,
+ this.actualDoctorRate,
+ this.clinicName,
+ this.complainExists,
+ this.doctorImageURL,
+ this.doctorNameObj,
+ this.doctorRate,
+ this.doctorSpeciality,
+ this.doctorTitle,
+ this.gender,
+ this.genderDescription,
+ this.iSAllowOnlineCheckedIN,
+ this.isActiveDoctor,
+ this.isActiveDoctorProfile,
+ this.isDoctorAllowVedioCall,
+ this.isExecludeDoctor,
+ this.isFollowup,
+ this.isLiveCareAppointment,
+ this.isMedicalReportRequested,
+ this.isOnlineCheckedIN,
+ this.latitude,
+ this.listHISGetContactLensPerscription,
+ this.listHISGetGlassPerscription,
+ this.longitude,
+ this.nextAction,
+ this.noOfPatientsRate,
+ this.originalClinicID,
+ this.originalProjectID,
+ this.projectName,
+ this.qR,
+ this.remaniningHoursTocanPay,
+ this.sMSButtonVisable,
+ this.clinicID,
+ this.patientType,
+
+ this.visitType});
+
+ AppoimentAllHistoryResultList.fromJson(Map json) {
+ setupID = json['SetupID'];
+ projectID = json['ProjectID'];
+ appointmentNo = json['AppointmentNo'];
+ appointmentDate = json['AppointmentDate'];
+ appointmentDateN = json['AppointmentDateN'];
+ appointmentType = json['AppointmentType'];
+ bookDate = DateUtil.convertStringToDate(json['BookDate']);
+ patientType = json['PatientType'];
+ patientID = json['PatientID'];
+ clinicID = json['ClinicID'];
+ doctorID = json['DoctorID'];
+ endDate = json['EndDate'];
+ startTime = json['StartTime'];
+ endTime = json['EndTime'];
+ status = json['Status'];
+ visitType = json['VisitType'];
+ visitFor = json['VisitFor'];
+ patientStatusType = json['PatientStatusType'];
+ companyID = json['CompanyID'];
+ bookedBy = json['BookedBy'];
+ bookedOn = json['BookedOn'];
+ confirmedBy = json['ConfirmedBy'];
+ confirmedOn = json['ConfirmedOn'];
+ arrivalChangedBy = json['ArrivalChangedBy'];
+ arrivedOn = json['ArrivedOn'];
+ editedBy = json['EditedBy'];
+ editedOn = json['EditedOn'];
+ doctorName = json['DoctorName'];
+ doctorNameN = json['DoctorNameN'];
+ statusDesc = json['StatusDesc'];
+ statusDescN = json['StatusDescN'];
+ vitalStatus = json['VitalStatus'];
+ vitalSignAppointmentNo = json['VitalSignAppointmentNo'];
+ episodeID = json['EpisodeID'];
+ actualDoctorRate = json['ActualDoctorRate'];
+ clinicName = json['ClinicName'];
+ complainExists = json['ComplainExists'];
+ doctorImageURL = json['DoctorImageURL'];
+ doctorNameObj = json['DoctorNameObj'];
+ doctorRate = json['DoctorRate'];
+ // doctorSpeciality = json['DoctorSpeciality'].cast();
+ doctorTitle = json['DoctorTitle'];
+ gender = json['Gender'];
+ genderDescription = json['GenderDescription'];
+ iSAllowOnlineCheckedIN = json['ISAllowOnlineCheckedIN'];
+ isActiveDoctor = json['IsActiveDoctor'];
+ isActiveDoctorProfile = json['IsActiveDoctorProfile'];
+ isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
+ isExecludeDoctor = json['IsExecludeDoctor'];
+ isFollowup = json['IsFollowup'];
+ isLiveCareAppointment = json['IsLiveCareAppointment'];
+ isMedicalReportRequested = json['IsMedicalReportRequested'];
+ isOnlineCheckedIN = json['IsOnlineCheckedIN'];
+ latitude = json['Latitude'];
+ if (json['List_HIS_GetContactLensPerscription'] != null) {
+ listHISGetContactLensPerscription =
+ new List();
+ json['List_HIS_GetContactLensPerscription'].forEach((v) {
+ listHISGetContactLensPerscription
+ .add(new ListHISGetContactLensPerscription.fromJson(v));
+ });
+ }
+ if (json['List_HIS_GetGlassPerscription'] != null) {
+ listHISGetGlassPerscription = new List();
+ json['List_HIS_GetGlassPerscription'].forEach((v) {
+ listHISGetGlassPerscription
+ .add(new ListHISGetGlassPerscription.fromJson(v));
+ });
+ }
+ longitude = json['Longitude'];
+ nextAction = json['NextAction'];
+ noOfPatientsRate = json['NoOfPatientsRate'];
+ originalClinicID = json['OriginalClinicID'];
+ originalProjectID = json['OriginalProjectID'];
+ projectName = json['ProjectName'];
+ qR = json['QR'];
+ remaniningHoursTocanPay = json['RemaniningHoursTocanPay'];
+ sMSButtonVisable = json['SMSButtonVisable'];
+ clinicID = json['clinicID'];
+ patientType = json['patientType'];
+ status = json['status'];
+ visitType = json['visitType'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['SetupID'] = this.setupID;
+ data['ProjectID'] = this.projectID;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['AppointmentDate'] = this.appointmentDate;
+ data['AppointmentDateN'] = this.appointmentDateN;
+ data['AppointmentType'] = this.appointmentType;
+ data['BookDate'] = this.bookDate;
+ data['PatientType'] = this.patientType;
+ data['PatientID'] = this.patientID;
+ data['ClinicID'] = this.clinicID;
+ data['DoctorID'] = this.doctorID;
+ data['EndDate'] = this.endDate;
+ data['StartTime'] = this.startTime;
+ data['EndTime'] = this.endTime;
+ data['Status'] = this.status;
+ data['VisitType'] = this.visitType;
+ data['VisitFor'] = this.visitFor;
+ data['PatientStatusType'] = this.patientStatusType;
+ data['CompanyID'] = this.companyID;
+ data['BookedBy'] = this.bookedBy;
+ data['BookedOn'] = this.bookedOn;
+ data['ConfirmedBy'] = this.confirmedBy;
+ data['ConfirmedOn'] = this.confirmedOn;
+ data['ArrivalChangedBy'] = this.arrivalChangedBy;
+ data['ArrivedOn'] = this.arrivedOn;
+ data['EditedBy'] = this.editedBy;
+ data['EditedOn'] = this.editedOn;
+ data['DoctorName'] = this.doctorName;
+ data['DoctorNameN'] = this.doctorNameN;
+ data['StatusDesc'] = this.statusDesc;
+ data['StatusDescN'] = this.statusDescN;
+ data['VitalStatus'] = this.vitalStatus;
+ data['VitalSignAppointmentNo'] = this.vitalSignAppointmentNo;
+ data['EpisodeID'] = this.episodeID;
+ data['ActualDoctorRate'] = this.actualDoctorRate;
+ data['ClinicName'] = this.clinicName;
+ data['ComplainExists'] = this.complainExists;
+ data['DoctorImageURL'] = this.doctorImageURL;
+ data['DoctorNameObj'] = this.doctorNameObj;
+ data['DoctorRate'] = this.doctorRate;
+ data['DoctorSpeciality'] = this.doctorSpeciality;
+ data['DoctorTitle'] = this.doctorTitle;
+ data['Gender'] = this.gender;
+ data['GenderDescription'] = this.genderDescription;
+ data['ISAllowOnlineCheckedIN'] = this.iSAllowOnlineCheckedIN;
+ data['IsActiveDoctor'] = this.isActiveDoctor;
+ data['IsActiveDoctorProfile'] = this.isActiveDoctorProfile;
+ data['IsDoctorAllowVedioCall'] = this.isDoctorAllowVedioCall;
+ data['IsExecludeDoctor'] = this.isExecludeDoctor;
+ data['IsFollowup'] = this.isFollowup;
+ data['IsLiveCareAppointment'] = this.isLiveCareAppointment;
+ data['IsMedicalReportRequested'] = this.isMedicalReportRequested;
+ data['IsOnlineCheckedIN'] = this.isOnlineCheckedIN;
+ data['Latitude'] = this.latitude;
+ if (this.listHISGetContactLensPerscription != null) {
+ data['List_HIS_GetContactLensPerscription'] = this
+ .listHISGetContactLensPerscription
+ .map((v) => v.toJson())
+ .toList();
+ }
+ if (this.listHISGetGlassPerscription != null) {
+ data['List_HIS_GetGlassPerscription'] =
+ this.listHISGetGlassPerscription.map((v) => v.toJson()).toList();
+ }
+ data['Longitude'] = this.longitude;
+ data['NextAction'] = this.nextAction;
+ data['NoOfPatientsRate'] = this.noOfPatientsRate;
+ data['OriginalClinicID'] = this.originalClinicID;
+ data['OriginalProjectID'] = this.originalProjectID;
+ data['ProjectName'] = this.projectName;
+ data['QR'] = this.qR;
+ data['RemaniningHoursTocanPay'] = this.remaniningHoursTocanPay;
+ data['SMSButtonVisable'] = this.sMSButtonVisable;
+ data['clinicID'] = this.clinicID;
+ data['patientType'] = this.patientType;
+ data['status'] = this.status;
+ data['visitType'] = this.visitType;
+ return data;
+ }
+}
+
+class ListHISGetContactLensPerscription {
+ String setupId;
+ int projectId;
+ int patientType;
+ int patientId;
+ int encounterType;
+ int encounterNo;
+ int oDOS;
+ dynamic brand;
+ dynamic baseCurve;
+ dynamic power;
+ dynamic diameter;
+ dynamic oZ;
+ dynamic cT;
+ dynamic blend;
+ String remarks;
+ int status;
+ bool isActive;
+ String createdOn;
+
+ ListHISGetContactLensPerscription(
+ {this.setupId,
+ this.projectId,
+ this.patientType,
+ this.patientId,
+ this.encounterType,
+ this.encounterNo,
+ this.oDOS,
+ this.brand,
+ this.baseCurve,
+ this.power,
+ this.diameter,
+ this.oZ,
+ this.cT,
+ this.blend,
+ this.remarks,
+ this.status,
+ this.isActive,
+ this.createdOn});
+
+ ListHISGetContactLensPerscription.fromJson(Map json) {
+ setupId = json['SetupId'];
+ projectId = json['ProjectId'];
+ patientType = json['PatientType'];
+ patientId = json['PatientId'];
+ encounterType = json['EncounterType'];
+ encounterNo = json['EncounterNo'];
+ oDOS = json['OD_OS'];
+ brand = json['Brand'];
+ baseCurve = json['BaseCurve'];
+ power = json['Power'];
+ diameter = json['Diameter'];
+ oZ = json['OZ'];
+ cT = json['CT'];
+ blend = json['Blend'];
+ remarks = json['Remarks'];
+ status = json['Status'];
+ isActive = json['IsActive'];
+ createdOn = json['CreatedOn'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['SetupId'] = this.setupId;
+ data['ProjectId'] = this.projectId;
+ data['PatientType'] = this.patientType;
+ data['PatientId'] = this.patientId;
+ data['EncounterType'] = this.encounterType;
+ data['EncounterNo'] = this.encounterNo;
+ data['OD_OS'] = this.oDOS;
+ data['Brand'] = this.brand;
+ data['BaseCurve'] = this.baseCurve;
+ data['Power'] = this.power;
+ data['Diameter'] = this.diameter;
+ data['OZ'] = this.oZ;
+ data['CT'] = this.cT;
+ data['Blend'] = this.blend;
+ data['Remarks'] = this.remarks;
+ data['Status'] = this.status;
+ data['IsActive'] = this.isActive;
+ data['CreatedOn'] = this.createdOn;
+ return data;
+ }
+}
+
+class ListHISGetGlassPerscription {
+ dynamic projectID;
+ String setupID;
+ dynamic patientId;
+ dynamic encounterType;
+ dynamic encounterNo;
+ String visionType;
+ double rightEyeSpherical;
+ dynamic rightEyeCylinder;
+ dynamic rightEyeAxis;
+ dynamic rightEyePrism;
+ dynamic rightEyeVA;
+ String rightEyeRemarks;
+ dynamic leftEyeSpherical;
+ dynamic leftEyeCylinder;
+ dynamic leftEyeAxis;
+ dynamic leftEyePrism;
+ dynamic leftEyeVA;
+ String leftEyeRemarks;
+ dynamic pD;
+ dynamic bVD;
+ dynamic status;
+ bool isActive;
+ String createdOn;
+
+ ListHISGetGlassPerscription(
+ {this.projectID,
+ this.setupID,
+ this.patientId,
+ this.encounterType,
+ this.encounterNo,
+ this.visionType,
+ this.rightEyeSpherical,
+ this.rightEyeCylinder,
+ this.rightEyeAxis,
+ this.rightEyePrism,
+ this.rightEyeVA,
+ this.rightEyeRemarks,
+ this.leftEyeSpherical,
+ this.leftEyeCylinder,
+ this.leftEyeAxis,
+ this.leftEyePrism,
+ this.leftEyeVA,
+ this.leftEyeRemarks,
+ this.pD,
+ this.bVD,
+ this.status,
+ this.isActive,
+ this.createdOn});
+
+ ListHISGetGlassPerscription.fromJson(Map json) {
+ projectID = json['ProjectID'];
+ setupID = json['SetupID'];
+ patientId = json['PatientId'];
+ encounterType = json['EncounterType'];
+ encounterNo = json['EncounterNo'];
+ visionType = json['VisionType'];
+ rightEyeSpherical = json['RightEyeSpherical'];
+ rightEyeCylinder = json['RightEyeCylinder'];
+ rightEyeAxis = json['RightEyeAxis'];
+ rightEyePrism = json['RightEyePrism'];
+ rightEyeVA = json['RightEyeVA'];
+ rightEyeRemarks = json['RightEyeRemarks'];
+ leftEyeSpherical = json['LeftEyeSpherical'];
+ leftEyeCylinder = json['LeftEyeCylinder'];
+ leftEyeAxis = json['LeftEyeAxis'];
+ leftEyePrism = json['LeftEyePrism'];
+ leftEyeVA = json['LeftEyeVA'];
+ leftEyeRemarks = json['LeftEyeRemarks'];
+ pD = json['PD'];
+ bVD = json['BVD'];
+ status = json['Status'];
+ isActive = json['IsActive'];
+ createdOn = json['CreatedOn'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ProjectID'] = this.projectID;
+ data['SetupID'] = this.setupID;
+ data['PatientId'] = this.patientId;
+ data['EncounterType'] = this.encounterType;
+ data['EncounterNo'] = this.encounterNo;
+ data['VisionType'] = this.visionType;
+ data['RightEyeSpherical'] = this.rightEyeSpherical;
+ data['RightEyeCylinder'] = this.rightEyeCylinder;
+ data['RightEyeAxis'] = this.rightEyeAxis;
+ data['RightEyePrism'] = this.rightEyePrism;
+ data['RightEyeVA'] = this.rightEyeVA;
+ data['RightEyeRemarks'] = this.rightEyeRemarks;
+ data['LeftEyeSpherical'] = this.leftEyeSpherical;
+ data['LeftEyeCylinder'] = this.leftEyeCylinder;
+ data['LeftEyeAxis'] = this.leftEyeAxis;
+ data['LeftEyePrism'] = this.leftEyePrism;
+ data['LeftEyeVA'] = this.leftEyeVA;
+ data['LeftEyeRemarks'] = this.leftEyeRemarks;
+ data['PD'] = this.pD;
+ data['BVD'] = this.bVD;
+ data['Status'] = this.status;
+ data['IsActive'] = this.isActive;
+ data['CreatedOn'] = this.createdOn;
+ return data;
+ }
+}
+
+
+
diff --git a/lib/core/model/eye/AppointmentFilter.dart b/lib/core/model/eye/AppointmentFilter.dart
new file mode 100644
index 00000000..1f4b0ae5
--- /dev/null
+++ b/lib/core/model/eye/AppointmentFilter.dart
@@ -0,0 +1,12 @@
+import 'AppoimentAllHistoryResult.dart';
+
+class AppointmentFilter {
+ List appointmentAllHistoryResultList = List();
+ String filterName;
+
+ AppointmentFilter(
+ AppoimentAllHistoryResultList allHistoryResultList, String filterName) {
+ appointmentAllHistoryResultList.add(allHistoryResultList);
+ this.filterName = filterName;
+ }
+}
diff --git a/lib/core/model/my_balance/AdvanceModel.dart b/lib/core/model/my_balance/AdvanceModel.dart
index 40472b13..b95e08a2 100644
--- a/lib/core/model/my_balance/AdvanceModel.dart
+++ b/lib/core/model/my_balance/AdvanceModel.dart
@@ -1,3 +1,4 @@
+import 'package:diplomaticquarterapp/core/model/blooddonation/get_all_cities.dart';
import 'package:diplomaticquarterapp/core/model/hospitals/hospitals_model.dart';
class AdvanceModel {
@@ -7,6 +8,7 @@ class AdvanceModel {
String email;
String note;
String depositorName;
+ CitiesModel citiessModel;
AdvanceModel(
{this.amount,
@@ -14,5 +16,6 @@ class AdvanceModel {
this.note,
this.hospitalsModel,
this.fileNumber,
- this.depositorName});
+ this.depositorName,
+ this.citiessModel});
}
diff --git a/lib/core/model/my_trakers/blood_pressur/BloodPressureResult.dart b/lib/core/model/my_trakers/blood_pressur/BloodPressureResult.dart
new file mode 100644
index 00000000..57f2cd54
--- /dev/null
+++ b/lib/core/model/my_trakers/blood_pressur/BloodPressureResult.dart
@@ -0,0 +1,90 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class BloodPressureResult {
+ int patientID;
+ int lineItemNo;
+ DateTime bloodPressureDate;
+ int measuredArm;
+ int systolicePressure;
+ int diastolicPressure;
+ dynamic remark;
+ bool isActive;
+ int chartYear;
+ String chartMonth;
+ dynamic yearSystolicePressureAverageResult;
+ dynamic monthSystolicePressureResult;
+ dynamic weekSystolicePressureResult;
+ int yearDiastolicPressureAverageResult;
+ dynamic monthDiastolicPressureResult;
+ dynamic weekDiastolicPressureResult;
+ String measuredArmDesc;
+ dynamic weekDesc;
+
+ BloodPressureResult(
+ {this.patientID,
+ this.lineItemNo,
+ this.bloodPressureDate,
+ this.measuredArm,
+ this.systolicePressure,
+ this.diastolicPressure,
+ this.remark,
+ this.isActive,
+ this.chartYear,
+ this.chartMonth,
+ this.yearSystolicePressureAverageResult,
+ this.monthSystolicePressureResult,
+ this.weekSystolicePressureResult,
+ this.yearDiastolicPressureAverageResult,
+ this.monthDiastolicPressureResult,
+ this.weekDiastolicPressureResult,
+ this.measuredArmDesc,
+ this.weekDesc});
+
+ BloodPressureResult.fromJson(Map json) {
+ patientID = json['PatientID'];
+ lineItemNo = json['LineItemNo'];
+ bloodPressureDate =DateUtil.convertStringToDate(json['BloodPressureDate']);
+ measuredArm = json['MeasuredArm'];
+ systolicePressure = json['SystolicePressure'];
+ diastolicPressure = json['DiastolicPressure'];
+ remark = json['Remark'];
+ isActive = json['IsActive'];
+ chartYear = json['ChartYear'];
+ chartMonth = json['ChartMonth'];
+ yearSystolicePressureAverageResult =
+ json['YearSystolicePressureAverageResult'];
+ monthSystolicePressureResult = json['MonthSystolicePressureResult'];
+ weekSystolicePressureResult = json['WeekSystolicePressureResult'];
+ yearDiastolicPressureAverageResult =
+ json['YearDiastolicPressureAverageResult'];
+ monthDiastolicPressureResult = json['MonthDiastolicPressureResult'];
+ weekDiastolicPressureResult = json['WeekDiastolicPressureResult'];
+ measuredArmDesc = json['MeasuredArmDesc'];
+ weekDesc = json['WeekDesc'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientID'] = this.patientID;
+ data['LineItemNo'] = this.lineItemNo;
+ data['BloodPressureDate'] = this.bloodPressureDate;
+ data['MeasuredArm'] = this.measuredArm;
+ data['SystolicePressure'] = this.systolicePressure;
+ data['DiastolicPressure'] = this.diastolicPressure;
+ data['Remark'] = this.remark;
+ data['IsActive'] = this.isActive;
+ data['ChartYear'] = this.chartYear;
+ data['ChartMonth'] = this.chartMonth;
+ data['YearSystolicePressureAverageResult'] =
+ this.yearSystolicePressureAverageResult;
+ data['MonthSystolicePressureResult'] = this.monthSystolicePressureResult;
+ data['WeekSystolicePressureResult'] = this.weekSystolicePressureResult;
+ data['YearDiastolicPressureAverageResult'] =
+ this.yearDiastolicPressureAverageResult;
+ data['MonthDiastolicPressureResult'] = this.monthDiastolicPressureResult;
+ data['WeekDiastolicPressureResult'] = this.weekDiastolicPressureResult;
+ data['MeasuredArmDesc'] = this.measuredArmDesc;
+ data['WeekDesc'] = this.weekDesc;
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/blood_pressur/MonthBloodPressureResultAverage.dart b/lib/core/model/my_trakers/blood_pressur/MonthBloodPressureResultAverage.dart
new file mode 100644
index 00000000..5343119c
--- /dev/null
+++ b/lib/core/model/my_trakers/blood_pressur/MonthBloodPressureResultAverage.dart
@@ -0,0 +1,76 @@
+class MonthBloodPressureResultAverage {
+ dynamic weekfourSystolicePressureAverageResult;
+ dynamic weekfourDiastolicPressureAverageResult;
+ dynamic weekthreeSystolicePressureAverageResult;
+ dynamic weekthreeDiastolicPressureAverageResult;
+ dynamic weektwoSystolicePressureAverageResult;
+ dynamic weektwoDiastolicPressureAverageResult;
+ dynamic weekoneSystolicePressureAverageResult;
+ dynamic weekoneDiastolicPressureAverageResult;
+ String weekDesc;
+ int weekDiastolicPressureAverageResult;
+ int weekSystolicePressureAverageResult;
+
+ MonthBloodPressureResultAverage(
+ {this.weekfourSystolicePressureAverageResult,
+ this.weekfourDiastolicPressureAverageResult,
+ this.weekthreeSystolicePressureAverageResult,
+ this.weekthreeDiastolicPressureAverageResult,
+ this.weektwoSystolicePressureAverageResult,
+ this.weektwoDiastolicPressureAverageResult,
+ this.weekoneSystolicePressureAverageResult,
+ this.weekoneDiastolicPressureAverageResult,
+ this.weekDesc,
+ this.weekDiastolicPressureAverageResult,
+ this.weekSystolicePressureAverageResult});
+
+ MonthBloodPressureResultAverage.fromJson(Map json) {
+ weekfourSystolicePressureAverageResult =
+ json['weekfourSystolicePressureAverageResult'];
+ weekfourDiastolicPressureAverageResult =
+ json['weekfourDiastolicPressureAverageResult'];
+ weekthreeSystolicePressureAverageResult =
+ json['weekthreeSystolicePressureAverageResult'];
+ weekthreeDiastolicPressureAverageResult =
+ json['weekthreeDiastolicPressureAverageResult'];
+ weektwoSystolicePressureAverageResult =
+ json['weektwoSystolicePressureAverageResult'];
+ weektwoDiastolicPressureAverageResult =
+ json['weektwoDiastolicPressureAverageResult'];
+ weekoneSystolicePressureAverageResult =
+ json['weekoneSystolicePressureAverageResult'];
+ weekoneDiastolicPressureAverageResult =
+ json['weekoneDiastolicPressureAverageResult'];
+ weekDesc = json['WeekDesc'];
+ weekDiastolicPressureAverageResult =
+ json['WeekDiastolicPressureAverageResult'];
+ weekSystolicePressureAverageResult =
+ json['WeekSystolicePressureAverageResult'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['weekfourSystolicePressureAverageResult'] =
+ this.weekfourSystolicePressureAverageResult;
+ data['weekfourDiastolicPressureAverageResult'] =
+ this.weekfourDiastolicPressureAverageResult;
+ data['weekthreeSystolicePressureAverageResult'] =
+ this.weekthreeSystolicePressureAverageResult;
+ data['weekthreeDiastolicPressureAverageResult'] =
+ this.weekthreeDiastolicPressureAverageResult;
+ data['weektwoSystolicePressureAverageResult'] =
+ this.weektwoSystolicePressureAverageResult;
+ data['weektwoDiastolicPressureAverageResult'] =
+ this.weektwoDiastolicPressureAverageResult;
+ data['weekoneSystolicePressureAverageResult'] =
+ this.weekoneSystolicePressureAverageResult;
+ data['weekoneDiastolicPressureAverageResult'] =
+ this.weekoneDiastolicPressureAverageResult;
+ data['WeekDesc'] = this.weekDesc;
+ data['WeekDiastolicPressureAverageResult'] =
+ this.weekDiastolicPressureAverageResult;
+ data['WeekSystolicePressureAverageResult'] =
+ this.weekSystolicePressureAverageResult;
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/blood_pressur/WeekBloodPressureResultAverage.dart b/lib/core/model/my_trakers/blood_pressur/WeekBloodPressureResultAverage.dart
new file mode 100644
index 00000000..b7f3fc80
--- /dev/null
+++ b/lib/core/model/my_trakers/blood_pressur/WeekBloodPressureResultAverage.dart
@@ -0,0 +1,30 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class WeekBloodPressureResultAverage {
+ int dailySystolicePressureAverageResult;
+ int dailyDiastolicPressureAverageResult;
+ DateTime bloodPressureDate;
+
+ WeekBloodPressureResultAverage(
+ {this.dailySystolicePressureAverageResult,
+ this.dailyDiastolicPressureAverageResult,
+ this.bloodPressureDate});
+
+ WeekBloodPressureResultAverage.fromJson(Map json) {
+ dailySystolicePressureAverageResult =
+ json['DailySystolicePressureAverageResult'];
+ dailyDiastolicPressureAverageResult =
+ json['DailyDiastolicPressureAverageResult'];
+ bloodPressureDate = DateUtil.convertStringToDate(json['BloodPressureDate']);
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['DailySystolicePressureAverageResult'] =
+ this.dailySystolicePressureAverageResult;
+ data['DailyDiastolicPressureAverageResult'] =
+ this.dailyDiastolicPressureAverageResult;
+ data['BloodPressureDate'] = this.bloodPressureDate;
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/blood_pressur/YearBloodPressureResultAverage.dart b/lib/core/model/my_trakers/blood_pressur/YearBloodPressureResultAverage.dart
new file mode 100644
index 00000000..095738d6
--- /dev/null
+++ b/lib/core/model/my_trakers/blood_pressur/YearBloodPressureResultAverage.dart
@@ -0,0 +1,41 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class YearBloodPressureResultAverage {
+ int monthSystolicePressureAverageResult;
+ int monthDiastolicPressureAverageResult;
+ dynamic monthNumber;
+ String monthName;
+ String yearName;
+ DateTime date;
+
+ YearBloodPressureResultAverage(
+ {this.monthSystolicePressureAverageResult,
+ this.monthDiastolicPressureAverageResult,
+ this.monthNumber,
+ this.monthName,
+ this.yearName});
+
+ YearBloodPressureResultAverage.fromJson(Map json) {
+ monthSystolicePressureAverageResult =
+ json['monthSystolicePressureAverageResult'];
+ monthDiastolicPressureAverageResult =
+ json['monthDiastolicPressureAverageResult'];
+ monthNumber = json['monthNumber'];
+ monthName = json['monthName'];
+ yearName = json['yearName'];
+ date = DateUtil.getMonthDateTime(monthName,yearName);
+
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['monthSystolicePressureAverageResult'] =
+ this.monthSystolicePressureAverageResult;
+ data['monthDiastolicPressureAverageResult'] =
+ this.monthDiastolicPressureAverageResult;
+ data['monthNumber'] = this.monthNumber;
+ data['monthName'] = this.monthName;
+ data['yearName'] = this.yearName;
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/blood_sugar/DiabtecPatientResult.dart b/lib/core/model/my_trakers/blood_sugar/DiabtecPatientResult.dart
new file mode 100644
index 00000000..5b95409e
--- /dev/null
+++ b/lib/core/model/my_trakers/blood_sugar/DiabtecPatientResult.dart
@@ -0,0 +1,98 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class DiabtecPatientResult {
+ String chartMonth;
+ var chartYear;
+ DateTime dateChart;
+ var description;
+ var descriptionN;
+ int diabtecAvarage;
+ bool isActive;
+ int lineItemNo;
+ var listMonth;
+ var listWeek;
+ int measured;
+ String measuredDesc;
+ var monthAverageResult;
+ int patientID;
+ var remark;
+ var resultDesc;
+ int resultValue;
+ String unit;
+ var weekAverageResult;
+ String weekDesc;
+ var yearAverageResult;
+
+ DiabtecPatientResult(
+ {this.chartMonth,
+ this.chartYear,
+ this.dateChart,
+ this.description,
+ this.descriptionN,
+ this.diabtecAvarage,
+ this.isActive,
+ this.lineItemNo,
+ this.listMonth,
+ this.listWeek,
+ this.measured,
+ this.measuredDesc,
+ this.monthAverageResult,
+ this.patientID,
+ this.remark,
+ this.resultDesc,
+ this.resultValue,
+ this.unit,
+ this.weekAverageResult,
+ this.weekDesc,
+ this.yearAverageResult});
+
+ DiabtecPatientResult.fromJson(Map json) {
+ chartMonth = json['ChartMonth'];
+ chartYear = json['ChartYear'];
+ dateChart = DateUtil.convertStringToDate(json['DateChart']);
+ description = json['Description'];
+ descriptionN = json['DescriptionN'];
+ diabtecAvarage = json['DiabtecAvarage'];
+ isActive = json['IsActive'];
+ lineItemNo = json['LineItemNo'];
+ listMonth = json['List_Month'];
+ listWeek = json['List_Week'];
+ measured = json['Measured'];
+ measuredDesc = json['MeasuredDesc'];
+ monthAverageResult = json['MonthAverageResult'];
+ patientID = json['PatientID'];
+ remark = json['Remark'];
+ resultDesc = json['ResultDesc'];
+ resultValue = json['ResultValue'];
+ unit = json['Unit'];
+ weekAverageResult = json['WeekAverageResult'];
+ weekDesc = json['WeekDesc'];
+ yearAverageResult = json['YearAverageResult'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ChartMonth'] = this.chartMonth;
+ data['ChartYear'] = this.chartYear;
+ data['DateChart'] = DateUtil.convertDateToString(this.dateChart);
+ data['Description'] = this.description;
+ data['DescriptionN'] = this.descriptionN;
+ data['DiabtecAvarage'] = this.diabtecAvarage;
+ data['IsActive'] = this.isActive;
+ data['LineItemNo'] = this.lineItemNo;
+ data['List_Month'] = this.listMonth;
+ data['List_Week'] = this.listWeek;
+ data['Measured'] = this.measured;
+ data['MeasuredDesc'] = this.measuredDesc;
+ data['MonthAverageResult'] = this.monthAverageResult;
+ data['PatientID'] = this.patientID;
+ data['Remark'] = this.remark;
+ data['ResultDesc'] = this.resultDesc;
+ data['ResultValue'] = this.resultValue;
+ data['Unit'] = this.unit;
+ data['WeekAverageResult'] = this.weekAverageResult;
+ data['WeekDesc'] = this.weekDesc;
+ data['YearAverageResult'] = this.yearAverageResult;
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/blood_sugar/MonthDiabtectResultAverage.dart b/lib/core/model/my_trakers/blood_sugar/MonthDiabtectResultAverage.dart
new file mode 100644
index 00000000..65522098
--- /dev/null
+++ b/lib/core/model/my_trakers/blood_sugar/MonthDiabtectResultAverage.dart
@@ -0,0 +1,36 @@
+class MonthDiabtectResultAverage {
+ var weekfourAverageResult;
+ var weekthreeAverageResult;
+ var weektwoAverageResult;
+ var weekoneAverageResult;
+ dynamic weekAverageResult;
+ String weekDesc;
+
+ MonthDiabtectResultAverage(
+ {this.weekfourAverageResult,
+ this.weekthreeAverageResult,
+ this.weektwoAverageResult,
+ this.weekoneAverageResult,
+ this.weekAverageResult,
+ this.weekDesc});
+
+ MonthDiabtectResultAverage.fromJson(Map json) {
+ weekfourAverageResult = json['weekfourAverageResult'];
+ weekthreeAverageResult = json['weekthreeAverageResult'];
+ weektwoAverageResult = json['weektwoAverageResult'];
+ weekoneAverageResult = json['weekoneAverageResult'];
+ weekAverageResult = json['WeekAverageResult'];
+ weekDesc = json['WeekDesc'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['weekfourAverageResult'] = this.weekfourAverageResult;
+ data['weekthreeAverageResult'] = this.weekthreeAverageResult;
+ data['weektwoAverageResult'] = this.weektwoAverageResult;
+ data['weekoneAverageResult'] = this.weekoneAverageResult;
+ data['WeekAverageResult'] = this.weekAverageResult;
+ data['WeekDesc'] = this.weekDesc;
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/blood_sugar/WeekDiabtectResultAverage.dart b/lib/core/model/my_trakers/blood_sugar/WeekDiabtectResultAverage.dart
new file mode 100644
index 00000000..c18e5433
--- /dev/null
+++ b/lib/core/model/my_trakers/blood_sugar/WeekDiabtectResultAverage.dart
@@ -0,0 +1,20 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class WeekDiabtectResultAverage {
+ int dailyAverageResult;
+ DateTime dateChart;
+
+ WeekDiabtectResultAverage({this.dailyAverageResult, this.dateChart});
+
+ WeekDiabtectResultAverage.fromJson(Map json) {
+ dailyAverageResult = json['DailyAverageResult'];
+ dateChart = DateUtil.convertStringToDate(json['DateChart']);
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['DailyAverageResult'] = this.dailyAverageResult;
+ data['DateChart'] = DateUtil.convertDateToString(this.dateChart);
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/blood_sugar/YearDiabtecResultAverage.dart b/lib/core/model/my_trakers/blood_sugar/YearDiabtecResultAverage.dart
new file mode 100644
index 00000000..cfdec286
--- /dev/null
+++ b/lib/core/model/my_trakers/blood_sugar/YearDiabtecResultAverage.dart
@@ -0,0 +1,36 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class YearDiabtecResultAverage {
+ dynamic monthAverageResult;
+ var monthNumber;
+ String monthName;
+ String yearName;
+ DateTime date;
+
+ YearDiabtecResultAverage(
+ {this.monthAverageResult,
+ this.monthNumber,
+ this.monthName,
+ this.yearName});
+
+ YearDiabtecResultAverage.fromJson(Map json) {
+ try {
+ monthAverageResult = json['monthAverageResult'];
+ monthNumber = json['monthNumber'];
+ monthName = json['monthName'];
+ yearName = json['yearName'];
+ date = DateUtil.getMonthDateTime(monthName,yearName);
+ } catch (e) {
+ print(e);
+ }
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['monthAverageResult'] = this.monthAverageResult;
+ data['monthNumber'] = this.monthNumber;
+ data['monthName'] = this.monthName;
+ data['yearName'] = this.yearName;
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/chartData/WeekChartDate.dart b/lib/core/model/my_trakers/chartData/WeekChartDate.dart
new file mode 100644
index 00000000..d972265d
--- /dev/null
+++ b/lib/core/model/my_trakers/chartData/WeekChartDate.dart
@@ -0,0 +1,6 @@
+class WeekChartDate {
+ final DateTime x;
+ final dynamic y;
+
+ WeekChartDate({this.x, this.y});
+}
\ No newline at end of file
diff --git a/lib/core/model/my_trakers/chartData/YearMonthlyChartDate.dart b/lib/core/model/my_trakers/chartData/YearMonthlyChartDate.dart
new file mode 100644
index 00000000..96adca21
--- /dev/null
+++ b/lib/core/model/my_trakers/chartData/YearMonthlyChartDate.dart
@@ -0,0 +1,6 @@
+ class YearMonthlyChartDate {
+ final dynamic x;
+ final dynamic y;
+
+ YearMonthlyChartDate({this.x, this.y});
+}
diff --git a/lib/core/model/my_trakers/weight/MonthWeightMeasurementResultAverage.dart b/lib/core/model/my_trakers/weight/MonthWeightMeasurementResultAverage.dart
new file mode 100644
index 00000000..8165302d
--- /dev/null
+++ b/lib/core/model/my_trakers/weight/MonthWeightMeasurementResultAverage.dart
@@ -0,0 +1,36 @@
+class MonthWeightMeasurementResultAverage {
+ dynamic weekfourAverageResult;
+ dynamic weekthreeAverageResult;
+ dynamic weektwoAverageResult;
+ dynamic weekoneAverageResult;
+ dynamic weekAverageResult;
+ String weekDesc;
+
+ MonthWeightMeasurementResultAverage(
+ {this.weekfourAverageResult,
+ this.weekthreeAverageResult,
+ this.weektwoAverageResult,
+ this.weekoneAverageResult,
+ this.weekAverageResult,
+ this.weekDesc});
+
+ MonthWeightMeasurementResultAverage.fromJson(Map json) {
+ weekfourAverageResult = json['weekfourAverageResult'];
+ weekthreeAverageResult = json['weekthreeAverageResult'];
+ weektwoAverageResult = json['weektwoAverageResult'];
+ weekoneAverageResult = json['weekoneAverageResult'];
+ weekAverageResult = json['WeekAverageResult'];
+ weekDesc = json['WeekDesc'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['weekfourAverageResult'] = this.weekfourAverageResult;
+ data['weekthreeAverageResult'] = this.weekthreeAverageResult;
+ data['weektwoAverageResult'] = this.weektwoAverageResult;
+ data['weekoneAverageResult'] = this.weekoneAverageResult;
+ data['WeekAverageResult'] = this.weekAverageResult;
+ data['WeekDesc'] = this.weekDesc;
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/weight/WeekWeightMeasurementResultAverage.dart b/lib/core/model/my_trakers/weight/WeekWeightMeasurementResultAverage.dart
new file mode 100644
index 00000000..b7345ad7
--- /dev/null
+++ b/lib/core/model/my_trakers/weight/WeekWeightMeasurementResultAverage.dart
@@ -0,0 +1,21 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class WeekWeightMeasurementResultAverage {
+ dynamic dailyAverageResult;
+ DateTime weightDate;
+
+ WeekWeightMeasurementResultAverage(
+ {this.dailyAverageResult, this.weightDate});
+
+ WeekWeightMeasurementResultAverage.fromJson(Map json) {
+ dailyAverageResult = json['DailyAverageResult'];
+ weightDate = DateUtil.convertStringToDate(json['WeightDate']);
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['DailyAverageResult'] = this.dailyAverageResult;
+ data['WeightDate'] = this.weightDate;
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/weight/WeightMeasurementResult.dart b/lib/core/model/my_trakers/weight/WeightMeasurementResult.dart
new file mode 100644
index 00000000..337e8662
--- /dev/null
+++ b/lib/core/model/my_trakers/weight/WeightMeasurementResult.dart
@@ -0,0 +1,74 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class WeightMeasurementResult {
+ int patientID;
+ int lineItemNo;
+ int weightMeasured;
+ DateTime weightDate;
+ dynamic remark;
+ bool isActive;
+ int measured;
+ dynamic unit;
+ int chartYear;
+ dynamic chartMonth;
+ double yearAverageResult;
+ dynamic monthAverageResult;
+ dynamic weekAverageResult;
+ dynamic weekDesc;
+
+ WeightMeasurementResult(
+ {this.patientID,
+ this.lineItemNo,
+ this.weightMeasured,
+ this.weightDate,
+ this.remark,
+ this.isActive,
+ this.measured,
+ this.unit,
+ this.chartYear,
+ this.chartMonth,
+ this.yearAverageResult,
+ this.monthAverageResult,
+ this.weekAverageResult,
+ this.weekDesc});
+
+ WeightMeasurementResult.fromJson(Map json) {
+ try {
+ patientID = json['PatientID'];
+ lineItemNo = json['LineItemNo'];
+ weightMeasured = json['WeightMeasured'];
+ weightDate = DateUtil.convertStringToDate(json['WeightDate']);
+ remark = json['Remark'];
+ isActive = json['IsActive'];
+ measured = json['Measured'];
+ unit = json['Unit'];
+ chartYear = json['ChartYear'];
+ chartMonth = json['ChartMonth'];
+ yearAverageResult = json['YearAverageResult'];
+ monthAverageResult = json['MonthAverageResult'];
+ weekAverageResult = json['WeekAverageResult'];
+ weekDesc = json['WeekDesc'];
+ } catch (e) {
+ print(e);
+ }
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientID'] = this.patientID;
+ data['LineItemNo'] = this.lineItemNo;
+ data['WeightMeasured'] = this.weightMeasured;
+ data['WeightDate'] = this.weightDate;
+ data['Remark'] = this.remark;
+ data['IsActive'] = this.isActive;
+ data['Measured'] = this.measured;
+ data['Unit'] = this.unit;
+ data['ChartYear'] = this.chartYear;
+ data['ChartMonth'] = this.chartMonth;
+ data['YearAverageResult'] = this.yearAverageResult;
+ data['MonthAverageResult'] = this.monthAverageResult;
+ data['WeekAverageResult'] = this.weekAverageResult;
+ data['WeekDesc'] = this.weekDesc;
+ return data;
+ }
+}
diff --git a/lib/core/model/my_trakers/weight/YearWeightMeasurementResultAverage.dart b/lib/core/model/my_trakers/weight/YearWeightMeasurementResultAverage.dart
new file mode 100644
index 00000000..c2e20cb9
--- /dev/null
+++ b/lib/core/model/my_trakers/weight/YearWeightMeasurementResultAverage.dart
@@ -0,0 +1,33 @@
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class YearWeightMeasurementResultAverage {
+ dynamic monthAverageResult;
+ int monthNumber;
+ String monthName;
+ String yearName;
+ DateTime date;
+
+ YearWeightMeasurementResultAverage(
+ {this.monthAverageResult,
+ this.monthNumber,
+ this.monthName,
+ this.yearName});
+
+ YearWeightMeasurementResultAverage.fromJson(Map json) {
+ monthAverageResult = json['monthAverageResult'];
+ monthNumber = json['monthNumber'];
+ monthName = json['monthName'];
+ yearName = json['yearName'];
+ date = DateUtil.getMonthDateTime(monthName,yearName);
+
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['monthAverageResult'] = this.monthAverageResult;
+ data['monthNumber'] = this.monthNumber;
+ data['monthName'] = this.monthName;
+ data['yearName'] = this.yearName;
+ return data;
+ }
+}
diff --git a/lib/core/model/prescriptions/prescriptions_order.dart b/lib/core/model/prescriptions/prescriptions_order.dart
index db2b1855..fdcbf203 100644
--- a/lib/core/model/prescriptions/prescriptions_order.dart
+++ b/lib/core/model/prescriptions/prescriptions_order.dart
@@ -2,35 +2,35 @@ import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class PrescriptionsOrder {
int iD;
- String patientID;
+ dynamic patientID;
bool patientOutSA;
bool isOutPatient;
int projectID;
int nearestProjectID;
double longitude;
double latitude;
- String appointmentNo;
- String dischargeID;
+ dynamic appointmentNo;
+ dynamic dischargeID;
int lineItemNo;
int status;
- String description;
- String descriptionN;
+ dynamic description;
+ dynamic descriptionN;
DateTime createdOn;
int serviceID;
int createdBy;
DateTime editedOn;
int editedBy;
int channel;
- String clientRequestID;
+ dynamic clientRequestID;
bool returnedToQueue;
- Null pickupDateTime;
- Null pickupLocationName;
- Null dropoffLocationName;
+ dynamic pickupDateTime;
+ dynamic pickupLocationName;
+ dynamic dropoffLocationName;
int realRRTHaveTransactions;
- String nearestProjectDescription;
- String nearestProjectDescriptionN;
- String projectDescription;
- String projectDescriptionN;
+ dynamic nearestProjectDescription;
+ dynamic nearestProjectDescriptionN;
+ dynamic projectDescription;
+ dynamic projectDescriptionN;
PrescriptionsOrder(
{this.iD,
diff --git a/lib/core/service/AlHabibMedicalService/H2O_service.dart b/lib/core/service/AlHabibMedicalService/H2O_service.dart
new file mode 100644
index 00000000..d44b50ef
--- /dev/null
+++ b/lib/core/service/AlHabibMedicalService/H2O_service.dart
@@ -0,0 +1,89 @@
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/insert_user_activity_request_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/user_progress_for_month_data_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/user_progress_for_today_data_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/user_progress_for_week_data_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/user_progress_request_model.dart';
+import 'package:diplomaticquarterapp/core/service/base_service.dart';
+
+class H2OService extends BaseService {
+ List userProgressForTodayDataList = List();
+ List userProgressForWeekDataList = List();
+ List userProgressForMonthDataList = List();
+ UserProgressRequestModel userProgressRequestModel =
+ UserProgressRequestModel();
+
+ Future getUserProgressForTodayData() async {
+ userProgressRequestModel.progress = 1;
+ userProgressRequestModel.mobileNumber = user.mobileNumber.substring(1);
+ userProgressRequestModel.identificationNo = user.patientIdentificationNo;
+
+ hasError = false;
+ await baseAppClient.post(H2O_GET_USER_PROGRESS,
+ onSuccess: (dynamic response, int statusCode) {
+ userProgressForTodayDataList.clear();
+ response['UserProgressForTodayData'].forEach((progressData) {
+ userProgressForTodayDataList
+ .add(UserProgressForTodayDataModel.fromJson(progressData));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: userProgressRequestModel.toJson());
+ }
+
+ Future getUserProgressForWeekData() async {
+ userProgressRequestModel.progress = 2;
+ userProgressRequestModel.mobileNumber = super.user.mobileNumber.substring(1);
+ userProgressRequestModel.identificationNo = super.user.patientIdentificationNo;
+
+ hasError = false;
+ await baseAppClient.post(H2O_GET_USER_PROGRESS,
+ onSuccess: (dynamic response, int statusCode) {
+ userProgressForTodayDataList.clear();
+ response['UserProgressForWeekData'].forEach((hospital) {
+ userProgressForWeekDataList.add(UserProgressForWeekDataModel.fromJson(hospital));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: userProgressRequestModel.toJson());
+ }
+
+ Future getUserProgressForMonthData() async {
+ userProgressRequestModel.progress = 3;
+ userProgressRequestModel.mobileNumber = super.user.mobileNumber.substring(1);
+ userProgressRequestModel.identificationNo = super.user.patientIdentificationNo;
+
+ hasError = false;
+ await baseAppClient.post(H2O_GET_USER_PROGRESS,
+ onSuccess: (dynamic response, int statusCode) {
+ userProgressForMonthDataList.clear();
+ response['UserProgressForMonthData'].forEach((hospital) {
+ userProgressForMonthDataList.add(UserProgressForMonthDataModel.fromJson(hospital));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: userProgressRequestModel.toJson());
+ }
+
+
+
+
+ Future insertUserActivity(InsertUserActivityRequestModel insertUserActivityRequestModel) async {
+
+ hasError = false;
+ await baseAppClient.post(H2O_INSERT_USER_ACTIVITY,
+ onSuccess: (dynamic response, int statusCode) {
+ userProgressForTodayDataList.clear();
+ response['UserProgressForTodayData'].forEach((progressData) {
+ userProgressForTodayDataList
+ .add(UserProgressForTodayDataModel.fromJson(progressData));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: insertUserActivityRequestModel.toJson());
+ }
+}
diff --git a/lib/core/service/AlHabibMedicalService/e_referral_service.dart b/lib/core/service/AlHabibMedicalService/e_referral_service.dart
new file mode 100644
index 00000000..6c356f5c
--- /dev/null
+++ b/lib/core/service/AlHabibMedicalService/e_referral_service.dart
@@ -0,0 +1,125 @@
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/check_activation_code_for_e_referral_request_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/create_e_referral_request_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/get_all_cities_response_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/get_all_relationship_types_response_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/search_e_referral_request_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/search_e_referral_response_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/send_activation_code_for_e_referral_request_model.dart';
+import 'package:diplomaticquarterapp/core/service/base_service.dart';
+
+class EReferralService extends BaseService {
+ List _relationTypes = List();
+ List get relationTypes => _relationTypes;
+ List _allCities = List();
+ List get allCities => _allCities;
+
+ List _allReferral = List();
+ List get allReferral => _allReferral;
+ String _activationCode;
+ String _logInTokenID;
+
+ String get activationCode => _activationCode;
+
+ bool _isActivationCodeValid = false;
+
+ bool get isActivationCodeValid => _isActivationCodeValid;
+
+ Future getRelationTypes() async {
+ await baseAppClient.post(GET_ALL_RELATIONSHIP_TYPES,
+ onSuccess: (dynamic response, int statusCode) {
+ _relationTypes.clear();
+ response['List_EReferralResult'].forEach((relation) {
+ _relationTypes
+ .add(GetAllRelationshipTypeResponseModel.fromJson(relation));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: {});
+ }
+
+ Future getAllCities() async {
+ await baseAppClient.post(GET_ALL_CITIES,
+ onSuccess: (dynamic response, int statusCode) {
+ _allCities.clear();
+ response['ListCities'].forEach((city) {
+ _allCities
+ .add(GetAllCitiesResponseModel.fromJson(city));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: {});
+ }
+
+ Future sendActivationCodeForEReferral(
+
+ SendActivationCodeForEReferralRequestModel
+ sendActivationCodeForEReferralRequestModel) async {
+ hasError = false;
+ await baseAppClient.post(SEND_ACTIVATION_CODE_FOR_E_REFERRAL,
+ onSuccess: (dynamic response, int statusCode) {
+ _activationCode = response["VerificationCode"];
+ _logInTokenID = response["LogInTokenID"];
+
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: sendActivationCodeForEReferralRequestModel.toJson());
+ }
+
+
+
+ Future checkActivationCodeForEReferral(
+ CheckActivationCodeForEReferralResponseModel
+ checkActivationCodeForEReferralRequestModel) async {
+ checkActivationCodeForEReferralRequestModel.isDentalAllowedBackend = false;
+ checkActivationCodeForEReferralRequestModel.logInTokenID= _logInTokenID;
+ hasError =false;
+ await baseAppClient.post(CHECK_ACTIVATION_CODE_FOR_E_REFERRAL,
+ onSuccess: (dynamic response, int statusCode) {
+ _isActivationCodeValid = true;
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: checkActivationCodeForEReferralRequestModel.toJson());
+ }
+
+ Future createEReferral(
+ CreateEReferralRequestModel createEReferralRequestModel
+ ) async {
+ hasError = false;
+ await baseAppClient.post(CREATE_E_REFERRAL/*'Services/Patients.svc/REST/CreateEReferral'*/,
+ onSuccess: (dynamic response, int statusCode) {
+ // TODO Waiting for fix service
+ var asd= ("EEEEEE");
+
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: createEReferralRequestModel.toJson());
+ }
+
+ Future getEReferrals(
+ SearchEReferralRequestModel searchEReferralRequestModel
+ ) async {
+ hasError = false;
+ // TODO return this code when the fix the server
+ // await baseAppClient.post(GET_E_REFERRALS,
+ // onSuccess: (dynamic response, int statusCode) {
+ // print("EEEEEE");
+ // // TODO Waiting for fix service
+ // // ToDo change this one when you have data
+ // _allReferral.clear();
+ // // response['ListCities'].forEach((city) {
+ // // _allReferral
+ // // .add(SearchEReferralResponseModel.fromJson(city));
+ // // });
+ //
+ // }, onFailure: (String error, int statusCode) {
+ // hasError = true;
+ // super.error = error;
+ // }, body: searchEReferralRequestModel.toJson());
+ }
+}
diff --git a/lib/core/service/AuthenticatedUserObject.dart b/lib/core/service/AuthenticatedUserObject.dart
new file mode 100644
index 00000000..1aaa4755
--- /dev/null
+++ b/lib/core/service/AuthenticatedUserObject.dart
@@ -0,0 +1,23 @@
+import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
+import 'package:diplomaticquarterapp/models/Authentication/authenticated_user.dart';
+import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
+
+class AuthenticatedUserObject{
+ AuthenticatedUser user;
+ AppSharedPreferences sharedPref = AppSharedPreferences();
+ bool isLogin = false;
+ AuthenticatedUserObject(){
+ getUser();
+ }
+
+ getUser() async {
+ if (user==null) {
+ var userData = await sharedPref.getObject(USER_PROFILE);
+ if (userData != null) user = AuthenticatedUser.fromJson(userData);
+ }
+
+ var isLogin = await sharedPref.getString(LOGIN_TOKEN_ID);
+ this.isLogin = isLogin != null;
+ }
+
+}
diff --git a/lib/core/service/base_service.dart b/lib/core/service/base_service.dart
index bef0e1f4..f2820dc1 100644
--- a/lib/core/service/base_service.dart
+++ b/lib/core/service/base_service.dart
@@ -1,7 +1,9 @@
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
+import 'package:diplomaticquarterapp/locator.dart';
import 'package:diplomaticquarterapp/models/Authentication/authenticated_user.dart';
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
+import 'AuthenticatedUserObject.dart';
import 'client/base_app_client.dart';
class BaseService {
@@ -10,14 +12,19 @@ class BaseService {
BaseAppClient baseAppClient = BaseAppClient();
AuthenticatedUser user;
+ AuthenticatedUserObject authenticatedUserObject = locator();
+
AppSharedPreferences sharedPref = AppSharedPreferences();
BaseService() {
- _getUser();
+ user = authenticatedUserObject.user;
+ // getUser();
}
- _getUser() async {
- var userData = await sharedPref.getObject(USER_PROFILE);
- if (userData != null) user = AuthenticatedUser.fromJson(userData);
+ getUser() async {
+ if (user==null) {
+ var userData = await sharedPref.getObject(USER_PROFILE);
+ if (userData != null) user = AuthenticatedUser.fromJson(userData);
+ }
}
}
diff --git a/lib/core/service/blood/blood_details_servies.dart b/lib/core/service/blood/blood_details_servies.dart
new file mode 100644
index 00000000..644d96d9
--- /dev/null
+++ b/lib/core/service/blood/blood_details_servies.dart
@@ -0,0 +1,31 @@
+
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/blooddonation/blood_groub_details.dart';
+
+import '../base_service.dart';
+
+class BloodDetailsService extends BaseService{
+
+ // List CitiesModelList = List();
+ // Map body = Map();
+
+ List BloodModelList = List();
+ Map body = Map();
+ Future getAllBloodOrders() async {
+ hasError = false;
+ body['List_BloodGroupDetails'] = false;
+ await baseAppClient.post(GET_BLOOD_REQUEST,
+ onSuccess: (dynamic response, int statusCode) {
+ BloodModelList.clear();
+
+ response['List_BloodGroupDetails'].forEach((vital) {
+ BloodModelList.add(List_BloodGroupDetailsModel.fromJson(vital));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+
+}
\ No newline at end of file
diff --git a/lib/core/service/blood/blood_donation_service.dart b/lib/core/service/blood/blood_donation_service.dart
new file mode 100644
index 00000000..326407a3
--- /dev/null
+++ b/lib/core/service/blood/blood_donation_service.dart
@@ -0,0 +1,28 @@
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/blooddonation/get_all_cities.dart';
+
+import '../base_service.dart';
+
+class BloodDonationService extends BaseService {
+ //List LivechatModelList = List();
+
+// Map body = Map();
+
+ List CitiesModelList = List();
+ Map body = Map();
+ Future getAllCitiesOrders() async {
+ hasError = false;
+ body['ListCities'] = false;
+ await baseAppClient.post(GET_CITIES_REQUEST,
+ onSuccess: (dynamic response, int statusCode) {
+ CitiesModelList.clear();
+
+ response['ListCities'].forEach((vital) {
+ CitiesModelList.add(CitiesModel.fromJson(vital));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+}
diff --git a/lib/core/service/client/base_app_client.dart b/lib/core/service/client/base_app_client.dart
index 4d04378a..f5494049 100644
--- a/lib/core/service/client/base_app_client.dart
+++ b/lib/core/service/client/base_app_client.dart
@@ -78,8 +78,9 @@ class BaseAppClient {
print("URL : $url");
print("Body : ${json.encode(body)}");
+ var asd="";
if (await Utils.checkConnection()) {
- final response = await http.post(url,
+ final response = await http.post(url.trim(),
body: json.encode(body),
headers: {
'Content-Type': 'application/json',
diff --git a/lib/core/service/contactus/livechat_service.dart b/lib/core/service/contactus/livechat_service.dart
index ae8fabc9..b806d56b 100644
--- a/lib/core/service/contactus/livechat_service.dart
+++ b/lib/core/service/contactus/livechat_service.dart
@@ -4,36 +4,24 @@ import 'package:diplomaticquarterapp/core/model/contactus/get_hmg_locations.dart
import 'package:diplomaticquarterapp/core/model/contactus/get_patientI_cprojects.dart';
import '../base_service.dart';
-class LiveChatService extends BaseService{
-
-
-
-
- List LivechatModelList=List();
-
+class LiveChatService extends BaseService {
+ List LivechatModelList = List();
Map body = Map();
-
-
Future getAllLiveChatOrders() async {
hasError = false;
- body['List_PatientICProjects'] =false;
+ body['List_PatientICProjects'] = false;
await baseAppClient.post(GET_LIVECHAT_REQUEST,
onSuccess: (dynamic response, int statusCode) {
- LivechatModelList.clear();
-
-
- response['List_PatientICProjects'].forEach((vital) {
-
- LivechatModelList.add(GetPatientICProjectsModel.fromJson(vital));
-
- });
- }, onFailure: (String error, int statusCode) {
- hasError = true;
- super.error = error;
- }, body: body);
+ LivechatModelList.clear();
+
+ response['List_PatientICProjects'].forEach((vital) {
+ LivechatModelList.add(GetPatientICProjectsModel.fromJson(vital));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
}
-
-
-}
\ No newline at end of file
+}
diff --git a/lib/core/service/medical/ActiveMedicationsService.dart b/lib/core/service/medical/ActiveMedicationsService.dart
new file mode 100644
index 00000000..070b7e5f
--- /dev/null
+++ b/lib/core/service/medical/ActiveMedicationsService.dart
@@ -0,0 +1,27 @@
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/active_medications/ActivePrescriptionReport.dart';
+import 'package:diplomaticquarterapp/core/service/base_service.dart';
+
+class ActiveMedicationsService extends BaseService{
+
+ List activePrescriptionReport = List();
+
+ getActiveMedication() async {
+ hasError = false;
+ super.error = "";
+ Map body = Map();
+ body['isDentalAllowedBackend'] = false;
+ await baseAppClient.post(ADD_ACTIVE_PRESCRIPTIONS_REPORT_BY_PATIENT_ID,
+ onSuccess: (response, statusCode) async {
+ activePrescriptionReport.clear();
+ response['List_ActiveGetPrescriptionReportByPatientID'].forEach((appoitment) {
+ activePrescriptionReport
+ .add(ActivePrescriptionReport.fromJson(appoitment));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+}
\ No newline at end of file
diff --git a/lib/core/service/medical/AllergiesService.dart b/lib/core/service/medical/AllergiesService.dart
new file mode 100644
index 00000000..d3deae2b
--- /dev/null
+++ b/lib/core/service/medical/AllergiesService.dart
@@ -0,0 +1,25 @@
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/Allergy/Allergy.dart';
+import 'package:diplomaticquarterapp/core/service/base_service.dart';
+
+class AllergiesService extends BaseService {
+ List allergies = List();
+
+ getAllergies() async {
+ hasError = false;
+ super.error = "";
+ Map body = Map();
+ body['isDentalAllowedBackend'] = false;
+ body['OutSA'] = 0;
+ await baseAppClient.post(GET_PATIENT_ALLERGIES,
+ onSuccess: (response, statusCode) async {
+ allergies.clear();
+ response['Patient_Allergies'].forEach((allergy) {
+ allergies.add(Allergy.fromJson(allergy));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+}
diff --git a/lib/core/service/medical/BloodPressureService.dart b/lib/core/service/medical/BloodPressureService.dart
new file mode 100644
index 00000000..048c98e9
--- /dev/null
+++ b/lib/core/service/medical/BloodPressureService.dart
@@ -0,0 +1,100 @@
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_pressur/BloodPressureResult.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_pressur/MonthBloodPressureResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_pressur/WeekBloodPressureResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_pressur/YearBloodPressureResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/DiabtecPatientResult.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/MonthDiabtectResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/WeekDiabtectResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/YearDiabtecResultAverage.dart';
+import 'package:diplomaticquarterapp/core/service/base_service.dart';
+
+class BloodPressureService extends BaseService {
+ List monthDiabtectResultAverageList = List();
+ List weekDiabtectResultAverageList = List();
+ List yearDiabtecResultAverageList = List();
+
+ ///Result
+ List monthDiabtecPatientResult = List();
+ List weekDiabtecPatientResult = List();
+ List yearDiabtecPatientResult = List();
+
+ Future getBloodSugar() async {
+ hasError = false;
+ Map body = Map();
+ body['isDentalAllowedBackend'] = false;
+ await baseAppClient.post(GET_BLOOD_PRESSURE_RESULT_AVERAGE,
+ onSuccess: (dynamic response, int statusCode) {
+ monthDiabtectResultAverageList.clear();
+ weekDiabtectResultAverageList.clear();
+ yearDiabtecResultAverageList.clear();
+ response['List_MonthBloodPressureResultAverage'].forEach((item) {
+ monthDiabtectResultAverageList
+ .add(MonthBloodPressureResultAverage.fromJson(item));
+ });
+
+ response['List_WeekBloodPressureResultAverage'].forEach((item) {
+ weekDiabtectResultAverageList
+ .add(WeekBloodPressureResultAverage.fromJson(item));
+ });
+
+ response['List_YearBloodPressureResultAverage'].forEach((item) {
+ yearDiabtecResultAverageList
+ .add(YearBloodPressureResultAverage.fromJson(item));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+ Future getDiabtecResults() async {
+ hasError = false;
+ await baseAppClient.post(GET_BLOOD_PRESSURE_RESULT,
+ onSuccess: (dynamic response, int statusCode) {
+ monthDiabtecPatientResult.clear();
+ weekDiabtecPatientResult.clear();
+ yearDiabtecPatientResult.clear();
+
+ response['List_WeekBloodPressureResult'].forEach((item) {
+ weekDiabtecPatientResult.add(BloodPressureResult.fromJson(item));
+ });
+
+ response['List_MonthBloodPressureResult'].forEach((item) {
+ monthDiabtecPatientResult.add(BloodPressureResult.fromJson(item));
+ });
+
+ response['List_YearBloodPressureResult'].forEach((item) {
+ yearDiabtecPatientResult.add(BloodPressureResult.fromJson(item));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: Map());
+ }
+
+ addDiabtecResult(
+ {String bloodPressureDate,
+ String diastolicPressure,
+ String systolicePressure,
+ int measuredArm}) async {
+ hasError = false;
+ super.error = "";
+
+ Map body = Map();
+ body['BloodPressureDate'] = bloodPressureDate;
+ body['DiastolicPressure'] = diastolicPressure;
+ body['SystolicePressure'] = systolicePressure;
+ body['MeasuredArm'] = measuredArm;
+ body['isDentalAllowedBackend'] = false;
+
+ await baseAppClient.post(ADD_BLOOD_PRESSURE_RESULT,
+ onSuccess: (response, statusCode) async {
+
+ },
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+}
diff --git a/lib/core/service/medical/BloodSugarService.dart b/lib/core/service/medical/BloodSugarService.dart
new file mode 100644
index 00000000..09fe9fe9
--- /dev/null
+++ b/lib/core/service/medical/BloodSugarService.dart
@@ -0,0 +1,96 @@
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/DiabtecPatientResult.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/MonthDiabtectResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/WeekDiabtectResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/YearDiabtecResultAverage.dart';
+import 'package:diplomaticquarterapp/core/service/base_service.dart';
+
+class BloodSugarService extends BaseService {
+ List monthDiabtectResultAverageList = List();
+ List weekDiabtectResultAverageList = List();
+ List yearDiabtecResultAverageList = List();
+
+ ///Result
+ List monthDiabtecPatientResult = List();
+ List weekDiabtecPatientResult = List();
+ List yearDiabtecPatientResult = List();
+
+ Future getBloodSugar() async {
+ hasError = false;
+ Map body = Map();
+ body['isDentalAllowedBackend'] = false;
+ await baseAppClient.post(GET_DIABETIC_RESULT_AVERAGE,
+ onSuccess: (dynamic response, int statusCode) {
+ monthDiabtectResultAverageList.clear();
+ weekDiabtectResultAverageList.clear();
+ yearDiabtecResultAverageList.clear();
+ response['List_MonthDiabtectResultAverage'].forEach((item) {
+ monthDiabtectResultAverageList
+ .add(MonthDiabtectResultAverage.fromJson(item));
+ });
+
+ response['List_WeekDiabtectResultAverage'].forEach((item) {
+ weekDiabtectResultAverageList
+ .add(WeekDiabtectResultAverage.fromJson(item));
+ });
+
+ response['List_YearDiabtecResultAverage'].forEach((item) {
+ yearDiabtecResultAverageList
+ .add(YearDiabtecResultAverage.fromJson(item));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+ Future getDiabtecResults() async {
+ hasError = false;
+ await baseAppClient.post(GET_DIABTEC_RESULT,
+ onSuccess: (dynamic response, int statusCode) {
+ monthDiabtecPatientResult.clear();
+ weekDiabtecPatientResult.clear();
+ yearDiabtecPatientResult.clear();
+
+ response['List_MonthDiabtecPatientResult'].forEach((item) {
+ monthDiabtecPatientResult.add(DiabtecPatientResult.fromJson(item));
+ });
+
+ response['List_WeekDiabtecPatientResult'].forEach((item) {
+ weekDiabtecPatientResult.add(DiabtecPatientResult.fromJson(item));
+ });
+
+ response['List_YearDiabtecPatientResult'].forEach((item) {
+ yearDiabtecPatientResult.add(DiabtecPatientResult.fromJson(item));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: Map());
+ }
+
+ addDiabtecResult(
+ {String bloodSugerDateChart,
+ String bloodSugerResult,
+ String diabtecUnit,
+ int measuredTime}) async {
+ hasError = false;
+ super.error = "";
+
+ Map body = Map();
+ body['BloodSugerDateChart'] = bloodSugerDateChart;
+ body['BloodSugerResult'] = bloodSugerResult;
+ body['DiabtecUnit'] = diabtecUnit;
+ body['MeasuredTime'] =2;// measuredTime;
+ body['isDentalAllowedBackend'] = false;
+
+ await baseAppClient.post(ADD_BLOOD_PRESSURE_RESULT,
+ onSuccess: (response, statusCode) async {
+ var asd ="";
+ },
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+}
diff --git a/lib/core/service/medical/EyeService.dart b/lib/core/service/medical/EyeService.dart
new file mode 100644
index 00000000..879acbbf
--- /dev/null
+++ b/lib/core/service/medical/EyeService.dart
@@ -0,0 +1,26 @@
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/eye/AppoimentAllHistoryResult.dart';
+import 'package:diplomaticquarterapp/core/service/base_service.dart';
+
+class EyeService extends BaseService {
+ List appoimentAllHistoryResultList = List();
+
+ getEyeMeasurement() async {
+ hasError = false;
+ super.error = "";
+ Map body = Map();
+ body['isDentalAllowedBackend'] = false;
+ body['IsIrisPrescription'] = true;
+ await baseAppClient.post(GET_PATIENT_APPOINTMENT_HISTORY,
+ onSuccess: (response, statusCode) async {
+ appoimentAllHistoryResultList.clear();
+ response['AppoimentAllHistoryResultList'].forEach((appoitment) {
+ appoimentAllHistoryResultList
+ .add(AppoimentAllHistoryResultList.fromJson(appoitment));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+}
diff --git a/lib/core/service/medical/WeightPressureService.dart b/lib/core/service/medical/WeightPressureService.dart
new file mode 100644
index 00000000..006de821
--- /dev/null
+++ b/lib/core/service/medical/WeightPressureService.dart
@@ -0,0 +1,104 @@
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_pressur/BloodPressureResult.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_pressur/MonthBloodPressureResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_pressur/WeekBloodPressureResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_pressur/YearBloodPressureResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/DiabtecPatientResult.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/MonthDiabtectResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/WeekDiabtectResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/blood_sugar/YearDiabtecResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/weight/MonthWeightMeasurementResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/weight/WeekWeightMeasurementResultAverage.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/weight/WeightMeasurementResult.dart';
+import 'package:diplomaticquarterapp/core/model/my_trakers/weight/YearWeightMeasurementResultAverage.dart';
+import 'package:diplomaticquarterapp/core/service/base_service.dart';
+
+class WeightService extends BaseService {
+
+ ///Average
+ List monthWeightMeasurementResultAverage = List();
+ List weekWeightMeasurementResultAverage = List();
+ List yearWeightMeasurementResultAverage = List();
+
+ ///Result
+ List monthWeightMeasurementResult = List();
+ List weekWeightMeasurementResult = List();
+ List yearWeightMeasurementResult = List();
+
+ Future getWeightAverage() async {
+ hasError = false;
+ Map body = Map();
+ body['isDentalAllowedBackend'] = false;
+ await baseAppClient.post(GET_WEIGHT_PRESSURE_RESULT_AVERAGE,
+ onSuccess: (dynamic response, int statusCode) {
+ monthWeightMeasurementResultAverage.clear();
+ weekWeightMeasurementResultAverage.clear();
+ yearWeightMeasurementResultAverage.clear();
+ response['List_MonthWeightMeasurementResultAverage'].forEach((item) {
+ monthWeightMeasurementResultAverage
+ .add(MonthWeightMeasurementResultAverage.fromJson(item));
+ });
+
+ response['List_WeekWeightMeasurementResultAverage'].forEach((item) {
+ weekWeightMeasurementResultAverage
+ .add(WeekWeightMeasurementResultAverage.fromJson(item));
+ });
+
+ response['List_YearWeightMeasurementResultAverage'].forEach((item) {
+ yearWeightMeasurementResultAverage
+ .add(YearWeightMeasurementResultAverage.fromJson(item));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+ Future getWeightMeasurementResult() async {
+ hasError = false;
+ await baseAppClient.post(GET_WEIGHT_PRESSURE_RESULT,
+ onSuccess: (dynamic response, int statusCode) {
+ monthWeightMeasurementResult.clear();
+ weekWeightMeasurementResult.clear();
+ yearWeightMeasurementResult.clear();
+
+ response['List_WeekWeightMeasurementResult'].forEach((item) {
+ weekWeightMeasurementResult.add(WeightMeasurementResult.fromJson(item));
+ });
+
+ response['List_MonthWeightMeasurementResult'].forEach((item) {
+ monthWeightMeasurementResult.add(WeightMeasurementResult.fromJson(item));
+ });
+
+ response['List_YearWeightMeasurementResult'].forEach((item) {
+ yearWeightMeasurementResult.add(WeightMeasurementResult.fromJson(item));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: Map());
+ }
+
+ addWeightResult(
+ {String weightDate,
+ String weightMeasured,
+ int weightUnit}) async {
+ hasError = false;
+ super.error = "";
+
+ Map body = Map();
+ body['WeightDate'] = weightDate;
+ body['WeightMeasured'] = weightMeasured;
+ body['weightUnit'] = weightUnit;
+ body['isDentalAllowedBackend'] = false;
+
+ await baseAppClient.post(ADD_WEIGHT_PRESSURE_RESULT,
+ onSuccess: (response, statusCode) async {
+
+ },
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+}
diff --git a/lib/core/service/medical/ask_doctor_services.dart b/lib/core/service/medical/ask_doctor_services.dart
new file mode 100644
index 00000000..9a819a6e
--- /dev/null
+++ b/lib/core/service/medical/ask_doctor_services.dart
@@ -0,0 +1,106 @@
+import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/core/model/ask_doctor/AskDoctorReqTypes.dart';
+import 'package:diplomaticquarterapp/core/model/ask_doctor/DoctorResponse.dart';
+import 'package:diplomaticquarterapp/core/service/base_service.dart';
+import 'package:diplomaticquarterapp/models/Appointments/DoctorListResponse.dart';
+import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
+
+class AskDoctorService extends BaseService {
+ List askDoctorReqTypes = List();
+ List doctorResponseList = List();
+
+ Future getCallInfoHoursResult({int projectId, int doctorId}) async {
+ hasError = false;
+ Map body = Map();
+ body['isDentalAllowedBackend'] = false;
+ body['DoctorID'] = doctorId;
+ body['ProjectID'] = projectId;
+
+ await baseAppClient.post(GET_CALL_INFO_HOURS_RESULT,
+ onSuccess: (dynamic response, int statusCode) {
+ ///OKAY
+ var asd="";
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+ Future getCallRequestTypeLOV() async {
+ hasError =false;
+ Map body = Map();
+ body['isDentalAllowedBackend'] = false;
+ await baseAppClient.post(GET_CALL_REQUEST_TYPE_LOV,
+ onSuccess: (dynamic response, int statusCode) {
+ askDoctorReqTypes.clear();
+ response['ListReqTypes'].forEach((reqType) {
+ askDoctorReqTypes.add(AskDoctorReqTypes.fromJson(reqType));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+ Future getDoctorResponse() async {
+ hasError =false;
+ Map body = Map();
+ body['isDentalAllowedBackend'] = false;
+ body['from'] =
+ "${DateTime.now().year}-${DateTime.now().month}-${DateTime.now().day} 00:00:00";
+ body['from'] =
+ "${DateTime.now().year}-${DateTime.now().month}-${DateTime.now().day} ${DateTime.now().hour}:${DateTime.now().minute}:00";
+ await baseAppClient.post(GET_DOCTOR_RESPONSE,
+ onSuccess: (dynamic response, int statusCode) {
+ doctorResponseList.clear();
+ response['List_DoctorResponse'].forEach((reqType) {
+ doctorResponseList.add(DoctorResponse.fromJson(reqType));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+ Future updateReadStatus({int transactionNo}) async {
+ hasError =false;
+ Map body = Map();
+ body['isDentalAllowedBackend'] = false;
+ body['TransactionNo'] = transactionNo;
+ await baseAppClient.post(UPDATE_READ_STATUS,
+ onSuccess: (dynamic response, int statusCode) {
+ //TODO fix it
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+
+ Future sendRequestLOV({DoctorList doctorList,String requestType,String remark}) async {
+ hasError =false;
+ Map body = Map();
+ body['ProjectID'] = doctorList.projectID;
+ body['SetupID'] = doctorList.setupID;
+ body['DoctorID'] = doctorList.doctorID;
+ body['PatientMobileNumber'] = user.mobileNumber;
+ body['IsMessageSent'] = false;
+ body['RequestDate'] = DateUtil.yearMonthDay(DateTime.now());
+ body['RequestTime'] = DateUtil.time(DateTime.now());
+ body['Remarks'] = remark;
+ body['Status'] = 2;// 4 for testing only.."cancelled status insert" else should be changed to 1 in live version
+ body['CreatedBy'] = 102;
+ body['CreatedOn'] = DateUtil.yearMonthDay(DateTime.now());
+ body['EditedBy'] = 102;
+ body['EditedOn'] = DateUtil.yearMonthDay(DateTime.now());
+ body['isDentalAllowedBackend'] = false;
+ await baseAppClient.post(INSERT_CALL_INFO,
+ onSuccess: (dynamic response, int statusCode) {
+
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+}
diff --git a/lib/core/service/medical/my_doctor_service.dart b/lib/core/service/medical/my_doctor_service.dart
index 4df3ce8a..f2ba067a 100644
--- a/lib/core/service/medical/my_doctor_service.dart
+++ b/lib/core/service/medical/my_doctor_service.dart
@@ -15,22 +15,8 @@ class MyDoctorService extends BaseService {
RequestPatientDoctorAppointment patientDoctorAppointmentRequest =
RequestPatientDoctorAppointment(
- top: 0,
- versionID: 5.5,
- beforeDays: 0,
- exludType: 4,
- channel: 3,
- languageID: 2,
- iPAdress: '10.20.10.20',
- generalid: 'Cs2020@2016\$2958',
- patientOutSA: 0,
- sessionID: 'TMRhVmkGhOsvamErw',
- isDentalAllowedBackend: false,
- deviceTypeID: 1,
- patientID: 1231755,
- tokenID: '@dm!n',
- patientType: 1,
- patientTypeID: 1);
+ isDentalAllowedBackend: false,
+ );
RequestDoctorRating _requestDoctorRating = RequestDoctorRating(
channel: 3,
@@ -44,7 +30,12 @@ class MyDoctorService extends BaseService {
generalid: 'Cs2020@2016\$2958',
isDentalAllowedBackend: false);
- Future getPatientDoctorAppointmentList() async {
+ Future getPatientDoctorAppointmentList({int top = 0, int beforeDays = 0,int exludType=4}) async {
+ hasError = false;
+ patientDoctorAppointmentRequest.top = top;
+ patientDoctorAppointmentRequest.beforeDays = beforeDays;
+ patientDoctorAppointmentRequest.exludType = exludType;
+
await baseAppClient.post(GET_MY_DOCTOR,
onSuccess: (dynamic response, int statusCode) {
patientDoctorAppointmentList.clear();
@@ -75,7 +66,8 @@ class MyDoctorService extends BaseService {
deviceTypeID: 2,
);
- Future getDoctorProfileAndRating({int doctorId,int clinicID,int projectID }) async {
+ Future getDoctorProfileAndRating(
+ {int doctorId, int clinicID, int projectID}) async {
///GET DOCTOR PROFILE
_requestDoctorProfile.doctorID = doctorId;
_requestDoctorProfile.clinicID = clinicID;
@@ -89,8 +81,6 @@ class MyDoctorService extends BaseService {
doctorList.doctorTitle = doctorProfile.doctorTitleForProfile;
doctorList.name = doctorProfile.doctorName;
doctorList.projectName = doctorProfile.projectName;
-
-
}, onFailure: (String error, int statusCode) {
hasError = true;
super.error = error;
diff --git a/lib/core/viewModels/AlHabibMedicalService/H2O_view_model.dart b/lib/core/viewModels/AlHabibMedicalService/H2O_view_model.dart
new file mode 100644
index 00000000..73a56d9b
--- /dev/null
+++ b/lib/core/viewModels/AlHabibMedicalService/H2O_view_model.dart
@@ -0,0 +1,125 @@
+import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/insert_user_activity_request_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/user_progress_for_month_data_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/user_progress_for_today_data_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/user_progress_for_week_data_model.dart';
+import 'package:diplomaticquarterapp/core/service/AlHabibMedicalService/H2O_service.dart';
+import 'package:diplomaticquarterapp/core/viewModels/base_view_model.dart';
+import 'package:charts_flutter/flutter.dart' as charts;
+import '../../../locator.dart';
+
+class H2OViewModel extends BaseViewModel {
+
+ H2OService _h2OService = locator();
+
+ List userProgressForWeekDataSeries;
+ List userProgressForMonthDataSeries;
+
+ UserProgressForTodayDataModel get userProgressData {
+ if (_h2OService.userProgressForTodayDataList.length != 0)
+ return _h2OService.userProgressForTodayDataList[0];
+ return null;
+ }
+
+
+ Future getUserProgressForTodayData() async {
+ // if(_h2OService.userProgressForTodayDataList.length==0){
+ setState(ViewState.Busy);
+ await _h2OService.getUserProgressForTodayData();
+ if (_h2OService.hasError) {
+ error = _h2OService.error;
+ setState(ViewState.Error);
+ } else {
+ setState(ViewState.Idle);
+ }
+ }
+
+ Future getUserProgressForWeekData() async {
+ setState(ViewState.Busy);
+ await _h2OService.getUserProgressForWeekData();
+ if (_h2OService.hasError) {
+ error = _h2OService.error;
+ setState(ViewState.Error);
+ } else {
+ userProgressForWeekDataSeries = createUserProgressForWeekDataSeries();
+ setState(ViewState.Idle);
+ }
+ }
+
+ Future getUserProgressForMonthData() async {
+ setState(ViewState.Busy);
+ await _h2OService.getUserProgressForMonthData();
+ if (_h2OService.hasError) {
+ error = _h2OService.error;
+ setState(ViewState.Error);
+ } else {
+ userProgressForMonthDataSeries = createUserProgressForMonthDataSeries();
+ setState(ViewState.Idle);
+ }
+ }
+
+
+ List> createUserProgressForWeekDataSeries() {
+ List globalData = [
+ ];
+ _h2OService.userProgressForWeekDataList.forEach((
+ UserProgressForWeekDataModel data) {
+ globalData.add(new ChartSeries(data.dayName, data.percentageConsumed));
+ });
+ return [
+ new charts.Series(
+ id: 'Global Revenue',
+ domainFn: (ChartSeries sales, _) => sales.y,
+ measureFn: (ChartSeries sales, _) => sales.x,
+ data: globalData,
+ ),
+ ];
+ }
+
+ List> createUserProgressForMonthDataSeries() {
+ List globalData = [
+ ];
+ _h2OService.userProgressForMonthDataList.forEach((
+ UserProgressForMonthDataModel data) {
+ globalData.add(new ChartSeries(data.monthName, data.percentageConsumed));
+ });
+ return [
+ new charts.Series(
+ id: 'Global Revenue',
+ domainFn: (ChartSeries sales, _) => sales.y,
+ measureFn: (ChartSeries sales, _) => sales.x,
+ data: globalData,
+ ),
+ ];
+ }
+
+
+ Future insertUserActivity(
+ InsertUserActivityRequestModel insertUserActivityRequestModel) async {
+ setState(ViewState.BusyLocal);
+ insertUserActivityRequestModel.mobileNumber =
+ user.mobileNumber.substring(1);
+ insertUserActivityRequestModel.identificationNo =
+ user.patientIdentificationNo;
+
+ await _h2OService.insertUserActivity(insertUserActivityRequestModel);
+ if (_h2OService.hasError) {
+ error = _h2OService.error;
+ setState(ViewState.ErrorLocal);
+ } else {
+ setState(ViewState.Idle);
+ }
+ }
+
+}
+
+
+/// Sample ordinal data type.
+class ChartSeries {
+ final String y;
+ final int x;
+
+ ChartSeries(this.y, this.x);
+}
diff --git a/lib/core/viewModels/all_habib_medical_services/e_referral_view_model.dart b/lib/core/viewModels/all_habib_medical_services/e_referral_view_model.dart
new file mode 100644
index 00000000..1972e08f
--- /dev/null
+++ b/lib/core/viewModels/all_habib_medical_services/e_referral_view_model.dart
@@ -0,0 +1,91 @@
+import 'dart:core';
+
+import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/check_activation_code_for_e_referral_request_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/create_e_referral_request_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/get_all_cities_response_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/get_all_relationship_types_response_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/search_e_referral_request_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/search_e_referral_response_model.dart';
+import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/send_activation_code_for_e_referral_request_model.dart';
+import 'package:diplomaticquarterapp/core/service/AlHabibMedicalService/e_referral_service.dart';
+
+import '../../../locator.dart';
+import '../base_view_model.dart';
+
+class EReferralViewModel extends BaseViewModel {
+ EReferralService _eReferralService = locator