diff --git a/android/app/build.gradle b/android/app/build.gradle
index bdabb828..965934fd 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -21,6 +21,12 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
+def keystoreProperties = new Properties()
+def keystorePropertiesFile = rootProject.file('key.properties')
+if (keystorePropertiesFile.exists()) {
+ keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
+}
+
apply plugin: 'com.android.application'
apply plugin: 'com.huawei.agconnect'
apply plugin: 'kotlin-android'
@@ -51,29 +57,29 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.ejada.hmg"
minSdkVersion 21
- targetSdkVersion 30
+ targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
}
signingConfigs {
- config{
- storeFile file('key')
- keyAlias 'hmg'
- storePassword 'HmGsa123'
- keyPassword 'HmGsa123'
+ release {
+ keyAlias keystoreProperties['keyAlias']
+ keyPassword keystoreProperties['keyPassword']
+ storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
+ storePassword keystoreProperties['storePassword']
}
}
buildTypes {
debug {
debuggable true
- signingConfig signingConfigs.config
+ signingConfig signingConfigs.release
}
release {
debuggable false
- signingConfig signingConfigs.config
+ signingConfig signingConfigs.release
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
@@ -127,10 +133,11 @@ dependencies {
implementation 'com.github.kittinunf.fuel:fuel-android:2.3.0'
implementation 'com.google.android.gms:play-services-location:17.1.0'//for Android
implementation 'com.google.android.gms:play-services-basement:17.5.0'
- implementation "com.opentok.android:opentok-android-sdk:2.19.1"
+ implementation "com.opentok.android:opentok-android-sdk:2.21.4"
implementation 'com.facebook.stetho:stetho:1.5.1'
implementation 'com.facebook.stetho:stetho-urlconnection:1.5.1'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
+ androidTestImplementation "androidx.test:core:1.4.0"
}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
index ab5e631b..6c937f09 100644
--- a/android/app/src/debug/AndroidManifest.xml
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -4,4 +4,4 @@
to allow setting breakpoints, to provide hot reload, etc.
-->
-
+
\ No newline at end of file
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index e6601b40..de6f8030 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -6,6 +6,7 @@
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
+
@@ -34,9 +35,9 @@
-
+
-
+
@@ -49,7 +50,6 @@
android:showOnLockScreen="true"
android:screenOrientation="sensorPortrait"
android:allowBackup="false"
- tools:replace="android:allowBackup,android:label"
android:label="Dr. Alhabib">
@@ -89,23 +89,23 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
-
+
@@ -117,20 +117,19 @@
Huawei Push Notifications
Set push kit auto enable to true (for obtaining the token on initialize)
-->
-
+
+
+
-
+
-
+ android:enabled="true"
+ android:exported="false" />
-
-
-
-
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/GeofenceBroadcastReceiver.kt b/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/GeofenceBroadcastReceiver.kt
index 2820daae..2ed2daf4 100644
--- a/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/GeofenceBroadcastReceiver.kt
+++ b/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/GeofenceBroadcastReceiver.kt
@@ -1,7 +1,6 @@
-
-
package com.ejada.hmg.geofence.intent_receivers
+import android.annotation.SuppressLint
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
@@ -13,37 +12,60 @@ import com.google.android.gms.location.GeofenceStatusCodes
import com.google.android.gms.location.GeofencingEvent
class GeofenceBroadcastReceiver : BroadcastReceiver() {
- private val LOG_TAG = "GeofenceBroadcastReceiver"
- override fun onReceive(context: Context, intent: Intent) {
-
- val geofencingEvent = GeofencingEvent.fromIntent(intent)
- if (geofencingEvent.hasError()) {
- val errorMessage = GeofenceErrorMessages.getErrorString(context, geofencingEvent.errorCode)
- Log.e(LOG_TAG, errorMessage)
-
- Logs.GeofenceEvent.save(context,LOG_TAG,"Error while triggering geofence event",Logs.STATUS.ERROR)
- doReRegisterIfRequired(context,geofencingEvent.errorCode)
-
- return
- }
+ private val LOG_TAG = "GeofenceBroadcastReceiver"
+
+ @SuppressLint("LongLogTag")
+ override fun onReceive(context: Context, intent: Intent) {
+
+ val geofencingEvent = GeofencingEvent.fromIntent(intent)
+ if (geofencingEvent != null) {
+ if (geofencingEvent.hasError()) {
+ val errorMessage =
+ GeofenceErrorMessages.getErrorString(context, geofencingEvent.errorCode)
+ Log.e(LOG_TAG, errorMessage)
- Logs.GeofenceEvent.save(context,LOG_TAG,"Geofence event triggered: ${GeofenceTransition.fromInt(geofencingEvent.geofenceTransition).value} for ${geofencingEvent.triggeringGeofences.map {it.requestId}}",Logs.STATUS.SUCCESS)
- HMG_Geofence.shared(context).handleEvent(geofencingEvent.triggeringGeofences,geofencingEvent.triggeringLocation, GeofenceTransition.fromInt(geofencingEvent.geofenceTransition));
-
- }
+ Logs.GeofenceEvent.save(
+ context,
+ LOG_TAG,
+ "Error while triggering geofence event",
+ Logs.STATUS.ERROR
+ )
+ doReRegisterIfRequired(context, geofencingEvent.errorCode)
- fun doReRegisterIfRequired(context: Context, errorCode: Int){
- val errorRequiredReregister = listOf(
+ return
+ }
+ }
+ if (geofencingEvent != null) {
+ Logs.GeofenceEvent.save(
+ context,
+ LOG_TAG,
+ "Geofence event triggered: ${GeofenceTransition.fromInt(geofencingEvent.geofenceTransition).value} for ${geofencingEvent.triggeringGeofences?.map { it.requestId }}",
+ Logs.STATUS.SUCCESS
+ )
+ geofencingEvent.triggeringLocation?.let {
+ geofencingEvent.triggeringGeofences?.let { it1 ->
+ HMG_Geofence.shared(context).handleEvent(
+ it1,
+ it, GeofenceTransition.fromInt(geofencingEvent.geofenceTransition)
+ )
+ }
+ }
+ };
+
+ }
+
+ fun doReRegisterIfRequired(context: Context, errorCode: Int) {
+ val errorRequiredReregister = listOf(
GeofenceStatusCodes.GEOFENCE_NOT_AVAILABLE,
GeofenceStatusCodes.GEOFENCE_TOO_MANY_GEOFENCES,
GeofenceStatusCodes.GEOFENCE_TOO_MANY_PENDING_INTENTS,
GeofenceStatusCodes.GEOFENCE_REQUEST_TOO_FREQUENT
- )
+ )
- if(errorRequiredReregister.contains(errorCode))
- HMG_Geofence.shared(context).register(){ status, error ->
+ if (errorRequiredReregister.contains(errorCode))
+ HMG_Geofence.shared(context).register() { status, error ->
- }
+ }
- }
+ }
}
\ No newline at end of file
diff --git a/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/GeofenceTransitionsJobIntentService.kt b/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/GeofenceTransitionsJobIntentService.kt
index 21090f0f..b083e04e 100644
--- a/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/GeofenceTransitionsJobIntentService.kt
+++ b/android/app/src/main/kotlin/com/cloud/diplomaticquarterapp/geofence/intent_receivers/GeofenceTransitionsJobIntentService.kt
@@ -59,18 +59,25 @@ class GeofenceTransitionsJobIntentService : JobIntentService() {
override fun onHandleWork(intent: Intent) {
val geofencingEvent = GeofencingEvent.fromIntent(intent)
- if (geofencingEvent.hasError()) {
- val errorMessage = GeofenceErrorMessages.getErrorString(context_!!, geofencingEvent.errorCode)
- Log.e(LOG_TAG, errorMessage)
+ if (geofencingEvent != null) {
+ if (geofencingEvent.hasError()) {
+ val errorMessage = GeofenceErrorMessages.getErrorString(context_!!, geofencingEvent.errorCode)
+ Log.e(LOG_TAG, errorMessage)
- saveLog(context_!!,LOG_TAG,errorMessage)
- doReRegisterIfRequired(context_!!, geofencingEvent.errorCode)
+ saveLog(context_!!,LOG_TAG,errorMessage)
+ doReRegisterIfRequired(context_!!, geofencingEvent.errorCode)
- return
- }
+ return
+ }
+ }
- HMG_Geofence.shared(context_!!).handleEvent(geofencingEvent.triggeringGeofences,geofencingEvent.triggeringLocation, GeofenceTransition.fromInt(geofencingEvent.geofenceTransition));
+ if (geofencingEvent != null) {
+ geofencingEvent.triggeringGeofences?.let { geofencingEvent.triggeringLocation?.let { it1 ->
+ HMG_Geofence.shared(context_!!).handleEvent(it,
+ it1, GeofenceTransition.fromInt(geofencingEvent.geofenceTransition))
+ } }
+ };
}
diff --git a/android/build.gradle b/android/build.gradle
index edb27f2a..e723adba 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -11,7 +11,7 @@ buildscript {
}
dependencies {
- classpath 'com.android.tools.build:gradle:7.0.3'
+ classpath 'com.android.tools.build:gradle:7.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.8'
// classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index 6e8ae021..1acad296 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
diff --git a/assets/images/new/booth_image.png b/assets/images/new/booth_image.png
new file mode 100644
index 00000000..0a3427e4
Binary files /dev/null and b/assets/images/new/booth_image.png differ
diff --git a/ios/Podfile b/ios/Podfile
index ebcf3c8c..c92f7e80 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -40,7 +40,19 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |build_configuration|
+ build_configuration.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
+ '$(inherited)',
+ ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
+ 'PERMISSION_LOCATION=1',
+ 'PERMISSION_CAMERA=1',
+ 'PERMISSION_MICROPHONE=1',
+ ## dart: PermissionGroup.calendar
+ 'PERMISSION_EVENTS=1',
+ ## dart: PermissionGroup.reminders
+ 'PERMISSION_REMINDERS=1',
+ ]
build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386'
+ build_configuration.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
if build_configuration.build_settings['WRAPPER_EXTENSION'] == 'bundle'
build_configuration.build_settings['DEVELOPMENT_TEAM'] = '3A359E86ZF'
end
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index f43f5eaf..5fea0490 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -19,10 +19,10 @@
76815B27275F381C00E66E94 /* HealthKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76815B26275F381C00E66E94 /* HealthKit.framework */; };
76962ECE28AE5C10004EAE09 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 76962ECD28AE5C10004EAE09 /* GoogleService-Info.plist */; };
76F2556127F1FFED0062C1CD /* PassKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76F2556027F1FFED0062C1CD /* PassKit.framework */; };
- 888788C5457DD4B4291ED407 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DBECDFA177FC32F0D92001A8 /* Pods_Runner.framework */; };
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 */; };
+ B40C32A62DF065A3A0414845 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B99ADD0B93AC14DD8D0BAB0 /* Pods_Runner.framework */; };
E91B5396256AAA6500E96549 /* GlobalHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = E91B538D256AAA6500E96549 /* GlobalHelper.swift */; };
E91B5397256AAA6500E96549 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = E91B538E256AAA6500E96549 /* Extensions.swift */; };
E91B5398256AAA6500E96549 /* API.swift in Sources */ = {isa = PBXBuildFile; fileRef = E91B538F256AAA6500E96549 /* API.swift */; };
@@ -63,7 +63,6 @@
306FE6C7271D790C002D6EFC /* OpenTokPlatformBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenTokPlatformBridge.swift; sourceTree = ""; };
306FE6CA271D8B73002D6EFC /* OpenTok.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenTok.swift; sourceTree = ""; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
- 7339683046E679D7577A50D3 /* 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 = ""; };
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 = ""; };
762D738C274E42650063CE73 /* ring_30Sec.caf */ = {isa = PBXFileReference; lastKnownFileType = file; name = ring_30Sec.caf; path = ../../assets/sounds/ring_30Sec.caf; sourceTree = ""; };
@@ -71,7 +70,9 @@
76815B26275F381C00E66E94 /* HealthKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HealthKit.framework; path = System/Library/Frameworks/HealthKit.framework; sourceTree = SDKROOT; };
76962ECD28AE5C10004EAE09 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; };
76F2556027F1FFED0062C1CD /* PassKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PassKit.framework; path = System/Library/Frameworks/PassKit.framework; sourceTree = SDKROOT; };
+ 7805E271E86E72F39E68ADCC /* 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 = ""; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 8B99ADD0B93AC14DD8D0BAB0 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
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; };
@@ -79,9 +80,7 @@
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 = ""; };
- C43E6143D6D42F3BF36E6E30 /* 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 = ""; };
- DBECDFA177FC32F0D92001A8 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- E88A1DAFD417EE86EE2F7F02 /* 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 = ""; };
+ BC1BA79F1F6E9D7BE59D2AE4 /* 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 = ""; };
E91B538D256AAA6500E96549 /* GlobalHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GlobalHelper.swift; sourceTree = ""; };
E91B538E256AAA6500E96549 /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = ""; };
E91B538F256AAA6500E96549 /* API.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = API.swift; sourceTree = ""; };
@@ -100,6 +99,7 @@
E9C8C135256BACDA00EFFB62 /* HMG_Guest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMG_Guest.swift; sourceTree = ""; };
E9E27167256E3A4000F49B69 /* LocalizedFromFlutter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocalizedFromFlutter.swift; sourceTree = ""; };
E9F7623A25922BCE00FB5CCF /* FlutterConstants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlutterConstants.swift; sourceTree = ""; };
+ EBA301C32F4CA9F09D2D7713 /* 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 = ""; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -110,7 +110,7 @@
76F2556127F1FFED0062C1CD /* PassKit.framework in Frameworks */,
76815B27275F381C00E66E94 /* HealthKit.framework in Frameworks */,
E9620805255C2ED100D3A35D /* NetworkExtension.framework in Frameworks */,
- 888788C5457DD4B4291ED407 /* Pods_Runner.framework in Frameworks */,
+ B40C32A62DF065A3A0414845 /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -133,7 +133,7 @@
76F2556027F1FFED0062C1CD /* PassKit.framework */,
76815B26275F381C00E66E94 /* HealthKit.framework */,
E9620804255C2ED100D3A35D /* NetworkExtension.framework */,
- DBECDFA177FC32F0D92001A8 /* Pods_Runner.framework */,
+ 8B99ADD0B93AC14DD8D0BAB0 /* Pods_Runner.framework */,
);
name = Frameworks;
sourceTree = "";
@@ -141,9 +141,9 @@
605039E5DDF72C245F9765FE /* Pods */ = {
isa = PBXGroup;
children = (
- C43E6143D6D42F3BF36E6E30 /* Pods-Runner.debug.xcconfig */,
- 7339683046E679D7577A50D3 /* Pods-Runner.release.xcconfig */,
- E88A1DAFD417EE86EE2F7F02 /* Pods-Runner.profile.xcconfig */,
+ EBA301C32F4CA9F09D2D7713 /* Pods-Runner.debug.xcconfig */,
+ 7805E271E86E72F39E68ADCC /* Pods-Runner.release.xcconfig */,
+ BC1BA79F1F6E9D7BE59D2AE4 /* Pods-Runner.profile.xcconfig */,
);
path = Pods;
sourceTree = "";
@@ -246,15 +246,15 @@
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
- 6CEC06A85A1BC01F415967B9 /* [CP] Check Pods Manifest.lock */,
+ A37FFD337A0067237A8DACD6 /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
- EB708D648E256F1D924823C6 /* [CP] Embed Pods Frameworks */,
- 1FDB0C9B620EC9533D2358F3 /* [CP] Copy Pods Resources */,
+ E1D6AED972DEFC56AA7DB402 /* [CP] Embed Pods Frameworks */,
+ 541D1D49FBD13BE6BA6DA5BC /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@@ -320,7 +320,21 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
- 1FDB0C9B620EC9533D2358F3 /* [CP] Copy Pods Resources */ = {
+ 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\n";
+ };
+ 541D1D49FBD13BE6BA6DA5BC /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@@ -337,21 +351,21 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
showEnvVarsInLog = 0;
};
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
- name = "Thin Binary";
+ name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
- 6CEC06A85A1BC01F415967B9 /* [CP] Check Pods Manifest.lock */ = {
+ A37FFD337A0067237A8DACD6 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@@ -373,21 +387,7 @@
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;
};
- 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";
- };
- EB708D648E256F1D924823C6 /* [CP] Embed Pods Frameworks */ = {
+ E1D6AED972DEFC56AA7DB402 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@@ -538,7 +538,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
- MARKETING_VERSION = 4.5.56;
+ MARKETING_VERSION = 4.5.57;
PRODUCT_BUNDLE_IDENTIFIER = "com.HMG.HMG-Smartphone";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -682,7 +682,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
- MARKETING_VERSION = 4.5.56;
+ MARKETING_VERSION = 4.5.57;
PRODUCT_BUNDLE_IDENTIFIER = "com.HMG.HMG-Smartphone";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -720,7 +720,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
- MARKETING_VERSION = 4.5.56;
+ MARKETING_VERSION = 4.5.57;
PRODUCT_BUNDLE_IDENTIFIER = "com.HMG.HMG-Smartphone";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
diff --git a/lib/config/config.dart b/lib/config/config.dart
index 9680994d..cd192911 100644
--- a/lib/config/config.dart
+++ b/lib/config/config.dart
@@ -3,757 +3,595 @@ import 'dart:io';
import 'package:diplomaticquarterapp/models/Request.dart';
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
-var MAX_SMALL_SCREEN = 660;
+var MAX_SMALL_SCREEN = 660;
final OPENTOK_API_KEY = '46209962';
// final OPENTOK_API_KEY = '47464241';
// PACKAGES and OFFERS
-var EXA_CART_API_BASE_URL = 'https://mdlaboratories.com/offersdiscounts';
+var EXA_CART_API_BASE_URL = 'https://mdlaboratories.com/offersdiscounts';
// var EXA_CART_API_BASE_URL = 'http://10.200.101.75:9000';
-var PACKAGES_CATEGORIES = '/api/categories';
-var PACKAGES_STORES = '/api/stores';
-var PACKAGES_TOKEN = '/api/token';
-var PACKAGES_PRODUCTS = '/api/products';
-var PACKAGES_CUSTOMER = '/api/customers';
-var PACKAGES_SHOPPING_CART = '/api/shopping_cart_items';
-var PACKAGES_ORDERS = '/api/orders';
-var PACKAGES_ORDER_HISTORY = '/api/orders/items';
-var PACKAGES_TAMARA_OPT = '/api/orders/paymentoptions/tamara';
-// var BASE_URL = 'http://10.50.100.198:3334/';
-// var BASE_URL = 'https://uat.hmgwebservices.com/';
-// var BASE_URL = 'https://hmgwebservices.com/';
-var BASE_URL = 'https://orash.cloudsolutions.com.sa/';
+var PACKAGES_CATEGORIES = '/api/categories';
+var PACKAGES_STORES = '/api/stores';
+var PACKAGES_TOKEN = '/api/token';
+var PACKAGES_PRODUCTS = '/api/products';
+var PACKAGES_CUSTOMER = '/api/customers';
+var PACKAGES_SHOPPING_CART = '/api/shopping_cart_items';
+var PACKAGES_ORDERS = '/api/orders';
+var PACKAGES_ORDER_HISTORY = '/api/orders/items';
+var PACKAGES_TAMARA_OPT = '/api/orders/paymentoptions/tamara';
+ // var BASE_URL = 'http://10.50.100.198:2018/';
+ // var BASE_URL = 'https://uat.hmgwebservices.com/';
+var BASE_URL = 'https://hmgwebservices.com/';
+// var BASE_URL = 'https://orash.cloudsolutions.com.sa/';
+// var BASE_URL = 'https://vidauat.cloudsolutions.com.sa/';
// Pharmacy UAT URLs
// var BASE_PHARMACY_URL = 'https://uat.hmgwebservices.com/epharmacy/api/';
// var PHARMACY_BASE_URL = 'https://uat.hmgwebservices.com/epharmacy/api/';
// // Pharmacy Production URLs
-var BASE_PHARMACY_URL = 'https://mdlaboratories.com/exacartapi/api/';
-var PHARMACY_BASE_URL = 'https://mdlaboratories.com/exacartapi/api/';
+var BASE_PHARMACY_URL = 'https://mdlaboratories.com/exacartapi/api/';
+var PHARMACY_BASE_URL = 'https://mdlaboratories.com/exacartapi/api/';
// // Pharmacy Pre-Production URLs
// var BASE_PHARMACY_URL = 'https://mdlaboratories.com/exacartapitest/api/';
// var PHARMACY_BASE_URL = 'https://mdlaboratories.com/exacartapitest/api/';
// RC API URL
-var RC_BASE_URL = 'https://rc.hmg.com/';
+var RC_BASE_URL = 'https://rc.hmg.com/';
-var PING_SERVICE = 'Services/Weather.svc/REST/CheckConnectivity';
+var PING_SERVICE = 'Services/Weather.svc/REST/CheckConnectivity';
-var GET_PROJECT = 'Services/Lists.svc/REST/GetProject';
+var GET_PROJECT = 'Services/Lists.svc/REST/GetProject';
///Geofencing
-var GET_GEO_ZONES = 'Services/Patients.svc/REST/GeoF_GetAllPoints';
-var LOG_GEO_ZONES = 'Services/Patients.svc/REST/GeoF_InsertPatientFileInfo';
+var GET_GEO_ZONES = 'Services/Patients.svc/REST/GeoF_GetAllPoints';
+var LOG_GEO_ZONES = 'Services/Patients.svc/REST/GeoF_InsertPatientFileInfo';
// Delivery Driver
-var DRIVER_LOCATION =
- 'Services/Patients.svc/REST/PatientER_GetDriverLocation';
+var DRIVER_LOCATION = 'Services/Patients.svc/REST/PatientER_GetDriverLocation';
//weather
-var WEATHER_INDICATOR = 'Services/Weather.svc/REST/GetCityInfo';
+var WEATHER_INDICATOR = 'Services/Weather.svc/REST/GetCityInfo';
-var GET_PRIVILEGE = 'Services/Patients.svc/REST/Service_Privilege';
+var GET_PRIVILEGE = 'Services/Patients.svc/REST/Service_Privilege';
// Wifi Credentials
-var WIFI_CREDENTIALS =
- "Services/Patients.svc/Hmg_SMS_Get_By_ProjectID_And_PatientID";
+var WIFI_CREDENTIALS = "Services/Patients.svc/Hmg_SMS_Get_By_ProjectID_And_PatientID";
///Doctor
-var GET_MY_DOCTOR =
- 'Services/Doctors.svc/REST/GetPatientDoctorAppointmentResult';
-var GET_DOCTOR_PROFILE = 'Services/Doctors.svc/REST/GetDocProfiles';
-var GET_DOCTOR_PRE_POST_IMAGES =
- 'Services/Doctors.svc/REST/GetDoctorPrePostImages';
-var GET_DOCTOR_RATING_NOTES =
- 'Services/Doctors.svc/REST/dr_GetNotesDoctorRating';
-var GET_DOCTOR_RATING_DETAILS =
- 'Services/Doctors.svc/REST/dr_GetDoctorRatingDetails';
-
-var GET_DOCTOR_RATING = 'Services/Doctors.svc/REST/dr_GetAvgDoctorRating';
+var GET_MY_DOCTOR = 'Services/Doctors.svc/REST/GetPatientDoctorAppointmentResult';
+var GET_DOCTOR_PROFILE = 'Services/Doctors.svc/REST/GetDocProfiles';
+var GET_DOCTOR_PRE_POST_IMAGES = 'Services/Doctors.svc/REST/GetDoctorPrePostImages';
+var GET_DOCTOR_RATING_NOTES = 'Services/Doctors.svc/REST/dr_GetNotesDoctorRating';
+var GET_DOCTOR_RATING_DETAILS = 'Services/Doctors.svc/REST/dr_GetDoctorRatingDetails';
+
+var GET_DOCTOR_RATING = 'Services/Doctors.svc/REST/dr_GetAvgDoctorRating';
///Prescriptions
// var PRESCRIPTIONS = 'Services/Patients.svc/REST/GetPrescriptionApptList';
-var PRESCRIPTIONS = 'Services/Patients.svc/REST/GetPrescriptionApptList_Async';
+var PRESCRIPTIONS = 'Services/Patients.svc/REST/GetPrescriptionApptList_Async';
-var GET_PRESCRIPTIONS_ALL_ORDERS =
- 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
-var GET_PRESCRIPTION_REPORT =
- 'Services/Patients.svc/REST/INP_GetPrescriptionReport';
-var SEND_PRESCRIPTION_EMAIL =
- 'Services/Notifications.svc/REST/SendPrescriptionEmail';
-var GET_PRESCRIPTION_REPORT_ENH =
- 'Services/Patients.svc/REST/GetPrescriptionReport_enh';
+var GET_PRESCRIPTIONS_ALL_ORDERS = 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
+var GET_PRESCRIPTION_REPORT = 'Services/Patients.svc/REST/INP_GetPrescriptionReport';
+var SEND_PRESCRIPTION_EMAIL = 'Services/Notifications.svc/REST/SendPrescriptionEmail';
+var GET_PRESCRIPTION_REPORT_ENH = 'Services/Patients.svc/REST/GetPrescriptionReport_enh';
///Lab Order
-var GET_Patient_LAB_ORDERS = 'Services/Patients.svc/REST/GetPatientLabOrders';
-var GET_Patient_LAB_SPECIAL_RESULT =
- 'Services/Patients.svc/REST/GetPatientLabSpecialResults';
-var SEND_LAB_RESULT_EMAIL =
- 'Services/Notifications.svc/REST/SendLabReportEmail';
-var GET_Patient_LAB_RESULT =
- 'Services/Patients.svc/REST/GetPatientLabResults';
-var GET_Patient_LAB_ORDERS_RESULT =
- 'Services/Patients.svc/REST/GetPatientLabOrdersResults';
-var SEND_COVID_LAB_RESULT_EMAIL =
- 'Services/Notifications.svc/REST/GenerateCOVIDReport';
-var COVID_PASSPORT_UPDATE =
- 'Services/Patients.svc/REST/Covid19_Certificate_PassportUpdate';
-var GET_PATIENT_PASSPORT_NUMBER =
- 'Services/Patients.svc/REST/Covid19_Certificate_GetPassport';
-
-var UPDATE_WORKPLACE_NAME =
- 'Services/Patients.svc/REST/ActivateSickLeave_FromVida';
+var GET_Patient_LAB_ORDERS = 'Services/Patients.svc/REST/GetPatientLabOrders';
+var GET_Patient_LAB_SPECIAL_RESULT = 'Services/Patients.svc/REST/GetPatientLabSpecialResults';
+var SEND_LAB_RESULT_EMAIL = 'Services/Notifications.svc/REST/SendLabReportEmail';
+var GET_Patient_LAB_RESULT = 'Services/Patients.svc/REST/GetPatientLabResults';
+var GET_Patient_LAB_ORDERS_RESULT = 'Services/Patients.svc/REST/GetPatientLabOrdersResults';
+var SEND_COVID_LAB_RESULT_EMAIL = 'Services/Notifications.svc/REST/GenerateCOVIDReport';
+var COVID_PASSPORT_UPDATE = 'Services/Patients.svc/REST/Covid19_Certificate_PassportUpdate';
+var GET_PATIENT_PASSPORT_NUMBER = 'Services/Patients.svc/REST/Covid19_Certificate_GetPassport';
+
+var UPDATE_WORKPLACE_NAME = 'Services/Patients.svc/REST/ActivateSickLeave_FromVida';
///
-var GET_PATIENT_ORDERS = 'Services/Patients.svc/REST/GetPatientRadOrders';
-var GET_PATIENT_LAB_ORDERS_BY_APPOINTMENT =
- 'Services/Patients.svc/REST/GetPatientLabResultsByAppointmentNo';
+var GET_PATIENT_ORDERS = 'Services/Patients.svc/REST/GetPatientRadOrders';
+var GET_PATIENT_LAB_ORDERS_BY_APPOINTMENT = 'Services/Patients.svc/REST/GetPatientLabResultsByAppointmentNo';
-var GET_PATIENT_ORDERS_DETAILS =
- 'Services/Patients.svc/REST/Rad_UpdatePatientRadOrdersToRead';
-var GET_RAD_IMAGE_URL = 'Services/Patients.svc/Rest/GetRadImageURL';
-var SEND_RAD_REPORT_EMAIL =
- 'Services/Notifications.svc/REST/SendRadReportEmail';
+var GET_PATIENT_ORDERS_DETAILS = 'Services/Patients.svc/REST/Rad_UpdatePatientRadOrdersToRead';
+var GET_RAD_IMAGE_URL = 'Services/Patients.svc/Rest/GetRadImageURL';
+var SEND_RAD_REPORT_EMAIL = 'Services/Notifications.svc/REST/SendRadReportEmail';
///Feedback
-var SEND_FEEDBACK = 'Services/COCWS.svc/REST/InsertCOCItemInSPList';
-var GET_STATUS_FOR_COCO = 'Services/COCWS.svc/REST/GetStatusforCOC';
+var SEND_FEEDBACK = 'Services/COCWS.svc/REST/InsertCOCItemInSPList';
+var GET_STATUS_FOR_COCO = 'Services/COCWS.svc/REST/GetStatusforCOC';
// var GET_PATIENT_AppointmentHistory = 'Services'
// '/Doctors.svc/REST/PateintHasAppoimentHistory';
-var GET_PATIENT_AppointmentHistory = 'Services'
+var GET_PATIENT_AppointmentHistory = 'Services'
'/Doctors.svc/REST/PateintHasAppoimentHistory_Async';
///VITAL SIGN
-var GET_PATIENT_VITAL_SIGN =
- 'Services/Doctors.svc/REST/Doctor_GetPatientVitalSign';
+var GET_PATIENT_VITAL_SIGN = 'Services/Doctors.svc/REST/Doctor_GetPatientVitalSign';
///Er Nearest
-var GET_NEAREST_HOSPITAL =
- 'Services/Patients.svc/REST/Patient_GetProjectAvgERWaitingTime';
+var GET_NEAREST_HOSPITAL = 'Services/Patients.svc/REST/Patient_GetProjectAvgERWaitingTime';
///ED Online
-var ER_GET_VISUAL_TRIAGE_QUESTIONS =
- "services/Doctors.svc/REST/ER_GetVisualTriageQuestions";
-var ER_SAVE_TRIAGE_INFORMATION =
- "services/Doctors.svc/REST/ER_SaveTriageInformation";
-var ER_GetPatientPaymentInformationForERClinic =
- "services/Doctors.svc/REST/ER_GetPatientPaymentInformationForERClinic";
+var ER_GET_VISUAL_TRIAGE_QUESTIONS = "services/Doctors.svc/REST/ER_GetVisualTriageQuestions";
+var ER_SAVE_TRIAGE_INFORMATION = "services/Doctors.svc/REST/ER_SaveTriageInformation";
+var ER_GetPatientPaymentInformationForERClinic = "services/Doctors.svc/REST/ER_GetPatientPaymentInformationForERClinic";
///Er Nearest
-var GET_AMBULANCE_REQUEST =
- 'Services/Patients.svc/REST/PatientER_RRT_GetAllTransportationMethod';
-var GET_PATIENT_ALL_PRES_ORDERS =
- 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
-var GET_PICK_UP_REQUEST_BY_PRES_ORDER_ID =
- 'Services/Patients.svc/REST/PatientER_RRT_GetPickUpRequestByPresOrderID';
-var UPDATE_PRESS_ORDER =
- 'Services/Patients.svc/REST/PatientER_UpdatePresOrder';
-var INSERT_ER_INERT_PRES_ORDER =
- 'Services/Patients.svc/REST/PatientER_InsertPresOrder';
+var GET_AMBULANCE_REQUEST = 'Services/Patients.svc/REST/PatientER_RRT_GetAllTransportationMethod';
+var GET_PATIENT_ALL_PRES_ORDERS = 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
+var GET_PICK_UP_REQUEST_BY_PRES_ORDER_ID = 'Services/Patients.svc/REST/PatientER_RRT_GetPickUpRequestByPresOrderID';
+var UPDATE_PRESS_ORDER = 'Services/Patients.svc/REST/PatientER_UpdatePresOrder';
+var INSERT_ER_INERT_PRES_ORDER = 'Services/Patients.svc/REST/PatientER_InsertPresOrder';
/// ER RRT
-var GET_ALL_RC_TRANSPORTATION = 'api/Transportation/getalltransportation';
-var GET_ALL_TRANSPORTATIONS_RC = 'api/Transportation/getalltransportation';
-var GET_ALL_RRT_QUESTIONS =
- 'Services/Patients.svc/REST/PatientER_RRT_GetAllQuestions';
-var GET_RRT_SERVICE_PRICE =
- 'Services/Patients.svc/REST/PatientE_RealRRT_GetServicePrice';
+var GET_ALL_RC_TRANSPORTATION = 'api/Transportation/getalltransportation';
+var GET_ALL_TRANSPORTATIONS_RC = 'api/Transportation/getalltransportation';
+var GET_ALL_RRT_QUESTIONS = 'Services/Patients.svc/REST/PatientER_RRT_GetAllQuestions';
+var GET_RRT_SERVICE_PRICE = 'Services/Patients.svc/REST/PatientE_RealRRT_GetServicePrice';
-var GET_ALL_TRANSPORTATIONS_ORDERS = 'api/Transportation/get';
+var GET_ALL_TRANSPORTATIONS_ORDERS = 'api/Transportation/get';
-var CANCEL_AMBULANCE_REQUEST = "api/Transportation/update";
+var CANCEL_AMBULANCE_REQUEST = "api/Transportation/update";
-var INSERT_TRANSPORTATION_ORDER_RC = "api/Transportation/add";
+var INSERT_TRANSPORTATION_ORDER_RC = "api/Transportation/add";
///FindUs
-var GET_FINDUS_REQUEST = 'Services/Lists.svc/REST/Get_HMG_Locations';
+var GET_FINDUS_REQUEST = 'Services/Lists.svc/REST/Get_HMG_Locations';
///LiveChat
-var GET_LIVECHAT_REQUEST = 'Services/Patients.svc/REST/GetPatientICProjects';
+var GET_LIVECHAT_REQUEST = 'Services/Patients.svc/REST/GetPatientICProjects';
///babyInformation
-var GET_BABYINFORMATION_REQUEST =
- 'Services/Community.svc/REST/GetBabyByUserID';
+var GET_BABYINFORMATION_REQUEST = 'Services/Community.svc/REST/GetBabyByUserID';
///Get Baby By User ID
-var GET_BABY_BY_USER_ID = 'Services/Community.svc/REST/GetBabyByUserID';
+var GET_BABY_BY_USER_ID = 'Services/Community.svc/REST/GetBabyByUserID';
///userInformation
-var GET_USERINFORMATION_REQUEST =
- 'Services/Community.svc/REST/GetUserInformation_New';
+var GET_USERINFORMATION_REQUEST = 'Services/Community.svc/REST/GetUserInformation_New';
///Update email
-var UPDATE_PATENT_EMAIL = 'Services/Patients.svc/REST/UpdatePateintEmail';
-var UPDATE_PATENT_INFO = 'Services/Community.svc/REST/UpdateUserInfo_New';
+var UPDATE_PATENT_EMAIL = 'Services/Patients.svc/REST/UpdatePateintEmail';
+var UPDATE_PATENT_INFO = 'Services/Community.svc/REST/UpdateUserInfo_New';
///addNewChild
-var GET_NEWCHILD_REQUEST = 'Services/Community.svc/REST/CreateNewBaby';
+var GET_NEWCHILD_REQUEST = 'Services/Community.svc/REST/CreateNewBaby';
///newUserId
-var GET_NEW_USER_REQUEST = 'Services/Community.svc/REST/CreateNewUser_New';
+var GET_NEW_USER_REQUEST = 'Services/Community.svc/REST/CreateNewUser_New';
///delete Child
-var DELETE_CHILD_REQUEST = 'Services/Community.svc/REST/DeleteBaby';
+var DELETE_CHILD_REQUEST = 'Services/Community.svc/REST/DeleteBaby';
///addNewTABLE
-var GET_TABLE_REQUEST = 'Services/Community.svc/REST/CreateVaccinationTable';
+var GET_TABLE_REQUEST = 'Services/Community.svc/REST/CreateVaccinationTable';
///BloodDenote
-var GET_CITIES_REQUEST = 'Services/Lists.svc/REST/GetAllCities';
+var GET_CITIES_REQUEST = 'Services/Lists.svc/REST/GetAllCities';
///BloodDetails
-var GET_BLOOD_REQUEST =
- 'services/PatientVarification.svc/REST/BloodDonation_GetBloodGroupDetails';
+var GET_BLOOD_REQUEST = 'services/PatientVarification.svc/REST/BloodDonation_GetBloodGroupDetails';
-var SAVE_BLOOD_REQUEST =
- 'Services/PatientVarification.svc/REST/BloodDonation_RegisterBloodType';
+var SAVE_BLOOD_REQUEST = 'Services/PatientVarification.svc/REST/BloodDonation_RegisterBloodType';
-var GET_BLOOD_AGREEMENT =
- 'Services/PatientVarification.svc/REST/CheckUserAgreementForBloodDonation';
-var SAVE_BLOOD_AGREEMENT =
- 'Services/PatientVarification.svc/REST/AddUserAgreementForBloodDonation';
+var GET_BLOOD_AGREEMENT = 'Services/PatientVarification.svc/REST/CheckUserAgreementForBloodDonation';
+var SAVE_BLOOD_AGREEMENT = 'Services/PatientVarification.svc/REST/AddUserAgreementForBloodDonation';
///Reports
-var REPORTS = 'Services/Doctors.svc/REST/GetPatientMedicalReportStatusInfo';
-var INSERT_REQUEST_FOR_MEDICAL_REPORT =
- 'Services/Doctors.svc/REST/InsertRequestForMedicalReport';
-var SEND_MEDICAL_REPORT_EMAIL =
- 'Services/Notifications.svc/REST/SendMedicalReportEmail';
+var REPORTS = 'Services/Doctors.svc/REST/GetPatientMedicalReportStatusInfo';
+var INSERT_REQUEST_FOR_MEDICAL_REPORT = 'Services/Doctors.svc/REST/InsertRequestForMedicalReport';
+var SEND_MEDICAL_REPORT_EMAIL = 'Services/Notifications.svc/REST/SendMedicalReportEmail';
///Rate
// var IS_LAST_APPOITMENT_RATED = 'Services/Doctors.svc/REST/IsLastAppoitmentRated';
-var IS_LAST_APPOITMENT_RATED =
- 'Services/Doctors.svc/REST/IsLastAppoitmentRated_Async';
-var GET_APPOINTMENT_DETAILS_BY_NO =
- 'Services/MobileNotifications.svc/REST/GetAppointmentDetailsByApptNo';
-var NEW_RATE_APPOINTMENT_URL =
- "Services/Doctors.svc/REST/AppointmentsRating_InsertAppointmentRate";
-var NEW_RATE_DOCTOR_URL =
- "Services/Doctors.svc/REST/DoctorsRating_InsertDoctorRate";
+var IS_LAST_APPOITMENT_RATED = 'Services/Doctors.svc/REST/IsLastAppoitmentRated_Async';
+var GET_APPOINTMENT_DETAILS_BY_NO = 'Services/MobileNotifications.svc/REST/GetAppointmentDetailsByApptNo';
+var NEW_RATE_APPOINTMENT_URL = "Services/Doctors.svc/REST/AppointmentsRating_InsertAppointmentRate";
+var NEW_RATE_DOCTOR_URL = "Services/Doctors.svc/REST/DoctorsRating_InsertDoctorRate";
-var GET_QR_PARKING = 'Services/SWP.svc/REST/GetQRParkingByID';
+var GET_QR_PARKING = 'Services/SWP.svc/REST/GetQRParkingByID';
//URL to get clinic list
-var GET_CLINICS_LIST_URL = "Services/lists.svc/REST/GetClinicCentralized";
+var GET_CLINICS_LIST_URL = "Services/lists.svc/REST/GetClinicCentralized";
//URL to get active appointment list
-var GET_ACTIVE_APPOINTMENTS_LIST_URL =
- "Services/Doctors.svc/Rest/Dr_GetAppointmentActiveNumber";
+var GET_ACTIVE_APPOINTMENTS_LIST_URL = "Services/Doctors.svc/Rest/Dr_GetAppointmentActiveNumber";
//URL to get projects list
-var GET_PROJECTS_LIST = 'Services/Lists.svc/REST/GetProject';
+var GET_PROJECTS_LIST = 'Services/Lists.svc/REST/GetProject';
//URL to get doctors list
-var GET_DOCTORS_LIST_URL = "Services/Doctors.svc/REST/SearchDoctorsByTime";
+var GET_DOCTORS_LIST_URL = "Services/Doctors.svc/REST/SearchDoctorsByTime";
//URL to dental doctors list
-var GET_DENTAL_DOCTORS_LIST_URL =
- "Services/Doctors.svc/REST/Dental_DoctorChiefComplaintMapping";
+var GET_DENTAL_DOCTORS_LIST_URL = "Services/Doctors.svc/REST/Dental_DoctorChiefComplaintMapping";
//URL to get doctor free slots
-var GET_DOCTOR_FREE_SLOTS = "Services/Doctors.svc/REST/GetDoctorFreeSlots";
+var GET_DOCTOR_FREE_SLOTS = "Services/Doctors.svc/REST/GetDoctorFreeSlots";
//URL to insert appointment
-var INSERT_SPECIFIC_APPOINTMENT =
- "Services/Doctors.svc/REST/InsertSpecificAppointment";
+var INSERT_SPECIFIC_APPOINTMENT = "Services/Doctors.svc/REST/InsertSpecificAppointment";
//URL to get patient share
-var GET_PATIENT_SHARE =
- "Services/Doctors.svc/REST/GetCheckinScreenAppointmentDetailsByAppointmentNO";
+var GET_PATIENT_SHARE = "Services/Doctors.svc/REST/GetCheckinScreenAppointmentDetailsByAppointmentNO";
//URL to get patient appointment history
-var GET_PATIENT_APPOINTMENT_HISTORY =
- "Services/Doctors.svc/REST/PateintHasAppoimentHistory";
+var GET_PATIENT_APPOINTMENT_HISTORY = "Services/Doctors.svc/REST/PateintHasAppoimentHistory";
-var GET_OBGYNE_ORDERS_LIST =
- "services/Patients.svc/REST/HIS_OBGYNEProcedureGet";
+var GET_OBGYNE_ORDERS_LIST = "services/Patients.svc/REST/HIS_OBGYNEProcedureGet";
-var GET_OBGYNE_DOCTORS_LIST =
- "services/Doctors.svc/REST/HIS_ObgyneUltrasoundDoctors";
+var GET_OBGYNE_DOCTORS_LIST = "services/Doctors.svc/REST/HIS_ObgyneUltrasoundDoctors";
-var OBGYNE_PROCEDURE_UPDATE =
- "services/Patients.svc/REST/HIS_OBGYNEProcedure_Update";
+var OBGYNE_PROCEDURE_UPDATE = "services/Patients.svc/REST/HIS_OBGYNEProcedure_Update";
-var GET_RRT_PROCEDURE_LIST =
- "Services/Patients.svc/REST/GetRRTProcedureDetailsListFromVida";
+var GET_RRT_PROCEDURE_LIST = "Services/Patients.svc/REST/GetRRTProcedureDetailsListFromVida";
-var DOCTOR_SCHEDULE_URL =
- 'Services/Doctors.svc/REST/GetDoctorWorkingHoursTable';
+var DOCTOR_SCHEDULE_URL = 'Services/Doctors.svc/REST/GetDoctorWorkingHoursTable';
-var SEND_REPORT_EYE_EMAIL =
- "Services/Notifications.svc/REST/SendGlassesPrescriptionEmail";
+var SEND_REPORT_EYE_EMAIL = "Services/Notifications.svc/REST/SendGlassesPrescriptionEmail";
-var SEND_CONTACT_LENS_PRESCRIPTION_EMAIL =
- "Services/Notifications.svc/REST/SendContactLensPrescriptionEmail";
+var SEND_CONTACT_LENS_PRESCRIPTION_EMAIL = "Services/Notifications.svc/REST/SendContactLensPrescriptionEmail";
//URL to get patient appointment curfew history
// var GET_PATIENT_APPOINTMENT_CURFEW_HISTORY = "Services/Doctors.svc/REST/AppoimentHistoryForCurfew";
-var GET_PATIENT_APPOINTMENT_CURFEW_HISTORY =
- "Services/Doctors.svc/REST/AppoimentHistoryForCurfew_Async";
+var GET_PATIENT_APPOINTMENT_CURFEW_HISTORY = "Services/Doctors.svc/REST/AppoimentHistoryForCurfew_Async";
//URL to confirm appointment
-var CONFIRM_APPOINTMENT =
- "Services/MobileNotifications.svc/REST/ConfirmAppointment";
+var CONFIRM_APPOINTMENT = "Services/MobileNotifications.svc/REST/ConfirmAppointment";
-var INSERT_VIDA_REQUEST =
- "Services/ER_VirtualCall.svc/REST/PatientER_VidaRequestInseart";
+var INSERT_VIDA_REQUEST = "Services/ER_VirtualCall.svc/REST/PatientER_VidaRequestInseart";
//URL to cancel appointment
-var CANCEL_APPOINTMENT = "Services/Doctors.svc/REST/CancelAppointment";
+var CANCEL_APPOINTMENT = "Services/Doctors.svc/REST/CancelAppointment";
//URL get appointment QR
-var GENERATE_QR_APPOINTMENT =
- "Services/Doctors.svc/REST/GenerateQRAppointmentNo";
+var GENERATE_QR_APPOINTMENT = "Services/Doctors.svc/REST/GenerateQRAppointmentNo";
//URL send email appointment QR
-var EMAIL_QR_APPOINTMENT =
- "Services/Notifications.svc/REST/sendEmailForOnLineCheckin";
+var EMAIL_QR_APPOINTMENT = "Services/Notifications.svc/REST/sendEmailForOnLineCheckin";
//URL check payment status
-var CHECK_PAYMENT_STATUS =
- "Services/PayFort_Serv.svc/REST/GetRequestStatusByRequestID";
+var CHECK_PAYMENT_STATUS = "Services/PayFort_Serv.svc/REST/GetRequestStatusByRequestID";
//URL create advance payment
-var CREATE_ADVANCE_PAYMENT = "Services/Doctors.svc/REST/CreateAdvancePayment";
+var CREATE_ADVANCE_PAYMENT = "Services/Doctors.svc/REST/CreateAdvancePayment";
-var HIS_CREATE_ADVANCE_PAYMENT =
- "Services/Patients.svc/REST/HIS_CreateAdvancePayment";
+var HIS_CREATE_ADVANCE_PAYMENT = "Services/Patients.svc/REST/HIS_CreateAdvancePayment";
-var ER_CREATE_ADVANCE_PAYMENT =
- "services/Doctors.svc/REST/ER_CreateAdvancePaymentForClinic";
+var ER_CREATE_ADVANCE_PAYMENT = "services/Doctors.svc/REST/ER_CreateAdvancePaymentForClinic";
-var ER_INSERT_ADVANCE_PAYMENT =
- "services/Doctors.svc/REST/ER_InsertEROnlinePaymentDetails";
+var ER_INSERT_ADVANCE_PAYMENT = "services/Doctors.svc/REST/ER_InsertEROnlinePaymentDetails";
-var ADD_ADVANCE_NUMBER_REQUEST =
- 'Services/PayFort_Serv.svc/REST/AddAdvancedNumberRequest';
+var ADD_ADVANCE_NUMBER_REQUEST = 'Services/PayFort_Serv.svc/REST/AddAdvancedNumberRequest';
-var GENERATE_ANCILLARY_ORDERS_INVOICE =
- 'Services/Doctors.svc/REST/AutoGenerateAncillaryOrderInvoice';
+var GENERATE_ANCILLARY_ORDERS_INVOICE = 'Services/Doctors.svc/REST/AutoGenerateAncillaryOrderInvoice';
-var IS_ALLOW_ASK_DOCTOR =
- 'Services/Doctors.svc/REST/GetPatientDoctorAppointmentResult';
-var GET_CALL_REQUEST_TYPE =
- 'Services/Doctors.svc/REST/GetCallRequestType_LOV';
-var ADD_VIDA_REQUEST =
- 'Services/ER_VirtualCall.svc/REST/PatientER_VidaRequestInseart';
+var IS_ALLOW_ASK_DOCTOR = 'Services/Doctors.svc/REST/GetPatientDoctorAppointmentResult';
+var GET_CALL_REQUEST_TYPE = 'Services/Doctors.svc/REST/GetCallRequestType_LOV';
+var ADD_VIDA_REQUEST = 'Services/ER_VirtualCall.svc/REST/PatientER_VidaRequestInseart';
-var SEND_CALL_REQUEST = 'Services/Doctors.svc/REST/InsertCallInfo';
+var SEND_CALL_REQUEST = 'Services/Doctors.svc/REST/InsertCallInfo';
-var GET_LIVECARE_CLINICS =
- 'Services/ER_VirtualCall.svc/REST/PatientER_GetClinics';
+var GET_LIVECARE_CLINICS = 'Services/ER_VirtualCall.svc/REST/PatientER_GetClinics';
-var GET_LIVECARE_SCHEDULE_CLINICS =
- 'Services/Doctors.svc/REST/PatientER_GetClinicsHaveSchedule';
+var GET_LIVECARE_SCHEDULE_CLINICS = 'Services/Doctors.svc/REST/PatientER_GetClinicsHaveSchedule';
-var GET_LIVECARE_SCHEDULE_CLINIC_DOCTOR_LIST =
- 'Services/Doctors.svc/REST/PatientER_GetDoctorByClinicID';
+var GET_LIVECARE_SCHEDULE_CLINIC_DOCTOR_LIST = 'Services/Doctors.svc/REST/PatientER_GetDoctorByClinicID';
-var GET_LIVECARE_SCHEDULE_DOCTOR_TIME_SLOTS =
- 'Services/Doctors.svc/REST/PatientER_GetDoctorFreeSlots';
+var GET_LIVECARE_SCHEDULE_DOCTOR_TIME_SLOTS = 'Services/Doctors.svc/REST/PatientER_GetDoctorFreeSlots';
-var INSERT_LIVECARE_SCHEDULE_APPOINTMENT =
- 'Services/Doctors.svc/REST/InsertSpecificAppoitmentForSchedule';
+var INSERT_LIVECARE_SCHEDULE_APPOINTMENT = 'Services/Doctors.svc/REST/InsertSpecificAppoitmentForSchedule';
-var GET_PATIENT_SHARE_LIVECARE =
- "Services/Doctors.svc/REST/GetCheckinScreenAppointmentDetailsByAppointmentNOForLiveCare";
+var GET_PATIENT_SHARE_LIVECARE = "Services/Doctors.svc/REST/GetCheckinScreenAppointmentDetailsByAppointmentNOForLiveCare";
-var SET_ONLINE_CHECKIN_FOR_APPOINTMENT =
- "Services/Patients.svc/REST/SetOnlineCheckInForAppointment";
+var SET_ONLINE_CHECKIN_FOR_APPOINTMENT = "Services/Patients.svc/REST/SetOnlineCheckInForAppointment";
-var GET_LIVECARE_CLINIC_TIMING =
- 'Services/ER_VirtualCall.svc/REST/PatientER_GetClinicsServiceTimingsSchedule';
+var GET_LIVECARE_CLINIC_TIMING = 'Services/ER_VirtualCall.svc/REST/PatientER_GetClinicsServiceTimingsSchedule';
-var GET_ER_APPOINTMENT_FEES =
- 'Services/DoctorApplication.svc/REST/GetERAppointmentFees';
-var GET_ER_APPOINTMENT_TIME = 'Services/ER_VirtualCall.svc/REST/GetRestTime';
+var GET_ER_APPOINTMENT_FEES = 'Services/DoctorApplication.svc/REST/GetERAppointmentFees';
+var GET_ER_APPOINTMENT_TIME = 'Services/ER_VirtualCall.svc/REST/GetRestTime';
-var ADD_NEW_CALL_FOR_PATIENT_ER =
- 'Services/DoctorApplication.svc/REST/NewCallForPatientER';
+var ADD_NEW_CALL_FOR_PATIENT_ER = 'Services/DoctorApplication.svc/REST/NewCallForPatientER';
-var GET_LIVECARE_HISTORY =
- 'Services/ER_VirtualCall.svc/REST/GetPatientErVirtualHistory';
-var CANCEL_LIVECARE_REQUEST =
- 'Services/ER_VirtualCall.svc/REST/DeleteErRequest';
-var SEND_LIVECARE_INVOICE_EMAIL =
- 'Services/Notifications.svc/REST/SendInvoiceForLiveCare';
+var GET_LIVECARE_HISTORY = 'Services/ER_VirtualCall.svc/REST/GetPatientErVirtualHistory';
+var CANCEL_LIVECARE_REQUEST = 'Services/ER_VirtualCall.svc/REST/DeleteErRequest';
+var SEND_LIVECARE_INVOICE_EMAIL = 'Services/Notifications.svc/REST/SendInvoiceForLiveCare';
-var CHANGE_PATIENT_ER_SESSION =
- 'Services/DoctorApplication.svc/REST/ChangePatientERSession';
+var CHANGE_PATIENT_ER_SESSION = 'Services/DoctorApplication.svc/REST/ChangePatientERSession';
-var APPLE_PAY_INSERT_REQUEST =
- 'Services/PayFort_Serv.svc/REST/PayFort_ApplePayRequestData_Insert';
+var APPLE_PAY_INSERT_REQUEST = 'Services/PayFort_Serv.svc/REST/PayFort_ApplePayRequestData_Insert';
-var GET_USER_TERMS = 'Services/Patients.svc/REST/GetUserTermsAndConditions';
+var GET_USER_TERMS = 'Services/Patients.svc/REST/GetUserTermsAndConditions';
-var TAMARA_REQUEST_INSERT = 'Services/PayFort_Serv.svc/REST/AddTamaraRequest';
+var TAMARA_REQUEST_INSERT = 'Services/PayFort_Serv.svc/REST/AddTamaraRequest';
-var UPDATE_HEALTH_TERMS =
- 'services/Patients.svc/REST/UpdatePateintHealthSummaryReport';
+var UPDATE_HEALTH_TERMS = 'services/Patients.svc/REST/UpdatePateintHealthSummaryReport';
-var GET_PATIENT_HEALTH_STATS =
- 'Services/Patients.svc/REST/Med_GetTransactionsSts';
+var GET_PATIENT_HEALTH_STATS = 'Services/Patients.svc/REST/Med_GetTransactionsSts';
-var SEND_CHECK_IN_NFC_REQUEST =
- 'Services/Patients.svc/REST/Patient_CheckAppointmentValidation_ForNFC';
+var SEND_CHECK_IN_NFC_REQUEST = 'Services/Patients.svc/REST/Patient_CheckAppointmentValidation_ForNFC';
-var HAS_DENTAL_PLAN =
- 'Services/Doctors.svc/REST/Dental_IsPatientHasOnGoingEstimation';
+var HAS_DENTAL_PLAN = 'Services/Doctors.svc/REST/Dental_IsPatientHasOnGoingEstimation';
-var LASER_BODY_PARTS = 'Services/Patients.svc/REST/Laser_GetBodyPartsByCategory';
+var LASER_BODY_PARTS = 'Services/Patients.svc/REST/Laser_GetBodyPartsByCategory';
-var INSERT_COVID_QUESTIONNAIRE = 'Services/Doctors.svc/REST/COVID19_Questionnarie_Insert';
-var UPDATE_COVID_QUESTIONNAIRE = 'Services/Doctors.svc/REST/COVID19_Questionnarie_Update';
+var INSERT_COVID_QUESTIONNAIRE = 'Services/Doctors.svc/REST/COVID19_Questionnarie_Insert';
+var UPDATE_COVID_QUESTIONNAIRE = 'Services/Doctors.svc/REST/COVID19_Questionnarie_Update';
//URL to get medicine and pharmacies list
-var CHANNEL = 3;
-var GENERAL_ID = 'Cs2020@2016\$2958';
-var IP_ADDRESS = '10.20.10.20';
-var VERSION_ID = 9.9;
-var SETUP_ID = '91877';
-var LANGUAGE = 2;
+var CHANNEL = 3;
+var GENERAL_ID = 'Cs2020@2016\$2958';
+var IP_ADDRESS = '10.20.10.20';
+var VERSION_ID = 10.4;
+var SETUP_ID = '91877';
+var LANGUAGE = 2;
// var PATIENT_OUT_SA = 0;
-var SESSION_ID = 'TMRhVmkGhOsvamErw';
-var IS_DENTAL_ALLOWED_BACKEND = false;
-var PATIENT_TYPE = 1;
-var PATIENT_TYPE_ID = null;
+var SESSION_ID = 'TMRhVmkGhOsvamErw';
+var IS_DENTAL_ALLOWED_BACKEND = false;
+var PATIENT_TYPE = 1;
+var PATIENT_TYPE_ID = 1;
var DEVICE_TOKEN = "";
var IS_VOICE_COMMAND_CLOSED = true;
var IS_TEXT_COMPLETED = false;
// var DeviceTypeID = Platform.isIOS ? 1 : 2;
// var LANGUAGE_ID = 2;
-var GET_PHARMCY_ITEMS = "Services/Lists.svc/REST/GetPharmcyItems_Region";
-var GET_PHARMACY_LIST = "Services/Patients.svc/REST/GetPharmcyList";
-var GET_PAtIENTS_INSURANCE =
- "Services/Patients.svc/REST/Get_PatientInsuranceDetails";
-var GET_PAtIENTS_INSURANCE_UPDATED =
- "Services/Patients.svc/REST/PatientER_GetPatientInsuranceCardUpdateHistory";
-
-var INSURANCE_DETAILS = "Services/Patients.svc/REST/Get_InsuranceCheckList";
-var INSURANCE_SCHEMES = "Services/Patients.svc/REST/PatientER_SchemesOfAactiveCompaniesGet";
-var UPDATE_MANUAL_INSURANCE = "Services/Patients.svc/REST/PatientER_PatientInfoForInsuranceCardUpdate";
-var INSURANCE_COMPANIES = "Services/Patients.svc/REST/PatientER_InsuranceCompanyGet";
-var GET_PATIENT_INSURANCE_DETAILS =
- "Services/Patients.svc/REST/PatientER_GetPatientInsuranceDetails";
-var UPLOAD_INSURANCE_CARD =
- 'Services/Patients.svc/REST/PatientER_PatientInfoForInsuranceCardUpdate';
-
-var GET_VACCINES = "Services/Patients.svc/REST/GetDoneVaccinesByPatientID";
-var GET_VACCINES_EMAIL = "Services/Notifications.svc/REST/SendVaccinesEmail";
-var GET_PAtIENTS_INSURANCE_APPROVALS =
- "Services/Patients.svc/REST/GetApprovalStatus_Async";
+var GET_PHARMCY_ITEMS = "Services/Lists.svc/REST/GetPharmcyItems_Region";
+var GET_PHARMACY_LIST = "Services/Patients.svc/REST/GetPharmcyList";
+var GET_PAtIENTS_INSURANCE = "Services/Patients.svc/REST/Get_PatientInsuranceDetails";
+var GET_PAtIENTS_INSURANCE_UPDATED = "Services/Patients.svc/REST/PatientER_GetPatientInsuranceCardUpdateHistory";
+
+var INSURANCE_DETAILS = "Services/Patients.svc/REST/Get_InsuranceCheckList";
+var INSURANCE_SCHEMES = "Services/Patients.svc/REST/PatientER_SchemesOfAactiveCompaniesGet";
+var UPDATE_MANUAL_INSURANCE = "Services/Patients.svc/REST/PatientER_PatientInfoForInsuranceCardUpdate";
+var INSURANCE_COMPANIES = "Services/Patients.svc/REST/PatientER_InsuranceCompanyGet";
+var GET_PATIENT_INSURANCE_DETAILS = "Services/Patients.svc/REST/PatientER_GetPatientInsuranceDetails";
+var UPLOAD_INSURANCE_CARD = 'Services/Patients.svc/REST/PatientER_PatientInfoForInsuranceCardUpdate';
+
+var GET_VACCINES = "Services/Patients.svc/REST/GetDoneVaccinesByPatientID";
+var GET_VACCINES_EMAIL = "Services/Notifications.svc/REST/SendVaccinesEmail";
+var GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus_Async";
// var GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus";
-var SEARCH_BOT = 'HabibiChatBotApi/BotInterface/GetVoiceCommandResponse';
+var SEARCH_BOT = 'HabibiChatBotApi/BotInterface/GetVoiceCommandResponse';
-var GET_VACCINATIONS_ITEMS = "/Services/ERP.svc/REST/GET_VACCINATIONS_ITEMS";
-var GET_VACCINATION_ONHAND = "/Services/ERP.svc/REST/GET_VACCINATION_ONHAND";
+var GET_VACCINATIONS_ITEMS = "/Services/ERP.svc/REST/GET_VACCINATIONS_ITEMS";
+var GET_VACCINATION_ONHAND = "/Services/ERP.svc/REST/GET_VACCINATION_ONHAND";
-var GET_PATIENT_SICK_LEAVE = 'Services/Patients.svc/REST/GetPatientSickLeave';
+var GET_PATIENT_SICK_LEAVE = 'Services/Patients.svc/REST/GetPatientSickLeave';
-var GET_PATIENT_SICK_LEAVE_STATUS = 'Services/Patients.svc/REST/GetPatientSickLeave_Status';
+var GET_PATIENT_SICK_LEAVE_STATUS = 'Services/Patients.svc/REST/GetPatientSickLeave_Status';
-var SendSickLeaveEmail = 'Services/Notifications.svc/REST/SendSickLeaveEmail';
+var SendSickLeaveEmail = 'Services/Notifications.svc/REST/SendSickLeaveEmail';
-var GET_PATIENT_AdVANCE_BALANCE_AMOUNT =
- 'Services/Patients.svc/REST/GetPatientAdvanceBalanceAmount';
-var GET_PATIENT_INFO_BY_ID =
- 'Services/Doctors.svc/REST/GetPatientInfoByPatientID';
-var GET_PATIENT_INFO_BY_ID_AND_MOBILE_NUMBER =
- 'Services/Patients.svc/REST/AP_GetPatientInfoByPatientIDandMobileNumber';
-var SEND_ACTIVATION_CODE_FOR_ADVANCE_PAYMENT =
- 'Services/Authentication.svc/REST/SendActivationCodeForAdvancePayment';
-var CHECK_ACTIVATION_CODE_FOR_ADVANCE_PAYMENT =
- 'Services/Authentication.svc/REST/CheckActivationCodeForAdvancePayment';
+var GET_PATIENT_AdVANCE_BALANCE_AMOUNT = 'Services/Patients.svc/REST/GetPatientAdvanceBalanceAmount';
+var GET_PATIENT_INFO_BY_ID = 'Services/Doctors.svc/REST/GetPatientInfoByPatientID';
+var GET_PATIENT_INFO_BY_ID_AND_MOBILE_NUMBER = 'Services/Patients.svc/REST/AP_GetPatientInfoByPatientIDandMobileNumber';
+var SEND_ACTIVATION_CODE_FOR_ADVANCE_PAYMENT = 'Services/Authentication.svc/REST/SendActivationCodeForAdvancePayment';
+var CHECK_ACTIVATION_CODE_FOR_ADVANCE_PAYMENT = 'Services/Authentication.svc/REST/CheckActivationCodeForAdvancePayment';
-var GET_COVID_DRIVETHRU_PROJECT_LIST =
- 'Services/Doctors.svc/REST/COVID19_ProjectDriveThroughTestingCenter';
+var GET_COVID_DRIVETHRU_PROJECT_LIST = 'Services/Doctors.svc/REST/COVID19_ProjectDriveThroughTestingCenter';
-var GET_COVID_DRIVETHRU_PAYMENT_INFO =
- 'Services/Doctors.svc/REST/COVID19_GetPatientPaymentInormation';
+var GET_COVID_DRIVETHRU_PAYMENT_INFO = 'Services/Doctors.svc/REST/COVID19_GetPatientPaymentInormation';
-var GET_COVID_DRIVETHRU_FREE_SLOTS =
- 'Services/Doctors.svc/REST/COVID19_GetFreeSlots';
+var GET_COVID_DRIVETHRU_FREE_SLOTS = 'Services/Doctors.svc/REST/COVID19_GetFreeSlots';
-var GET_COVID_DRIVETHRU_PROCEDURES_LIST =
- 'Services/Doctors.svc/REST/COVID19_GetTestProcedures';
+var GET_COVID_DRIVETHRU_PROCEDURES_LIST = 'Services/Doctors.svc/REST/COVID19_GetTestProcedures';
///Smartwatch Integration Services
-var GET_PATIENT_LAST_RECORD =
- 'Services/Patients.svc/REST/Med_GetPatientLastRecord';
-var INSERT_PATIENT_HEALTH_DATA =
- 'Services/Patients.svc/REST/Med_InsertTransactions';
+var GET_PATIENT_LAST_RECORD = 'Services/Patients.svc/REST/Med_GetPatientLastRecord';
+var INSERT_PATIENT_HEALTH_DATA = 'Services/Patients.svc/REST/Med_InsertTransactions';
///My Trackers
-var GET_DIABETIC_RESULT_AVERAGE =
- 'Services/Patients.svc/REST/Patient_GetDiabeticResultAverage';
-var GET_DIABTEC_RESULT =
- 'Services/Patients.svc/REST/Patient_GetDiabtecResults';
-var ADD_DIABTEC_RESULT =
- 'Services/Patients.svc/REST/Patient_AddDiabtecResult';
-
-var GET_BLOOD_PRESSURE_RESULT_AVERAGE =
- 'Services/Patients.svc/REST/Patient_GetBloodPressureResultAverage';
-var GET_BLOOD_PRESSURE_RESULT =
- 'Services/Patients.svc/REST/Patient_GetBloodPressureResult';
-var ADD_BLOOD_PRESSURE_RESULT =
- 'Services/Patients.svc/REST/Patient_AddBloodPressureResult';
-
-var GET_WEIGHT_PRESSURE_RESULT_AVERAGE =
- 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResultAverage';
-var GET_WEIGHT_PRESSURE_RESULT =
- 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResult';
-var ADD_WEIGHT_PRESSURE_RESULT =
- 'Services/Patients.svc/REST/Patient_AddWeightMeasurementResult';
-
-var ADD_ACTIVE_PRESCRIPTIONS_REPORT_BY_PATIENT_ID =
- 'Services/Patients.svc/Rest/GetActivePrescriptionReportByPatientID';
-
-var GET_CALL_INFO_HOURS_RESULT =
- 'Services/Doctors.svc/REST/GetCallInfoHoursResult';
-var GET_CALL_REQUEST_TYPE_LOV =
- 'Services/Doctors.svc/REST/GetCallRequestType_LOV';
-
-var UPDATE_DIABETIC_RESULT =
- 'Services/Patients.svc/REST/Patient_UpdateDiabeticResult';
-
-var SEND_AVERAGE_BLOOD_SUGAR_REPORT =
- 'Services/Notifications.svc/REST/SendAverageBloodSugarReport';
-var DEACTIVATE_DIABETIC_STATUS =
- 'services/Patients.svc/REST/Patient_DeactivateDiabeticStatus';
-var DEACTIVATE_BLOOD_PRESSURES_STATUS =
- 'services/Patients.svc/REST/Patient_DeactivateBloodPressureStatus';
-
-var UPDATE_BLOOD_PRESSURE_RESULT =
- 'Services/Patients.svc/REST/Patient_UpdateBloodPressureResult';
-var SEND_AVERAGE_BLOOD_WEIGHT_REPORT =
- 'Services/Notifications.svc/REST/SendAverageBodyWeightReport';
-var SEND_AVERAGE_BLOOD_PRESSURE_REPORT =
- 'Services/Notifications.svc/REST/SendAverageBloodPressureReport';
-
-var UPDATE_WEIGHT_PRESSURE_RESULT =
- 'Services/Patients.svc/REST/Patient_UpdateWeightMeasurementResult';
-var DEACTIVATE_WEIGHT_PRESSURE_RESULT =
- 'services/Patients.svc/REST/Patient_DeactivateWeightMeasurementStatus';
-var GET_DOCTOR_RESPONSE = 'Services/Patients.svc/REST/GetDoctorResponse';
-var UPDATE_READ_STATUS = 'Services/Patients.svc/REST/UpdateReadStatus';
-var INSERT_CALL_INFO = 'Services/Doctors.svc/REST/InsertCallInfo';
-
-var GET_PATIENT_ALLERGIES = 'Services/Patients.svc/REST/GetPatientAllergies';
+var GET_DIABETIC_RESULT_AVERAGE = 'Services/Patients.svc/REST/Patient_GetDiabeticResultAverage';
+var GET_DIABTEC_RESULT = 'Services/Patients.svc/REST/Patient_GetDiabtecResults';
+var ADD_DIABTEC_RESULT = 'Services/Patients.svc/REST/Patient_AddDiabtecResult';
+
+var GET_BLOOD_PRESSURE_RESULT_AVERAGE = 'Services/Patients.svc/REST/Patient_GetBloodPressureResultAverage';
+var GET_BLOOD_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_GetBloodPressureResult';
+var ADD_BLOOD_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_AddBloodPressureResult';
+
+var GET_WEIGHT_PRESSURE_RESULT_AVERAGE = 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResultAverage';
+var GET_WEIGHT_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResult';
+var ADD_WEIGHT_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_AddWeightMeasurementResult';
+
+var ADD_ACTIVE_PRESCRIPTIONS_REPORT_BY_PATIENT_ID = 'Services/Patients.svc/Rest/GetActivePrescriptionReportByPatientID';
+
+var GET_CALL_INFO_HOURS_RESULT = 'Services/Doctors.svc/REST/GetCallInfoHoursResult';
+var GET_CALL_REQUEST_TYPE_LOV = 'Services/Doctors.svc/REST/GetCallRequestType_LOV';
+
+var UPDATE_DIABETIC_RESULT = 'Services/Patients.svc/REST/Patient_UpdateDiabeticResult';
+
+var SEND_AVERAGE_BLOOD_SUGAR_REPORT = 'Services/Notifications.svc/REST/SendAverageBloodSugarReport';
+var DEACTIVATE_DIABETIC_STATUS = 'services/Patients.svc/REST/Patient_DeactivateDiabeticStatus';
+var DEACTIVATE_BLOOD_PRESSURES_STATUS = 'services/Patients.svc/REST/Patient_DeactivateBloodPressureStatus';
+
+var UPDATE_BLOOD_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_UpdateBloodPressureResult';
+var SEND_AVERAGE_BLOOD_WEIGHT_REPORT = 'Services/Notifications.svc/REST/SendAverageBodyWeightReport';
+var SEND_AVERAGE_BLOOD_PRESSURE_REPORT = 'Services/Notifications.svc/REST/SendAverageBloodPressureReport';
+
+var UPDATE_WEIGHT_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_UpdateWeightMeasurementResult';
+var DEACTIVATE_WEIGHT_PRESSURE_RESULT = 'services/Patients.svc/REST/Patient_DeactivateWeightMeasurementStatus';
+var GET_DOCTOR_RESPONSE = 'Services/Patients.svc/REST/GetDoctorResponse';
+var UPDATE_READ_STATUS = 'Services/Patients.svc/REST/UpdateReadStatus';
+var INSERT_CALL_INFO = 'Services/Doctors.svc/REST/InsertCallInfo';
+
+var GET_PATIENT_ALLERGIES = 'Services/Patients.svc/REST/GetPatientAllergies';
// H2O
-var H2O_GET_USER_PROGRESS =
- "Services/H2ORemainder.svc/REST/H2O_GetUserProgress";
-var H2O_INSERT_USER_ACTIVITY =
- "Services/H2ORemainder.svc/REST/H2O_InsertUserActivity";
-var H2O_GET_USER_DETAIL =
- "Services/H2ORemainder.svc/REST/H2O_GetUserDetails_New";
-var H2O_UPDATE_USER_DETAIL =
- "Services/H2ORemainder.svc/REST/H2O_UpdateUserDetails_New";
-var H2O_UNDO_USER_ACTIVITY =
- "Services/H2ORemainder.svc/REST/H2o_UndoUserActivity";
+var H2O_GET_USER_PROGRESS = "Services/H2ORemainder.svc/REST/H2O_GetUserProgress";
+var H2O_INSERT_USER_ACTIVITY = "Services/H2ORemainder.svc/REST/H2O_InsertUserActivity";
+var H2O_GET_USER_DETAIL = "Services/H2ORemainder.svc/REST/H2O_GetUserDetails_New";
+var H2O_UPDATE_USER_DETAIL = "Services/H2ORemainder.svc/REST/H2O_UpdateUserDetails_New";
+var H2O_UNDO_USER_ACTIVITY = "Services/H2ORemainder.svc/REST/H2o_UndoUserActivity";
//E_Referral Services
-var GET_ALL_RELATIONSHIP_TYPES =
- "Services/Patients.svc/REST/GetAllRelationshipTypes";
-var SEND_ACTIVATION_CODE_FOR_E_REFERRAL =
- 'Services/Authentication.svc/REST/SendActivationCodeForEReferral';
-var CHECK_ACTIVATION_CODE_FOR_E_REFERRAL =
- 'Services/Authentication.svc/REST/CheckActivationCodeForEReferral';
-var GET_ALL_CITIES = 'services/Lists.svc/rest/GetAllCities';
-var CREATE_E_REFERRAL = "Services/Patients.svc/REST/CreateEReferral";
-var GET_E_REFERRALS = "Services/Patients.svc/REST/GetEReferrals";
+var GET_ALL_RELATIONSHIP_TYPES = "Services/Patients.svc/REST/GetAllRelationshipTypes";
+var SEND_ACTIVATION_CODE_FOR_E_REFERRAL = 'Services/Authentication.svc/REST/SendActivationCodeForEReferral';
+var CHECK_ACTIVATION_CODE_FOR_E_REFERRAL = 'Services/Authentication.svc/REST/CheckActivationCodeForEReferral';
+var GET_ALL_CITIES = 'services/Lists.svc/rest/GetAllCities';
+var CREATE_E_REFERRAL = "Services/Patients.svc/REST/CreateEReferral";
+var GET_E_REFERRALS = "Services/Patients.svc/REST/GetEReferrals";
// Encillary Orders
-var GET_ANCILLARY_ORDERS =
- 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderList';
+var GET_ANCILLARY_ORDERS = 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderList';
-var GET_ANCILLARY_ORDERS_DETAILS =
- 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderProcList';
+var GET_ANCILLARY_ORDERS_DETAILS = 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderProcList';
//Pharmacy wishlist
// var GET_WISHLIST = "http://swd-pharapp-01:7200/api/shopping_cart_items/";
-var GET_DOCTOR_LIST_BY_TIME = "Services/Doctors.svc/REST/SearchDoctorsByTime";
+var GET_DOCTOR_LIST_BY_TIME = "Services/Doctors.svc/REST/SearchDoctorsByTime";
// pharmacy
-var PHARMACY_AUTORZIE_CUSTOMER = "AutorizeCustomer";
-var PHARMACY_VERIFY_CUSTOMER = "VerifyCustomer";
-var PHARMACY_GET_COUNTRY = "countries";
+var PHARMACY_AUTORZIE_CUSTOMER = "AutorizeCustomer";
+var PHARMACY_VERIFY_CUSTOMER = "VerifyCustomer";
+var PHARMACY_GET_COUNTRY = "countries";
// var PHARMACY_CREATE_CUSTOMER = "epharmacy/api/CreateCustomer";
-var PHARMACY_CREATE_CUSTOMER = "getorcreateCustomer";
-var GET_PHARMACY_BANNER = "promotionbanners";
-var GET_PHARMACY_TOP_MANUFACTURER = "topmanufacturer";
-var GET_PHARMACY_BEST_SELLER_PRODUCT = "bestsellerproducts";
-var GET_PHARMACY_PRODUCTs_BY_IDS = "productsbyids/";
-var GET_PHARMACY_PRODUCTs_BY_SKU = "productbysku/";
-var GET_CUSTOMERS_ADDRESSES = "Customers/";
-var SUBSCRIBE_PRODUCT = "subscribe?";
-var GET_ORDER = "orders?";
-var GET_ORDER_DETAILS = "orders/";
-var ADD_CUSTOMER_ADDRESS = "addcustomeraddress";
-var EDIT_CUSTOMER_ADDRESS = "editcustomeraddress";
-var DELETE_CUSTOMER_ADDRESS = "deletecustomeraddress";
-var GET_ADDRESS = "Customers/";
-var GET_Cancel_ORDER = "cancelorder/";
-var WRITE_REVIEW = "Content-Type" + "text/plain; charset=utf-8";
-var GET_SHOPPING_CART = "shopping_cart_items/";
-var GET_SHIPPING_OPTIONS = "get_shipping_option/";
-var DELETE_SHOPPING_CART = "delete_shopping_cart_items/";
-var DELETE_SHOPPING_CART_ALL = "delete_shopping_cart_item_by_customer/";
-var ORDER_SHOPPING_CART = "orders";
-var GET_LACUM_ACCOUNT_INFORMATION =
- "Services/Patients.svc/REST/GetLakumAccountInformation";
-var GET_LACUM_GROUP_INFORMATION =
- "Services/Patients.svc/REST/GetlakumInQueryInfoGrouping";
-var LACUM_ACCOUNT_ACTIVATE =
- "Services/Patients.svc/REST/LakumAccountActivation";
-var LACUM_ACCOUNT_DEACTIVATE =
- "Services/Patients.svc/REST/LakumAccountDeactivation";
-var CREATE_LAKUM_ACCOUNT =
- "Services/Patients.svc/REST/PHR_CreateLakumAccount";
-var TRANSFER_YAHALA_LOYALITY_POINTS =
- "Services/Patients.svc/REST/TransferYaHalaLoyaltyPoints";
-var LAKUM_GET_USER_TERMS_AND_CONDITIONS =
- "Services/ERP.svc/REST/GetUserTermsAndConditionsForEPharmcy";
+var PHARMACY_CREATE_CUSTOMER = "getorcreateCustomer";
+var GET_PHARMACY_BANNER = "promotionbanners";
+var GET_PHARMACY_TOP_MANUFACTURER = "topmanufacturer";
+var GET_PHARMACY_BEST_SELLER_PRODUCT = "bestsellerproducts";
+var GET_PHARMACY_PRODUCTs_BY_IDS = "productsbyids/";
+var GET_PHARMACY_PRODUCTs_BY_SKU = "productbysku/";
+var GET_CUSTOMERS_ADDRESSES = "Customers/";
+var SUBSCRIBE_PRODUCT = "subscribe?";
+var GET_ORDER = "orders?";
+var GET_ORDER_DETAILS = "orders/";
+var ADD_CUSTOMER_ADDRESS = "addcustomeraddress";
+var EDIT_CUSTOMER_ADDRESS = "editcustomeraddress";
+var DELETE_CUSTOMER_ADDRESS = "deletecustomeraddress";
+var GET_ADDRESS = "Customers/";
+var GET_Cancel_ORDER = "cancelorder/";
+var WRITE_REVIEW = "Content-Type" + "text/plain; charset=utf-8";
+var GET_SHOPPING_CART = "shopping_cart_items/";
+var GET_SHIPPING_OPTIONS = "get_shipping_option/";
+var DELETE_SHOPPING_CART = "delete_shopping_cart_items/";
+var DELETE_SHOPPING_CART_ALL = "delete_shopping_cart_item_by_customer/";
+var ORDER_SHOPPING_CART = "orders";
+var GET_LACUM_ACCOUNT_INFORMATION = "Services/Patients.svc/REST/GetLakumAccountInformation";
+var GET_LACUM_GROUP_INFORMATION = "Services/Patients.svc/REST/GetlakumInQueryInfoGrouping";
+var LACUM_ACCOUNT_ACTIVATE = "Services/Patients.svc/REST/LakumAccountActivation";
+var LACUM_ACCOUNT_DEACTIVATE = "Services/Patients.svc/REST/LakumAccountDeactivation";
+var CREATE_LAKUM_ACCOUNT = "Services/Patients.svc/REST/PHR_CreateLakumAccount";
+var TRANSFER_YAHALA_LOYALITY_POINTS = "Services/Patients.svc/REST/TransferYaHalaLoyaltyPoints";
+var LAKUM_GET_USER_TERMS_AND_CONDITIONS = "Services/ERP.svc/REST/GetUserTermsAndConditionsForEPharmcy";
// var PRESCRIPTION = 'Services/Patients.svc/REST/GetPrescriptionApptList';
-var PRESCRIPTION = 'Services/Patients.svc/REST/GetPrescriptionApptList_Async';
+var PRESCRIPTION = 'Services/Patients.svc/REST/GetPrescriptionApptList_Async';
-var GET_RECOMMENDED_PRODUCT = 'alsoProduct/';
-var GET_MOST_VIEWED_PRODUCTS = "mostview";
-var GET_NEW_PRODUCTS = "newproducts";
+var GET_RECOMMENDED_PRODUCT = 'alsoProduct/';
+var GET_MOST_VIEWED_PRODUCTS = "mostview";
+var GET_NEW_PRODUCTS = "newproducts";
// Home Health Care
-var HHC_GET_ALL_SERVICES =
- "Services/Patients.svc/REST/PatientER_HHC_GetAllServices";
-var HHC_GET_ALL_CMC_SERVICES =
- "Services/Patients.svc/REST/PatientER_CMC_GetAllServices";
-var PATIENT_ER_UPDATE_PRES_ORDER =
- "Services/Patients.svc/REST/PatientER_UpdatePresOrder";
-var GET_ORDER_DETAIL_BY_ID =
- "Services/Patients.svc/REST/PatientER_HHC_GetTransactionsForOrder";
-var GET_CMC_ORDER_DETAIL_BY_ID =
- "Services/Patients.svc/REST/PatientER_CMC_GetTransactionsForOrder";
-var GET_CHECK_UP_ITEMS = "Services/Patients.svc/REST/GetCheckUpItems";
-var PUSH_NOTIFICATION_GET_ALL_NOTIFICATIONS =
- 'Services/MobileNotifications.svc/REST/PushNotification_GetAllNotifications';
-var PUSH_NOTIFICATION_SET_MESSAGES_FROM_POOL_AS_READ =
- 'Services/MobileNotifications.svc/REST/PushNotification_SetMessagesFromPoolAsRead';
-var GET_PATIENT_ALL_PRES_ORD =
- 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
-var PATIENT_ER_INSERT_PRES_ORDER =
- 'Services/Patients.svc/REST/PatientER_InsertPresOrder';
-var BLOOD_DONATION_REGISTER_BLOOD_TYPE =
- 'Services/PatientVarification.svc/REST/BloodDonation_RegisterBloodType';
-var ADD_USER_AGREEMENT_FOR_BLOOD_DONATION =
- 'Services/PatientVarification.svc/REST/AddUserAgreementForBloodDonation';
+var HHC_GET_ALL_SERVICES = "Services/Patients.svc/REST/PatientER_HHC_GetAllServices";
+var HHC_GET_ALL_CMC_SERVICES = "Services/Patients.svc/REST/PatientER_CMC_GetAllServices";
+var PATIENT_ER_UPDATE_PRES_ORDER = "Services/Patients.svc/REST/PatientER_UpdatePresOrder";
+var GET_ORDER_DETAIL_BY_ID = "Services/Patients.svc/REST/PatientER_HHC_GetTransactionsForOrder";
+var GET_CMC_ORDER_DETAIL_BY_ID = "Services/Patients.svc/REST/PatientER_CMC_GetTransactionsForOrder";
+var GET_CHECK_UP_ITEMS = "Services/Patients.svc/REST/GetCheckUpItems";
+var PUSH_NOTIFICATION_GET_ALL_NOTIFICATIONS = 'Services/MobileNotifications.svc/REST/PushNotification_GetAllNotifications';
+var PUSH_NOTIFICATION_SET_MESSAGES_FROM_POOL_AS_READ = 'Services/MobileNotifications.svc/REST/PushNotification_SetMessagesFromPoolAsRead';
+var GET_PATIENT_ALL_PRES_ORD = 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
+var PATIENT_ER_INSERT_PRES_ORDER = 'Services/Patients.svc/REST/PatientER_InsertPresOrder';
+var BLOOD_DONATION_REGISTER_BLOOD_TYPE = 'Services/PatientVarification.svc/REST/BloodDonation_RegisterBloodType';
+var ADD_USER_AGREEMENT_FOR_BLOOD_DONATION = 'Services/PatientVarification.svc/REST/AddUserAgreementForBloodDonation';
// HHC RC SERVICES
-var HHC_GET_ALL_SERVICES_RC = "api/HHC/getallhhc";
-var ADD_HHC_ORDER_RC = "api/HHC/add";
-var GET_ALL_HHC_ORDERS_RC = 'api/hhc/list';
-var UPDATE_HHC_ORDER_RC = 'api/hhc/update';
+var HHC_GET_ALL_SERVICES_RC = "api/HHC/getallhhc";
+var ADD_HHC_ORDER_RC = "api/HHC/add";
+var GET_ALL_HHC_ORDERS_RC = 'api/hhc/list';
+var UPDATE_HHC_ORDER_RC = 'api/hhc/update';
// CMC RC SERVICES
-var GET_ALL_CMC_SERVICES_RC = 'api/cmc/getallcmc';
-var ADD_CMC_ORDER_RC = 'api/cmc/add';
-var GET_ALL_CMC_ORDERS_RC = 'api/cmc/list';
-var UPDATE_CMC_ORDER_RC = 'api/cmc/update';
+var GET_ALL_CMC_SERVICES_RC = 'api/cmc/getallcmc';
+var ADD_CMC_ORDER_RC = 'api/cmc/add';
+var GET_ALL_CMC_ORDERS_RC = 'api/cmc/list';
+var UPDATE_CMC_ORDER_RC = 'api/cmc/update';
// RRT RC SERVICES
-var ADD_RRT_ORDER_RC = "api/rrt/add";
-var GET_ALL_RRT_ORDERS_RC = "api/rrt/list";
-var UPDATE_RRT_ORDER_RC = 'api/rrt/update';
+var ADD_RRT_ORDER_RC = "api/rrt/add";
+var GET_ALL_RRT_ORDERS_RC = "api/rrt/list";
+var UPDATE_RRT_ORDER_RC = 'api/rrt/update';
// PRESCRIPTION RC SERVICES
-var ADD_PRESCRIPTION_ORDER_RC = "api/prescription/add";
-var GET_ALL_PRESCRIPTION_ORDERS_RC = "api/prescription/list";
-var GET_ALL_PRESCRIPTION_INFO_RC = "api/Prescription/info";
-var UPDATE_PRESCRIPTION_ORDER_RC = 'api/prescription/update';
+var ADD_PRESCRIPTION_ORDER_RC = "api/prescription/add";
+var GET_ALL_PRESCRIPTION_ORDERS_RC = "api/prescription/list";
+var GET_ALL_PRESCRIPTION_INFO_RC = "api/Prescription/info";
+var UPDATE_PRESCRIPTION_ORDER_RC = 'api/prescription/update';
//Pharmacy wishlist
-var GET_WISHLIST = "shopping_cart_items/";
-var DELETE_WISHLIST = "delete_shopping_cart_item_by_product?customer_id=";
-var GET_REVIEW = "customerreviews/";
-var GET_BRANDS = "manufacturer";
-var GET_TOP_BRANDS = "topmanufacturer?page=1&limit=8";
-var GET_PRODUCT_DETAIL = "products/";
-var GET_LOCATION = "Services/Patients.svc/REST/GetPharmcyListBySKU";
-var GET_SPECIFICATION = "productspecification/";
-var GET_BRAND_ITEMS = "products";
-var PHARMACY_MAKE_REVIEW = 'insertreviews';
+var GET_WISHLIST = "shopping_cart_items/";
+var DELETE_WISHLIST = "delete_shopping_cart_item_by_product?customer_id=";
+var GET_REVIEW = "customerreviews/";
+var GET_BRANDS = "manufacturer";
+var GET_TOP_BRANDS = "topmanufacturer?page=1&limit=8";
+var GET_PRODUCT_DETAIL = "products/";
+var GET_LOCATION = "Services/Patients.svc/REST/GetPharmcyListBySKU";
+var GET_SPECIFICATION = "productspecification/";
+var GET_BRAND_ITEMS = "products";
+var PHARMACY_MAKE_REVIEW = 'insertreviews';
// External API
-var ADD_ADDRESS_INFO = "addcustomeraddress";
-var GET_CUSTOMER_ADDRESSES = "Customers/";
-var GET_CUSTOMER_INFO = "VerifyCustomer";
+var ADD_ADDRESS_INFO = "addcustomeraddress";
+var GET_CUSTOMER_ADDRESSES = "Customers/";
+var GET_CUSTOMER_INFO = "VerifyCustomer";
//Pharmacy
-var GET_PHARMACY_CATEGORISE =
- 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=0';
-var GET_OFFERS_CATEGORISE = 'discountcategories';
-var GET_OFFERS_PRODUCTS = 'offerproducts/';
-var GET_CATEGORISE_PARENT =
- 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=';
-var GET_PARENT_PRODUCTS = 'products?categoryid=';
-var GET_SUB_CATEGORISE =
- 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=';
-var GET_SUB_PRODUCTS = 'products?categoryid=';
-var GET_FINAL_PRODUCTS =
+var GET_PHARMACY_CATEGORISE = 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=0';
+var GET_OFFERS_CATEGORISE = 'discountcategories';
+var GET_OFFERS_PRODUCTS = 'offerproducts/';
+var GET_CATEGORISE_PARENT = 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=';
+var GET_PARENT_PRODUCTS = 'products?categoryid=';
+var GET_SUB_CATEGORISE = 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=';
+var GET_SUB_PRODUCTS = 'products?categoryid=';
+var GET_FINAL_PRODUCTS =
'products?fields=id,reviews,discount_ids,name,namen,localized_names,display_order,short_description,full_description,full_descriptionn,sku,order_minimum_quantity,order_maximum_quantity,price,old_price,images,is_rx,rx_message,rx_messagen,discount_name,discount_namen,approved_rating_sum,approved_total_reviews,allow_back_in_stock_subscriptions,stock_quantity,stock_availability,stock_availabilityn,discount_percentage&CategoryId=';
-var GET_CLINIC_CATEGORY = 'Services/Doctors.svc/REST/DP_GetClinicCategory';
-var GET_DISEASE_BY_CLINIC_ID =
- 'Services/Doctors.svc/REST/DP_GetDiseasesByClinicID';
-var SEARCH_DOCTOR_BY_TIME = 'Services/Doctors.svc/REST/SearchDoctorsByTime';
+var GET_CLINIC_CATEGORY = 'Services/Doctors.svc/REST/DP_GetClinicCategory';
+var GET_DISEASE_BY_CLINIC_ID = 'Services/Doctors.svc/REST/DP_GetDiseasesByClinicID';
+var SEARCH_DOCTOR_BY_TIME = 'Services/Doctors.svc/REST/SearchDoctorsByTime';
-var TIMER_MIN = 10;
+var TIMER_MIN = 10;
-var GOOGLE_API_KEY = "AIzaSyCmevVlr2Bh-c8W1VUzo8gt8JRY7n5PANw";
+var GOOGLE_API_KEY = "AIzaSyCmevVlr2Bh-c8W1VUzo8gt8JRY7n5PANw";
-var GET_BRANDS_LIST = 'categoryManufacturer?categoryids=';
+var GET_BRANDS_LIST = 'categoryManufacturer?categoryids=';
-var GET_SEARCH_PRODUCTS =
+var GET_SEARCH_PRODUCTS =
'searchproducts?fields=id,discount_ids,reviews,name,namen,localized_names,display_order,short_description,full_description,full_descriptionn,sku,order_minimum_quantity,order_maximum_quantity,price,old_price,images,is_rx,rx_message,rx_messagen,discount_name,discount_namen,approved_rating_sum,approved_total_reviews,allow_back_in_stock_subscriptions,stock_quantity,stock_availability,stock_availabilityn,discount_percentage&search_key=';
-var SCAN_QR_CODE = 'productbysku/';
+var SCAN_QR_CODE = 'productbysku/';
+
+var FILTERED_PRODUCTS = 'products?categoryids=';
+
+var GET_DOCTOR_LIST_CALCULATION = "Services/Doctors.svc/REST/GetCallculationDoctors";
+
+var GET_ALL_APPOINTMENTS_FOR_DENTAL_CLINIC = "Services/Patients.svc/REST/GetDentalAppointments";
-var FILTERED_PRODUCTS = 'products?categoryids=';
+var GET_DENTAL_APPOINTMENT_INVOICE = "Services/Patients.svc/REST/HIS_eInvoiceForDentalByAppointmentNo";
-var GET_DOCTOR_LIST_CALCULATION =
- "Services/Doctors.svc/REST/GetCallculationDoctors";
+var SEND_DENTAL_APPOINTMENT_INVOICE_EMAIL = "Services/Notifications.svc/REST/SendInvoiceForDental";
-var GET_ALL_APPOINTMENTS_FOR_DENTAL_CLINIC =
- "Services/Patients.svc/REST/GetDentalAppointments";
+var GET_TAMARA_PLAN = 'https://mdlaboratories.com/tamaralive/Home/GetInstallments';
-var GET_DENTAL_APPOINTMENT_INVOICE =
- "Services/Patients.svc/REST/HIS_eInvoiceForDentalByAppointmentNo";
+var GET_TAMARA_PAYMENT_STATUS = 'https://mdlaboratories.com/tamaralive/api/OnlineTamara/order_status?orderid=';
-var SEND_DENTAL_APPOINTMENT_INVOICE_EMAIL =
- "Services/Notifications.svc/REST/SendInvoiceForDental";
+var UPDATE_TAMARA_STATUS = 'Services/PayFort_Serv.svc/REST/Tamara_UpdateRequestStatus';
-var GET_TAMARA_PLAN =
- 'https://mdlaboratories.com/tamaralive/Home/GetInstallments';
+var MARK_APPOINTMENT_TAMARA_STATUS = 'Services/Patients.svc/REST/MarkAppointmentForTamaraPayment_FromVida';
-var GET_TAMARA_PAYMENT_STATUS =
- 'https://mdlaboratories.com/tamaralive/api/OnlineTamara/order_status?orderid=';
+var AUTO_GENERATE_INVOICE_TAMARA = 'Services/PayFort_Serv.svc/REST/Tamara_GetinfoByAppointmentNo_AutoGenerateInvoice';
-var UPDATE_TAMARA_STATUS =
- 'Services/PayFort_Serv.svc/REST/Tamara_UpdateRequestStatus';
+var GET_ONESIGNAL_VOIP_TOKEN = 'https://onesignal.com/api/v1/players';
-var MARK_APPOINTMENT_TAMARA_STATUS =
- 'Services/Patients.svc/REST/MarkAppointmentForTamaraPayment_FromVida';
+var CANCEL_PHARMA_LIVECARE_REQUEST = 'https://vcallapi.hmg.com/api/PharmaLiveCare/SendPaymentStatus';
-var AUTO_GENERATE_INVOICE_TAMARA =
- 'Services/PayFort_Serv.svc/REST/Tamara_GetinfoByAppointmentNo_AutoGenerateInvoice';
+var INSERT_FREE_SLOTS_LOGS = 'Services/Doctors.svc/Rest/InsertDoctorFreeSlotsLogs';
-var GET_ONESIGNAL_VOIP_TOKEN =
- 'https://onesignal.com/api/v1/players';
+var GET_NATIONALITY ='Services/Lists.svc/REST/GetNationality';
class AppGlobal {
static var context;
@@ -774,7 +612,6 @@ class AppGlobal {
request.generalid = GENERAL_ID; //'Cs2020@2016\$2958';
request.PatientOutSA = 0;
request.SessionID = "wEVNbagIkaNhGECWZjHaA";
- request.TokenID = "@dm!n";
request.isDentalAllowedBackend = false;
request.DeviceTypeID = Platform.isIOS ? 1 : 2;
request.DeviceType = Platform.isIOS ? "iOS" : "Android";
diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart
index 958b451d..5fe40ec1 100644
--- a/lib/config/localized_values.dart
+++ b/lib/config/localized_values.dart
@@ -67,7 +67,7 @@ const Map localizedValues = {
'pressAgain': {'en': 'Press again to exit the app', 'ar': 'اضغط مرة أخرى للخروج من التطبيق'},
'laserMaxLimitReach': {'en': "Maximum limit is 90 minutes", 'ar': "الحد الأقصى هو 90 دقيقة"},
'confirmAppoHeading': {'en': 'Kindly review your Appointment', 'ar': 'يرجى تأكيد موعدك'},
- 'patientInfo': {'en': 'Patient Information', 'ar': 'معلومات المريض'},
+ 'patientInfo': {'en': 'Patient Information', 'ar': 'معلومات المراجع'},
'doctorFilter': {'en': 'Doctors will be filtered based on your gender and age', 'ar': 'سيتم تصفية الأطباء بناءً على جنسك وعمرك'},
'bookSuccess': {'en': 'Book Success', 'ar': 'تم حجز الموعد بنجاح'},
'patientShare': {'en': 'Patient Share', 'ar': 'نسبة العميل'},
@@ -120,7 +120,7 @@ const Map localizedValues = {
'poweredBy': {'en': 'Powered by', 'ar': 'مشغل بواسطة'},
"welcome": {"en": "Welcome", "ar": "مرحبا بكم"},
"welcome-to": {"en": "Welcome to", "ar": "مرحبا بك في"},
- "patient-app": {"en": "Patient App", "ar": "تطبيق المرضى"},
+ "patient-app": {"en": "Patient App", "ar": "تطبيق المراجعين"},
"welcome_text": {"en": "Dr. Sulaiman Al Habib Mobile Application", "ar": "الدكتور سليمان الحبيب لتطبيقات الهاتف"},
"dr-sulaiman-text": {"en": "Dr. Sulaiman Al Habib", "ar": "د. سليمان الحبيب"},
'welcome_text2': {'en': 'Have you previously visited the hospitals or medical centers of Dr. Sulaiman Al Habib?', 'ar': 'هل قمت مسبقا بزيارة مستشفيات او مراكز الدكتور سليمان الحبيب الطبية ؟'},
@@ -183,6 +183,7 @@ const Map localizedValues = {
'sitWaitingQR': {'en': 'Sit in the waiting rooms until called by the nurse.', 'ar': 'الجلوس في غرف الانتظار لحين منادتك من قبل الممرضة.'},
'attendRegisterCode': {'en': 'Attendance registration code', 'ar': 'رمز تسجيل الحضور'},
'scanQRHospital': {'en': 'Approach the Online Check-In board in the hospital & scan via NFC to Check-In', 'ar': 'اقترب من لوحة تسجيل الوصول عبر الإنترنت في المستشفى وافحصها عبر NFC لتسجيل الوصول'},
+ 'scanNFC': {'en': 'Scan NFC to Check-In', 'ar': 'مسح NFC لتسجيل الوصول'},
"sendEmail": {"en": "Send Email", "ar": "ارسال نسخة"},
"success": {"en": "Done successfully", "ar": "تم تنفذ الطلب بنجاح"},
"EmailSentSuccessfully": {"en": "Email Sent Successfully", "ar": "تم إرسال البريد الإلكتروني بنجاح"},
@@ -207,7 +208,7 @@ const Map localizedValues = {
"last-name": {"en": "Last Name", "ar": "إسم العائلة"},
"female": {"en": "Female", "ar": "أنثى"},
"male": {"en": "Male", "ar": "ذكر"},
- "preferred-language": {"en": "Preferred Language", "ar": "اللغة المفضلة"},
+ "preferred-language": {"en": "Preferred Language *", "ar": "اللغة المفضلة *"},
"english": {"en": "English", "ar": "الإنجليزية"},
"arabic": {"en": "Arabic", "ar": "العربية"},
"locations-register": {"en": "Where do you want to create this file?", "ar": "أين تريد فتح هذا الملف؟"},
@@ -418,7 +419,7 @@ const Map localizedValues = {
"Amount": {"en": "Amount *", "ar": "المبلغ *"},
"DepositorEmail": {"en": "Depositor Email *", "ar": "البريد الإلكتروني للمودع *"},
"Notes": {"en": "Notes", "ar": "ملاحظات"},
- "SelectPatientName": {"en": "Select Patient Name", "ar": "اختر اسم المريض"},
+ "SelectPatientName": {"en": "Select Patient Name", "ar": "اختر اسم المراجع"},
"SelectFamilyPatientName": {"en": "Family Members", "ar": "أفراد الأسرة"},
"SelectHospital": {"en": "Select Hospital", "ar": "اختر المستشفى"},
"selectCity": {"en": "Select City", "ar": "اختر المدينة"},
@@ -681,7 +682,7 @@ const Map localizedValues = {
"ar":
"توفر هذه الخدمة مجموعه من خدمات الرعايه الصحيه المنزلية و متابعه مستمره وشامله للذين لا يستطيعون الوصول للمنشات الصحيه في اماكن اقامتهم (التحاليل المخبرية – الاشعة – التطعيمات – العلاج الطبيعي) ..."
},
- "email": {"en": "Email", "ar": "البريد الالكتروني"},
+ "email": {"en": "Email *", "ar": "البريد الالكتروني *"},
"Book": {"en": "Book", "ar": "حجز"},
"AppointmentLabel": {"en": "Appointment", "ar": "موعد"},
"BloodType": {"en": "Blood Type", "ar": "فصيلة الدم"},
@@ -863,7 +864,7 @@ const Map localizedValues = {
"question": {"en": "Question", "ar": "سؤال"},
"message-type": {"en": "Message Type", "ar": "نوع الرسالة"},
"feedback-type": {"en": "Feedback Type", "ar": "نوع الرسالة"},
- "compliment": {"en": "compliment", "ar": "شكوى"},
+ "compliment": {"en": "Appreciation", "ar": "تقدير"},
"suggestion": {"en": "Suggestion", "ar": "إقتراح"},
"your-feedback": {"en": "Your feedback was sent", "ar": "لقد تم ارسال اقتراحك شكرا لك"},
"select-part": {"en": "Please select the part that complain about", "ar": "يرجى تحديد الجزء الذي تشكو منه"},
@@ -1118,7 +1119,7 @@ const Map localizedValues = {
"visit": {"en": "Visit", "ar": "زيارة"},
"referralStatus": {"en": "Referral Status", "ar": "حالة الإحالة"},
"referralDate": {"en": "Referral Date", "ar": "تاريخ الإحالة"},
- "patientName": {"en": "Patient Name", "ar": "اسم المريض"},
+ "patientName": {"en": "Patient Name", "ar": "اسم المراجع"},
"referralNumber": {"en": "Referral Number", "ar": "رقم الإحالة"},
"requestID": {"en": "Req ID", "ar": " رقم الطلب"},
"OrderStatus": {"en": "Status", "ar": "الحاله"},
@@ -1323,7 +1324,7 @@ const Map localizedValues = {
"notif-permission-title": {"en": "Could not set the water reminders", "ar": "لا يمكن ضبط اشعار شرب الماء"},
"notif-permission-msg": {"en": "To recieve water reminders, please turn on notifications in the system settings", "ar": "الرجاء تفعيل الاشعارات في الاعدادات"},
"verification_message_code": {"en": "Please enter verification code", "ar": "الرجاء إدخال رمز التحقق"},
- "select-location": {"en": "Select Location", "ar": "اختر الموقع"},
+ "select-location": {"en": "Select Location *", "ar": "اختر الموقع *"},
"result-header": {"en": "Get the result in Few Hours", "ar": "احصل على النتيجة خلال عدة ساعات"},
"please_select_gender": {"en": "Please select gender", "ar": "يرجى تحديد الجنس"},
"covid-info": {
@@ -1411,7 +1412,7 @@ const Map localizedValues = {
"online-consultation": {"en": "Online Consultation", "ar": "استشارة مباشرة"},
"expected-weiting": {"en": "Waiting time to start LiveCare consultation ", "ar": "وقت الانتظار المتوقع لبدء استشارة لايف كير"},
"er-consult-fee": {"en": "Consultation Fee", "ar": "رسوم الاستشارة"},
- "insured-patient": {"en": "If you're Insurance patient, you have only have to pay the co-payment", "ar": "إذا كنت مريضًا في مجال التأمين ، فليس عليك سوى دفع المبلغ المشترك"},
+ "insured-patient": {"en": "If you're Insurance patient, you have only have to pay the co-payment", "ar": "إذا كنت مراجع في مجال التأمين ، فليس عليك سوى دفع المبلغ المشترك"},
"i-accept-terms": {"en": "I Accept the Terms and Conditions", "ar": "موافق على الشروط والأحكام"},
"upcoming-pay-options": {"en": "You can pay by the following Options:", "ar": "يمكنك الدفع عن طريق الخيارات التالية:"},
"please-accept-terms": {"en": "Please accept terms & conditions to continue", "ar": "يرجى قبول الشروط والأحكام للمتابعة"},
@@ -1420,7 +1421,7 @@ const Map localizedValues = {
"en":
"This service allows you to submit a Referral request from any health care providers either inside or outside the kingdom of Saudi Arabia to any of HMG Hospitals, by filling some of the patient's data and attaching the medical reports, moreover you can track the request status (Under process, Accepted or Rejected)",
"ar":
- "تتيح لك هذه الخدمة إرسال طلب إحالة من أي من مقدمي الرعاية الصحية سواء داخل المملكة العربية السعودية أو خارجها إلى أي من مستشفيات HMG ، عن طريق ملء بعض بيانات المريض وإرفاق التقارير الطبية ، علاوة على ذلك يمكنك تتبع حالة الطلب (قيد المعالجة ، مقبول أو مرفوض)"
+ "تتيح لك هذه الخدمة إرسال طلب إحالة من أي من مقدمي الرعاية الصحية سواء داخل المملكة العربية السعودية أو خارجها إلى أي من مستشفيات HMG ، عن طريق ملء بعض بيانات المراجع وإرفاق التقارير الطبية ، علاوة على ذلك يمكنك تتبع حالة الطلب (قيد المعالجة ، مقبول أو مرفوض)"
},
"er-consultation": {
"en": "This service allows you to make an online virtual consultation via video call directly with the doctor from anywhere at any time.",
@@ -1557,10 +1558,10 @@ const Map localizedValues = {
"insuranceCompany": {"en": "Insurance Company", "ar": "شركة تأمين"},
"preferredBranch": {"en": "Preferred Branch", "ar": "الفرع المفضل"},
"selectPreferredBranch": {"en": "Select Preferred Branch", "ar": "اختر الفرع المفضل"},
- "patientLocated": {"en": "Where the patient located", "ar": "اين موقع المريض"},
+ "patientLocated": {"en": "Where the patient located", "ar": "اين موقع المراجع"},
"otherInfo": {"en": "Other details", "ar": "تفاصيل أخرى"},
"medicalReport": {"en": "Medical Report", "ar": "تقرير طبي"},
- "insuredPatient": {"en": "Insured Patient", "ar": "هل لدى المريض تامين؟"},
+ "insuredPatient": {"en": "Insured Patient", "ar": "هل لدى المراجع تامين؟"},
"rateDoctor": {"en": "Rate Doctor", "ar": "تقييم الطبيب"},
"rateAppointment": {"en": "Rate Appointment", "ar": "تقييم الموعد"},
"noInsuranceCardAttached": {"en": "Please attach your insurance card image to continue", "ar": "يرجى إرفاق صورة بطاقة التأمين الخاصة بك للمتابعة"},
@@ -1588,7 +1589,7 @@ const Map localizedValues = {
"patientAge": {"en": "y", "ar": "سنة"},
"searchCriteria": {"en": "Select Search Criteria", "ar": "حدد معايير البحث"},
"RequesterInfo": {"en": "Requester Info", "ar": "معلومات مقدم الطلب"},
- "PatientInfo": {"en": "Patient Info", "ar": "معلومات المريض"},
+ "PatientInfo": {"en": "Patient Info", "ar": "معلومات المراجع"},
"OtherInfo": {"en": "Other Info", "ar": "معلومات اخرى"},
"inPrgress": {"en": "In Progress", "ar": "في تقدم"},
"locked": {"en": "Locked", "ar": "مقفل"},
@@ -1787,7 +1788,7 @@ const Map localizedValues = {
"productOutOfStock": {"en": "Out Of Stock", "ar": "إنتهى من المخزن"},
"productQuantity": {"en": "Quantity", "ar": "كمية"},
"yourTurn": {"en": "your turn is after", "ar": "دورك بعد"},
- "patients": {"en": "patients", "ar": "مرضي"},
+ "patients": {"en": "patients", "ar": "مريض"},
"group": {"en": "Group", "ar": "مجموعة"},
"covidTestTodo": {"en": "Covid-19 Test", "ar": "فحص كورونا"},
"ancillaryOrdersPaymentConfirm": {"en": "Are you sure you want to make payment for selected orders?", "ar": "هل أنت متأكد أنك تريد سداد قيمة الطلبات المختارة؟"},
@@ -1809,7 +1810,7 @@ const Map localizedValues = {
},
"cameraPermissionDialog": {
"en": "Dr. Al Habib app needs to access Camera to enable virtual consultation between patient & doctor, attach images and scan QR for parking service.",
- "ar": "يحتاج تطبيق دكتور الحبيب الى صلاحية الوصول إلى الكاميرا لخدمة الاستشارة الافتراضية بين المريض والطبيب وإرفاق الصور ومسح رمز الاستجابة السريع لخدمة مواقف السيارات."
+ "ar": "يحتاج تطبيق دكتور الحبيب الى صلاحية الوصول إلى الكاميرا لخدمة الاستشارة الافتراضية بين المراجع والطبيب وإرفاق الصور ومسح رمز الاستجابة السريع لخدمة مواقف السيارات."
},
"galleryPermission": {
"en": "Dr. Al Habib app needs to access Read & write external storage to upload images & documents in the E-Referral module and renew and update the insurance cards.",
@@ -1843,7 +1844,7 @@ const Map localizedValues = {
"privacyPolicy": {"en": "Privacy Policy", "ar": "سياسة الخصوصية"},
"termsConditions": {"en": "Terms & Conditions", "ar": "الأحكام والشروط"},
"prescriptionDeliveryError": {"en": "This clinic does not support refill & delivery.", "ar": "هذه العيادة لا تدعم إعادة التعبئة والتسليم."},
- "liveCarePermissions": {"en": "LiveCare requires Camera, Microphone & Location permissions, Please allow these to proceed.", "ar": "يتطلب لايف كير أذونات الكاميرا والميكروفون والموقع، يرجى السماح لها بالمتابعة."},
+ "liveCarePermissions": {"en": "LiveCare requires Camera, Microphone & Location permissions to enable virtual consultation between patient & doctor, Please allow these to proceed.", "ar": "يتطلب لايف كير أذونات الكاميرا والميكروفون والموقع، يرجى السماح لها بالمتابعة."},
"lakumUnhold": { "en": "The account has already been activated", "ar": "لقد تم تفعيل الحساب من قبل" },
"lakumDiscontinue": { "en": "The account is closed", "ar": "الحساب مغلق" },
"lakumSuccess": { "en": "The account has been activated successfully", "ar": "تم تفعيل الحساب بنجاح" },
@@ -1864,9 +1865,22 @@ const Map localizedValues = {
"NFCNotSupported": { "en": "Your device does not support NFC. Please visit reception to Check-In", "ar": "جهازك لا يدعم NFC. يرجى زيارة مكتب الاستقبال لتسجيل الوصول" },
"enter-workplace-name": {"en": "Please enter your workplace name:", "ar": "رجاء إدخال مكان العمل:"},
"workplaceName": {"en": "Workplace name:", "ar": "مكان العمل:"},
- "callLiveCareSupport": {"en": "Call LiveCare Support", "ar": "اتصل بدعم لايف كير"},
+ "callLiveCareSupport": {"en": "Call LiveCare Support", "ar": "اتصل بدعم اللايف كير"},
"needApproval": {"en": "Your sick leave is under process in medical administration, you will be notified once approved.", "ar": "جازتك المرضية تحت الإجراء في الإدارة الطبية ، سوف يتم إشعارك فور الموافقه عليها."},
"pendingActivation": {"en": "Pending Activation", "ar": "في انتظار التنشيط"},
"awaitingApproval": {"en": "Awaiting Approval", "ar": "انتظر القبول"},
"liveCareSupportContact": {"en": "LiveCare Support Contact: ", "ar": "اتصل لايف كير: "},
+ "pharmaLiveCare": {"en": "Pharma LiveCare", "ar": "لايف كير الصيدلية"},
+ "pharmaLiveCare1": {"en": "What is Pharma LiveCare?", "ar": "ما هولايف كير الصيدلية؟"},
+ "pharmaLiveCareDesc1": {"en": "Pharma LiveCare allows you to get consultation from your doctor virtually being in HMG Pharmacy booth.", "ar": "تتيح لك خدمة لايف كير الصيدلية الحصول على استشارة من طبيبك المتواجد فعليًا في كشك صيدلية د.سليمان الحبيب."},
+ "wherePharmaLiveCare": {"en": "Where can i find Pharma LiveCare?", "ar": "أين يمكنني أن أجد لايف كير الصيدلية؟"},
+ "pharmaLiveCareDesc2": {"en": "You can find the booth in HMG Pharmacies.", "ar": "يمكنك العثور على الكشك في صيدليات مستشفى د.سليمان الحبيب."},
+ "howPharmaLiveCare": {"en": "How can i use Pharma LiveCare?", "ar": "كيف يمكنني استخدام لايف كير الصيدلية؟"},
+ "pharmaLiveCareDesc3": {"en": "Following the below steps you can easily benefit from the virtual consultation service:", "ar": "باتباع الخطوات التالية يمكنك الاستفادة بسهولة من خدمة الاستشارة الافتراضية:"},
+ "pharmaLiveCareScanQR": {"en": "Scan QR Code", "ar": "مسح رمز الاستجابة السريعة"},
+ "pharmaLiveCareScanQR1": {"en": "Scan the QR Code in the booth to make the connection", "ar": "امسح رمز الاستجابة السريعة في المقصورة لإجراء الاتصال"},
+ "pharmaLiveCareMakePayment": {"en": "Make Payment Online", "ar": "قم بالدفع عبر الإنترنت"},
+ "pharmaLiveCareMakePayment1": {"en": "Make the payment through the mobile app", "ar": "قم بالدفع من خلال تطبيق الهاتف المحمول"},
+ "pharmaLiveCareJoinConsultation": {"en": "Join the virtual consultation from booth", "ar": "انضم إلى الاستشارة الافتراضية من الكبينة"},
+ "pharmaLiveCareJoinConsultation1": {"en": "Wait for the doctor in the pharma booth to join you", "ar": "انتظر حتى ينضم إليك الطبيب في كبينة لايف كير الصيدلية"},
};
\ No newline at end of file
diff --git a/lib/config/shared_pref_kay.dart b/lib/config/shared_pref_kay.dart
index 9e5c4f27..ec82db11 100644
--- a/lib/config/shared_pref_kay.dart
+++ b/lib/config/shared_pref_kay.dart
@@ -42,3 +42,4 @@ const APPOINTMENT_HISTORY_MEDICAL = 'APPOINTMENT_HISTORY_MEDICAL';
const CLINICS_LIST = 'CLINICS_LIST';
const COVID_QA_LIST = 'COVID_QA_LIST';
const IS_COVID_CONSENT_SHOWN = 'IS_COVID_CONSENT_SHOWN';
+const REGISTER_INFO_DUBAI ='register-info-dubai';
diff --git a/lib/core/model/eye/AppoimentAllHistoryResult.dart b/lib/core/model/eye/AppoimentAllHistoryResult.dart
index 71c9573b..b431943d 100644
--- a/lib/core/model/eye/AppoimentAllHistoryResult.dart
+++ b/lib/core/model/eye/AppoimentAllHistoryResult.dart
@@ -178,7 +178,7 @@ class AppoimentAllHistoryResultList {
doctorImageURL = json['DoctorImageURL'];
doctorNameObj = json['DoctorNameObj'];
doctorRate = json['DoctorRate'];
- doctorSpeciality = json['DoctorSpeciality'].cast();
+ if (doctorSpeciality != null) doctorSpeciality = json['DoctorSpeciality'].cast();
doctorTitle = json['DoctorTitle'];
gender = json['Gender'];
genderDescription = json['GenderDescription'];
diff --git a/lib/core/service/client/base_app_client.dart b/lib/core/service/client/base_app_client.dart
index 041c3bb0..db9cc5e8 100644
--- a/lib/core/service/client/base_app_client.dart
+++ b/lib/core/service/client/base_app_client.dart
@@ -99,12 +99,31 @@ class BaseAppClient {
} else {
body['PatientType'] = PATIENT_TYPE;
}
+ // }
+ // body['PatientType'] = body.containsKey('PatientType')
+ // ? body['PatientType'] != null
+ // ? body['PatientType']
+ // : user['PatientType'] != null
+ // ? user['PatientType']
+ // : PATIENT_TYPE
+ // : PATIENT_TYPE;
+
+ // if (!body.containsKey('PatientTypeID')) {
if (user != null && user['PatientType'] != null) {
body['PatientTypeID'] = user['PatientType'];
} else {
body['PatientType'] = PATIENT_TYPE_ID;
}
+ // }
+
+ // body['PatientTypeID'] = body.containsKey('PatientTypeID')
+ // ? body['PatientTypeID'] != null
+ // ? body['PatientTypeID']
+ // : user['PatientType'] != null
+ // ? user['PatientType']
+ // : PATIENT_TYPE_ID
+ // : PATIENT_TYPE_ID;
if (user != null) {
body['TokenID'] = body['TokenID'] != null ? body['TokenID'] : token;
@@ -140,11 +159,11 @@ class BaseAppClient {
body.removeWhere((key, value) => key == null || value == null);
- // if (AppGlobal.isNetworkDebugEnabled) {
- print("Debug URL : $url");
+ if (AppGlobal.isNetworkDebugEnabled) {
+ print("URL : $url");
final jsonBody = json.encode(body);
- print("Debug Body : $jsonBody");
- // }
+ print(jsonBody);
+ }
if (await Utils.checkConnection(bypassConnectionCheck: bypassConnectionCheck)) {
final response = await http.post(Uri.parse(url.trim()), body: json.encode(body), headers: headers);
diff --git a/lib/core/service/geofencing/GeofencingServices.dart b/lib/core/service/geofencing/GeofencingServices.dart
index 362416da..fe679984 100644
--- a/lib/core/service/geofencing/GeofencingServices.dart
+++ b/lib/core/service/geofencing/GeofencingServices.dart
@@ -32,6 +32,8 @@ class GeofencingServices extends BaseService {
AppSharedPreferences pref = AppSharedPreferences();
await pref.setString(HMG_GEOFENCES, _zonesJsonString);
+ var res = await sharedPref.getStringWithDefaultValue(HMG_GEOFENCES, "[]");
+ print("-------GEO ZONES----------: $res");
return geoZones;
}
diff --git a/lib/core/service/medical/labs_service.dart b/lib/core/service/medical/labs_service.dart
index b967d41c..9703874e 100644
--- a/lib/core/service/medical/labs_service.dart
+++ b/lib/core/service/medical/labs_service.dart
@@ -117,12 +117,12 @@ class LabsService extends BaseService {
return Future.value(localRes);
}
- Future updateWorkplaceName(String workplaceName, int requestNumber, String setupID, int projectID) async {
+ Future updateWorkplaceName(String workplaceName, String workplaceNameAR, int requestNumber, String setupID, int projectID) async {
hasError = false;
Map body = Map();
body['Placeofwork'] = workplaceName;
- body['Placeofworkar'] = workplaceName;
+ body['Placeofworkar'] = workplaceNameAR;
body['Req_ID'] = requestNumber;
body['TargetSetupID'] = setupID;
body['ProjectID'] = projectID;
diff --git a/lib/core/viewModels/dashboard_view_model.dart b/lib/core/viewModels/dashboard_view_model.dart
index fca76cbf..931e94b3 100644
--- a/lib/core/viewModels/dashboard_view_model.dart
+++ b/lib/core/viewModels/dashboard_view_model.dart
@@ -21,6 +21,7 @@ class DashboardViewModel extends BaseViewModel {
if (isLogin && _vitalSignService.weightKg.isEmpty) {
setState(ViewState.Busy);
await _vitalSignService.getPatientRadOrders();
+ booldType = await sharedPref.getString(BLOOD_TYPE) ?? "-";
if (_vitalSignService.hasError) {
error = _vitalSignService.error;
diff --git a/lib/core/viewModels/pharmacyModule/PharmacyAddressesViewModel.dart b/lib/core/viewModels/pharmacyModule/PharmacyAddressesViewModel.dart
index 947ace34..ea9af54d 100644
--- a/lib/core/viewModels/pharmacyModule/PharmacyAddressesViewModel.dart
+++ b/lib/core/viewModels/pharmacyModule/PharmacyAddressesViewModel.dart
@@ -5,6 +5,7 @@ import 'package:diplomaticquarterapp/core/service/AlHabibMedicalService/customer
import 'package:diplomaticquarterapp/services/pharmacy_services/pharmacyAddress_service.dart';
import 'package:diplomaticquarterapp/uitl/utils.dart';
import 'package:geocoding/geocoding.dart';
+import 'package:google_maps_place_picker_mb/google_maps_place_picker.dart';
import '../../../locator.dart';
import '../base_view_model.dart';
diff --git a/lib/core/viewModels/project_view_model.dart b/lib/core/viewModels/project_view_model.dart
index a536d527..c45e7dd8 100644
--- a/lib/core/viewModels/project_view_model.dart
+++ b/lib/core/viewModels/project_view_model.dart
@@ -8,6 +8,7 @@ import 'package:diplomaticquarterapp/core/model/privilege/PrivilegeModel.dart';
import 'package:diplomaticquarterapp/core/viewModels/base_view_model.dart';
import 'package:diplomaticquarterapp/locator.dart';
import 'package:diplomaticquarterapp/models/Appointments/laser_body_parts.dart';
+import 'package:diplomaticquarterapp/models/Authentication/register_info_response.dart';
import 'package:diplomaticquarterapp/uitl/PlatformBridge.dart';
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
import 'package:flutter/cupertino.dart';
@@ -38,9 +39,10 @@ class ProjectViewModel extends BaseViewModel {
double _latitude;
double _longitude;
+ RegisterInfoResponse _registerInfo =RegisterInfoResponse();
double get latitude => _latitude;
double get longitude => _longitude;
-
+ RegisterInfoResponse get registerInfo=> _registerInfo;
dynamic get searchValue => searchvalue;
Locale get appLocal => _appLocale;
@@ -164,4 +166,8 @@ class ProjectViewModel extends BaseViewModel {
searchvalue = data;
notifyListeners();
}
+ setRegisterData(RegisterInfoResponse data){
+ _registerInfo =data;
+ notifyListeners();
+ }
}
diff --git a/lib/models/Appointments/timeSlot.dart b/lib/models/Appointments/timeSlot.dart
index 58926fac..b7f1a8cc 100644
--- a/lib/models/Appointments/timeSlot.dart
+++ b/lib/models/Appointments/timeSlot.dart
@@ -4,7 +4,7 @@ class TimeSlot {
String isoTime;
DateTime start;
DateTime end;
-
- TimeSlot({@required this.isoTime, @required this.start, @required this.end});
+ String vidaDate;
+ TimeSlot({@required this.isoTime, @required this.start, @required this.end, this.vidaDate});
}
diff --git a/lib/models/Authentication/check_paitent_authentication_req.dart b/lib/models/Authentication/check_paitent_authentication_req.dart
index 2846c1fc..76493f87 100644
--- a/lib/models/Authentication/check_paitent_authentication_req.dart
+++ b/lib/models/Authentication/check_paitent_authentication_req.dart
@@ -15,7 +15,9 @@ class CheckPatientAuthenticationReq {
Null sessionID;
bool isDentalAllowedBackend;
int deviceTypeID;
-
+ String dob;
+ int isHijri;
+ String healthId;
CheckPatientAuthenticationReq(
{this.patientMobileNumber,
this.zipCode,
@@ -32,7 +34,11 @@ class CheckPatientAuthenticationReq {
this.patientOutSA,
this.sessionID,
this.isDentalAllowedBackend,
- this.deviceTypeID});
+ this.deviceTypeID,
+ this.dob,
+ this.isHijri,
+ this.healthId
+ });
CheckPatientAuthenticationReq.fromJson(Map json) {
patientMobileNumber = json['PatientMobileNumber'];
@@ -51,6 +57,9 @@ class CheckPatientAuthenticationReq {
sessionID = json['SessionID'];
isDentalAllowedBackend = json['isDentalAllowedBackend'];
deviceTypeID = json['DeviceTypeID'];
+ dob = json['dob'];
+ isHijri = json['isHijri'];
+ healthId = json['HealthId'];
}
Map toJson() {
@@ -71,6 +80,9 @@ class CheckPatientAuthenticationReq {
data['SessionID'] = this.sessionID;
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
data['DeviceTypeID'] = this.deviceTypeID;
+ data['dob'] =this.dob;
+ data['isHijri'] = this.isHijri;
+ data['HealthId'] = healthId;
return data;
}
}
diff --git a/lib/models/Authentication/countries_list.dart b/lib/models/Authentication/countries_list.dart
new file mode 100644
index 00000000..3c314da9
--- /dev/null
+++ b/lib/models/Authentication/countries_list.dart
@@ -0,0 +1,21 @@
+class CountriesLists {
+ String iD;
+ String name;
+ dynamic nameN;
+
+ CountriesLists({this.iD, this.name, this.nameN});
+
+ CountriesLists.fromJson(Map json) {
+ iD = json['ID'];
+ name = json['Name'];
+ nameN = json['NameN'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ID'] = this.iD;
+ data['Name'] = this.name;
+ data['NameN'] = this.nameN;
+ return data;
+ }
+}
\ No newline at end of file
diff --git a/lib/pages/AlHabibMedicalService/ComprehensiveMedicalCheckup/NewCMC/cmc_location_page.dart b/lib/pages/AlHabibMedicalService/ComprehensiveMedicalCheckup/NewCMC/cmc_location_page.dart
index fbef90e6..f45d2942 100644
--- a/lib/pages/AlHabibMedicalService/ComprehensiveMedicalCheckup/NewCMC/cmc_location_page.dart
+++ b/lib/pages/AlHabibMedicalService/ComprehensiveMedicalCheckup/NewCMC/cmc_location_page.dart
@@ -25,7 +25,7 @@ import 'package:flutter/material.dart';
import 'package:geocoding/geocoding.dart';
import 'package:geolocator/geolocator.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
-import 'package:google_maps_place_picker/google_maps_place_picker.dart';
+import 'package:google_maps_place_picker_mb/google_maps_place_picker.dart';
import 'package:huawei_hmsavailability/huawei_hmsavailability.dart';
import 'package:provider/provider.dart';
diff --git a/lib/pages/AlHabibMedicalService/ComprehensiveMedicalCheckup/NewCMC/new_cmc_step_tow_page.dart b/lib/pages/AlHabibMedicalService/ComprehensiveMedicalCheckup/NewCMC/new_cmc_step_tow_page.dart
index 87d55b72..e846d31c 100644
--- a/lib/pages/AlHabibMedicalService/ComprehensiveMedicalCheckup/NewCMC/new_cmc_step_tow_page.dart
+++ b/lib/pages/AlHabibMedicalService/ComprehensiveMedicalCheckup/NewCMC/new_cmc_step_tow_page.dart
@@ -20,7 +20,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:geolocator/geolocator.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
-import 'package:google_maps_place_picker/google_maps_place_picker.dart';
+import 'package:google_maps_place_picker_mb/google_maps_place_picker.dart';
import 'package:permission_handler/permission_handler.dart';
import 'cmc_location_page.dart';
diff --git a/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/location_page.dart b/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/location_page.dart
index e96ddcc7..78e13982 100644
--- a/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/location_page.dart
+++ b/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/location_page.dart
@@ -23,7 +23,7 @@ import 'package:flutter/material.dart';
import 'package:geocoding/geocoding.dart';
import 'package:geolocator/geolocator.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
-import 'package:google_maps_place_picker/google_maps_place_picker.dart';
+import 'package:google_maps_place_picker_mb/google_maps_place_picker.dart';
import 'package:huawei_hmsavailability/huawei_hmsavailability.dart';
import 'package:provider/provider.dart';
diff --git a/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/new_Home_health_care_step_one_page.dart b/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/new_Home_health_care_step_one_page.dart
index 7984cbbf..3a59b21e 100644
--- a/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/new_Home_health_care_step_one_page.dart
+++ b/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/new_Home_health_care_step_one_page.dart
@@ -12,7 +12,7 @@ import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
-import 'package:google_maps_place_picker/google_maps_place_picker.dart';
+import 'package:google_maps_place_picker_mb/google_maps_place_picker.dart';
import 'package:provider/provider.dart';
class NewHomeHealthCareStepOnePage extends StatefulWidget {
diff --git a/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/new_Home_health_care_step_tow_page.dart b/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/new_Home_health_care_step_tow_page.dart
index 5328bfba..79f10be7 100644
--- a/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/new_Home_health_care_step_tow_page.dart
+++ b/lib/pages/AlHabibMedicalService/HomeHealthCare/NewHomeHealthCare/new_Home_health_care_step_tow_page.dart
@@ -9,6 +9,7 @@ import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/HomeHealthCare/
import 'package:diplomaticquarterapp/services/permission/permission_service.dart';
import 'package:diplomaticquarterapp/theme/colors.dart';
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
+import 'package:diplomaticquarterapp/uitl/location_util.dart';
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:diplomaticquarterapp/uitl/utils.dart';
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
@@ -21,7 +22,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:geolocator/geolocator.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
-import 'package:google_maps_place_picker/google_maps_place_picker.dart';
+import 'package:google_maps_place_picker_mb/google_maps_place_picker.dart';
import 'location_page.dart';
@@ -53,6 +54,7 @@ class _NewHomeHealthCareStepTowPageState extends State mapController = Completer();
+ LocationUtils locationUtils;
@override
void initState() {
@@ -62,7 +64,6 @@ class _NewHomeHealthCareStepTowPageState extends State
initialiseHmgServices(bool isLogin) {
hmgServices.clear();
- hmgServices.add(new HmgServices(0, TranslationBase.of(context).liveCareTitle, TranslationBase.of(context).liveCareSubtitle, "assets/images/new/Live_Care.svg", isLogin));
- hmgServices.add(new HmgServices(1, TranslationBase.of(context).covidTest, TranslationBase.of(context).driveThru, "assets/images/new/CoronaIcon.svg", isLogin));
- hmgServices.add(new HmgServices(2, TranslationBase.of(context).onlinePayment, TranslationBase.of(context).onlinePaymentSubtitle, "assets/images/new/paymentMethods.png", isLogin));
+ hmgServices.add(new HmgServices(0, TranslationBase.of(context).book, TranslationBase.of(context).appointmentLabel, "assets/images/new/book appointment.svg", isLogin));
+ hmgServices.add(new HmgServices(1, TranslationBase.of(context).liveCare, TranslationBase.of(context).onlineConsulting, "assets/images/new/Live_Care.svg", isLogin));
+ hmgServices.add(new HmgServices(2, TranslationBase.of(context).emergencyTitle, TranslationBase.of(context).emergencySubtitle, "assets/images/new/emergency.svg", isLogin));
hmgServices.add(new HmgServices(3, TranslationBase.of(context).hhcHome, TranslationBase.of(context).healthCare, "assets/images/new/HHC.svg", isLogin));
- hmgServices.add(new HmgServices(4, TranslationBase.of(context).cmcTitle, TranslationBase.of(context).cmcSubtitle, "assets/images/new/comprehensive_checkup.svg", isLogin));
- hmgServices.add(new HmgServices(5, TranslationBase.of(context).emergencyTitle, TranslationBase.of(context).emergencySubtitle, "assets/images/new/emergency.svg", isLogin));
- hmgServices.add(new HmgServices(6, TranslationBase.of(context).ereferralTitle, TranslationBase.of(context).ereferralSubtitle, "assets/images/new/E_Referral.svg", isLogin));
- hmgServices.add(new HmgServices(7, TranslationBase.of(context).waterTitle, TranslationBase.of(context).waterSubtitle, "assets/images/new/h2o.svg", isLogin));
- hmgServices.add(new HmgServices(8, TranslationBase.of(context).connectTitle, TranslationBase.of(context).connectSubtitle, "assets/images/new/reach_us.svg", isLogin));
- hmgServices.add(new HmgServices(9, TranslationBase.of(context).medicalFileTitle2, TranslationBase.of(context).medicalFileSubtitle, "assets/images/new/medical file.svg", isLogin));
- hmgServices.add(new HmgServices(10, TranslationBase.of(context).book, TranslationBase.of(context).appointmentLabel, "assets/images/new/book appointment.svg", isLogin));
- hmgServices.add(new HmgServices(11, TranslationBase.of(context).pharmacyTitle, TranslationBase.of(context).pharmacySubtitle, "assets/images/new/Pharmacy.svg", isLogin));
- hmgServices.add(new HmgServices(12, TranslationBase.of(context).updateInsurance, TranslationBase.of(context).updateInsuranceSubtitle, "assets/images/new/update insurance card.svg", isLogin));
- hmgServices.add(new HmgServices(13, TranslationBase.of(context).familyTitle, TranslationBase.of(context).familySubtitle, "assets/images/new/my family.svg", isLogin));
- hmgServices.add(new HmgServices(14, TranslationBase.of(context).My_Child, TranslationBase.of(context).Vaccines, "assets/images/new/child vaccines.svg", isLogin));
+ hmgServices.add(new HmgServices(4, TranslationBase.of(context).checkup, TranslationBase.of(context).comprehensive, "assets/images/new/comprehensive_checkup.svg", isLogin));
+ hmgServices.add(new HmgServices(5, TranslationBase.of(context).pharmacyTitle, TranslationBase.of(context).pharmacySubtitle, "assets/images/new/Pharmacy.svg", isLogin));
+
+ hmgServices.add(new HmgServices(6, TranslationBase.of(context).medicalFileTitle2, TranslationBase.of(context).medicalFileSubtitle, "assets/images/new/medical file.svg", isLogin));
+ hmgServices.add(new HmgServices(7, TranslationBase.of(context).familyTitle, TranslationBase.of(context).familySubtitle, "assets/images/new/my family.svg", isLogin));
+ hmgServices.add(new HmgServices(8, TranslationBase.of(context).online, TranslationBase.of(context).payment, "assets/images/new/paymentMethods.png", isLogin));
+ hmgServices.add(new HmgServices(9, TranslationBase.of(context).My_Child, TranslationBase.of(context).Vaccines, "assets/images/new/child vaccines.svg", isLogin));
+ hmgServices.add(new HmgServices(10, TranslationBase.of(context).updateInsurance, TranslationBase.of(context).updateInsuranceSubtitle, "assets/images/new/update insurance card.svg", isLogin));
+ hmgServices.add(new HmgServices(11, TranslationBase.of(context).ereferralTitle, TranslationBase.of(context).ereferralSubtitle, "assets/images/new/E_Referral.svg", isLogin));
+ hmgServices.add(new HmgServices(12, TranslationBase.of(context).waterTitle, TranslationBase.of(context).waterSubtitle, "assets/images/new/h2o.svg", isLogin));
+ hmgServices.add(new HmgServices(13, TranslationBase.of(context).healthCalculatorTitle, TranslationBase.of(context).healthCalculatorSubtitle, "assets/images/new/health calculator.svg", isLogin));
+ hmgServices.add(new HmgServices(14, TranslationBase.of(context).healthConvertersTitle, TranslationBase.of(context).healthConvertersSubtitle, "assets/images/new/health converter.svg", isLogin));
hmgServices.add(new HmgServices(15, TranslationBase.of(context).Todo, TranslationBase.of(context).list, "assets/images/new/todo.svg", isLogin));
hmgServices.add(new HmgServices(16, TranslationBase.of(context).Blood, TranslationBase.of(context).Donation, "assets/images/new/blood donation.svg", isLogin));
- hmgServices.add(new HmgServices(17, TranslationBase.of(context).healthCalculatorTitle, TranslationBase.of(context).healthCalculatorSubtitle, "assets/images/new/health calculator.svg", isLogin));
- hmgServices.add(new HmgServices(18, TranslationBase.of(context).healthConvertersTitle, TranslationBase.of(context).healthConvertersSubtitle, "assets/images/new/health converter.svg", isLogin));
+
+ hmgServices.add(new HmgServices(17, TranslationBase.of(context).covidTest, TranslationBase.of(context).driveThru, "assets/images/new/CoronaIcon.svg", isLogin));
+
+ hmgServices.add(new HmgServices(18, TranslationBase.of(context).Virtual, TranslationBase.of(context).Tour, "assets/images/new/virtual tour.svg", isLogin));
hmgServices.add(new HmgServices(19, TranslationBase.of(context).smartWatches.split(" ")[0], TranslationBase.of(context).smartWatches.split(" ")[1], "assets/images/new/smart watch.svg", isLogin));
hmgServices.add(new HmgServices(20, TranslationBase.of(context).parkingTitle2, TranslationBase.of(context).parkingSubtitle, "assets/images/new/parking details.svg", isLogin));
- hmgServices.add(new HmgServices(21, TranslationBase.of(context).Virtual, TranslationBase.of(context).Tour, "assets/images/new/virtual tour.svg", isLogin));
- hmgServices.add(new HmgServices(22, TranslationBase.of(context).latestNews.split(" ")[0], TranslationBase.of(context).latestNews.split(" ")[1], "assets/images/new/latest news.svg", isLogin));
+ hmgServices.add(new HmgServices(21, TranslationBase.of(context).latestNews.split(" ")[0], TranslationBase.of(context).latestNews.split(" ")[1], "assets/images/new/latest news.svg", isLogin));
+
+ hmgServices.add(new HmgServices(22, TranslationBase.of(context).connectTitle, TranslationBase.of(context).connectSubtitle, "assets/images/new/reach_us.svg", isLogin));
+
+
+ // hmgServices.add(new HmgServices(5, TranslationBase.of(context).emergencyTitle, TranslationBase.of(context).emergencySubtitle, "assets/images/new/emergency.svg", isLogin));
+ // hmgServices.add(new HmgServices(6, TranslationBase.of(context).ereferralTitle, TranslationBase.of(context).ereferralSubtitle, "assets/images/new/E_Referral.svg", isLogin));
+ // hmgServices.add(new HmgServices(7, TranslationBase.of(context).waterTitle, TranslationBase.of(context).waterSubtitle, "assets/images/new/h2o.svg", isLogin));
+ // hmgServices.add(new HmgServices(8, TranslationBase.of(context).connectTitle, TranslationBase.of(context).connectSubtitle, "assets/images/new/reach_us.svg", isLogin));
+ // hmgServices.add(new HmgServices(9, TranslationBase.of(context).medicalFileTitle2, TranslationBase.of(context).medicalFileSubtitle, "assets/images/new/medical file.svg", isLogin));
+ // hmgServices.add(new HmgServices(10, TranslationBase.of(context).book, TranslationBase.of(context).appointmentLabel, "assets/images/new/book appointment.svg", isLogin));
+ // hmgServices.add(new HmgServices(11, TranslationBase.of(context).pharmacyTitle, TranslationBase.of(context).pharmacySubtitle, "assets/images/new/Pharmacy.svg", isLogin));
+ // hmgServices.add(new HmgServices(12, TranslationBase.of(context).updateInsurance, TranslationBase.of(context).updateInsuranceSubtitle, "assets/images/new/update insurance card.svg", isLogin));
+ // hmgServices.add(new HmgServices(13, TranslationBase.of(context).familyTitle, TranslationBase.of(context).familySubtitle, "assets/images/new/my family.svg", isLogin));
+ // hmgServices.add(new HmgServices(14, TranslationBase.of(context).My_Child, TranslationBase.of(context).Vaccines, "assets/images/new/child vaccines.svg", isLogin));
+ // hmgServices.add(new HmgServices(15, TranslationBase.of(context).Todo, TranslationBase.of(context).list, "assets/images/new/todo.svg", isLogin));
+ // hmgServices.add(new HmgServices(16, TranslationBase.of(context).Blood, TranslationBase.of(context).Donation, "assets/images/new/blood donation.svg", isLogin));
+ // hmgServices.add(new HmgServices(17, TranslationBase.of(context).healthCalculatorTitle, TranslationBase.of(context).healthCalculatorSubtitle, "assets/images/new/health calculator.svg", isLogin));
+ // hmgServices.add(new HmgServices(18, TranslationBase.of(context).healthConvertersTitle, TranslationBase.of(context).healthConvertersSubtitle, "assets/images/new/health converter.svg", isLogin));
+ // hmgServices.add(new HmgServices(19, TranslationBase.of(context).smartWatches.split(" ")[0], TranslationBase.of(context).smartWatches.split(" ")[1], "assets/images/new/smart watch.svg", isLogin));
+ // hmgServices.add(new HmgServices(20, TranslationBase.of(context).parkingTitle2, TranslationBase.of(context).parkingSubtitle, "assets/images/new/parking details.svg", isLogin));
+ // hmgServices.add(new HmgServices(21, TranslationBase.of(context).Virtual, TranslationBase.of(context).Tour, "assets/images/new/virtual tour.svg", isLogin));
+ // hmgServices.add(new HmgServices(22, TranslationBase.of(context).latestNews.split(" ")[0], TranslationBase.of(context).latestNews.split(" ")[1], "assets/images/new/latest news.svg", isLogin));
}
@override
@@ -211,7 +235,7 @@ class _AllHabibMedicalSevicePage2State extends State
itemCount: hmgServices.length,
padding: EdgeInsets.zero,
itemBuilder: (BuildContext context, int index) {
- return ServicesView(hmgServices[index], index);
+ return ServicesView(hmgServices[index], index, false);
},
),
),
diff --git a/lib/pages/AlHabibMedicalService/ancillary-orders/ancillaryOrders.dart b/lib/pages/AlHabibMedicalService/ancillary-orders/ancillaryOrders.dart
index 244754b2..3b708c46 100644
--- a/lib/pages/AlHabibMedicalService/ancillary-orders/ancillaryOrders.dart
+++ b/lib/pages/AlHabibMedicalService/ancillary-orders/ancillaryOrders.dart
@@ -148,7 +148,7 @@ class _AnicllaryOrdersState extends State with SingleTickerProv
return DoctorCard(
onTap: () => ancillaryOrdersDetails(model.ancillaryLists[0].ancillaryOrderList[index], model.ancillaryLists[0].projectID),
isInOutPatient: true,
- name: TranslationBase.of(context).dr.toString() + " " + (model.ancillaryLists[0].ancillaryOrderList[index].doctorName),
+ name: TranslationBase.of(context).dr.toString() + " " + (model.ancillaryLists[0].ancillaryOrderList[index].doctorName ?? ""),
billNo: model.ancillaryLists[0].ancillaryOrderList[index].orderNo.toString(),
profileUrl: "https://hmgwebservices.com/Images/MobileImages/DUBAI/unkown.png",
subName: model.ancillaryLists[0].projectName,
diff --git a/lib/pages/AlHabibMedicalService/ancillary-orders/ancillaryOrdersDetails.dart b/lib/pages/AlHabibMedicalService/ancillary-orders/ancillaryOrdersDetails.dart
index e4ea7eaa..1dd34876 100644
--- a/lib/pages/AlHabibMedicalService/ancillary-orders/ancillaryOrdersDetails.dart
+++ b/lib/pages/AlHabibMedicalService/ancillary-orders/ancillaryOrdersDetails.dart
@@ -484,7 +484,7 @@ class _AnicllaryOrdersState extends State with SingleTic
onSelectedMethod: (String method, [String selectedInstallmentPlan]) {
selectedPaymentMethod = method;
this.selectedInstallmentPlan = selectedInstallmentPlan;
- openPayment(selectedPaymentMethod, projectViewModel.authenticatedUserObject.user, double.parse(getTotalValue()), null, model, selectedInstallmentPlan);
+ openPayment(selectedPaymentMethod, projectViewModel.user, double.parse(getTotalValue()), null, model, selectedInstallmentPlan);
},
patientShare: double.parse(getTotalValue()),
isFromAdvancePayment: !projectViewModel.havePrivilege(94),
@@ -494,24 +494,25 @@ class _AnicllaryOrdersState extends State with SingleTic
openPayment(String paymentMethod, AuthenticatedUser authenticatedUser, num amount, AppoitmentAllHistoryResultList appo, AnciallryOrdersViewModel model, [String selectedInstallmentPlan]) {
browser = new MyInAppBrowser(onExitCallback: onBrowserExit, appo: appo, onLoadStartCallback: onBrowserLoadStart);
- transID = Utils.getAdvancePaymentTransID(widget.projectID, projectViewModel.authenticatedUserObject.user.patientID);
+ transID = Utils.getAdvancePaymentTransID(widget.projectID, projectViewModel.user.patientID);
browser.openPaymentBrowser(
amount,
"Ancillary Orders Payment",
transID,
widget.projectID.toString(),
- projectViewModel.authenticatedUserObject.user.emailAddress,
+ projectViewModel.user.emailAddress,
paymentMethod,
- projectViewModel.authenticatedUserObject.user.patientType,
- projectViewModel.authenticatedUserObject.user.firstName + " " + projectViewModel.authenticatedUserObject.user.lastName,
- projectViewModel.authenticatedUserObject.user.patientID,
+ projectViewModel.user.patientType,
+ projectViewModel.user.firstName + " " + projectViewModel.user.lastName,
+ projectViewModel.user.patientID,
authenticatedUser,
browser,
false,
"3",
// Need to get new Service ID from Ayman for Ancillary Tamara
"",
+ context,
model.ancillaryListsDetails[0].appointmentDate,
model.ancillaryListsDetails[0].appointmentNo,
model.ancillaryListsDetails[0].clinicID,
@@ -603,7 +604,7 @@ class _AnicllaryOrdersState extends State with SingleTic
checkPaymentStatus(AppoitmentAllHistoryResultList appo) {
GifLoaderDialogUtils.showMyDialog(localContext);
DoctorsListService service = new DoctorsListService();
- service.checkPaymentStatus(transID, localContext).then((res) {
+ service.checkPaymentStatus(transID, false, localContext).then((res) {
String paymentInfo = res['Response_Message'];
if (paymentInfo == 'Success') {
createAdvancePayment(res, appo);
@@ -627,9 +628,9 @@ class _AnicllaryOrdersState extends State with SingleTic
res['Amount'],
res['Fort_id'],
res['PaymentMethod'],
- projectViewModel.authenticatedUserObject.user.patientType,
- projectViewModel.authenticatedUserObject.user.firstName + " " + projectViewModel.authenticatedUserObject.user.lastName,
- projectViewModel.authenticatedUserObject.user.patientID,
+ projectViewModel.user.patientType,
+ projectViewModel.user.firstName + " " + projectViewModel.user.lastName,
+ projectViewModel.user.patientID,
localContext)
.then((res) {
addAdvancedNumberRequest(res['OnlineCheckInAppointments'][0]['AdvanceNumber'].toString(), paymentReference, 0, appo);
diff --git a/lib/pages/AlHabibMedicalService/h2o/h20_setting.dart b/lib/pages/AlHabibMedicalService/h2o/h20_setting.dart
index 38d7a568..2feb7f0f 100644
--- a/lib/pages/AlHabibMedicalService/h2o/h20_setting.dart
+++ b/lib/pages/AlHabibMedicalService/h2o/h20_setting.dart
@@ -350,7 +350,7 @@ class _H2oSettingState extends State {
TextField(
enabled: isEnable,
scrollPadding: EdgeInsets.zero,
- keyboardType: TextInputType.number,
+ keyboardType: TextInputType.text,
controller: _controller,
onChanged: (value) => {
// validateForm()
diff --git a/lib/pages/Blood/confirm_payment_page.dart b/lib/pages/Blood/confirm_payment_page.dart
index e5845194..4b3f96e2 100644
--- a/lib/pages/Blood/confirm_payment_page.dart
+++ b/lib/pages/Blood/confirm_payment_page.dart
@@ -195,7 +195,7 @@ class ConfirmPaymentPage extends StatelessWidget {
browser = new MyInAppBrowser(onExitCallback: onBrowserExit, appo: appo, onLoadStartCallback: onBrowserLoadStart);
browser.openPaymentBrowser(amount, "Advance Payment", Utils.getAdvancePaymentTransID(authenticatedUser.projectID, authenticatedUser.patientID), appo.projectID.toString(),
- authenticatedUser.emailAddress, paymentMethod, authenticatedUser.patientType, authenticatedUser.firstName, authenticatedUser.patientID, authenticatedUser, browser, false, "3", "");
+ authenticatedUser.emailAddress, paymentMethod, authenticatedUser.patientType, authenticatedUser.firstName, authenticatedUser.patientID, authenticatedUser, browser, false, "3", "", null);
}
onBrowserLoadStart(String url) {
@@ -227,7 +227,7 @@ class ConfirmPaymentPage extends StatelessWidget {
checkPaymentStatus(AppoitmentAllHistoryResultList appo) {
DoctorsListService service = new DoctorsListService();
GifLoaderDialogUtils.showMyDialog(AppGlobal.context);
- service.checkPaymentStatus(Utils.getAppointmentTransID(appo.projectID, appo.clinicID, appo.appointmentNo), AppGlobal.context).then((res) {
+ service.checkPaymentStatus(Utils.getAppointmentTransID(appo.projectID, appo.clinicID, appo.appointmentNo), false, AppGlobal.context).then((res) {
GifLoaderDialogUtils.hideDialog(AppGlobal.context);
print("Printing Payment Status Reponse!!!!");
print(res);
diff --git a/lib/pages/BookAppointment/BookConfirm.dart b/lib/pages/BookAppointment/BookConfirm.dart
index 635f74a0..473c8650 100644
--- a/lib/pages/BookAppointment/BookConfirm.dart
+++ b/lib/pages/BookAppointment/BookConfirm.dart
@@ -1,3 +1,5 @@
+import 'dart:convert';
+
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
import 'package:diplomaticquarterapp/models/Appointments/AppoimentAllHistoryResultList.dart';
@@ -269,9 +271,10 @@ class _BookConfirmState extends State {
});
}
- insertAppointment(context, DoctorList docObject, int initialSlotDuration) {
+ insertAppointment(context, DoctorList docObject, int initialSlotDuration) async{
final timeSlot = DocAvailableAppointments.selectedAppoDateTime;
-
+ String logs = await sharedPref.getString('selectedLogSlots');
+ List decodedLogs = json.decode(logs);
GifLoaderDialogUtils.showMyDialog(context);
AppoitmentAllHistoryResultList appo;
widget.service
@@ -284,6 +287,14 @@ class _BookConfirmState extends State {
getPatientShare(context, res['AppointmentNo'], docObject.clinicID, docObject.projectID, docObject);
getToDoCount();
});
+
+ widget.service.logDoctorFreeSlots(docObject.doctorID, docObject.clinicID, docObject.projectID, decodedLogs,res['AppointmentNo'], context).then((res) {
+ if (res['MessageStatus'] == 1) {
+ print("Logs Saved");
+ }else{
+ print("Error Saving logs");
+ }
+ });
projectViewModel.analytics.appointment.book_appointment_confirmation_success(appointment_type: 'regular', dateTime: timeSlot, doctor: widget.doctor);
} else {
GifLoaderDialogUtils.hideDialog(context);
diff --git a/lib/pages/BookAppointment/BookSuccess.dart b/lib/pages/BookAppointment/BookSuccess.dart
index 6de4a31c..890b96d8 100644
--- a/lib/pages/BookAppointment/BookSuccess.dart
+++ b/lib/pages/BookAppointment/BookSuccess.dart
@@ -46,7 +46,7 @@ class BookSuccess extends StatefulWidget {
class _BookSuccessState extends State {
AppSharedPreferences sharedPref = AppSharedPreferences();
- AuthenticatedUser authUser;
+ // AuthenticatedUser authUser;
ProjectViewModel projectViewModel;
String selectedPaymentMethod = "";
@@ -284,8 +284,8 @@ class _BookSuccessState extends State {
),
height: 45.0,
child: CustomTextButton(
- backgroundColor: Color(0xffc5272d),
- elevation: 0,
+ backgroundColor: CustomColors.green,
+ elevation: 0,
onPressed: () {
AppoitmentAllHistoryResultList appo = new AppoitmentAllHistoryResultList();
appo.clinicID = widget.docObject.clinicID;
@@ -300,7 +300,8 @@ class _BookSuccessState extends State {
confirmAppointment(appo);
}
},
- child: Text(widget.patientShareResponse.isLiveCareAppointment ? TranslationBase.of(context).confirmLiveCare : TranslationBase.of(context).confirm, style: TextStyle(fontSize: 16.0, color: Colors.white)),
+ child: Text(widget.patientShareResponse.isLiveCareAppointment ? TranslationBase.of(context).confirmLiveCare : TranslationBase.of(context).confirm,
+ style: TextStyle(fontSize: 16.0, color: Colors.white)),
),
),
),
@@ -534,13 +535,6 @@ class _BookSuccessState extends State {
}
Future navigateToPaymentMethod(context, PatientShareResponse patientShareResponse) async {
- if (await this.sharedPref.getObject(USER_PROFILE) != null) {
- var data = AuthenticatedUser.fromJson(await this.sharedPref.getObject(USER_PROFILE));
- setState(() {
- authUser = data;
- });
- }
-
AppoitmentAllHistoryResultList appo = new AppoitmentAllHistoryResultList();
appo.projectID = widget.patientShareResponse.projectID;
appo.clinicID = widget.patientShareResponse.clinicID;
@@ -562,7 +556,7 @@ class _BookSuccessState extends State {
patientShare: widget.patientShareResponse.patientShareWithTax)))
.then((value) {
if (value != null) {
- openPayment(value, authUser, double.parse(patientShareResponse.patientShareWithTax.toString()), patientShareResponse, appo);
+ openPayment(value, projectViewModel.user, double.parse(patientShareResponse.patientShareWithTax.toString()), patientShareResponse, appo);
projectViewModel.analytics.appointment.payment_method(appointment_type: 'regular', clinic: widget.docObject.clinicName, payment_method: value[0], payment_type: 'appointment');
}
});
@@ -587,6 +581,7 @@ class _BookSuccessState extends State {
widget.patientShareResponse.isLiveCareAppointment,
"2",
widget.patientShareResponse.isLiveCareAppointment ? widget.patientShareResponse.clinicID.toString() : "",
+ context,
widget.patientShareResponse.appointmentDate,
widget.patientShareResponse.appointmentNo,
widget.patientShareResponse.clinicID,
@@ -729,7 +724,7 @@ class _BookSuccessState extends State {
final currency = projectViewModel.user.outSA == 0 ? "sar" : 'aed';
GifLoaderDialogUtils.showMyDialog(context);
DoctorsListService service = new DoctorsListService();
- service.checkPaymentStatus(Utils.getAppointmentTransID(appo.projectID, appo.clinicID, appo.appointmentNo), context).then((res) {
+ service.checkPaymentStatus(Utils.getAppointmentTransID(appo.projectID, appo.clinicID, appo.appointmentNo), false, context).then((res) {
String paymentInfo = res['Response_Message'];
if (paymentInfo == 'Success') {
txn_ref = res['Merchant_Reference'];
@@ -760,7 +755,7 @@ class _BookSuccessState extends State {
getApplePayAPQ(AppoitmentAllHistoryResultList appo) {
GifLoaderDialogUtils.showMyDialog(context);
DoctorsListService service = new DoctorsListService();
- service.checkPaymentStatus(Utils.getAppointmentTransID(appo.projectID, appo.clinicID, appo.appointmentNo), context).then((res) {
+ service.checkPaymentStatus(Utils.getAppointmentTransID(appo.projectID, appo.clinicID, appo.appointmentNo), false, context).then((res) {
GifLoaderDialogUtils.hideDialog(context);
String paymentInfo = res['Response_Message'];
@@ -954,12 +949,29 @@ class _BookSuccessState extends State {
}
Future navigateToQR(context, String appoQR) async {
+ AppoitmentAllHistoryResultList appointment = new AppoitmentAllHistoryResultList();
+
+ appointment.doctorTitle = "Dr. ";
+ appointment.doctorNameObj = widget.patientShareResponse.doctorNameObj;
+ appointment.doctorImageURL = widget.patientShareResponse.doctorImageURL;
+ appointment.doctorSpeciality = widget.patientShareResponse.doctorSpeciality;
+ appointment.projectName = widget.patientShareResponse.projectName;
+ appointment.projectID = widget.patientShareResponse.projectID;
+ appointment.appointmentDate = widget.patientShareResponse.appointmentDate;
+ appointment.isLiveCareAppointment = widget.patientShareResponse.isLiveCareAppointment;
+ appointment.startTime = widget.patientShareResponse.startTime;
+ appointment.doctorRate = 5;
+ appointment.actualDoctorRate = 5;
+ appointment.noOfPatientsRate = 0;
+ appointment.clinicName = widget.patientShareResponse.clinicName;
+
Navigator.push(
context,
FadePage(
page: QRCode(
patientShareResponse: widget.patientShareResponse,
appoQR: appoQR,
+ appointment: appointment,
)));
}
diff --git a/lib/pages/BookAppointment/DentalComplaints.dart b/lib/pages/BookAppointment/DentalComplaints.dart
index 25bb200b..27cb951e 100644
--- a/lib/pages/BookAppointment/DentalComplaints.dart
+++ b/lib/pages/BookAppointment/DentalComplaints.dart
@@ -1,5 +1,6 @@
import 'package:diplomaticquarterapp/analytics/google-analytics.dart';
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
+import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
import 'package:diplomaticquarterapp/locator.dart';
import 'package:diplomaticquarterapp/models/Appointments/DentalChiefComplaintsModel.dart';
import 'package:diplomaticquarterapp/models/Appointments/DentalProceduresModel.dart';
@@ -19,6 +20,7 @@ import 'package:diplomaticquarterapp/widgets/dialogs/confirm_dialog.dart';
import 'package:diplomaticquarterapp/widgets/others/app_expandable_notifier.dart';
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
class DentalComplaints extends StatefulWidget {
SearchInfo searchInfo;
@@ -44,6 +46,8 @@ class _DentalComplaintsState extends State {
DentalProceduresModel dentalProceduresModel;
List patientDoctorAppointmentListHospital = List();
+ ProjectViewModel projectViewModel;
+
@override
void initState() {
WidgetsBinding.instance.addPostFrameCallback((_) => checkIfHasDentalPlan());
@@ -52,6 +56,7 @@ class _DentalComplaintsState extends State {
@override
Widget build(BuildContext context) {
+ projectViewModel = Provider.of(context);
return AppScaffold(
isShowAppBar: true,
appBarTitle: TranslationBase.of(context).chiefComplaints,
diff --git a/lib/pages/BookAppointment/DoctorProfile.dart b/lib/pages/BookAppointment/DoctorProfile.dart
index c806e818..426df212 100644
--- a/lib/pages/BookAppointment/DoctorProfile.dart
+++ b/lib/pages/BookAppointment/DoctorProfile.dart
@@ -492,27 +492,31 @@ class _DoctorProfileState extends State with TickerProviderStateM
}
void goToBookConfirm() async {
- if (widget.isDoctorNameSearch && widget.doctor.clinicID == 17) {
- navigateToDentalComplaints(context);
- } else {
- if (DocAvailableAppointments.areSlotsAvailable) {
- if (projectViewModel.isLogin) {
+ // if (widget.isDoctorNameSearch && widget.doctor.clinicID == 17) {
+ // navigateToDentalComplaints(context);
+ // } else {
+ if (DocAvailableAppointments.areSlotsAvailable) {
+ if (projectViewModel.isLogin) {
+ if (widget.isDoctorNameSearch && widget.doctor.clinicID == 17 && projectViewModel.user.age > 12) {
+ navigateToDentalComplaints(context);
+ } else {
final timeSlot = DocAvailableAppointments.selectedAppoDateTime;
navigateToBookConfirm(context);
projectViewModel.analytics.appointment.book_appointment_review(appointment_type: 'regular', dateTime: timeSlot, doctor: widget.doctor);
- } else {
- ConfirmDialog dialog = new ConfirmDialog(
- context: context,
- confirmMessage: TranslationBase.of(context).loginToUseService,
- okText: TranslationBase.of(context).confirm,
- cancelText: TranslationBase.of(context).cancel_nocaps,
- okFunction: () => {navigateToLogin()},
- cancelFunction: () => {});
- dialog.showAlertDialog(context);
}
- } else
- AppToast.showErrorToast(message: TranslationBase.of(context).selectSlot);
- }
+ } else {
+ ConfirmDialog dialog = new ConfirmDialog(
+ context: context,
+ confirmMessage: TranslationBase.of(context).loginToUseService,
+ okText: TranslationBase.of(context).confirm,
+ cancelText: TranslationBase.of(context).cancel_nocaps,
+ okFunction: () => {navigateToLogin()},
+ cancelFunction: () => {});
+ dialog.showAlertDialog(context);
+ }
+ } else
+ AppToast.showErrorToast(message: TranslationBase.of(context).selectSlot);
+ // }
}
Future navigateToDentalComplaints(BuildContext context) async {
diff --git a/lib/pages/BookAppointment/QRCode.dart b/lib/pages/BookAppointment/QRCode.dart
index d85f4505..2f861bd3 100644
--- a/lib/pages/BookAppointment/QRCode.dart
+++ b/lib/pages/BookAppointment/QRCode.dart
@@ -1,4 +1,3 @@
-import 'dart:convert';
import 'dart:typed_data';
import 'package:diplomaticquarterapp/analytics/google-analytics.dart';
@@ -8,15 +7,18 @@ import 'package:diplomaticquarterapp/models/Appointments/AppoimentAllHistoryResu
import 'package:diplomaticquarterapp/models/Appointments/DoctorListResponse.dart';
import 'package:diplomaticquarterapp/models/Appointments/PatientShareResposne.dart';
import 'package:diplomaticquarterapp/models/Authentication/authenticated_user.dart';
+import 'package:diplomaticquarterapp/models/header_model.dart';
import 'package:diplomaticquarterapp/routes.dart';
import 'package:diplomaticquarterapp/services/appointment_services/GetDoctorsList.dart';
+import 'package:diplomaticquarterapp/theme/colors.dart';
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
-import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart';
+import 'package:diplomaticquarterapp/widgets/buttons/custom_text_button.dart';
import 'package:diplomaticquarterapp/widgets/dialogs/confirm_dialog.dart';
+import 'package:diplomaticquarterapp/widgets/new_design/doctor_header.dart';
import 'package:diplomaticquarterapp/widgets/nfc/nfc_reader_sheet.dart';
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
import 'package:flutter/material.dart';
@@ -53,159 +55,131 @@ class _QRCodeState extends State {
});
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
- Future.delayed(const Duration(milliseconds: 500), () {
- showNfcReader(context, onNcfScan: (String nfcId) {
- Future.delayed(const Duration(milliseconds: 100), () {
- sendNfcCheckInRequest(nfcId);
- locator().todoList.to_do_list_nfc(widget.appointment);
- });
- }, onCancel: () {
- // Navigator.of(context).pop();
- locator().todoList.to_do_list_nfc_cancel(widget.appointment);
- });
- });
+ startNFCScan();
});
super.initState();
}
+ startNFCScan() {
+ Future.delayed(const Duration(milliseconds: 500), () {
+ showNfcReader(context, onNcfScan: (String nfcId) {
+ Future.delayed(const Duration(milliseconds: 100), () {
+ sendNfcCheckInRequest(nfcId);
+ locator().todoList.to_do_list_nfc(widget.appointment);
+ });
+ }, onCancel: () {
+ // Navigator.of(context).pop();
+ locator().todoList.to_do_list_nfc_cancel(widget.appointment);
+ });
+ });
+ }
+
@override
Widget build(BuildContext context) {
_context = context;
return AppScaffold(
- appBarTitle: TranslationBase.of(context).attendRegisterCode,
+ appBarTitle: TranslationBase.of(context).onlineCheckIn,
isShowAppBar: true,
showNewAppBar: true,
showNewAppBarTitle: true,
body: SingleChildScrollView(
- child: Container(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- mainAxisSize: MainAxisSize.max,
- children: [
- Container(
- width: double.infinity,
- height: MediaQuery.of(context).size.width / 3,
- child: Row(
- children: [
- Expanded(
- flex: 1,
- child: Row(
- crossAxisAlignment: CrossAxisAlignment.center,
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- InkWell(
- child: Container(
- margin: EdgeInsets.only(top: 30.0),
- alignment: Alignment.center,
- padding: EdgeInsets.all(8),
- decoration: BoxDecoration(
- border: Border.all(color: Colors.black),
- borderRadius: BorderRadius.circular(10),
- ),
- child: SvgPicture.asset("assets/images/nfc/contactless.svg"),
- ),
- onTap: () {
- showNfcReader(context, onNcfScan: (String nfcId) {
- Future.delayed(const Duration(milliseconds: 100), () {
- sendNfcCheckInRequest(nfcId);
- locator().todoList.to_do_list_nfc(widget.appointment);
- });
- }, onCancel: () {
- // Navigator.of(context).pop();
- locator().todoList.to_do_list_nfc_cancel(widget.appointment);
- });
- },
- ),
- ],
- ),
- ),
- // Expanded(
- // flex: 1,
- // child: Container(
- // margin: EdgeInsets.only(top: 30.0),
- // alignment: Alignment.center,
- // child: Image.memory(
- // _bytes,
- // ),
- // ),
- // ),
- ],
- ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ DoctorHeader(
+ headerModel: HeaderModel(
+ widget.appointment.doctorTitle + " " + widget.appointment.doctorNameObj,
+ widget.appointment.doctorID,
+ widget.appointment.doctorImageURL,
+ widget.appointment.doctorSpeciality,
+ "",
+ widget.appointment.projectName,
+ DateUtil.convertStringToDate(widget.appointment.appointmentDate),
+ widget.appointment.isLiveCareAppointment
+ ? DateUtil.convertStringToDate(widget.appointment.appointmentDate).toString().split(" ")[1].substring(0, 5)
+ : widget.appointment.startTime.substring(0, 5),
+ null,
+ widget.appointment.doctorRate,
+ widget.appointment.actualDoctorRate,
+ widget.appointment.noOfPatientsRate,
+ "",
),
- Container(
- margin: EdgeInsets.only(top: 20.0, left: 20.0, right: 20.0),
- child: Divider(
- color: Colors.red[700],
- thickness: 0.8,
+ isShowName: true,
+ isNeedToShowButton: false,
+ buttonTitle: '',
+ onTap: () {},
+ onRatingAndReviewTap: () {},
+ ),
+ InkWell(
+ child: Container(
+ margin: EdgeInsets.only(top: 30.0),
+ padding: EdgeInsets.all(8),
+ child: SvgPicture.asset(
+ "assets/images/nfc/contactless.svg",
+ width: 80.0,
+ height: 80.0,
),
),
- Row(
- children: [
- Expanded(
- child: Container(
- width: double.infinity,
- margin: EdgeInsets.only(top: 15.0, bottom: 10.0, left: 20.0, right: 20.0),
- child: Text(TranslationBase.of(context).scanQRHospital, style: TextStyle(color: Colors.red[700], fontSize: 18.0, fontWeight: FontWeight.bold)),
- ),
+ onTap: () {
+ showNfcReader(context, onNcfScan: (String nfcId) {
+ Future.delayed(const Duration(milliseconds: 100), () {
+ sendNfcCheckInRequest(nfcId);
+ locator().todoList.to_do_list_nfc(widget.appointment);
+ });
+ }, onCancel: () {
+ // Navigator.of(context).pop();
+ locator().todoList.to_do_list_nfc_cancel(widget.appointment);
+ });
+ },
+ ),
+ Row(
+ children: [
+ Expanded(
+ child: Container(
+ width: double.infinity,
+ margin: EdgeInsets.only(top: 15.0, bottom: 10.0, left: 20.0, right: 20.0),
+ child: Text(TranslationBase.of(context).scanQRHospital,
+ style: TextStyle(
+ fontSize: 20,
+ fontWeight: FontWeight.w600,
+ letterSpacing: -0.48,
+ )),
),
- ],
- ),
- Container(
- margin: EdgeInsets.only(top: 10.0, left: 20.0, right: 20.0),
- child: Divider(
- color: Colors.red[700],
- thickness: 0.8,
),
- ),
- Container(
- margin: EdgeInsets.only(top: 15.0, bottom: 10.0, left: 20.0, right: 20.0),
- child: Text(TranslationBase.of(context).appoInfo, style: TextStyle(fontSize: 18.0, color: Colors.grey[700], fontWeight: FontWeight.bold)),
- ),
- Container(
- margin: EdgeInsets.only(left: 20.0, bottom: 20.0, right: 20.0),
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(10),
- color: Colors.grey[200],
- boxShadow: [
- BoxShadow(color: Colors.grey, spreadRadius: 2),
- ],
+ ],
+ ),
+ ],
+ ),
+ ),
+ bottomSheet: Container(
+ color: CustomColors.appBackgroudGreyColor,
+ padding: EdgeInsets.all(21),
+ // height: 45.0,
+ child: Row(
+ children: [
+ Expanded(
+ flex: 1,
+ child: ButtonTheme(
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(10.0),
),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Container(
- margin: EdgeInsets.only(top: 15.0, bottom: 10.0, left: 20.0, right: 20.0),
- child: Text(widget.patientShareResponse.doctorNameObj, style: TextStyle(fontSize: 18.0, color: Colors.grey[700], fontWeight: FontWeight.bold)),
- ),
- if (getDoctorSpeciality(widget.patientShareResponse.doctorSpeciality) != "null\n")
- Container(
- margin: EdgeInsets.only(bottom: 10.0, left: 20.0, right: 20.0),
- child: Text(getDoctorSpeciality(widget.patientShareResponse.doctorSpeciality), style: TextStyle(fontSize: 18.0, color: Colors.grey[700])),
- ),
- Container(
- margin: EdgeInsets.only(top: 0.0, bottom: 10.0, left: 20.0, right: 20.0),
- child: Text(widget.patientShareResponse.projectName, style: TextStyle(fontSize: 18.0, color: Colors.grey[700])),
- ),
- Container(
- margin: EdgeInsets.only(top: 0.0, bottom: 10.0, left: 20.0, right: 20.0),
- child: Text(getDate(widget.patientShareResponse.appointmentDate), style: TextStyle(fontSize: 18.0, color: Colors.grey[700])),
- ),
- ],
+ height: 45.0,
+ child: CustomTextButton(
+ backgroundColor: CustomColors.green,
+ elevation: 0,
+ onPressed: () {
+ startNFCScan();
+ },
+ child: Text(TranslationBase.of(context).scanNFC,
+ style: TextStyle(
+ fontSize: 18.0,
+ color: Colors.white,
+ )),
),
),
- // Container(
- // margin: EdgeInsets.only(left: 20.0, right: 20.0, top: 15.0),
- // alignment: Alignment.bottomCenter,
- // child: Column(
- // mainAxisAlignment: MainAxisAlignment.end,
- // children: [
- // DefaultButton(TranslationBase.of(context).sendEmail.toUpperCase(), () => {sendEmail()})
- // ],
- // ),
- // ),
- ],
- ),
+ ),
+ ],
),
),
);
diff --git a/lib/pages/BookAppointment/components/DocAvailableAppointments.dart b/lib/pages/BookAppointment/components/DocAvailableAppointments.dart
index 9b5374ef..04f6d1b0 100644
--- a/lib/pages/BookAppointment/components/DocAvailableAppointments.dart
+++ b/lib/pages/BookAppointment/components/DocAvailableAppointments.dart
@@ -16,7 +16,7 @@ import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:provider/provider.dart';
import 'package:syncfusion_flutter_calendar/calendar.dart';
-
+import 'dart:convert';
import '../../../uitl/date_uitl.dart';
class DocAvailableAppointments extends StatefulWidget {
@@ -58,6 +58,7 @@ class _DocAvailableAppointmentsState extends State wit
var language;
bool isLiveCareSchedule;
+ // String selectedLogSlots ='';
@override
void didUpdateWidget(covariant DocAvailableAppointments oldWidget) {
@@ -212,6 +213,22 @@ class _DocAvailableAppointmentsState extends State wit
if (dayEvents.length != 0) {
DocAvailableAppointments.areSlotsAvailable = true;
selectedButtonIndex = 0;
+ // selectedLogSlots = dayEvents[selectedButtonIndex].toString();
+ List