diff --git a/android/app/build.gradle b/android/app/build.gradle
index ae87782e..af0821ee 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
- compileSdkVersion 29
+ compileSdkVersion 30
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
@@ -40,10 +40,11 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.doctor_app_flutter"
minSdkVersion 18
- targetSdkVersion 29
+ targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ multiDexEnabled true
}
buildTypes {
@@ -72,9 +73,10 @@ dependencies {
implementation 'com.opentok.android:opentok-android-sdk:2.16.5'
//permissions
implementation 'pub.devrel:easypermissions:0.4.0'
-
//retrofit
implementation 'com.squareup.retrofit2:retrofit:2.6.2'
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.1'
+
}
+apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
diff --git a/android/app/google-services.json b/android/app/google-services.json
new file mode 100644
index 00000000..27e5dfb1
--- /dev/null
+++ b/android/app/google-services.json
@@ -0,0 +1,46 @@
+{
+ "project_info": {
+ "project_number": "1097451043303",
+ "project_id": "doctor-app-35ddc",
+ "storage_bucket": "doctor-app-35ddc.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:1097451043303:android:f82ecce9562ecaad866542",
+ "android_client_info": {
+ "package_name": "com.example.doctor_app_flutter"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "1097451043303-u7bl21167fq5b7u06cqpq621psv9s3qh.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyChu44P8Dp8jtRqnoDR2mdjqKgSKQq-FPY"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "1097451043303-u7bl21167fq5b7u06cqpq621psv9s3qh.apps.googleusercontent.com",
+ "client_type": 3
+ },
+ {
+ "client_id": "1097451043303-ifgtu6ub88dlk5dmv5tm531a5s47gbre.apps.googleusercontent.com",
+ "client_type": 2,
+ "ios_info": {
+ "bundle_id": "com.hmg.doctorApp"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/android/build.gradle b/android/build.gradle
index 357c6a1a..ea0f0026 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -8,6 +8,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ classpath 'com.google.gms:google-services:4.3.2'
}
}
diff --git a/android/google-services.json b/android/google-services.json
new file mode 100644
index 00000000..3c00f05c
--- /dev/null
+++ b/android/google-services.json
@@ -0,0 +1,39 @@
+{
+ "project_info": {
+ "project_number": "1008895414777",
+ "project_id": "doctorapp-9f172",
+ "storage_bucket": "doctorapp-9f172.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:1008895414777:android:d00fe21d6955c21b1f6d28",
+ "android_client_info": {
+ "package_name": "com.example.doctor_app_flutter"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "1008895414777-3mg88j5ocs5r1au7rf4sh3f4pgsri2f2.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyCNncEIj8ehVUSxV89rx0x1NaWp8t1YVkw"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "1008895414777-3mg88j5ocs5r1au7rf4sh3f4pgsri2f2.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/android/gradle.properties b/android/gradle.properties
index 38c8d454..9c0729c9 100644
--- a/android/gradle.properties
+++ b/android/gradle.properties
@@ -1,4 +1,5 @@
-org.gradle.jvmargs=-Xmx1536M
+
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
+org.gradle.jvmargs=-Xmx4608m
diff --git a/assets/fonts/DoctorApp.ttf b/assets/fonts/DoctorApp.ttf
index 21ce4a5d..0cf36646 100644
Binary files a/assets/fonts/DoctorApp.ttf and b/assets/fonts/DoctorApp.ttf differ
diff --git a/assets/fonts/Poppins/Poppins-Bold.ttf b/assets/fonts/Poppins/Poppins-Bold.ttf
new file mode 100644
index 00000000..b94d47f3
Binary files /dev/null and b/assets/fonts/Poppins/Poppins-Bold.ttf differ
diff --git a/assets/fonts/Poppins/Poppins-Medium.ttf b/assets/fonts/Poppins/Poppins-Medium.ttf
new file mode 100644
index 00000000..e90e87ed
Binary files /dev/null and b/assets/fonts/Poppins/Poppins-Medium.ttf differ
diff --git a/assets/fonts/Poppins/Poppins-Regular.ttf b/assets/fonts/Poppins/Poppins-Regular.ttf
new file mode 100644
index 00000000..be06e7fd
Binary files /dev/null and b/assets/fonts/Poppins/Poppins-Regular.ttf differ
diff --git a/assets/images/Doctor_app_logo.png b/assets/images/Doctor_app_logo.png
new file mode 100644
index 00000000..2de2d460
Binary files /dev/null and b/assets/images/Doctor_app_logo.png differ
diff --git a/assets/images/booked.png b/assets/images/booked.png
new file mode 100644
index 00000000..e07b7d35
Binary files /dev/null and b/assets/images/booked.png differ
diff --git a/assets/images/create-episod.png b/assets/images/create-episod.png
new file mode 100644
index 00000000..02386fd1
Binary files /dev/null and b/assets/images/create-episod.png differ
diff --git a/assets/images/edit.png b/assets/images/edit.png
new file mode 100644
index 00000000..73a48877
Binary files /dev/null and b/assets/images/edit.png differ
diff --git a/assets/images/female_avatar.png b/assets/images/female_avatar.png
new file mode 100644
index 00000000..9ff4b8b7
Binary files /dev/null and b/assets/images/female_avatar.png differ
diff --git a/assets/images/filter-512.png b/assets/images/filter-512.png
new file mode 100644
index 00000000..ce2f89b8
Binary files /dev/null and b/assets/images/filter-512.png differ
diff --git a/assets/images/leaves.svg b/assets/images/leaves.svg
new file mode 100644
index 00000000..474585fd
--- /dev/null
+++ b/assets/images/leaves.svg
@@ -0,0 +1,7 @@
+
diff --git a/assets/images/livecare.png b/assets/images/livecare.png
new file mode 100644
index 00000000..b1fd3f06
Binary files /dev/null and b/assets/images/livecare.png differ
diff --git a/assets/images/login/101.png b/assets/images/login/101.png
new file mode 100644
index 00000000..90c1c575
Binary files /dev/null and b/assets/images/login/101.png differ
diff --git a/assets/images/login/102.png b/assets/images/login/102.png
new file mode 100644
index 00000000..8502d197
Binary files /dev/null and b/assets/images/login/102.png differ
diff --git a/assets/images/login/103.png b/assets/images/login/103.png
new file mode 100644
index 00000000..3326814b
Binary files /dev/null and b/assets/images/login/103.png differ
diff --git a/assets/images/login/104.png b/assets/images/login/104.png
new file mode 100644
index 00000000..ad55ff74
Binary files /dev/null and b/assets/images/login/104.png differ
diff --git a/assets/images/login/fileNum.png b/assets/images/login/fileNum.png
new file mode 100644
index 00000000..386299b7
Binary files /dev/null and b/assets/images/login/fileNum.png differ
diff --git a/assets/images/login/forget.png b/assets/images/login/forget.png
new file mode 100644
index 00000000..57aa7ccc
Binary files /dev/null and b/assets/images/login/forget.png differ
diff --git a/assets/images/login/id.png b/assets/images/login/id.png
new file mode 100644
index 00000000..9260cf11
Binary files /dev/null and b/assets/images/login/id.png differ
diff --git a/assets/images/login/more_icon.png b/assets/images/login/more_icon.png
new file mode 100644
index 00000000..b696d345
Binary files /dev/null and b/assets/images/login/more_icon.png differ
diff --git a/assets/images/login/nationalID.png b/assets/images/login/nationalID.png
new file mode 100644
index 00000000..5779d562
Binary files /dev/null and b/assets/images/login/nationalID.png differ
diff --git a/assets/images/male_avatar.png b/assets/images/male_avatar.png
new file mode 100644
index 00000000..972a59ac
Binary files /dev/null and b/assets/images/male_avatar.png differ
diff --git a/assets/images/modilfy-episode.png b/assets/images/modilfy-episode.png
new file mode 100644
index 00000000..6fdd224f
Binary files /dev/null and b/assets/images/modilfy-episode.png differ
diff --git a/assets/images/patient/Order_Procedures.png b/assets/images/patient/Order_Procedures.png
new file mode 100644
index 00000000..a3cd8ae0
Binary files /dev/null and b/assets/images/patient/Order_Procedures.png differ
diff --git a/assets/images/patient/Progress_notes.png b/assets/images/patient/Progress_notes.png
new file mode 100644
index 00000000..f5aba841
Binary files /dev/null and b/assets/images/patient/Progress_notes.png differ
diff --git a/assets/images/patient/admission_req.png b/assets/images/patient/admission_req.png
new file mode 100644
index 00000000..b2335083
Binary files /dev/null and b/assets/images/patient/admission_req.png differ
diff --git a/assets/images/patient/arrow_forward.png b/assets/images/patient/arrow_forward.png
new file mode 100644
index 00000000..df393784
Binary files /dev/null and b/assets/images/patient/arrow_forward.png differ
diff --git a/assets/images/patient/health_summary.png b/assets/images/patient/health_summary.png
new file mode 100644
index 00000000..fe374ebc
Binary files /dev/null and b/assets/images/patient/health_summary.png differ
diff --git a/assets/images/patient/lab_results.png b/assets/images/patient/lab_results.png
new file mode 100644
index 00000000..20e6b5ff
Binary files /dev/null and b/assets/images/patient/lab_results.png differ
diff --git a/assets/images/patient/order_prescription.png b/assets/images/patient/order_prescription.png
new file mode 100644
index 00000000..26e7e9c4
Binary files /dev/null and b/assets/images/patient/order_prescription.png differ
diff --git a/assets/images/patient/patient_sick_leave.png b/assets/images/patient/patient_sick_leave.png
new file mode 100644
index 00000000..56196834
Binary files /dev/null and b/assets/images/patient/patient_sick_leave.png differ
diff --git a/assets/images/patient/refer_patient.png b/assets/images/patient/refer_patient.png
new file mode 100644
index 00000000..ac3aea6e
Binary files /dev/null and b/assets/images/patient/refer_patient.png differ
diff --git a/assets/images/patient/ucaf.png b/assets/images/patient/ucaf.png
new file mode 100644
index 00000000..f7293599
Binary files /dev/null and b/assets/images/patient/ucaf.png differ
diff --git a/assets/images/patient/vital_signs.png b/assets/images/patient/vital_signs.png
new file mode 100644
index 00000000..76017194
Binary files /dev/null and b/assets/images/patient/vital_signs.png differ
diff --git a/assets/images/patient/vital_signs/Obese_BMI-r.png b/assets/images/patient/vital_signs/Obese_BMI-r.png
new file mode 100644
index 00000000..50b32822
Binary files /dev/null and b/assets/images/patient/vital_signs/Obese_BMI-r.png differ
diff --git a/assets/images/patient/vital_signs/Obese_BMI.png b/assets/images/patient/vital_signs/Obese_BMI.png
new file mode 100644
index 00000000..540d4bcc
Binary files /dev/null and b/assets/images/patient/vital_signs/Obese_BMI.png differ
diff --git a/assets/images/patient/vital_signs/blood_pressure.png b/assets/images/patient/vital_signs/blood_pressure.png
new file mode 100644
index 00000000..96701875
Binary files /dev/null and b/assets/images/patient/vital_signs/blood_pressure.png differ
diff --git a/assets/images/patient/vital_signs/health_BMI-r.png b/assets/images/patient/vital_signs/health_BMI-r.png
new file mode 100644
index 00000000..96189d34
Binary files /dev/null and b/assets/images/patient/vital_signs/health_BMI-r.png differ
diff --git a/assets/images/patient/vital_signs/health_BMI.png b/assets/images/patient/vital_signs/health_BMI.png
new file mode 100644
index 00000000..c87a0424
Binary files /dev/null and b/assets/images/patient/vital_signs/health_BMI.png differ
diff --git a/assets/images/patient/vital_signs/heart_rate.png b/assets/images/patient/vital_signs/heart_rate.png
new file mode 100644
index 00000000..76017194
Binary files /dev/null and b/assets/images/patient/vital_signs/heart_rate.png differ
diff --git a/assets/images/patient/vital_signs/height.png b/assets/images/patient/vital_signs/height.png
new file mode 100644
index 00000000..e176c456
Binary files /dev/null and b/assets/images/patient/vital_signs/height.png differ
diff --git a/assets/images/patient/vital_signs/ovrweight_BMI-r.png b/assets/images/patient/vital_signs/ovrweight_BMI-r.png
new file mode 100644
index 00000000..ff24fc61
Binary files /dev/null and b/assets/images/patient/vital_signs/ovrweight_BMI-r.png differ
diff --git a/assets/images/patient/vital_signs/ovrweight_BMI.png b/assets/images/patient/vital_signs/ovrweight_BMI.png
new file mode 100644
index 00000000..da8e67bb
Binary files /dev/null and b/assets/images/patient/vital_signs/ovrweight_BMI.png differ
diff --git a/assets/images/patient/vital_signs/respiration_rate.png b/assets/images/patient/vital_signs/respiration_rate.png
new file mode 100644
index 00000000..ff695dec
Binary files /dev/null and b/assets/images/patient/vital_signs/respiration_rate.png differ
diff --git a/assets/images/patient/vital_signs/temperature.png b/assets/images/patient/vital_signs/temperature.png
new file mode 100644
index 00000000..9953a130
Binary files /dev/null and b/assets/images/patient/vital_signs/temperature.png differ
diff --git a/assets/images/patient/vital_signs/underweight_BMI-r.png b/assets/images/patient/vital_signs/underweight_BMI-r.png
new file mode 100644
index 00000000..2f633b45
Binary files /dev/null and b/assets/images/patient/vital_signs/underweight_BMI-r.png differ
diff --git a/assets/images/patient/vital_signs/underweight_BMI.png b/assets/images/patient/vital_signs/underweight_BMI.png
new file mode 100644
index 00000000..83b0260a
Binary files /dev/null and b/assets/images/patient/vital_signs/underweight_BMI.png differ
diff --git a/assets/images/patient/vital_signs/weight.png b/assets/images/patient/vital_signs/weight.png
new file mode 100644
index 00000000..4a3bd2cc
Binary files /dev/null and b/assets/images/patient/vital_signs/weight.png differ
diff --git a/assets/images/progress-loading-red.gif b/assets/images/progress-loading-red.gif
new file mode 100644
index 00000000..517c3dab
Binary files /dev/null and b/assets/images/progress-loading-red.gif differ
diff --git a/assets/images/sick_leaves_icons.png b/assets/images/sick_leaves_icons.png
new file mode 100644
index 00000000..67a9c937
Binary files /dev/null and b/assets/images/sick_leaves_icons.png differ
diff --git a/assets/images/type-booked.png b/assets/images/type-booked.png
new file mode 100644
index 00000000..c42945cf
Binary files /dev/null and b/assets/images/type-booked.png differ
diff --git a/assets/images/type-livecare.png b/assets/images/type-livecare.png
new file mode 100644
index 00000000..05f3d213
Binary files /dev/null and b/assets/images/type-livecare.png differ
diff --git a/assets/images/type-walkin.png b/assets/images/type-walkin.png
new file mode 100644
index 00000000..555023b3
Binary files /dev/null and b/assets/images/type-walkin.png differ
diff --git a/assets/images/vital_blood-pressure.png b/assets/images/vital_blood-pressure.png
new file mode 100644
index 00000000..44c9f2e2
Binary files /dev/null and b/assets/images/vital_blood-pressure.png differ
diff --git a/assets/images/vital_blood_type.png b/assets/images/vital_blood_type.png
new file mode 100644
index 00000000..fbb5296f
Binary files /dev/null and b/assets/images/vital_blood_type.png differ
diff --git a/assets/images/vital_body_mass.png b/assets/images/vital_body_mass.png
new file mode 100644
index 00000000..08476c51
Binary files /dev/null and b/assets/images/vital_body_mass.png differ
diff --git a/assets/images/vital_heart_rate.png b/assets/images/vital_heart_rate.png
new file mode 100644
index 00000000..e788658b
Binary files /dev/null and b/assets/images/vital_heart_rate.png differ
diff --git a/assets/images/vital_height.png b/assets/images/vital_height.png
new file mode 100644
index 00000000..8c324b2c
Binary files /dev/null and b/assets/images/vital_height.png differ
diff --git a/assets/images/vital_respiration.png b/assets/images/vital_respiration.png
new file mode 100644
index 00000000..7e1b4466
Binary files /dev/null and b/assets/images/vital_respiration.png differ
diff --git a/assets/images/vital_signs.png b/assets/images/vital_signs.png
new file mode 100644
index 00000000..7b642d6e
Binary files /dev/null and b/assets/images/vital_signs.png differ
diff --git a/assets/images/vital_temperature.png b/assets/images/vital_temperature.png
new file mode 100644
index 00000000..7fe657de
Binary files /dev/null and b/assets/images/vital_temperature.png differ
diff --git a/assets/images/vital_weight.png b/assets/images/vital_weight.png
new file mode 100644
index 00000000..5247e924
Binary files /dev/null and b/assets/images/vital_weight.png differ
diff --git a/assets/images/walkin.png b/assets/images/walkin.png
new file mode 100644
index 00000000..81f112f5
Binary files /dev/null and b/assets/images/walkin.png differ
diff --git a/ios/GoogleService-Info .plist b/ios/GoogleService-Info .plist
new file mode 100644
index 00000000..81c3af44
--- /dev/null
+++ b/ios/GoogleService-Info .plist
@@ -0,0 +1,34 @@
+
+
+
+
+ CLIENT_ID
+ 1097451043303-ifgtu6ub88dlk5dmv5tm531a5s47gbre.apps.googleusercontent.com
+ REVERSED_CLIENT_ID
+ com.googleusercontent.apps.1097451043303-ifgtu6ub88dlk5dmv5tm531a5s47gbre
+ API_KEY
+ AIzaSyAKPayaNaI-2RN6S4PH5W9wYExmEgoBUvo
+ GCM_SENDER_ID
+ 1097451043303
+ PLIST_VERSION
+ 1
+ BUNDLE_ID
+ com.hmg.doctorApp
+ PROJECT_ID
+ doctor-app-35ddc
+ STORAGE_BUCKET
+ doctor-app-35ddc.appspot.com
+ IS_ADS_ENABLED
+
+ IS_ANALYTICS_ENABLED
+
+ IS_APPINVITE_ENABLED
+
+ IS_GCM_ENABLED
+
+ IS_SIGNIN_ENABLED
+
+ GOOGLE_APP_ID
+ 1:1097451043303:ios:0e9b87e77dcf397d866542
+
+
\ No newline at end of file
diff --git a/ios/Podfile.lock b/ios/Podfile.lock
index 0575cdb6..878a1850 100644
--- a/ios/Podfile.lock
+++ b/ios/Podfile.lock
@@ -7,32 +7,114 @@ PODS:
- connectivity (0.0.1):
- Flutter
- Reachability
+ - connectivity_for_web (0.1.0):
+ - Flutter
- connectivity_macos (0.0.1):
- Flutter
- device_info (0.0.1):
- Flutter
+ - Firebase/CoreOnly (6.33.0):
+ - FirebaseCore (= 6.10.3)
+ - Firebase/Messaging (6.33.0):
+ - Firebase/CoreOnly
+ - FirebaseMessaging (~> 4.7.0)
+ - firebase_core (0.5.3):
+ - Firebase/CoreOnly (~> 6.33.0)
+ - Flutter
+ - firebase_core_web (0.1.0):
+ - Flutter
+ - firebase_messaging (7.0.3):
+ - Firebase/CoreOnly (~> 6.33.0)
+ - Firebase/Messaging (~> 6.33.0)
+ - firebase_core
+ - Flutter
+ - FirebaseCore (6.10.3):
+ - FirebaseCoreDiagnostics (~> 1.6)
+ - GoogleUtilities/Environment (~> 6.7)
+ - GoogleUtilities/Logger (~> 6.7)
+ - FirebaseCoreDiagnostics (1.7.0):
+ - GoogleDataTransport (~> 7.4)
+ - GoogleUtilities/Environment (~> 6.7)
+ - GoogleUtilities/Logger (~> 6.7)
+ - nanopb (~> 1.30906.0)
+ - FirebaseInstallations (1.7.0):
+ - FirebaseCore (~> 6.10)
+ - GoogleUtilities/Environment (~> 6.7)
+ - GoogleUtilities/UserDefaults (~> 6.7)
+ - PromisesObjC (~> 1.2)
+ - FirebaseInstanceID (4.8.0):
+ - FirebaseCore (~> 6.10)
+ - FirebaseInstallations (~> 1.6)
+ - GoogleUtilities/Environment (~> 6.7)
+ - GoogleUtilities/UserDefaults (~> 6.7)
+ - FirebaseMessaging (4.7.1):
+ - FirebaseCore (~> 6.10)
+ - FirebaseInstanceID (~> 4.7)
+ - GoogleUtilities/AppDelegateSwizzler (~> 6.7)
+ - GoogleUtilities/Environment (~> 6.7)
+ - GoogleUtilities/Reachability (~> 6.7)
+ - GoogleUtilities/UserDefaults (~> 6.7)
+ - Protobuf (>= 3.9.2, ~> 3.9)
- Flutter (1.0.0)
- flutter_flexible_toast (0.0.1):
- Flutter
- flutter_plugin_android_lifecycle (0.0.1):
- Flutter
+ - GoogleDataTransport (7.5.1):
+ - nanopb (~> 1.30906.0)
+ - GoogleUtilities/AppDelegateSwizzler (6.7.2):
+ - GoogleUtilities/Environment
+ - GoogleUtilities/Logger
+ - GoogleUtilities/Network
+ - GoogleUtilities/Environment (6.7.2):
+ - PromisesObjC (~> 1.2)
+ - GoogleUtilities/Logger (6.7.2):
+ - GoogleUtilities/Environment
+ - GoogleUtilities/Network (6.7.2):
+ - GoogleUtilities/Logger
+ - "GoogleUtilities/NSData+zlib"
+ - GoogleUtilities/Reachability
+ - "GoogleUtilities/NSData+zlib (6.7.2)"
+ - GoogleUtilities/Reachability (6.7.2):
+ - GoogleUtilities/Logger
+ - GoogleUtilities/UserDefaults (6.7.2):
+ - GoogleUtilities/Logger
- hexcolor (0.0.1):
- Flutter
- imei_plugin (0.0.1):
- Flutter
- local_auth (0.0.1):
- Flutter
+ - maps_launcher (0.0.1):
+ - Flutter
- MTBBarcodeScanner (5.0.11)
+ - nanopb (1.30906.0):
+ - nanopb/decode (= 1.30906.0)
+ - nanopb/encode (= 1.30906.0)
+ - nanopb/decode (1.30906.0)
+ - nanopb/encode (1.30906.0)
- OpenTok (2.15.3)
- - "permission_handler (5.0.0+hotfix.5)":
+ - path_provider_linux (0.0.1):
+ - Flutter
+ - path_provider_windows (0.0.1):
- Flutter
+ - "permission_handler (5.1.0+2)":
+ - Flutter
+ - PromisesObjC (1.2.11)
+ - Protobuf (3.13.0)
- Reachability (3.2)
+ - screen (0.0.1):
+ - Flutter
- shared_preferences (0.0.1):
- Flutter
+ - shared_preferences_linux (0.0.1):
+ - Flutter
- shared_preferences_macos (0.0.1):
- Flutter
- shared_preferences_web (0.0.1):
- Flutter
+ - shared_preferences_windows (0.0.1):
+ - Flutter
- speech_to_text (0.0.1):
- Flutter
- Try
@@ -40,38 +122,77 @@ PODS:
- Try (2.1.1)
- url_launcher (0.0.1):
- Flutter
+ - url_launcher_linux (0.0.1):
+ - Flutter
- url_launcher_macos (0.0.1):
- Flutter
- url_launcher_web (0.0.1):
- Flutter
+ - url_launcher_windows (0.0.1):
+ - Flutter
+ - video_player (0.0.1):
+ - Flutter
+ - video_player_web (0.0.1):
+ - Flutter
+ - wakelock (0.0.1):
+ - Flutter
+ - webview_flutter (0.0.1):
+ - Flutter
DEPENDENCIES:
- Alamofire
- barcode_scan (from `.symlinks/plugins/barcode_scan/ios`)
- connectivity (from `.symlinks/plugins/connectivity/ios`)
+ - connectivity_for_web (from `.symlinks/plugins/connectivity_for_web/ios`)
- connectivity_macos (from `.symlinks/plugins/connectivity_macos/ios`)
- device_info (from `.symlinks/plugins/device_info/ios`)
+ - firebase_core (from `.symlinks/plugins/firebase_core/ios`)
+ - firebase_core_web (from `.symlinks/plugins/firebase_core_web/ios`)
+ - firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
- Flutter (from `Flutter`)
- flutter_flexible_toast (from `.symlinks/plugins/flutter_flexible_toast/ios`)
- flutter_plugin_android_lifecycle (from `.symlinks/plugins/flutter_plugin_android_lifecycle/ios`)
- hexcolor (from `.symlinks/plugins/hexcolor/ios`)
- imei_plugin (from `.symlinks/plugins/imei_plugin/ios`)
- local_auth (from `.symlinks/plugins/local_auth/ios`)
+ - maps_launcher (from `.symlinks/plugins/maps_launcher/ios`)
- OpenTok
+ - path_provider_linux (from `.symlinks/plugins/path_provider_linux/ios`)
+ - path_provider_windows (from `.symlinks/plugins/path_provider_windows/ios`)
- permission_handler (from `.symlinks/plugins/permission_handler/ios`)
+ - screen (from `.symlinks/plugins/screen/ios`)
- shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
+ - shared_preferences_linux (from `.symlinks/plugins/shared_preferences_linux/ios`)
- shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`)
- shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`)
+ - shared_preferences_windows (from `.symlinks/plugins/shared_preferences_windows/ios`)
- speech_to_text (from `.symlinks/plugins/speech_to_text/ios`)
- url_launcher (from `.symlinks/plugins/url_launcher/ios`)
+ - url_launcher_linux (from `.symlinks/plugins/url_launcher_linux/ios`)
- url_launcher_macos (from `.symlinks/plugins/url_launcher_macos/ios`)
- url_launcher_web (from `.symlinks/plugins/url_launcher_web/ios`)
+ - url_launcher_windows (from `.symlinks/plugins/url_launcher_windows/ios`)
+ - video_player (from `.symlinks/plugins/video_player/ios`)
+ - video_player_web (from `.symlinks/plugins/video_player_web/ios`)
+ - wakelock (from `.symlinks/plugins/wakelock/ios`)
+ - webview_flutter (from `.symlinks/plugins/webview_flutter/ios`)
SPEC REPOS:
trunk:
- Alamofire
+ - Firebase
+ - FirebaseCore
+ - FirebaseCoreDiagnostics
+ - FirebaseInstallations
+ - FirebaseInstanceID
+ - FirebaseMessaging
+ - GoogleDataTransport
+ - GoogleUtilities
- MTBBarcodeScanner
+ - nanopb
- OpenTok
+ - PromisesObjC
+ - Protobuf
- Reachability
- SwiftProtobuf
- Try
@@ -81,10 +202,18 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/barcode_scan/ios"
connectivity:
:path: ".symlinks/plugins/connectivity/ios"
+ connectivity_for_web:
+ :path: ".symlinks/plugins/connectivity_for_web/ios"
connectivity_macos:
:path: ".symlinks/plugins/connectivity_macos/ios"
device_info:
:path: ".symlinks/plugins/device_info/ios"
+ firebase_core:
+ :path: ".symlinks/plugins/firebase_core/ios"
+ firebase_core_web:
+ :path: ".symlinks/plugins/firebase_core_web/ios"
+ firebase_messaging:
+ :path: ".symlinks/plugins/firebase_messaging/ios"
Flutter:
:path: Flutter
flutter_flexible_toast:
@@ -97,49 +226,100 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/imei_plugin/ios"
local_auth:
:path: ".symlinks/plugins/local_auth/ios"
+ maps_launcher:
+ :path: ".symlinks/plugins/maps_launcher/ios"
+ path_provider_linux:
+ :path: ".symlinks/plugins/path_provider_linux/ios"
+ path_provider_windows:
+ :path: ".symlinks/plugins/path_provider_windows/ios"
permission_handler:
:path: ".symlinks/plugins/permission_handler/ios"
+ screen:
+ :path: ".symlinks/plugins/screen/ios"
shared_preferences:
:path: ".symlinks/plugins/shared_preferences/ios"
+ shared_preferences_linux:
+ :path: ".symlinks/plugins/shared_preferences_linux/ios"
shared_preferences_macos:
:path: ".symlinks/plugins/shared_preferences_macos/ios"
shared_preferences_web:
:path: ".symlinks/plugins/shared_preferences_web/ios"
+ shared_preferences_windows:
+ :path: ".symlinks/plugins/shared_preferences_windows/ios"
speech_to_text:
:path: ".symlinks/plugins/speech_to_text/ios"
url_launcher:
:path: ".symlinks/plugins/url_launcher/ios"
+ url_launcher_linux:
+ :path: ".symlinks/plugins/url_launcher_linux/ios"
url_launcher_macos:
:path: ".symlinks/plugins/url_launcher_macos/ios"
url_launcher_web:
:path: ".symlinks/plugins/url_launcher_web/ios"
+ url_launcher_windows:
+ :path: ".symlinks/plugins/url_launcher_windows/ios"
+ video_player:
+ :path: ".symlinks/plugins/video_player/ios"
+ video_player_web:
+ :path: ".symlinks/plugins/video_player_web/ios"
+ wakelock:
+ :path: ".symlinks/plugins/wakelock/ios"
+ webview_flutter:
+ :path: ".symlinks/plugins/webview_flutter/ios"
SPEC CHECKSUMS:
Alamofire: 85e8a02c69d6020a0d734f6054870d7ecb75cf18
barcode_scan: a5c27959edfafaa0c771905bad0b29d6d39e4479
- connectivity: 6e94255659cc86dcbef1d452ad3e0491bb1b3e75
+ connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467
+ connectivity_for_web: 2b8584556930d4bd490d82b836bcf45067ce345b
connectivity_macos: e2e9731b6b22dda39eb1b128f6969d574460e191
device_info: d7d233b645a32c40dfdc212de5cf646ca482f175
+ Firebase: 8db6f2d1b2c5e2984efba4949a145875a8f65fe5
+ firebase_core: 5d6a02f3d85acd5f8321c2d6d62877626a670659
+ firebase_core_web: d501d8b946b60c8af265428ce483b0fff5ad52d1
+ firebase_messaging: 0aea2cd5885b65e19ede58ee3507f485c992cc75
+ FirebaseCore: d889d9e12535b7f36ac8bfbf1713a0836a3012cd
+ FirebaseCoreDiagnostics: 770ac5958e1372ce67959ae4b4f31d8e127c3ac1
+ FirebaseInstallations: 466c7b4d1f58fe16707693091da253726a731ed2
+ FirebaseInstanceID: bd3ffc24367f901a43c063b36c640b345a4a5dd1
+ FirebaseMessaging: 5eca4ef173de76253352511aafef774caa1cba2a
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
flutter_flexible_toast: 0547e740cae0c33bb7c51bcd931233f4584e1143
flutter_plugin_android_lifecycle: dc0b544e129eebb77a6bfb1239d4d1c673a60a35
+ GoogleDataTransport: f56af7caa4ed338dc8e138a5d7c5973e66440833
+ GoogleUtilities: 7f2f5a07f888cdb145101d6042bc4422f57e70b3
hexcolor: fdfb9c4258ad96e949c2dbcdf790a62194b8aa89
imei_plugin: cb1af7c223ac2d82dcd1457a7137d93d65d2a3cd
local_auth: 25938960984c3a7f6e3253e3f8d962fdd16852bd
+ maps_launcher: eae38ee13a9c3f210fa04e04bb4c073fa4c6ed92
MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb
+ nanopb: 59317e09cf1f1a0af72f12af412d54edf52603fc
OpenTok: fde03ecc5ea31fe0a453242847c4ee1f47e1d735
- permission_handler: 6226fcb78b97c7c7458a95c7346a11d5184fec12
+ path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4
+ path_provider_windows: a2b81600c677ac1959367280991971cb9a1edb3b
+ permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
+ PromisesObjC: 8c196f5a328c2cba3e74624585467a557dcb482f
+ Protobuf: 3dac39b34a08151c6d949560efe3f86134a3f748
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
+ screen: abd91ca7bf3426e1cc3646d27e9b2358d6bf07b0
shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
+ shared_preferences_linux: afefbfe8d921e207f01ede8b60373d9e3b566b78
shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087
shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9
+ shared_preferences_windows: 36b76d6f54e76ead957e60b49e2f124b4cd3e6ae
speech_to_text: b43a7d99aef037bd758ed8e45d79bbac035d2dfe
SwiftProtobuf: ecbec1be9036d15655f6b3443a1c4ea693c97932
Try: 5ef669ae832617b3cee58cb2c6f99fb767a4ff96
url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
+ url_launcher_linux: ac237cb7a8058736e4aae38bdbcc748a4b394cc0
url_launcher_macos: fd7894421cd39320dce5f292fc99ea9270b2a313
url_launcher_web: e5527357f037c87560776e36436bf2b0288b965c
+ url_launcher_windows: 683d7c283894db8d1914d3ab2223b20cc1ad95d5
+ video_player: 9cc823b1d9da7e8427ee591e8438bfbcde500e6e
+ video_player_web: da8cadb8274ed4f8dbee8d7171b420dedd437ce7
+ wakelock: 0d4a70faf8950410735e3f61fb15d517c8a6efc4
+ webview_flutter: d2b4d6c66968ad042ad94cbb791f5b72b4678a96
PODFILE CHECKSUM: 649616dc336b3659ac6b2b25159d8e488e042b69
-COCOAPODS: 1.9.3
+COCOAPODS: 1.10.1
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index dcd750d8..f35ae084 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 29211E4225C172B700DD740D /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 29211E4125C172B700DD740D /* GoogleService-Info.plist */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
@@ -34,6 +35,8 @@
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 29211CD725C165D600DD740D /* RunnerRelease.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RunnerRelease.entitlements; sourceTree = ""; };
+ 29211E4125C172B700DD740D /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
@@ -108,6 +111,8 @@
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
children = (
+ 29211E4125C172B700DD740D /* GoogleService-Info.plist */,
+ 29211CD725C165D600DD740D /* RunnerRelease.entitlements */,
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
@@ -204,6 +209,7 @@
files = (
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 29211E4225C172B700DD740D /* GoogleService-Info.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
@@ -354,7 +360,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
@@ -437,7 +443,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
@@ -486,7 +492,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
@@ -530,6 +536,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/RunnerRelease.entitlements;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 3A359E86ZF;
ENABLE_BITCODE = NO;
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
index 4512a3b1..b97c7000 100644
--- a/ios/Runner/AppDelegate.swift
+++ b/ios/Runner/AppDelegate.swift
@@ -1,7 +1,6 @@
import UIKit
import Flutter
import OpenTok
-
// Created by Mohammad Aljammal & Elham Rababah on 24/06/20.
// Copyright © 2020 Cloud. All rights reserved.
@@ -23,7 +22,6 @@ import OpenTok
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
-
let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
let videoCallChannel = FlutterMethodChannel(name: "Dr.cloudSolution/videoCall",
binaryMessenger: controller.binaryMessenger)
diff --git a/ios/Runner/GoogleService-Info.plist b/ios/Runner/GoogleService-Info.plist
new file mode 100644
index 00000000..81c3af44
--- /dev/null
+++ b/ios/Runner/GoogleService-Info.plist
@@ -0,0 +1,34 @@
+
+
+
+
+ CLIENT_ID
+ 1097451043303-ifgtu6ub88dlk5dmv5tm531a5s47gbre.apps.googleusercontent.com
+ REVERSED_CLIENT_ID
+ com.googleusercontent.apps.1097451043303-ifgtu6ub88dlk5dmv5tm531a5s47gbre
+ API_KEY
+ AIzaSyAKPayaNaI-2RN6S4PH5W9wYExmEgoBUvo
+ GCM_SENDER_ID
+ 1097451043303
+ PLIST_VERSION
+ 1
+ BUNDLE_ID
+ com.hmg.doctorApp
+ PROJECT_ID
+ doctor-app-35ddc
+ STORAGE_BUCKET
+ doctor-app-35ddc.appspot.com
+ IS_ADS_ENABLED
+
+ IS_ANALYTICS_ENABLED
+
+ IS_APPINVITE_ENABLED
+
+ IS_GCM_ENABLED
+
+ IS_SIGNIN_ENABLED
+
+ GOOGLE_APP_ID
+ 1:1097451043303:ios:0e9b87e77dcf397d866542
+
+
\ No newline at end of file
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index d0d77b5e..171125d9 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -25,7 +25,9 @@
NSCameraUsageDescription
Camera permission is required for barcode scanning.
NSFaceIDUsageDescription
- Why is my app authenticating using face id?
+ We are using it for authentication
+
+
UILaunchStoryboardName
LaunchScreen
UIMainStoryboardFile
@@ -47,10 +49,13 @@
NSCameraUsageDescription
- ${PRODUCT_NAME} always camera use
-
+ App requires access to camera incase you are interested to attach images to your Qr Code.
+ NSPhotoLibraryUsageDescription
+ Need to upload image
+
NSMicrophoneUsageDescription
${PRODUCT_NAME} always Microphone use
-
+ FirebaseAppDelegateProxyEnabled
+
diff --git a/ios/Runner/RunnerRelease.entitlements b/ios/Runner/RunnerRelease.entitlements
new file mode 100644
index 00000000..903def2a
--- /dev/null
+++ b/ios/Runner/RunnerRelease.entitlements
@@ -0,0 +1,8 @@
+
+
+
+
+ aps-environment
+ development
+
+
diff --git a/lib/client/base_app_client.dart b/lib/client/base_app_client.dart
index 454f4d04..77545340 100644
--- a/lib/client/base_app_client.dart
+++ b/lib/client/base_app_client.dart
@@ -3,11 +3,12 @@ import 'dart:convert';
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
import 'package:doctor_app_flutter/models/doctor/doctor_profile_model.dart';
-import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
+import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
import 'package:doctor_app_flutter/util/dr_app_shared_pref.dart';
import 'package:doctor_app_flutter/util/helpers.dart';
+import 'package:flutter/cupertino.dart';
import 'package:http/http.dart' as http;
-import 'package:provider/provider.dart';
+import 'dart:io' show Platform;
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
Helpers helpers = new Helpers();
@@ -30,7 +31,7 @@ Helpers helpers = new Helpers();
* */
class BaseAppClient {
//TODO change the post fun to nun static when you change all service
- post(
+ post(
String endPoint, {
Map body,
Function(dynamic response, int statusCode) onSuccess,
@@ -42,15 +43,24 @@ class BaseAppClient {
String token = await sharedPref.getString(TOKEN);
if (profile != null) {
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
-
- body['DoctorID'] = doctorProfile?.doctorID;
- body['EditedBy'] = doctorProfile?.doctorID;
- body['ProjectID'] = doctorProfile?.projectID;
+ if (body['DoctorID'] == null)
+ body['DoctorID'] = doctorProfile?.doctorID;
+ if (body['DoctorID'] == "") body['DoctorID'] = null;
+ if (body['EditedBy'] == null)
+ body['EditedBy'] = doctorProfile?.doctorID;
+ if (body['ProjectID'] == null) {
+ body['ProjectID'] = doctorProfile?.projectID;
+ }
if (body['ClinicID'] == null)
body['ClinicID'] = doctorProfile?.clinicID;
}
+ if (body['DoctorID'] == '') {
+ body['DoctorID'] = null;
+ }
+ if (body['EditedBy'] == '') {
+ body.remove("EditedBy");
+ }
body['TokenID'] = token ?? '';
-
String lang = await sharedPref.getString(APP_Language);
if (lang != null && lang == 'ar')
body['LanguageID'] = 1;
@@ -63,7 +73,16 @@ class BaseAppClient {
body['Channel'] = CHANNEL;
body['SessionID'] = SESSION_ID;
body['IsLoginForDoctorApp'] = IS_LOGIN_FOR_DOCTOR_APP;
- body['PatientOutSA'] = 0; // PATIENT_OUT_SA;
+ body['PatientOutSA'] = body['PatientOutSA'] ?? 0; // PATIENT_OUT_SA;
+ if (body['VidaAuthTokenID'] == null) {
+ body['VidaAuthTokenID'] =
+ await sharedPref.getString(VIDA_AUTH_TOKEN_ID);
+ }
+ if (body['VidaRefreshTokenID'] == null) {
+ body['VidaRefreshTokenID'] =
+ await sharedPref.getString(VIDA_REFRESH_TOKEN_ID);
+ }
+
print("URL : $url");
print("Body : ${json.encode(body)}");
@@ -75,19 +94,174 @@ class BaseAppClient {
'Accept': 'application/json'
});
final int statusCode = response.statusCode;
- if (statusCode < 200 || statusCode >= 400 || json == null) {
+ if (statusCode < 200 || statusCode >= 400) {
onFailure('Error While Fetching data', statusCode);
} else {
var parsed = json.decode(response.body.toString());
if (!parsed['IsAuthenticated']) {
- await helpers.logout();
-
- helpers.showErrorToast('Your session expired Please login agian');
+ if (body['OTP_SendType'] != null) {
+ onFailure(getError(parsed), statusCode);
+ } else {
+ await helpers.logout();
+ helpers.showErrorToast('Your session expired Please login agian');
+ }
} else if (parsed['MessageStatus'] == 1) {
+ if (!parsed['IsAuthenticated'])
+ onFailure(getError(parsed), statusCode);
+ else
+ onSuccess(parsed, statusCode);
+ } else {
+ onFailure(getError(parsed), statusCode);
+ }
+ }
+ } else {
+ onFailure('Please Check The Internet Connection', -1);
+ }
+ } catch (e) {
+ print(e);
+ onFailure(e.toString(), -1);
+ }
+ }
+
+ postPatient(String endPoint,
+ {Map body,
+ Function(dynamic response, int statusCode) onSuccess,
+ Function(String error, int statusCode) onFailure,
+ @required PatiantInformtion patient,
+ bool isExternal = false}) async {
+ String url = BASE_URL + endPoint;
+
+ try {
+ Map headers = {
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+ };
+
+ String token = await sharedPref.getString(TOKEN);
+ var languageID =
+ await sharedPref.getStringWithDefaultValue(APP_Language, 'en');
+ if (body.containsKey('SetupID')) {
+ body['SetupID'] = body.containsKey('SetupID')
+ ? body['SetupID'] != null
+ ? body['SetupID']
+ : SETUP_ID
+ : SETUP_ID;
+ }
+
+ body['VersionID'] = VERSION_ID;
+ body['Channel'] = CHANNEL;
+ body['LanguageID'] = languageID == 'ar' ? 1 : 2;
+
+ body['IPAdress'] = IP_ADDRESS;
+ body['generalid'] = GENERAL_ID;
+ body['PatientOutSA'] = body.containsKey('PatientOutSA')
+ ? body['PatientOutSA'] != null
+ ? body['PatientOutSA']
+ : PATIENT_OUT_SA_PATIENT_REQ
+ : PATIENT_OUT_SA_PATIENT_REQ;
+
+ if (body.containsKey('isDentalAllowedBackend')) {
+ body['isDentalAllowedBackend'] =
+ body.containsKey('isDentalAllowedBackend')
+ ? body['isDentalAllowedBackend'] != null
+ ? body['isDentalAllowedBackend']
+ : IS_DENTAL_ALLOWED_BACKEND
+ : IS_DENTAL_ALLOWED_BACKEND;
+ }
+
+ body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2;
+
+ body['PatientType'] = body.containsKey('PatientType')
+ ? body['PatientType'] != null
+ ? body['PatientType']
+ : patient.patientType != null
+ ? patient.patientType
+ : PATIENT_TYPE
+ : PATIENT_TYPE;
+
+ body['PatientTypeID'] = body.containsKey('PatientTypeID')
+ ? body['PatientTypeID'] != null
+ ? body['PatientTypeID']
+ : patient.patientType != null
+ ? patient.patientType
+ : PATIENT_TYPE_ID
+ : PATIENT_TYPE_ID;
+
+ body['TokenID'] = token;
+ body['PatientID'] = body['PatientID'] != null
+ ? body['PatientID']
+ : patient.patientId ?? patient.patientMRN;
+
+ body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it
+ body['SessionID'] = SESSION_ID; //getSe
+
+ print("URL : $url");
+ print("Body : ${json.encode(body)}");
+
+ if (await Helpers.checkConnection()) {
+ final response = await http.post(url.trim(),
+ body: json.encode(body), headers: headers);
+ final int statusCode = response.statusCode;
+ print("statusCode :$statusCode");
+ if (statusCode < 200 || statusCode >= 400 || json == null) {
+ onFailure('Error While Fetching data', statusCode);
+ } else {
+ // var parsed = json.decode(response.body.toString());
+ var parsed = json.decode(utf8.decode(response.bodyBytes));
+ if (parsed['Response_Message'] != null) {
onSuccess(parsed, statusCode);
} else {
- onFailure(parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'],
- statusCode);
+ if (parsed['IsAuthenticated'] == null) {
+ if (parsed['isSMSSent'] == true) {
+ onSuccess(parsed, statusCode);
+ } else if (parsed['MessageStatus'] == 1) {
+ onSuccess(parsed, statusCode);
+ } else if (parsed['Result'] == 'OK') {
+ onSuccess(parsed, statusCode);
+ } else {
+ if (parsed != null) {
+ onSuccess(parsed, statusCode);
+ } else {
+ onFailure(getError(parsed), statusCode);
+ }
+ }
+ } else if (parsed['MessageStatus'] == 1 ||
+ parsed['SMSLoginRequired'] == true) {
+ onSuccess(parsed, statusCode);
+ } else if (parsed['MessageStatus'] == 2 &&
+ parsed['IsAuthenticated']) {
+ if (parsed['SameClinicApptList'] != null) {
+ onSuccess(parsed, statusCode);
+ } else {
+ if (parsed['message'] == null &&
+ parsed['ErrorEndUserMessage'] == null) {
+ if (parsed['ErrorSearchMsg'] == null) {
+ onFailure("Server Error found with no available message",
+ statusCode);
+ } else {
+ onFailure(parsed['ErrorSearchMsg'], statusCode);
+ }
+ } else {
+ onFailure(
+ parsed['message'] ??
+ parsed['ErrorEndUserMessage'] ??
+ parsed['ErrorMessage'],
+ statusCode);
+ }
+ }
+ } else {
+ if (parsed['SameClinicApptList'] != null) {
+ onSuccess(parsed, statusCode);
+ } else {
+ if (parsed['message'] != null) {
+ onFailure(parsed['message'] ?? parsed['message'], statusCode);
+ } else {
+ onFailure(
+ parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'],
+ statusCode);
+ }
+ }
+ }
}
}
} else {
@@ -98,4 +272,27 @@ class BaseAppClient {
onFailure(e.toString(), -1);
}
}
+
+ String getError(parsed) {
+ //TODO change this fun
+ String error = parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'];
+ if (parsed["ValidationErrors"] != null) {
+ error = parsed["ValidationErrors"]["StatusMessage"].toString() + "\n";
+
+ if (parsed["ValidationErrors"]["ValidationErrors"] != null &&
+ parsed["ValidationErrors"]["ValidationErrors"].length != 0) {
+ for (var i = 0;
+ i < parsed["ValidationErrors"]["ValidationErrors"].length;
+ i++) {
+ error = error +
+ parsed["ValidationErrors"]["ValidationErrors"][i]["Messages"][0] +
+ "\n";
+ }
+ }
+ }
+ if (error == null || error == "null" || error == "null\n") {
+ return "This server not work probably in this time";
+ }
+ return error;
+ }
}
diff --git a/lib/config/config.dart b/lib/config/config.dart
index 8af0a4a5..06768cbc 100644
--- a/lib/config/config.dart
+++ b/lib/config/config.dart
@@ -1,9 +1,11 @@
+import 'package:flutter/material.dart';
+
const MAX_SMALL_SCREEN = 660;
const ONLY_NUMBERS = "[0-9]";
const ONLY_LETTERS = "[a-zA-Z &'\"]";
const ONLY_DATE = "[0-9/]";
-//const BASE_URL = 'https://hmgwebservices.com/';
-const BASE_URL = 'https://uat.hmgwebservices.com/';
+const BASE_URL = 'https://hmgwebservices.com/';
+// const BASE_URL = 'https://uat.hmgwebservices.com/';
const PHARMACY_ITEMS_URL = "Services/Lists.svc/REST/GetPharmcyItems_Region_enh";
const PHARMACY_LIST_URL = "Services/Patients.svc/REST/GetPharmcyList";
const PATIENT_PROGRESS_NOTE_URL =
@@ -22,10 +24,18 @@ const PATIENT_GET_LIST_REFERAL_URL =
"Services/Lists.svc/REST/GetList_STPReferralFrequency";
const PATIENT_GET_CLINIC_BY_PROJECT_URL =
"Services/DoctorApplication.svc/REST/GetClinicsByProjectID";
+const PROJECT_GET_INFO = "Services/DoctorApplication.svc/REST/GetProjectInfo";
+const GET_CLINICS = "Services/DoctorApplication.svc/REST/GetClinics";
+
+const GET_REFERRAL_FACILITIES =
+ 'Services/DoctorApplication.svc/REST/GetReferralFacilities';
+
+const GET_PROJECTS = 'Services/DoctorApplication.svc/REST/GetProjectInfo';
-const GET_PROJECTS = 'Services/Lists.svc/REST/GetProjectForDoctorAPP';
const GET_PATIENT_VITAL_SIGN =
'Services/Doctors.svc/REST/Doctor_GetPatientVitalSign';
+const GET_PATIENT_VITAL_SIGN_DATA =
+ 'Services/DoctorApplication.svc/REST/GetVitalSigns';
const GET_PATIENT_LAB_OREDERS =
'Services/DoctorApplication.svc/REST/GetPatientLabOreders';
const GET_PRESCRIPTION = 'Services/Patients.svc/REST/GetPrescriptionApptList';
@@ -43,6 +53,9 @@ const GET_PRESCRIPTION_REPORT =
const GT_MY_PATIENT_QUESTION =
'Services/DoctorApplication.svc/REST/GtMyPatientsQuestions';
+const PRM_SEARCH_PATIENT =
+ 'Services/Patients.svc/REST/GetPatientInformation_PRM';
+
const GET_PATIENT = 'Services/DoctorApplication.svc/REST/';
const GET_PRESCRIPTION_REPORT_FOR_IN_PATIENT =
@@ -57,6 +70,19 @@ const ADD_REFERRED_DOCTOR_REMARKS =
const GET_MY_REFERRED_PATIENT =
'Services/DoctorApplication.svc/REST/GtMyReferredPatient';
+const GET_PENDING_REFERRAL_PATIENT =
+ 'Services/DoctorApplication.svc/REST/PendingReferrals';
+
+const CREATE_REFERRAL_PATIENT =
+ 'Services/DoctorApplication.svc/REST/CreateReferral';
+
+const RESPONSE_PENDING_REFERRAL_PATIENT =
+ 'Services/DoctorApplication.svc/REST/RespondReferral';
+
+const GET_PATIENT_REFERRAL = 'Services/DoctorApplication.svc/REST/GetRefferal';
+
+const POST_UCAF = 'Services/DoctorApplication.svc/REST/PostUCAF';
+
const GET_DOCTOR_WORKING_HOURS_TABLE =
'Services/Doctors.svc/REST/GetDoctorWorkingHoursTable';
@@ -64,19 +90,162 @@ const GET_PATIENT_LAB_RESULTS =
'Services/DoctorApplication.svc/REST/GetPatientLabResults';
const LOGIN_URL = 'Services/Sentry.svc/REST/MemberLogIN_New';
const INSERT_DEVICE_IMEI =
- 'Services/Sentry.svc/REST/DoctorApplication_INSERTDeviceIMEI';
+ 'Services/DoctorApplication.svc/REST/DoctorApp_InsertOrUpdateDeviceDetails';
+// 'Services/Sentry.svc/REST/DoctorApplication_INSERTDeviceIMEI';
+// const SELECT_DEVICE_IMEI =
+// 'Services/Sentry.svc/REST/DoctorApplication_SELECTDeviceIMEIbyIMEI';
+
const SELECT_DEVICE_IMEI =
- 'Services/Sentry.svc/REST/DoctorApplication_SELECTDeviceIMEIbyIMEI';
+ 'Services/DoctorApplication.svc/REST/DoctorApp_GetDeviceDetailsByIMEI';
const SEND_ACTIVATION_CODE_BY_OTP_NOTIFICATION_TYPE =
'Services/Sentry.svc/REST/DoctorApplication_SendActivationCodebyOTPNotificationType';
+const SEND_ACTIVATION_CODE_FOR_DOCTOR_APP =
+ 'Services/DoctorApplication.svc/REST/SendActivationCodeForDoctorApp';
+
+const SEND_ACTIVATION_CODE_FOR_VERIFICATION_SCREEN =
+ 'Services/DoctorApplication.svc/REST/SendVerificationCode';
const MEMBER_CHECK_ACTIVATION_CODE_NEW =
'Services/Sentry.svc/REST/MemberCheckActivationCode_New';
+
+const CHECK_ACTIVATION_CODE_FOR_DOCTOR_APP =
+ 'Services/DoctorApplication.svc/REST/CheckActivationCodeForDoctorApp';
+
const GET_DOC_PROFILES = 'Services/Doctors.svc/REST/GetDocProfiles';
const TRANSFERT_TO_ADMIN = 'LiveCareApi/DoctorApp/TransferToAdmin';
const END_CALL = 'LiveCareApi/DoctorApp/EndCall';
const END_CALL_WITH_CHARGE = 'LiveCareApi/DoctorApp/CompleteCallWithCharge';
+const GET_DASHBOARD =
+ 'Services/DoctorApplication.svc/REST/GetDoctorDashboardKPI';
+const GET_SICKLEAVE_STATISTIC =
+ 'Services/DoctorApplication.svc/REST/PreSickLeaveStatistics';
+const ARRIVED_PATIENT_URL =
+ 'Services/DoctorApplication.svc/REST/PatientArrivalList';
+const ADD_SICK_LEAVE = 'Services/DoctorApplication.svc/REST/PostSickLeave';
+const GET_SICK_LEAVE = 'Services/DoctorApplication.svc/REST/GetAllSickLeaves';
+const EXTEND_SICK_LEAVE = 'Services/DoctorApplication.svc/REST/ExtendSickLeave';
+
+const GET_OFFTIME = 'Services/DoctorApplication.svc/REST/GetMasterLookUpList';
+const GET_COVERING_DOCTORS =
+ 'Services/DoctorApplication.svc/REST/GetCoveringDoctor';
+const ADD_RESCHDEULE = 'Services/DoctorApplication.svc/REST/PostRequisition';
+const UPDATE_RESCHDEULE =
+ 'Services/DoctorApplication.svc/REST/PatchRequisition';
+const GET_RESCHEDULE_LEAVE =
+ 'Services/DoctorApplication.svc/REST/GetRequisition';
+const GET_PRESCRIPTION_LIST =
+ 'Services/DoctorApplication.svc/REST/GetPrescription';
+
+const POST_PRESCRIPTION_LIST =
+ 'Services/DoctorApplication.svc/REST/PostPrescription';
+const GET_PROCEDURE_LIST =
+ 'Services/DoctorApplication.svc/REST/GetOrderedProcedure';
+const POST_PROCEDURE_LIST = 'Services/DoctorApplication.svc/REST/PostProcedure';
+
+const GET_PATIENT_ARRIVAL_LIST =
+ 'Services/DoctorApplication.svc/REST/PatientArrivalList';
+
+///Lab Order
+const GET_Patient_LAB_ORDERS = 'Services/Patients.svc/REST/GetPatientLabOrders';
+const GET_Patient_LAB_SPECIAL_RESULT =
+ 'Services/Patients.svc/REST/GetPatientLabSpecialResults';
+const SEND_LAB_RESULT_EMAIL =
+ 'Services/Notifications.svc/REST/SendLabReportEmail';
+const GET_Patient_LAB_RESULT =
+ 'Services/Patients.svc/REST/GetPatientLabResults';
+const GET_Patient_LAB_ORDERS_RESULT =
+ 'Services/Patients.svc/REST/GetPatientLabOrdersResults';
+
+// SOAP
+
+const GET_ALLERGIES = 'Services/DoctorApplication.svc/REST/GetAllergies';
+const GET_MASTER_LOOKUP_LIST =
+ 'Services/DoctorApplication.svc/REST/GetMasterLookUpList';
+
+const POST_EPISODE = 'Services/DoctorApplication.svc/REST/PostEpisode';
+
+const POST_ALLERGY = 'Services/DoctorApplication.svc/REST/PostAllergies';
+const POST_HISTORY = 'Services/DoctorApplication.svc/REST/PostHistory';
+const POST_CHIEF_COMPLAINT =
+ 'Services/DoctorApplication.svc/REST/PostChiefcomplaint';
+const POST_PHYSICAL_EXAM =
+ 'Services/DoctorApplication.svc/REST/PostPhysicalExam';
+const POST_PROGRESS_NOTE =
+ '/Services/DoctorApplication.svc/REST/PostProgressNote';
+const POST_ASSESSMENT = 'Services/DoctorApplication.svc/REST/PostAssessment';
+
+const PATCH_ALLERGY = 'Services/DoctorApplication.svc/REST/PatchAllergies';
+const PATCH_HISTORY = 'Services/DoctorApplication.svc/REST/PatchHistory';
+const PATCH_CHIEF_COMPLAINT =
+ 'Services/DoctorApplication.svc/REST/PatchChiefcomplaint';
+
+const PATCH_PHYSICAL_EXAM =
+ 'Services/DoctorApplication.svc/REST/PatchPhysicalExam';
+const PATCH_PROGRESS_NOTE =
+ 'Services/DoctorApplication.svc/REST/PatchProgressNote';
+const PATCH_ASSESSMENT = 'Services/DoctorApplication.svc/REST/PatchAssessment';
+
+const GET_ALLERGY = 'Services/DoctorApplication.svc/REST/GetAllergies';
+const GET_HISTORY = 'Services/DoctorApplication.svc/REST/GetHistory';
+const GET_CHIEF_COMPLAINT =
+ 'Services/DoctorApplication.svc/REST/GetChiefcomplaint';
+const GET_PHYSICAL_EXAM = 'Services/DoctorApplication.svc/REST/GetPhysicalExam';
+const GET_PROGRESS_NOTE = 'Services/DoctorApplication.svc/REST/GetProgressNote';
+const GET_ASSESSMENT = 'Services/DoctorApplication.svc/REST/GetAssessment';
+const GET_ORDER_PROCEDURE =
+ 'Services/DoctorApplication.svc/REST/GetOrderedProcedure';
+
+const GET_LIST_CATEGORISE =
+ 'Services/DoctorApplication.svc/REST/GetProcedureCategories';
+
+const GET_CATEGORISE_PROCEDURE =
+ 'Services/DoctorApplication.svc/REST/GetProcedure';
+const UPDATE_PROCEDURE = 'Services/DoctorApplication.svc/REST/PatchProcedure';
+const UPDATE_PRESCRIPTION =
+ 'Services/DoctorApplication.svc/REST/PatchPrescription';
+const SEARCH_DRUG = 'Services/DoctorApplication.svc/REST/GetMedicationList';
+const DRUG_TO_DRUG =
+ 'Services/DoctorApplication.svc/REST/DrugToDrugInteraction';
+const GET_MEDICAL_FILE = 'Services/DoctorApplication.svc/REST/GetMedicalFile';
+const GET_FLOORS = 'Services/DoctorApplication.svc/REST/GetFloors';
+const GET_WARDS = 'Services/DoctorApplication.svc/REST/GetWards';
+const GET_ROOM_CATEGORIES =
+ 'Services/DoctorApplication.svc/REST/GetRoomCategories';
+const GET_DIAGNOSIS_TYPES =
+ 'Services/DoctorApplication.svc/REST/DiagnosisTypes';
+const GET_DIET_TYPES = 'Services/DoctorApplication.svc/REST/DietTypes';
+const GET_ICD_CODES = 'Services/DoctorApplication.svc/REST/GetICDCodes';
+const POST_ADMISSION_REQUEST =
+ 'Services/DoctorApplication.svc/REST/PostAdmissionRequest';
+const GET_ITEM_BY_MEDICINE =
+ 'Services/DoctorApplication.svc/REST/GetItemByMedicineCode';
+
+const GET_PROCEDURE_VALIDATION =
+ 'Services/DoctorApplication.svc/REST/ValidateProcedures';
+const GET_BOX_QUANTITY =
+ 'Services/DoctorApplication.svc/REST/CalculateBoxQuantity';
+
+///GET ECG
+const GET_ECG = "Services/Patients.svc/REST/HIS_GetPatientMuseResults";
+
+const GET_PAtIENTS_INSURANCE_APPROVALS =
+ "Services/Patients.svc/REST/GetApprovalStatus";
+
+const GET_RAD_IMAGE_URL = 'Services/Patients.svc/Rest/GetRadImageURL';
+const GET_PATIENT_ORDERS = 'Services/Patients.svc/REST/GetPatientRadOrders';
+
+///Prescriptions
+const PRESCRIPTIONS = 'Services/Patients.svc/REST/GetPrescriptionApptList';
+const GET_PRESCRIPTIONS_ALL_ORDERS =
+ 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
+const GET_PRESCRIPTION_REPORT_NEW =
+ 'Services/Patients.svc/REST/INP_GetPrescriptionReport';
+const SEND_PRESCRIPTION_EMAIL =
+ 'Services/Notifications.svc/REST/SendPrescriptionEmail';
+const GET_PRESCRIPTION_REPORT_ENH =
+ 'Services/Patients.svc/REST/GetPrescriptionReport_enh';
+const GET_PHARMACY_LIST = "Services/Patients.svc/REST/GetPharmcyList";
var selectedPatientType = 1;
@@ -88,7 +257,8 @@ var SERVICES_PATIANT = [
"GtMyReferredPatient",
"GtMyDischargeReferralPatient",
"GtMyTomorrowPatient",
- "GtMyReferralPatient"
+ "GtMyReferralPatient",
+ "PatientArrivalList"
];
var SERVICES_PATIANT2 = [
"List_MyOutPatient",
@@ -97,7 +267,8 @@ var SERVICES_PATIANT2 = [
"List_MyReferredPatient",
"List_MyDischargeReferralPatient",
"List_MyTomorrowPatient",
- "List_MyReferralPatient"
+ "List_MyReferralPatient",
+ "patientArrivalList"
];
var SERVICES_PATIANT_HEADER = [
"Search Out-Patient",
@@ -106,7 +277,8 @@ var SERVICES_PATIANT_HEADER = [
"Referred",
"Referral Discharge",
"Tomorrow",
- "Referral"
+ "Referral",
+ "Arrival Patient"
];
var SERVICES_PATIANT_HEADER_AR = [
"المريض الخارجي",
@@ -115,11 +287,14 @@ var SERVICES_PATIANT_HEADER_AR = [
"المريض المحول الي",
"المريض المحال المعافى",
"مريض الغد",
- "المريض المحول مني"
+ "المريض المحول مني",
+ "المريض الواصل"
];
//******************
// Colors ////// by : ibrahim
+
+var DEVICE_TOKEN = "";
const PRIMARY_COLOR = 0xff515B5D;
const TRANSACTION_NO = 0;
@@ -131,10 +306,17 @@ const CHANNEL = 9;
const SESSION_ID = 'BlUSkYymTt';
const IS_LOGIN_FOR_DOCTOR_APP = true;
const PATIENT_OUT_SA = false;
+const IS_DENTAL_ALLOWED_BACKEND = false;
+const PATIENT_OUT_SA_PATIENT_REQ = 0;
+const SETUP_ID = '91877';
+const GENERAL_ID = 'Cs2020@2016\$2958';
+const PATIENT_TYPE = 1;
+const PATIENT_TYPE_ID = 1;
/// Timer Info
const TIMER_MIN = 10;
class AppGlobal {
static var CONTEX;
+ static Color appPrimaryColor = Color(0xFFB9382C);
}
diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart
index 0dee26b9..9fa9c35c 100644
--- a/lib/config/localized_values.dart
+++ b/lib/config/localized_values.dart
@@ -7,7 +7,7 @@ const Map> localizedValues = {
'theDoctor': {'en': 'Doctor', 'ar': 'الطبيب'},
'reply': {'en': 'Reply', 'ar': 'رد'},
'time': {'en': 'Time', 'ar': 'الوقت'},
- 'fileNo': {'en': 'File No:', 'ar': 'رقم الملف:'},
+ 'fileNo': {'en': 'File No : ', 'ar': 'رقم الملف :'},
'mobileNo': {'en': 'Mobile No', 'ar': 'رقم الموبايل'},
'messagesScreenToolbarTitle': {'en': 'Messages', 'ar': 'الرسائل'},
'mySchedule': {'en': 'Schedule', 'ar': 'جدولي'},
@@ -29,7 +29,7 @@ const Map> localizedValues = {
'en': 'Answer/Suggestions',
'ar': 'ملاحضات وتفاصيل العيادة'
},
- 'outPatients': {'en': 'Out-Patients', 'ar': 'ةالمريض الخارجي'},
+ 'outPatients': {'en': 'Out Patient', 'ar': 'المريض الخارجي'},
'searchPatient': {'en': 'Search Patient', 'ar': 'البحث عن مريض'},
'searchAbout': {'en': 'Search', 'ar': 'البحث عن'},
'patient': {'en': 'Patient', 'ar': ' مريض'},
@@ -37,24 +37,27 @@ const Map> localizedValues = {
'lab': {'en': 'Lab', 'ar': 'المختبر'},
'result': {'en': 'Result', 'ar': 'نتيجة'},
'todayStatistics': {'en': 'Today Statistics', 'ar': 'إحصائيات اليوم'},
- 'arrived': {'en': 'Arrived', 'ar': 'وصل'},
+ 'arrived': {'en': 'Arrival Patients', 'ar': ' المرضى الواصلين'},
'er': {'en': 'ER', 'ar': 'حالة طوارئ'},
'walkIn': {'en': 'Walk-in', 'ar': 'ادخل'},
'notArrived': {'en': 'Not Arrived', 'ar': 'لم يصل'},
'radiology': {'en': 'Radiology', 'ar': 'الأشعة'},
'service': {'en': 'Service', 'ar': 'خدمة'},
'referral': {'en': 'Referral', 'ar': 'االإحالة'},
- 'inPatient': {'en': 'In-Patient', 'ar': 'االمريض الداخلي'},
+ 'inPatient': {'en': 'In Patient', 'ar': 'المريض الداخلي'},
'operations': {'en': 'Operations', 'ar': 'عمليات'},
'patientServices': {'en': 'Patient Services', 'ar': 'خدمات المرضى'},
'searchMedicine': {'en': 'Search Medicine', 'ar': 'بحث عن الدواء'},
'myReferralPatient': {'en': 'My Referral Patient', 'ar': 'مرضى الاحالة'},
+ 'referPatient': {'en': 'Referral Patient', 'ar': 'إحالة مريض'},
'myReferral': {'en': 'My Referral', 'ar': 'إحالة'},
'myReferredPatient': {'en': 'My Referred Patient', 'ar': 'مرضاي المحالين'},
+ 'referredPatient': {'en': 'Referred Patient', 'ar': 'المرضى المحالين'},
+ 'referredOn': {'en': 'referred On : ', 'ar': ' : تمت الإحالة في'},
'firstName': {'en': 'First Name', 'ar': 'الاسم الاول'},
'middleName': {'en': 'Middle Name', 'ar': 'اسم الاب'},
'lastName': {'en': 'Last Name', 'ar': 'اسم العائلة'},
- 'phoneNumber': {'en': 'Phone Number ', 'ar': 'رقم الجوال'},
+ 'phoneNumber': {'en': "Patient's Phone Number ", 'ar': 'رقم الجوال'},
'patientID': {'en': 'Patient ID', 'ar': 'رقم المريض'},
'patientFile': {'en': 'Patient File', 'ar': 'ملف المريض'},
'familyMedicine': {'en': 'Family Medicine Clinic', 'ar': 'عيادة طب الأسرة'},
@@ -81,7 +84,7 @@ const Map> localizedValues = {
'speciality': {'en': 'Speciality', 'ar': 'التخصص'},
'errorMessage': {'en': 'Something went wrong', 'ar': 'حدث خطأ ما'},
'patientProfile': {'en': 'Patient Profile', 'ar': 'ملف المريض'},
- 'vitalSign': {'en': 'Vital Sign', 'ar': 'المؤشرات الحيوية'},
+ 'vitalSign': {'en': 'Vital Signs', 'ar': 'المؤشرات الحيوية'},
'vital': {'en': 'Vital', 'ar': 'الحيوية'},
'signs': {'en': 'Signs', 'ar': 'المؤشرات'},
'labOrder': {'en': 'Lab Order', 'ar': 'نتائج التحاليل'},
@@ -121,10 +124,10 @@ const Map> localizedValues = {
'ar': 'ليس لديك اي ملاحظة تقدم '
},
'invoiceNo:': {'en': 'Invoice No :', 'ar': 'رقم الفاتورة'},
- 'generalResult': {'en': 'General Result :', 'ar': 'النتيجة العامة'},
+ 'generalResult': {'en': 'General Result ', 'ar': 'النتيجة العامة'},
'description': {'en': 'Description', 'ar': 'الوصف'},
'value': {'en': 'Value', 'ar': 'القيمة'},
- 'range': {'en': 'range', 'ar': 'النطاق'},
+ 'range': {'en': 'Range', 'ar': 'النطاق'},
'enterId': {'en': 'Enter ID', 'ar': 'الهوية'},
'pleaseEnterYourID': {
'en': 'Please enter your ID',
@@ -171,8 +174,8 @@ const Map> localizedValues = {
'ar': 'الرجاء ادخال الرمز'
},
'youDon\'tHaveAnyPatient': {
- 'en': 'You don\'t have any patient',
- 'ar': 'ليس لديك اي مرضى'
+ 'en': 'No data found for the selected search criteria',
+ 'ar': 'لا توجد بيانات لمعايير البحث المختارة'
},
'age': {'en': 'Age', 'ar': 'العمر'},
'nationality': {'en': 'Nationality', 'ar': 'الجنسية'},
@@ -201,6 +204,10 @@ const Map> localizedValues = {
'routine': {'en': 'Routine', 'ar': 'روتيني'},
'send': {'en': 'Send', 'ar': 'ارسال'},
'referralFrequency': {'en': 'Referral Frequency:', 'ar': 'تواتر الحالة:'},
+ 'selectReferralFrequency': {
+ 'en': 'Select Referral Frequency:',
+ 'ar': 'اختار تواتر الحالة:'
+ },
'clinicalDetailsAndRemarks': {
'en': 'Clinical Details and Remarks',
'ar': 'التفاصيل السرسرية والملاحظات'
@@ -210,7 +217,7 @@ const Map> localizedValues = {
'en': 'Please fill all fields..!',
'ar': 'الرجاء ملأ جميع الحقول..!'
},
- 'replay2': {'en': 'Replay', 'ar': 'رد الطبيب'},
+ 'replay2': {'en': 'Reply', 'ar': 'رد الطبيب'},
'logout': {'en': 'Logout', 'ar': 'تسجيل خروج'},
'pharmaciesList': {'en': 'Pharmacies List', 'ar': 'قائمة الصيدليات'},
'price': {'en': 'Price', 'ar': 'السعر'},
@@ -229,6 +236,7 @@ const Map> localizedValues = {
'beingBad': {'en': 'being bad', 'ar': 'سيء'},
'beingGreat': {'en': 'being great', 'ar': 'رائع'},
'cancel': {'en': 'CANCEL', 'ar': 'الغاء'},
+ 'ok': {'en': 'OK', 'ar': 'موافق'},
'done': {'en': 'DONE', 'ar': 'تأكيد'},
'resumecall': {'en': 'Resume call', 'ar': 'استئناف المكالمة'},
'endcallwithcharge': {'en': 'End with charge', 'ar': 'ينتهي مع الشحن'},
@@ -255,22 +263,557 @@ const Map> localizedValues = {
'ar': 'لا يوجد اي نتائج'
},
'typeMedicineName': {'en': 'Type Medicine Name', 'ar': 'اكتب اسم الدواء'},
-
'moreThan3Letter': {
'en': 'Medicine Name Should Be More Than 3 letter',
'ar': 'يجب أن يكون اسم الدواء أكثر من 3 أحرف'
},
'gender2': {'en': 'Gender: ', 'ar': 'الجنس: '},
'age2': {'en': 'Age: ', 'ar': 'العمر: '},
- 'replySuccessfully': {
- 'en': 'Reply Successfully',
- 'ar': 'تم الرد بنجاح'
- },
+ 'replySuccessfully': {'en': 'Reply Successfully', 'ar': 'تم الرد بنجاح'},
+ "sick-leaves": {"en": "Patient Sick Leave", "ar": "الاجازات المرضية"},
+ "patient-sick": {"en": "Patient Sick", "ar": "المرضية"},
+ "leave": {"en": "Leave", "ar": "غادر"},
+ "submit": {"en": "Submit", "ar": "ارسال"},
+ "doc-name": {"en": "Doctor Name", "ar": "اسم الطبيب"},
+ "clinicname": {"en": "Clinic Name", "ar": "اسم العيادة"},
+ "sick-leave-date": {"en": "Sick leave date ", "ar": "تاريخ الاجازة."},
+ "sick-leave-days": {"en": "Leave Days: ", "ar": " :أيام الإجازة"},
'admissionDetail': {'en': 'ADMISSION DETAIL: ', 'ar': 'تفاصيل القبول: '},
'dateTime': {'en': 'DATE / TIME:', 'ar': 'التاريخ / الوقت:'},
+ 'date': {'en': 'Date', 'ar': 'التاريخ'},
'admissionNo': {'en': 'ADMISSION #: ', 'ar': 'قبول #:'},
'losNo': {'en': 'LOS #:', 'ar': 'LOS #:'},
'area': {'en': 'AREA:', 'ar': 'المنطقة'},
'room': {'en': 'ROOM:', 'ar': 'الغرفة'},
'bed': {'en': 'BED:', 'ar': 'السرير'},
+ 'next': {'en': 'Next', 'ar': 'التالي'},
+ 'healthRecordInformation': {
+ 'en': 'HEALTH RECORD INFORMATION',
+ 'ar': 'معلومات السجل الصحي'
+ },
+ "prevoius-sickleave-issed": {
+ "en": "Total previous sick leave issued by the doctor",
+ "ar": "مجموع الإجازات المرضية السابقة التي أصدرها الطبيب"
+ },
+ 'clinicSelect': {'en': "Select Clinic", 'ar': 'اختار عيادة'},
+ 'doctorSelect': {'en': "Select Doctor", 'ar': 'اختار طبيب'},
+ "empty-message": {
+ "en": "Please enter this field",
+ "ar": "يرجى ادخال هذا الحقل"
+ },
+ 'no-sickleve-applied': {
+ 'en': "No sick leave available, apply Now",
+ 'ar': 'لا توجد إجازة مرضية متاحة ، تقدم بطلب الآن'
+ },
+ 'applynow': {'en': "Apply Now", 'ar': 'قدم الآن'},
+ 'add-sickleave': {'en': "ADD SICK LEAVE", 'ar': 'أضف إجازة مرضية'},
+ 'add': {'en': "Add", 'ar': 'أضف'},
+ 'approved': {'en': "Approved", 'ar': 'وافق'},
+ 'extended': {'en': "Extended", 'ar': 'وسعوا'},
+ 'pending': {'en': "Pending", 'ar': 'قيد الانتظار'},
+ 'leave-start-date': {'en': "Leave start date", 'ar': 'تاريخ بدء المغادرة'},
+ 'days-sick-leave': {'en': "DAYS OF SICK LEAVE", 'ar': 'أيام الإجازة المرضية'},
+ 'extend': {'en': "Extend", 'ar': 'تمديد'},
+ 'extend-sickleave': {
+ 'en': "EXTEND SICK LEAVE",
+ 'ar': 'قم بتمديد الإجازة المرضية'
+ },
+ "chiefComplaintLength": {
+ "en": "Chief Complaint length should be greater than 25",
+ "ar": "يجب أن يكون طول شكوى الرئيس أكبر من 25"
+ },
+ 'patient-target': {'en': 'Target Patient', 'ar': 'الهدف المريض'},
+ 'no-priscription-listed': {
+ 'en': 'No Prescription Listed',
+ 'ar': 'لا وصفة طبية مدرجة'
+ },
+ 'referTo': {'en': "Refer To", 'ar': 'محال إلى'},
+ 'referredFrom': {'en': "From : ", 'ar': ' : من'},
+ 'branch': {'en': "Branch", 'ar': 'الفرع'},
+ 'chooseAppointment': {'en': "Choose Appointment", 'ar': 'اختر موعد'},
+ 'appointmentNo': {'en': "Appointment # : ", 'ar': '# الموعد:'},
+ 'refer': {'en': "REFER", 'ar': 'إحالة'},
+ 'rejected': {'en': "Rejected", 'ar': 'مرفوض'},
+ 'sameBranch': {'en': "Same Branch", 'ar': 'نفس الفرع'},
+ 'otherBranch': {'en': "Other Branch", 'ar': 'فرع آخر'},
+ 'dr': {'en': "DR.", 'ar': 'د.'},
+ 'previewHealth': {'en': "Health", 'ar': 'الصحة'},
+ 'summaryReport': {'en': "Summary", 'ar': 'موجز'},
+ 'accept': {'en': "ACCEPT", 'ar': 'قبول'},
+ 'reject': {'en': "REJECT", 'ar': 'رفض'},
+ 'noAppointmentsErrorMsg': {
+ 'en': "There is no appointments for at this date",
+ 'ar': 'لا توجد مواعيد في هذا التاريخ'
+ },
+ 'referralPatient': {'en': 'Referral Patient', 'ar': 'المريض المحال '},
+ 'noPrescriptionListed': {
+ 'en': 'NO PRESCRIPTION LISTED',
+ 'ar': 'لم يتم سرد أي وصف'
+ },
+ 'addNow': {'en': 'ADD Now', 'ar': 'اضف الآن'},
+ 'orderType': {'en': 'Order Type', 'ar': 'نوع الطلب'},
+ 'strength': {'en': 'Strength', 'ar': 'شدة'},
+ 'doseTime': {'en': 'Dose Time', 'ar': 'وقت الجرعة'},
+ 'indication': {'en': 'Indication', 'ar': 'دواعي الاستخدام'},
+ 'duration': {'en': 'Duration', 'ar': 'المدة الزمنية'},
+ 'instruction': {'en': 'Instructions', 'ar': 'إرشادات'},
+ 'addMedication': {'en': 'ADD MEDICATION', 'ar': 'اضف الدواء'},
+ 'route': {'en': 'Route', 'ar': 'المسار'},
+ 'reschedule-leave': {
+ 'en': 'Reschedule and leaves',
+ 'ar': 'إعادة الجدولة والأوراق'
+ },
+ 'no-reschedule-leave': {
+ 'en': 'No Reschedule and leaves',
+ 'ar': 'لا إعادة جدولة ويغادر'
+ },
+ 'weight': {'en': "Weight", 'ar': 'الوزن'},
+ 'kg': {'en': "kg", 'ar': 'كغ'},
+ 'height': {'en': "Height", 'ar': 'الطول'},
+ 'cm': {'en': "cm", 'ar': 'سم'},
+ 'idealBodyWeight': {'en': "Ideal Body Weight", 'ar': 'وزن الجسم المثالي'},
+ 'waistSize': {'en': "Waist Size", 'ar': 'مقاس الخصر'},
+ 'inch': {'en': "Inch", 'ar': 'إنش'},
+ 'headCircum': {'en': "Head Circum", 'ar': 'محيط الرأس'},
+ 'leanBodyWeight': {'en': "Lean Body Weight", 'ar': 'وزن الجسم الهزيل'},
+ 'bodyMassIndex': {'en': "Body Mass Index", 'ar': 'مؤشر كتلة الجسم'},
+ 'yourBodyMassIndex': {'en': "Your Body Mass Index is", 'ar': 'مؤشر كتلة جسمك هو'},
+ 'bmiUnderWeight': {'en': "UnderWeight", 'ar': 'تحت الوزن'},
+ 'bmiHealthy': {'en': "Healthy", 'ar': 'صحي'},
+ 'bmiOverWeight': {'en': "OverWeight", 'ar': 'فوق الوزن'},
+ 'bmiObese': {'en': "Obese", 'ar': 'سمين'},
+ 'method': {'en': "Method", 'ar': 'الطريقة'},
+ 'pulseBeats': {'en': 'Pulse(beats/minute)', 'ar': ' (دقة/دقيقة)النبض'},
+ 'rhythm': {'en': "Rhythm", 'ar': 'الإيقاع'},
+ 'respBeats': {'en': 'RESP (beats/minute)', 'ar': ' (دقة/دقيقة)التنفس'},
+ 'patternOfRespiration': {'en': "Pattern Of Respiration", 'ar': 'نمط التنفس'},
+ 'bloodPressureDiastoleAndSystole': {
+ 'en': 'Blood Pressure (Sys, Dias)',
+ 'ar': 'ضغط الدم (العظمى, الصغرى)'
+ },
+ 'cuffLocation': {'en': "Cuff Location", 'ar': 'موقع الكف'},
+ 'cuffSize': {'en': "Cuff Size", 'ar': 'حجم الكف'},
+ 'patientPosition': {'en': "Patient Position", 'ar': 'موقع المريض'},
+ 'fio2': {'en': "FIO2(%)", 'ar': 'FIO2(%)'},
+ 'sao2': {'en': "SAO2(%)", 'ar': 'SAO2(%)'},
+ 'painManagement': {'en': "Pain Management", 'ar': 'إدارة الألم'},
+ 'holiday': {'en': "Holiday", 'ar': 'يوم الاجازة'},
+ 'to': {'en': "To", 'ar': 'إلى'},
+ 'coveringDoctor': {'en': "Covering Doctor: ", 'ar': ' :تغطية دكتور'},
+ 'requestLeave': {'en': 'Request Leave', 'ar': 'طلب إجازة'},
+ 'pleaseEnterDate': {
+ 'en': 'Please enter leave start date',
+ 'ar': 'الرجاء إدخال تاريخ بدء الإجازة'
+ },
+ 'pleaseEnterNoOfDays': {
+ 'en': 'Please enter sick leave days',
+ 'ar': 'الرجاء إدخال أيام الإجازة المرضية'
+ },
+ 'pleaseEnterRemarks': {
+ 'en': 'Please enter remarks',
+ 'ar': 'الرجاء إدخال الملاحظات'
+ },
+ 'update': {'en': 'Update', 'ar': 'تحديث'},
+ 'admission': {'en': "Admission", 'ar': 'قبول'},
+ 'request': {'en': "Request", 'ar': 'طلب'},
+ 'admissionRequest': {'en': "Admission Request", 'ar': 'طلب قبول'},
+ 'patientDetails': {'en': "Patient Details", 'ar': 'تفاصيل المريض'},
+ 'specialityAndDoctorDetail': {
+ 'en': "SPECIALITY AND DOCTOR DETAILS",
+ 'ar': 'تفاصيل التخصص والطبيب'
+ },
+ 'referringDate': {'en': "Referring Date", 'ar': 'تاريخ الإحالة'},
+ 'referringDoctor': {'en': "Referring Doctor", 'ar': 'دكتور الإحالة'},
+ 'otherInformation': {'en': "Other Information", 'ar': 'معلومات أخرى'},
+ 'expectedDays': {'en': "Expected Days", 'ar': 'الأيام المتوقعة'},
+ 'expectedAdmissionDate': {
+ 'en': "Expected Admission Date",
+ 'ar': 'تاريخ القبول المتوقع'
+ },
+ // 'emergencyAdmission': {'en': "EMERGENCY ADMISSION", 'ar': 'دخول الطوارئ'},
+ 'isSickLeaveRequired': {
+ 'en': "Is Sick Leave Required",
+ 'ar': 'هل الإجازة المرضية مطلوبة'
+ },
+ 'patientPregnant': {'en': "Patient Pregnant", 'ar': 'حمل المريض'},
+ 'treatmentLine': {
+ 'en': "Main line of treatment",
+ 'ar': 'الخط الرئيسي للعلاج'
+ },
+ 'ward': {'en': "Ward", 'ar': 'رعاية'},
+ 'preAnesthesiaReferred': {
+ 'en': "PRE ANESTHESIA REFERRED",
+ 'ar': 'الاحالة قبل التخدير'
+ },
+ 'admissionType': {'en': "Admission Type", 'ar': 'نوع القبول'},
+ 'diagnosis': {'en': "Diagnosis", 'ar': 'التشخيص'},
+ 'allergies': {'en': "Allergies", 'ar': 'الحساسية'},
+ 'preOperativeOrders': {
+ 'en': "Pre Operative Orders",
+ 'ar': 'أوامر ما قبل العملية'
+ },
+ 'elementForImprovement': {
+ 'en': "Element For Improvement",
+ 'ar': 'عنصر للتحسين'
+ },
+ 'dischargeDate': {'en': "Discharge Date", 'ar': 'تاريخ التفريغ'},
+ 'dietType': {'en': "Diet Type", 'ar': 'نوع النظام الغذائي'},
+ 'dietTypeRemarks': {
+ 'en': "Remarks on diet type",
+ 'ar': 'ملاحظات على نوع النظام الغذائي'
+ },
+ 'save': {'en': "SAVE", 'ar': 'حفظ'},
+ 'postPlansEstimatedCost': {
+ 'en': "POST PLANS & ESTIMATED COST",
+ 'ar': 'خطط البريد والتكلفة المقدرة'
+ },
+ 'postPlans': {'en': "POST PLANS", 'ar': 'خطط البريد'},
+ 'ucaf': {'en': "UCAF", 'ar': 'UCAF'},
+ 'emergencyCase': {'en': "Emergency Case", 'ar': 'حالة طارئة'},
+ 'durationOfIllness': {'en': "duration Of Illness", 'ar': 'مدة المرض'},
+ 'chiefComplaintsAndSymptoms': {
+ 'en': "CHIEF COMPLAINTS & OTHER SYMPTOMS",
+ 'ar': 'شكاوى الرئيس وأعراض أخرى'
+ },
+ 'patientFeelsPainInHisBackAndCough': {
+ 'en': "Patient Feels pain in his back and cough",
+ 'ar': 'يشعر المريض بألم في ظهره ويسعل'
+ },
+ 'additionalTextComplaints': {
+ 'en': "Additional text to add about Complaints",
+ 'ar': 'نص إضافي لإضافته حول الشكاوى'
+ },
+ 'otherConditions': {'en': "OTHER CONDITIONS", 'ar': 'شروط أخرى'},
+ 'other': {'en': "Other", 'ar': 'أخرى'},
+ 'how': {'en': "How", 'ar': 'كيف'},
+ 'when': {'en': "When", 'ar': 'متى'},
+ 'where': {'en': "Where", 'ar': 'أين'},
+ 'specifyPossibleLineManagement': {
+ 'en': "Specify possible line of management",
+ 'ar': 'حدد خط الإدارة المحتمل'
+ },
+ 'significantSigns': {'en': "SIGNIFICANT SIGNS", 'ar': 'علامات مهمة'},
+ 'backAbdomen': {'en': "Back : Abdomen", 'ar': 'الظهر: البطن'},
+ 'reasons': {'en': "Reasons", 'ar': 'الأسباب'},
+ 'createNew': {'en': "Create", 'ar': 'انشاء '},
+ 'episode': {'en': "Episode", 'ar': 'Episode'},
+ 'chiefComplaints': {'en': "Chief Complaints", 'ar': 'الشكاوى'},
+ 'addChiefComplaints': {'en': "Add Chief Complaints", 'ar': ' اضافه الشكاوى'},
+ 'histories': {'en': "Histories", 'ar': 'التاريخ المرضي'},
+ 'allergiesSoap': {'en': "Allergies", 'ar': 'الحساسية'},
+ 'historyOfPresentIllness': {
+ 'en': "History of Present Illness",
+ 'ar': 'تاريخ المرض الحالي'
+ },
+ 'requiredMsg': {
+ 'en': "Please add required field correctly",
+ 'ar': "الرجاء إضافة الحقل المطلوب بشكل صحيح"
+ },
+ 'addHistory': {'en': "Add History", 'ar': "اضافه تاريخ مرضي"},
+ 'searchHistory': {'en': "Search History", 'ar': " البحث"},
+ 'addSelectedHistories': {
+ 'en': "add selected histories",
+ 'ar': " اضافه تاريخ مرضي"
+ },
+ 'addAllergies': {'en': "Add Allergies", 'ar': "أضف الحساسية"},
+ 'itemExist': {'en': "This item already exist", 'ar': "هذا العنصر موجود"},
+ 'selectAllergy': {'en': "Select Allergy", 'ar': "أختر الحساسية"},
+ 'selectSeverity': {'en': "Select Severity", 'ar': "أختر الدرجه"},
+ 'leaveCreated': {'en': "Leave has been created", 'ar': "تم إنشاء الإجازة"},
+ 'medications': {'en': "Medications", 'ar': "الأدوية"},
+ 'procedures': {'en': "Procedures", 'ar': "الإجراءات"},
+ 'vitalSignEmptyMsg': {
+ 'en': "There is no vital signs for this patient",
+ 'ar': "لا توجد علامات حيوية لهذا المريض"
+ },
+ 'referralEmptyMsg': {
+ 'en': "There is no referral data",
+ 'ar': "لا توجد بيانات إحالة"
+ },
+ 'referralSuccessMsg': {
+ 'en': "You make referral successfully",
+ 'ar': "You make referral successfully"
+ },
+ 'fromTime': {'en': "From Time", 'ar': "من وقت"},
+ 'toTime': {'en': "To Time", 'ar': "الى وقت"},
+ 'diagnoseType': {'en': "Diagnose Type", 'ar': "نوع التشخيص"},
+ 'condition': {'en': "Condition", 'ar': "الحالة"},
+ 'id': {'en': "ID", 'ar': "بطاقة هوية"},
+ 'quantity': {'en': "Quantity", 'ar': "الكمية"},
+ 'durDays': {'en': "Dur.(days)", 'ar': "الفترة(أيام)"},
+ 'codeNo': {'en': "Code #", 'ar': "# الرمز"},
+ 'covered': {'en': "Covered", 'ar': "مغطى"},
+ 'approvalRequired': {'en': "Approval Required", 'ar': "الموافقة مطلوبة"},
+ 'uncoveredByDoctor': {
+ 'en': "Uncovered By Doctor",
+ 'ar': "غير مغطى من قبل الدكتور"
+ },
+ 'chiefComplaintEmptyMsg': {
+ 'en': "There is no Chief Complaint",
+ 'ar': "ليس هناك شكوى رئيس"
+ },
+ "more-verify": {
+ "en": "More Verification Options",
+ "ar": "المزيد من خيارات التحقق"
+ },
+ "welcome-back": {"en": "Welcome back!", "ar": "مرحبا بعودتك!"},
+ "account-info": {
+ "en": "Would you like to login with current username?",
+ "ar": "هل ترغب في تسجيل الدخول باسم المستخدم الحالي؟"
+ },
+ "another-acc": {"en": "Use Another Account", "ar": "استخدم حسابا آخر"},
+ "verify-login-with": {
+ "en": "Please choose one of the following options to verify",
+ "ar": "الرجاء اختيار احدى الخيارات التالية للتحقق من البيانات"
+ },
+ "register-user": {"en": "Register", "ar": "تسجيل"},
+ "verify-with-fingerprint": {"en": "Fingerprint", "ar": "بصمة"},
+ "verify-with-faceid": {"en": "Face ID", "ar": "معرف الوجه"},
+ "verify-with-sms": {"en": "SMS", "ar": "الرسائل القصيرة"},
+ "verify-with-whatsapp": {"en": "Whatsapp", "ar": " الواتس اب"},
+ "last-login": {"en": "LAST LOGIN AT:", "ar": "آخر تسجيل دخول"},
+ "last-login-with": {"en": "VERIFICATION TYPE:", "ar": "نوع التحقق:"},
+ "verify-fingerprint": {
+ "en":
+ "To activate the fingerprint login service, please verify data by using one of the following options.",
+ "ar":
+ "لتفعيل خدمة الدخول بالبصمة، يرجى اختيار احدى القنوات التالية للتحقق من البيانات"
+ },
+ "verification_message": {
+ "en": "Please enter the Verification Code sent to",
+ "ar": "الرجاء ادخال رمز التحقق الذي تم إرساله إلى"
+ },
+ "validation_message": {
+ "en": "The verification code expires in",
+ "ar": "تنتهي صلاحية رمز التحقق خلال"
+ },
+ 'addAssessment': {'en': "Add ASSESSMENT", 'ar': "أضف التقييم"},
+ 'assessment': {'en': "ASSESSMENT", 'ar': " التقييم"},
+ 'physicalSystemExamination': {
+ 'en': "Physical/System Examination",
+ 'ar': " الفحص البدني / النظام"
+ },
+ 'searchExamination': {'en': "Search Examination", 'ar': "فحص البحث"},
+ 'addExamination': {'en': "Add Examination", 'ar': "اضافه"},
+ 'doc': {'en': "Doc : ", 'ar': " د : "},
+ 'patientNoDetailErrMsg': {
+ 'en': "There is no detail for this patient",
+ 'ar': "لا توجد تفاصيل لهذا المريض"
+ },
+ 'allergicTO': {'en': "ALLERGIC TO ", 'ar': " حساس من"},
+ 'normal': {'en': "Normal", 'ar': "عادي"},
+ 'abnormal': {'en': "Abnormal", 'ar': " غير عادي"},
+ 'notExamined': {'en': "Not Examined", 'ar': "لم يتم الفحص"},
+ "systolic-lng": {"en": "Systolic", "ar": "الإنقباض"},
+ "diastolic-lng": {"en": "Diastolic", "ar": "الإنبساط"},
+ "mass": {"en": "Mass", "ar": "كتلة"},
+ "temp-c": {"en": "°C", "ar": "°س"},
+ "bpm": {"en": "bpm", "ar": "نبضة"},
+ "respiration-signs": {"en": "Respiration", "ar": "تنفس"},
+ "sys-dias": {"en": "SBP/DBP", "ar": "إنقباض/إنبساط"},
+ "body": {"en": "Body \n Mass", "ar": "كتلة\nالجسم"},
+ 'respirationRate': {'en': 'Respiration Rate', 'ar': 'معدل التنفس'},
+ 'heart': {'en': 'Heart rate', 'ar': 'معدل ضربات القلب'},
+ 'medicalReport': {'en': "medical Report", 'ar': "تقرير طبي"},
+ 'visitDate': {'en': "Visit Date", 'ar': "تاريخ الزيارة"},
+ 'test': {'en': "Procedures/Test", 'ar': "عمليات/تحاليل"},
+ 'regular': {'en': "Regular", 'ar': "اعتيادي"},
+ 'addMoreProcedure': {
+ 'en': "Add More Procedures",
+ 'ar': "اضف المزيد من العمليات"
+ },
+ 'searchProcedures': {'en': "Search Procedures", 'ar': "البحث في العمليات"},
+ 'selectProcedures': {'en': "Select procedure", 'ar': "اختر العملية"},
+ 'procedureCategorise': {
+ 'en': "Select Procedure Category",
+ 'ar': "اختر صنف العمليات "
+ },
+ 'addSelectedProcedures': {
+ 'en': "add Selected Procedures",
+ 'ar': "اضافة العمليات المختارة "
+ },
+ 'updateProcedure': {'en': "Update Procedure", 'ar': "تحديث العملية"},
+ 'orderProcedure': {'en': "order procedure", 'ar': "طلب العمليات"},
+ 'nameOrICD': {'en': "Name or ICD", 'ar': "الاسم او ICD"},
+ 'dType': {'en': "Type", 'ar': "النوع"},
+ 'addAssessmentDetails': {
+ 'en': "Add Assessment Details",
+ 'ar': "أضف تفاصيل التقييم"
+ },
+ 'progressNoteSOAP': {'en': "Progress Note", 'ar': "ملاحظة التقدم"},
+ 'addProgressNote': {'en': "Add Progress Note", 'ar': "أضف ملاحظة التقدم"},
+ 'createdBy': {'en': "Created By :", 'ar': "أضيفت : "},
+ 'editedBy': {'en': "Edited By :", 'ar': "عدلت : "},
+ 'currentMedications': {'en': "Current Medications", 'ar': "الأدوية الحالية"},
+ 'noItem': {
+ 'en': "No items exists in this list",
+ 'ar': "لا توجد عناصر في هذه القائمة"
+ },
+ 'postUcafSuccessMsg': {
+ 'en': "UCAF request send successfully",
+ 'ar': "تم ارسال طلب UCAF بنجاح"
+ },
+ 'vitalSignDetailEmpty': {
+ 'en': "There is no data for this vital sign",
+ 'ar': "لا توجد بيانات لهذه العلامة الحيوية"
+ },
+ 'onlyOfftimeHoliday': {
+ 'en': "You can only apply holiday or offtime from mobile app",
+ 'ar': "يمكنك فقط تطبيق عطلة أو إجازة من تطبيق الهاتف"
+ },
+ 'active': {'en': "Active", 'ar': "نشيط"},
+ 'hold': {'en': "Hold", 'ar': "معلق"},
+ 'loading': {'en': "Loading...", 'ar': "جار التحميل..."},
+ 'assessmentErrorMsg': {
+ 'en': "You have to add at least one assessment.",
+ 'ar': "يجب عليك إضافة تقييم واحد على الأقل."
+ },
+ 'examinationErrorMsg': {
+ 'en': "You have to add at least one examination.",
+ 'ar': "يجب عليك إضافة الفحص واحد على الأقل."
+ },
+ 'progressNoteErrorMsg': {
+ 'en': "You have to add progress Note.",
+ 'ar': "يجب عليك إضافة ملاحظة التقدم."
+ },
+ 'chiefComplaintErrorMsg': {
+ 'en': "You have to add chief complaint fields correctly .",
+ 'ar': "يجب عليك إضافة حقول شكوى الرئيس بشكل صحيح"
+ },
+ 'referralStatus': {'en': "Referral Status : ", 'ar': "حالة الإحالة :"},
+ 'referralRemark': {'en': "Referral Remark : ", 'ar': "ملاحظة الإحالة :"},
+ 'ICDName': {'en': "ICDName", 'ar': "اسم ال ICD"},
+ 'offTime': {'en': "OffTime", 'ar': "خارج الوقت"},
+ 'patient-name': {'en': "Patient Name", 'ar': "اسم المريص"},
+ 'icd': {'en': "ICD", 'ar': "التصنيف الدولي للأمراض"},
+ 'days': {'en': "Days", 'ar': "أيام"},
+ 'months': {'en': "Months", 'ar': "أشهر"},
+ 'years': {'en': "Years", 'ar': "سنين"},
+ 'hr': {'en': "HR", 'ar': "س"},
+ 'min': {'en': "Min", 'ar': "د"},
+ 'appointmentNumber': {'en': "Appointment Number", 'ar': "رقم الموعد"},
+ 'referralStatusHold': {'en': "Hold", 'ar': "معلق"},
+ 'referralStatusActive': {'en': "Active", 'ar': "نشط"},
+ 'referralStatusCancelled': {'en': "Cancelled", 'ar': "ملغاة"},
+ 'referralStatusCompleted': {'en': "Completed", 'ar': "مكتمل"},
+ 'referralStatusNotSeen': {'en': "NotSeen", 'ar': "لم يرى"},
+
+ 'clinicSearch': {'en': "Search Clinic", 'ar': "بحث عن عيادة"},
+ 'doctorSearch': {'en': "Search Doctor", 'ar': "بحث عن طبيب"},
+ 'referralResponse': {
+ 'en': "Referral Response : ",
+ 'ar': " : استجابة الإحالة"
+ },
+ 'estimatedCost': {'en': "Estimated Cost", 'ar': "التكلفة المتوقعة"},
+ 'diagnosisDetail': {'en': "Diagnosis Detail : ", 'ar': "تفاصيل التشخيص"},
+ 'referralSuccessMsgAccept': {
+ 'en': "Referral Accepted Successfully",
+ 'ar': "تم قبول الإحالة بنجاح"
+ },
+ 'referralSuccessMsgReject': {
+ 'en': "Referral Rejected Successfully",
+ 'ar': "تم رفض الإحالة بنجاح"
+ },
+ 'sickLeaveComments': {
+ 'en': "Sick leave comments",
+ 'ar': "تعليقات إجازة مرضية"
+ },
+ 'pastMedicalHistory': {'en': "Past medical history", 'ar': "التاريخ الطبي"},
+ 'pastSurgicalHistory': {
+ 'en': "Past surgical history",
+ 'ar': "التاريخ الجراحي"
+ },
+ 'complications': {'en': "Complications", 'ar': "المضاعفات"},
+ 'floor': {'en': "Floor", 'ar': "الطابق"},
+ 'roomCategory': {'en': "Room category", 'ar': "فئة الغرفة"},
+ 'otherDepartmentsInterventions': {
+ 'en': "Other departments interventions",
+ 'ar': "تدخلات الأقسام الأخرى"
+ },
+ 'otherProcedure': {'en': "Other procedure", 'ar': "إجراء آخر"},
+ 'admissionRequestSuccessMsg': {
+ 'en': "Admission Request Created Successfully",
+ 'ar': "تم إنشاء طلب القبول بنجاح"
+ },
+ // 'icd': {'en': "ICD", 'ar': " "},
+ 'orderNo': {'en': "Order No : ", 'ar': "رقم الطلب"},
+ 'infoStatus': {'en': "Info Status", 'ar': "حالة المعلومات"},
+ 'doctorResponse': {'en': "Doctor Response", 'ar': "استجابة الطبيب"},
+ 'sickleaveonhold': {
+ 'en': "A Sick leave is on Hold status for this patient",
+ 'ar': "الإجازة المرضية في حالة الانتظار لهذا المريض"
+ },
+ 'no-clinic': {'en': "No Clinic", 'ar': "لا عيادة"},
+ 'otherStatistic': {'en': "Other Statistics", 'ar': "دیگر شماریات"},
+ 'ptientsreferral': {'en': "Patient's Referrals", 'ar': "مریض کا حوالہ"},
+ 'arrivalpatient': {'en': "Arrival Patients", 'ar': "مریضوں کی آمد"},
+ 'searchmedicinepatient': {
+ 'en': "Search patient or Medicines",
+ 'ar': "مریض یا دوائیں تلاش کریں"
+ },
+ 'appointmentDate': {'en': "Appointment Date", 'ar': "تاريخ الموعد"},
+ 'arrived_p': {'en': "Arrived", 'ar': "وصل"},
+ 'details': {'en': 'Details', 'ar': 'التفاصيل'},
+ "liveCare": {"en": "Live Care", "ar": "لايف كير"},
+ "out-patient": {"en": "Out Patient", "ar": "عيادات خارجية"},
+ "BillNo": {"en": "Bill No :", "ar": "رقم الفاتورة"},
+ "labResults": {"en": "Lab Result", "ar": "نتيجة المختبر"},
+ "sendSuc": {
+ "en": "A copy has been sent to the email",
+ "ar": "تم إرسال نسخة إلى البريد الإلكتروني"
+ },
+ "SpecialResult": {"en": " Special Result", "ar": "نتيجة خاصة"},
+ "noDataAvailable": {
+ "en": "No data available",
+ "ar": " لا يوجد بيانات متاحة "
+ },
+ "show-more-btn": {"en": "Flow Chart", "ar": "النتائج التراكمية"},
+
+ "open-rad": {"en": "Open Image", "ar": "فتح صور الاشعة"},
+
+ 'fileNumber': {'en': "File Number: ", 'ar': " :رقم الملف"},
+ 'searchPatient-name': {
+ 'en': 'Search Name, Medical File, Phone Number',
+ 'ar': "اسم البحث ، الملف الطبي ، رقم الهاتف"
+ },
+ 'reschedule': {'en': 'Reschedule', 'ar': 'إعادة الجدولة'},
+ 'leaves': {'en': 'Leaves', 'ar': 'يغادر'},
+ "totalApproval": {
+ "en": "Total approval unused",
+ "ar": "اجمالي الموافقات الغير مستخدمة"
+ },
+ "procedureStatus": {"en": "Procedure Status: ", "ar": "حالة الاجراء"},
+ "unusedCount": {"en": "Unused Count: ", "ar": "غير مستخدم: "},
+ "companyName": {"en": "Company Name ", "ar": "اسم الشركة: "},
+ "procedureName": {"en": "Procedure Name", "ar": "اسم الاجراء"},
+ "usageStatus": {"en": "Usage Status", "ar": "جالة الاستخدام"},
+ "prescriptions": {"en": "Prescriptions", "ar": "الوصفات الطبية"},
+ "notes": {"en": "Notes", "ar": "ملاحظات"},
+ "dailyDoses": {"en": "Daily Doses", "ar": "جرعات يومية"},
+ "searchWithOther": {
+ "en": "Search With Other Criteria",
+ "ar": "البحث بمعايير أخرى"
+ },
+ "hideOtherCriteria": {
+ "en": "Hide Other Criteria",
+ "ar": "إخفاء المعايير الأخرى"
+ },
+ "applyForReschedule": {
+ "en": "Apply for leave or reschedule",
+ "ar": "تقدم بطلب للحصول على إجازة أو إعادة جدولة"
+ },
+ "startDate": {"en": "Start Date: ", "ar": " :تاريخ البدء"},
+ "endDate": {"en": "End Date: ", "ar": " :تاريخ الانتهاء"},
+
+ "add-reschedule": {"en": "Add reschedule", "ar": "أضف إعادة الجدولة"},
+ "update-reschedule": {"en": "Update reschedule", "ar": "تحديث إعادة الجدولة"},
+ "sick_leave": {"en": "Sick Leave", "ar": "أجازة مرضية"},
+ "addSickLeaveRequest": {
+ "en": "Add Sick Leave Request",
+ "ar": "إضافة طلب إجازة مرضية"
+ },
+ "extendSickLeaveRequest": {
+ "en": "Extend Sick Leave Request",
+ "ar": "تمديد طلب الإجازة المرضية"
+ },
};
diff --git a/lib/config/shared_pref_kay.dart b/lib/config/shared_pref_kay.dart
index 18b58c28..eea2ce76 100644
--- a/lib/config/shared_pref_kay.dart
+++ b/lib/config/shared_pref_kay.dart
@@ -1,10 +1,16 @@
final TOKEN = 'token';
final PROJECT_ID = 'projectID';
-//===========amjad============
+final VIDA_AUTH_TOKEN_ID = 'VidaAuthTokenID';
+final VIDA_REFRESH_TOKEN_ID = 'VidaRefreshTokenID';
+final LOGIN_TOKEN_ID = 'LogInToken';
final DOCTOR_ID = 'doctorID';
-//=======================
final SLECTED_PATIENT_TYPE = 'slectedPatientType';
final APP_Language = 'language';
final DOCTOR_PROFILE = 'doctorProfile';
final LIVE_CARE_PATIENT = 'livecare-patient-profile';
final LOGGED_IN_USER = 'loggedUser';
+final DASHBOARD_DATA = 'dashboard-data';
+final OTP_TYPE = 'otp-type';
+final LAST_LOGIN_USER = 'last-login-user';
+final PASSWORD = 'password';
+final CLINIC_NAME = 'clinic-name';
diff --git a/lib/core/enum/filter_type.dart b/lib/core/enum/filter_type.dart
new file mode 100644
index 00000000..4591e023
--- /dev/null
+++ b/lib/core/enum/filter_type.dart
@@ -0,0 +1,2 @@
+enum FilterType { Clinic, Hospital }
+
diff --git a/lib/core/enum/master_lookup_key.dart b/lib/core/enum/master_lookup_key.dart
new file mode 100644
index 00000000..25e40d3b
--- /dev/null
+++ b/lib/core/enum/master_lookup_key.dart
@@ -0,0 +1,95 @@
+enum MasterKeysService {
+ Allergies,
+ HistoryFamily,
+ HistoryMedical,
+ HistorySocial,
+ HistorySports,
+ HistorySurgical,
+ PhysicalExamination,
+ AllergySeverity,
+ physiotherapyGoals,
+ DiagnosisCondition,
+ DiagnosisType,
+ ICD10,
+ TemperatureMethods,
+ Speciality,
+ MedicationStrength,
+ MedicationDuration,
+ MedicationRoute,
+ MedicationFrequency,
+ MedicationDoseTime,
+ MedicationIndications,
+
+ AdmissionRequestType,
+ DiagnosisSelectionType,
+}
+
+extension SelectedMasterKeysService on MasterKeysService {
+ // ignore: missing_return
+ int getMasterKeyService() {
+ switch (this) {
+ case MasterKeysService.Allergies:
+ return 11;
+ break;
+ case MasterKeysService.HistoryFamily:
+ return 36;
+ break;
+ case MasterKeysService.HistoryMedical:
+ return 37;
+ break;
+ case MasterKeysService.HistorySocial:
+ return 38;
+ break;
+ case MasterKeysService.HistorySports:
+ return 39;
+ break;
+ case MasterKeysService.HistorySurgical:
+ return 66;
+ break;
+ case MasterKeysService.PhysicalExamination:
+ return 59;
+ break;
+ case MasterKeysService.AllergySeverity:
+ return 55;
+ break;
+ case MasterKeysService.physiotherapyGoals:
+ return 117;
+ break;
+ case MasterKeysService.DiagnosisCondition:
+ return 34;
+ break;
+ case MasterKeysService.DiagnosisType:
+ return 35;
+ break;
+ case MasterKeysService.ICD10:
+ return 2500;
+ case MasterKeysService.TemperatureMethods:
+ return 2005;
+ case MasterKeysService.Speciality:
+ return 10;
+ case MasterKeysService.MedicationStrength:
+ return 2100;
+ break;
+ case MasterKeysService.MedicationDuration:
+ return 118;
+ break;
+ case MasterKeysService.MedicationRoute:
+ return 32;
+ break;
+ case MasterKeysService.MedicationFrequency:
+ return 31;
+ break;
+ case MasterKeysService.MedicationDoseTime:
+ return 30;
+ break;
+ case MasterKeysService.MedicationIndications:
+ return 450;
+ case MasterKeysService.AdmissionRequestType:
+ return 2019;
+ break;
+ case MasterKeysService.DiagnosisSelectionType:
+ return 2024;
+ break;
+ }
+ }
+}
diff --git a/lib/core/model/PatientMuseResultsModel.dart b/lib/core/model/PatientMuseResultsModel.dart
new file mode 100644
index 00000000..8b10de83
--- /dev/null
+++ b/lib/core/model/PatientMuseResultsModel.dart
@@ -0,0 +1,64 @@
+import 'package:doctor_app_flutter/util/date-utils.dart';
+
+class PatientMuseResultsModel {
+ int rowID;
+ String setupID;
+ int projectID;
+ String orderNo;
+ int lineItemNo;
+ int patientType;
+ int patientID;
+ String procedureID;
+ dynamic reportData;
+ String imageURL;
+ String createdBy;
+ String createdOn;
+ DateTime createdOnDateTime;
+
+ PatientMuseResultsModel(
+ {this.rowID,
+ this.setupID,
+ this.projectID,
+ this.orderNo,
+ this.lineItemNo,
+ this.patientType,
+ this.patientID,
+ this.procedureID,
+ this.reportData,
+ this.imageURL,
+ this.createdBy,
+ this.createdOn});
+
+ PatientMuseResultsModel.fromJson(Map json) {
+ rowID = json['RowID'];
+ setupID = json['SetupID'];
+ projectID = json['ProjectID'];
+ orderNo = json['OrderNo'];
+ lineItemNo = json['LineItemNo'];
+ patientType = json['PatientType'];
+ patientID = json['PatientID'];
+ procedureID = json['ProcedureID'];
+ reportData = json['ReportData'];
+ imageURL = json['ImageURL'];
+ createdBy = json['CreatedBy'];
+ createdOn = json['CreatedOn'];
+ createdOnDateTime = DateUtils.getDateTimeFromServerFormat(json['CreatedOn']);
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['RowID'] = this.rowID;
+ data['SetupID'] = this.setupID;
+ data['ProjectID'] = this.projectID;
+ data['OrderNo'] = this.orderNo;
+ data['LineItemNo'] = this.lineItemNo;
+ data['PatientType'] = this.patientType;
+ data['PatientID'] = this.patientID;
+ data['ProcedureID'] = this.procedureID;
+ data['ReportData'] = this.reportData;
+ data['ImageURL'] = this.imageURL;
+ data['CreatedBy'] = this.createdBy;
+ data['CreatedOn'] = this.createdOn;
+ return data;
+ }
+}
diff --git a/lib/core/model/Prescriptions/Prescriptions.dart b/lib/core/model/Prescriptions/Prescriptions.dart
new file mode 100644
index 00000000..78bc9105
--- /dev/null
+++ b/lib/core/model/Prescriptions/Prescriptions.dart
@@ -0,0 +1,158 @@
+import 'package:doctor_app_flutter/util/date-utils.dart';
+
+class Prescriptions {
+ String setupID;
+ int projectID;
+ int patientID;
+ int appointmentNo;
+ String appointmentDate;
+ String doctorName;
+ String clinicDescription;
+ String name;
+ int episodeID;
+ int actualDoctorRate;
+ int admission;
+ int clinicID;
+ String companyName;
+ String despensedStatus;
+ DateTime dischargeDate;
+ int dischargeNo;
+ int doctorID;
+ String doctorImageURL;
+ int doctorRate;
+ String doctorTitle;
+ int gender;
+ String genderDescription;
+ bool isActiveDoctorProfile;
+ bool isDoctorAllowVedioCall;
+ bool isExecludeDoctor;
+ bool isInOutPatient;
+ bool isLiveCareAppointment;
+ String isInOutPatientDescription;
+ String isInOutPatientDescriptionN;
+ bool isInsurancePatient;
+ String nationalityFlagURL;
+ int noOfPatientsRate;
+ String qR;
+ List speciality;
+
+ Prescriptions(
+ {this.setupID,
+ this.projectID,
+ this.patientID,
+ this.appointmentNo,
+ this.appointmentDate,
+ this.doctorName,
+ this.clinicDescription,
+ this.name,
+ this.episodeID,
+ this.actualDoctorRate,
+ this.admission,
+ this.clinicID,
+ this.companyName,
+ this.despensedStatus,
+ this.dischargeDate,
+ this.dischargeNo,
+ this.doctorID,
+ this.doctorImageURL,
+ this.doctorRate,
+ this.doctorTitle,
+ this.gender,
+ this.genderDescription,
+ this.isActiveDoctorProfile,
+ this.isDoctorAllowVedioCall,
+ this.isExecludeDoctor,
+ this.isInOutPatient,
+ this.isInOutPatientDescription,
+ this.isInOutPatientDescriptionN,
+ this.isInsurancePatient,
+ this.nationalityFlagURL,
+ this.noOfPatientsRate,
+ this.qR,
+ this.speciality,this.isLiveCareAppointment});
+
+ Prescriptions.fromJson(Map json) {
+ setupID = json['SetupID'];
+ projectID = json['ProjectID'];
+ patientID = json['PatientID'];
+ appointmentNo = json['AppointmentNo'];
+ appointmentDate = json['AppointmentDate'];
+ doctorName = json['DoctorName'];
+ clinicDescription = json['ClinicDescription'];
+ name = json['Name'];
+ episodeID = json['EpisodeID'];
+ actualDoctorRate = json['ActualDoctorRate'];
+ admission = json['Admission'];
+ clinicID = json['ClinicID'];
+ companyName = json['CompanyName'];
+ despensedStatus = json['Despensed_Status'];
+ dischargeDate = DateUtils.convertStringToDate(json['DischargeDate']);
+ dischargeNo = json['DischargeNo'];
+ doctorID = json['DoctorID'];
+ doctorImageURL = json['DoctorImageURL'];
+ doctorRate = json['DoctorRate'];
+ doctorTitle = json['DoctorTitle'];
+ gender = json['Gender'];
+ genderDescription = json['GenderDescription'];
+ isActiveDoctorProfile = json['IsActiveDoctorProfile'];
+ isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
+ isExecludeDoctor = json['IsExecludeDoctor'];
+ isInOutPatient = json['IsInOutPatient'];
+ isInOutPatientDescription = json['IsInOutPatientDescription'];
+ isInOutPatientDescriptionN = json['IsInOutPatientDescriptionN'];
+ isInsurancePatient = json['IsInsurancePatient'];
+ nationalityFlagURL = json['NationalityFlagURL'];
+ noOfPatientsRate = json['NoOfPatientsRate'];
+ qR = json['QR'];
+ isLiveCareAppointment = json['IsLiveCareAppointment'];
+ // speciality = json['Speciality'].cast();
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['SetupID'] = this.setupID;
+ data['ProjectID'] = this.projectID;
+ data['PatientID'] = this.patientID;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['AppointmentDate'] = this.appointmentDate;
+ data['DoctorName'] = this.doctorName;
+ data['ClinicDescription'] = this.clinicDescription;
+ data['Name'] = this.name;
+ data['EpisodeID'] = this.episodeID;
+ data['ActualDoctorRate'] = this.actualDoctorRate;
+ data['Admission'] = this.admission;
+ data['ClinicID'] = this.clinicID;
+ data['CompanyName'] = this.companyName;
+ data['Despensed_Status'] = this.despensedStatus;
+ data['DischargeDate'] = this.dischargeDate;
+ data['DischargeNo'] = this.dischargeNo;
+ data['DoctorID'] = this.doctorID;
+ data['DoctorImageURL'] = this.doctorImageURL;
+ data['DoctorRate'] = this.doctorRate;
+ data['DoctorTitle'] = this.doctorTitle;
+ data['Gender'] = this.gender;
+ data['GenderDescription'] = this.genderDescription;
+ data['IsActiveDoctorProfile'] = this.isActiveDoctorProfile;
+ data['IsDoctorAllowVedioCall'] = this.isDoctorAllowVedioCall;
+ data['IsExecludeDoctor'] = this.isExecludeDoctor;
+ data['IsInOutPatient'] = this.isInOutPatient;
+ data['IsInOutPatientDescription'] = this.isInOutPatientDescription;
+ data['IsInOutPatientDescriptionN'] = this.isInOutPatientDescriptionN;
+ data['IsInsurancePatient'] = this.isInsurancePatient;
+ data['NationalityFlagURL'] = this.nationalityFlagURL;
+ data['NoOfPatientsRate'] = this.noOfPatientsRate;
+ data['QR'] = this.qR;
+ data['Speciality'] = this.speciality;
+ data['IsLiveCareAppointment'] = this.isLiveCareAppointment;
+ return data;
+ }
+}
+
+class PrescriptionsList {
+ String filterName = "";
+ List prescriptionsList = List();
+
+ PrescriptionsList({this.filterName, Prescriptions prescriptions}) {
+ prescriptionsList.add(prescriptions);
+ }
+}
diff --git a/lib/core/model/Prescriptions/perscription_pharmacy.dart b/lib/core/model/Prescriptions/perscription_pharmacy.dart
new file mode 100644
index 00000000..3adaef7e
--- /dev/null
+++ b/lib/core/model/Prescriptions/perscription_pharmacy.dart
@@ -0,0 +1,108 @@
+class PharmacyPrescriptions {
+ String expiryDate;
+ dynamic sellingPrice;
+ int quantity;
+ int itemID;
+ int locationID;
+ int projectID;
+ String setupID;
+ String locationDescription;
+ Null locationDescriptionN;
+ String itemDescription;
+ Null itemDescriptionN;
+ String alias;
+ int locationTypeID;
+ int barcode;
+ Null companybarcode;
+ int cityID;
+ String cityName;
+ int distanceInKilometers;
+ String latitude;
+ int locationType;
+ String longitude;
+ String phoneNumber;
+ String projectImageURL;
+ Null sortOrder;
+
+ PharmacyPrescriptions(
+ {this.expiryDate,
+ this.sellingPrice,
+ this.quantity,
+ this.itemID,
+ this.locationID,
+ this.projectID,
+ this.setupID,
+ this.locationDescription,
+ this.locationDescriptionN,
+ this.itemDescription,
+ this.itemDescriptionN,
+ this.alias,
+ this.locationTypeID,
+ this.barcode,
+ this.companybarcode,
+ this.cityID,
+ this.cityName,
+ this.distanceInKilometers,
+ this.latitude,
+ this.locationType,
+ this.longitude,
+ this.phoneNumber,
+ this.projectImageURL,
+ this.sortOrder});
+
+ PharmacyPrescriptions.fromJson(Map json) {
+ expiryDate = json['ExpiryDate'];
+ sellingPrice = json['SellingPrice'];
+ quantity = json['Quantity'];
+ itemID = json['ItemID'];
+ locationID = json['LocationID'];
+ projectID = json['ProjectID'];
+ setupID = json['SetupID'];
+ locationDescription = json['LocationDescription'];
+ locationDescriptionN = json['LocationDescriptionN'];
+ itemDescription = json['ItemDescription'];
+ itemDescriptionN = json['ItemDescriptionN'];
+ alias = json['Alias'];
+ locationTypeID = json['LocationTypeID'];
+ barcode = json['Barcode'];
+ companybarcode = json['Companybarcode'];
+ cityID = json['CityID'];
+ cityName = json['CityName'];
+ distanceInKilometers = json['DistanceInKilometers'];
+ latitude = json['Latitude'];
+ locationType = json['LocationType'];
+ longitude = json['Longitude'];
+ phoneNumber = json['PhoneNumber'];
+ projectImageURL = json['ProjectImageURL'];
+ sortOrder = json['SortOrder'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ExpiryDate'] = this.expiryDate;
+ data['SellingPrice'] = this.sellingPrice;
+ data['Quantity'] = this.quantity;
+ data['ItemID'] = this.itemID;
+ data['LocationID'] = this.locationID;
+ data['ProjectID'] = this.projectID;
+ data['SetupID'] = this.setupID;
+ data['LocationDescription'] = this.locationDescription;
+ data['LocationDescriptionN'] = this.locationDescriptionN;
+ data['ItemDescription'] = this.itemDescription;
+ data['ItemDescriptionN'] = this.itemDescriptionN;
+ data['Alias'] = this.alias;
+ data['LocationTypeID'] = this.locationTypeID;
+ data['Barcode'] = this.barcode;
+ data['Companybarcode'] = this.companybarcode;
+ data['CityID'] = this.cityID;
+ data['CityName'] = this.cityName;
+ data['DistanceInKilometers'] = this.distanceInKilometers;
+ data['Latitude'] = this.latitude;
+ data['LocationType'] = this.locationType;
+ data['Longitude'] = this.longitude;
+ data['PhoneNumber'] = this.phoneNumber;
+ data['ProjectImageURL'] = this.projectImageURL;
+ data['SortOrder'] = this.sortOrder;
+ return data;
+ }
+}
diff --git a/lib/core/model/Prescriptions/prescription_report.dart b/lib/core/model/Prescriptions/prescription_report.dart
new file mode 100644
index 00000000..d2427004
--- /dev/null
+++ b/lib/core/model/Prescriptions/prescription_report.dart
@@ -0,0 +1,191 @@
+class PrescriptionReport {
+ String address;
+ int appointmentNo;
+ String clinic;
+ String companyName;
+ int days;
+ String doctorName;
+ var doseDailyQuantity;
+ String frequency;
+ int frequencyNumber;
+ String image;
+ String imageExtension;
+ String imageSRCUrl;
+ String imageString;
+ String imageThumbUrl;
+ String isCovered;
+ String itemDescription;
+ int itemID;
+ String orderDate;
+ int patientID;
+ String patientName;
+ String phoneOffice1;
+ String prescriptionQR;
+ int prescriptionTimes;
+ String productImage;
+ String productImageBase64;
+ String productImageString;
+ int projectID;
+ String projectName;
+ String remarks;
+ String route;
+ String sKU;
+ int scaleOffset;
+ String startDate;
+
+ String patientAge;
+ String patientGender;
+ String phoneOffice;
+ int doseTimingID;
+ int frequencyID;
+ int routeID;
+ String name;
+ String itemDescriptionN;
+ String routeN;
+ String frequencyN;
+
+ PrescriptionReport({
+ this.address,
+ this.appointmentNo,
+ this.clinic,
+ this.companyName,
+ this.days,
+ this.doctorName,
+ this.doseDailyQuantity,
+ this.frequency,
+ this.frequencyNumber,
+ this.image,
+ this.imageExtension,
+ this.imageSRCUrl,
+ this.imageString,
+ this.imageThumbUrl,
+ this.isCovered,
+ this.itemDescription,
+ this.itemID,
+ this.orderDate,
+ this.patientID,
+ this.patientName,
+ this.phoneOffice1,
+ this.prescriptionQR,
+ this.prescriptionTimes,
+ this.productImage,
+ this.productImageBase64,
+ this.productImageString,
+ this.projectID,
+ this.projectName,
+ this.remarks,
+ this.route,
+ this.sKU,
+ this.scaleOffset,
+ this.startDate,
+ this.patientAge,
+ this.patientGender,
+ this.phoneOffice,
+ this.doseTimingID,
+ this.frequencyID,
+ this.routeID,
+ this.name,
+ this.itemDescriptionN,
+ this.routeN,
+ this.frequencyN,
+ });
+
+ PrescriptionReport.fromJson(Map json) {
+ address = json['Address'];
+ appointmentNo = json['AppointmentNo'];
+ clinic = json['Clinic'];
+ companyName = json['CompanyName'];
+ days = json['Days'];
+ doctorName = json['DoctorName'];
+ doseDailyQuantity = json['DoseDailyQuantity'];
+ frequency = json['Frequency'];
+ frequencyNumber = json['FrequencyNumber'];
+ image = json['Image'];
+ imageExtension = json['ImageExtension'];
+ imageSRCUrl = json['ImageSRCUrl'];
+ imageString = json['ImageString'];
+ imageThumbUrl = json['ImageThumbUrl'];
+ isCovered = json['IsCovered'];
+ itemDescription = json['ItemDescription'];
+ itemID = json['ItemID'];
+ orderDate = json['OrderDate'];
+ patientID = json['PatientID'];
+ patientName = json['PatientName'];
+ phoneOffice1 = json['PhoneOffice1'];
+ prescriptionQR = json['PrescriptionQR'];
+ prescriptionTimes = json['PrescriptionTimes'];
+ productImage = json['ProductImage'];
+ productImageBase64 = json['ProductImageBase64'];
+ productImageString = json['ProductImageString'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ remarks = json['Remarks'];
+ route = json['Route'];
+ sKU = json['SKU'];
+ scaleOffset = json['ScaleOffset'];
+ startDate = json['StartDate'];
+
+ patientAge = json['patientAge'];
+ patientGender = json['patientGender'];
+ phoneOffice = json['phoneOffice'];
+ doseTimingID = json['doseTimingID'];
+ frequencyID = json['frequencyID'];
+ routeID = json['routeID'];
+ name = json['name'];
+ itemDescriptionN = json['itemDescriptionN'];
+ routeN = json['routeN'];
+ frequencyN = json['frequencyN'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+
+ data['Address'] = this.address;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['Clinic'] = this.clinic;
+ data['CompanyName'] = this.companyName;
+ data['Days'] = this.days;
+ data['DoctorName'] = this.doctorName;
+ data['DoseDailyQuantity'] = this.doseDailyQuantity;
+ data['Frequency'] = this.frequency;
+ data['FrequencyNumber'] = this.frequencyNumber;
+ data['Image'] = this.image;
+ data['ImageExtension'] = this.imageExtension;
+ data['ImageSRCUrl'] = this.imageSRCUrl;
+ data['ImageString'] = this.imageString;
+ data['ImageThumbUrl'] = this.imageThumbUrl;
+ data['IsCovered'] = this.isCovered;
+ data['ItemDescription'] = this.itemDescription;
+ data['ItemID'] = this.itemID;
+ data['OrderDate'] = this.orderDate;
+ data['PatientID'] = this.patientID;
+ data['PatientName'] = this.patientName;
+ data['PhoneOffice1'] = this.phoneOffice1;
+ data['PrescriptionQR'] = this.prescriptionQR;
+ data['PrescriptionTimes'] = this.prescriptionTimes;
+ data['ProductImage'] = this.productImage;
+ data['ProductImageBase64'] = this.productImageBase64;
+ data['ProductImageString'] = this.productImageString;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['Remarks'] = this.remarks;
+ data['Route'] = this.route;
+ data['SKU'] = this.sKU;
+ data['ScaleOffset'] = this.scaleOffset;
+ data['StartDate'] = this.startDate;
+
+ data['PatientAge'] = this.patientAge;
+ data['PatientGender'] = this.patientGender;
+ data['PhoneOffice'] = this.phoneOffice;
+ data['DoseTimingID'] = this.doseTimingID;
+ data['FrequencyID'] = this.frequencyID;
+ data['RouteID'] = this.routeID;
+ data['Name'] = this.name;
+ data['ItemDescriptionN'] = this.itemDescriptionN;
+ data['RouteN'] = this.routeN;
+ data['FrequencyN'] = this.frequencyN;
+ data['hasPlan'] = false;
+
+ return data;
+ }
+}
diff --git a/lib/core/model/Prescriptions/prescription_report_enh.dart b/lib/core/model/Prescriptions/prescription_report_enh.dart
new file mode 100644
index 00000000..203eaaff
--- /dev/null
+++ b/lib/core/model/Prescriptions/prescription_report_enh.dart
@@ -0,0 +1,144 @@
+class PrescriptionReportEnh {
+ String address;
+ int appointmentNo;
+ String clinic;
+ Null companyName;
+ int days;
+ String doctorName;
+ int doseDailyQuantity;
+ String frequency;
+ int frequencyNumber;
+ Null image;
+ Null imageExtension;
+ String imageSRCUrl;
+ Null imageString;
+ String imageThumbUrl;
+ String isCovered;
+ String itemDescription;
+ int itemID;
+ String orderDate;
+ int patientID;
+ String patientName;
+ String phoneOffice1;
+ Null prescriptionQR;
+ int prescriptionTimes;
+ Null productImage;
+ Null productImageBase64;
+ String productImageString;
+ int projectID;
+ String projectName;
+ String remarks;
+ String route;
+ String sKU;
+ int scaleOffset;
+ String startDate;
+
+ PrescriptionReportEnh(
+ {this.address,
+ this.appointmentNo,
+ this.clinic,
+ this.companyName,
+ this.days,
+ this.doctorName,
+ this.doseDailyQuantity,
+ this.frequency,
+ this.frequencyNumber,
+ this.image,
+ this.imageExtension,
+ this.imageSRCUrl,
+ this.imageString,
+ this.imageThumbUrl,
+ this.isCovered,
+ this.itemDescription,
+ this.itemID,
+ this.orderDate,
+ this.patientID,
+ this.patientName,
+ this.phoneOffice1,
+ this.prescriptionQR,
+ this.prescriptionTimes,
+ this.productImage,
+ this.productImageBase64,
+ this.productImageString,
+ this.projectID,
+ this.projectName,
+ this.remarks,
+ this.route,
+ this.sKU,
+ this.scaleOffset,
+ this.startDate});
+
+ PrescriptionReportEnh.fromJson(Map json) {
+ address = json['Address'];
+ appointmentNo = json['AppointmentNo'];
+ clinic = json['Clinic'];
+ companyName = json['CompanyName'];
+ days = json['Days'];
+ doctorName = json['DoctorName'];
+ doseDailyQuantity = json['DoseDailyQuantity'];
+ frequency = json['Frequency'];
+ frequencyNumber = json['FrequencyNumber'];
+ image = json['Image'];
+ imageExtension = json['ImageExtension'];
+ imageSRCUrl = json['ImageSRCUrl'];
+ imageString = json['ImageString'];
+ imageThumbUrl = json['ImageThumbUrl'];
+ isCovered = json['IsCovered'];
+ itemDescription = json['ItemDescription'];
+ itemID = json['ItemID'];
+ orderDate = json['OrderDate'];
+ patientID = json['PatientID'];
+ patientName = json['PatientName'];
+ phoneOffice1 = json['PhoneOffice1'];
+ prescriptionQR = json['PrescriptionQR'];
+ prescriptionTimes = json['PrescriptionTimes'];
+ productImage = json['ProductImage'];
+ productImageBase64 = json['ProductImageBase64'];
+ productImageString = json['ProductImageString'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ remarks = json['Remarks'];
+ route = json['Route'];
+ sKU = json['SKU'];
+ scaleOffset = json['ScaleOffset'];
+ startDate = json['StartDate'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Address'] = this.address;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['Clinic'] = this.clinic;
+ data['CompanyName'] = this.companyName;
+ data['Days'] = this.days;
+ data['DoctorName'] = this.doctorName;
+ data['DoseDailyQuantity'] = this.doseDailyQuantity;
+ data['Frequency'] = this.frequency;
+ data['FrequencyNumber'] = this.frequencyNumber;
+ data['Image'] = this.image;
+ data['ImageExtension'] = this.imageExtension;
+ data['ImageSRCUrl'] = this.imageSRCUrl;
+ data['ImageString'] = this.imageString;
+ data['ImageThumbUrl'] = this.imageThumbUrl;
+ data['IsCovered'] = this.isCovered;
+ data['ItemDescription'] = this.itemDescription;
+ data['ItemID'] = this.itemID;
+ data['OrderDate'] = this.orderDate;
+ data['PatientID'] = this.patientID;
+ data['PatientName'] = this.patientName;
+ data['PhoneOffice1'] = this.phoneOffice1;
+ data['PrescriptionQR'] = this.prescriptionQR;
+ data['PrescriptionTimes'] = this.prescriptionTimes;
+ data['ProductImage'] = this.productImage;
+ data['ProductImageBase64'] = this.productImageBase64;
+ data['ProductImageString'] = this.productImageString;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['Remarks'] = this.remarks;
+ data['Route'] = this.route;
+ data['SKU'] = this.sKU;
+ data['ScaleOffset'] = this.scaleOffset;
+ data['StartDate'] = this.startDate;
+ return data;
+ }
+}
diff --git a/lib/core/model/Prescriptions/prescriptions_order.dart b/lib/core/model/Prescriptions/prescriptions_order.dart
new file mode 100644
index 00000000..4f77f7ec
--- /dev/null
+++ b/lib/core/model/Prescriptions/prescriptions_order.dart
@@ -0,0 +1,134 @@
+import 'package:doctor_app_flutter/util/date-utils.dart';
+
+class PrescriptionsOrder {
+ int iD;
+ dynamic patientID;
+ bool patientOutSA;
+ bool isOutPatient;
+ int projectID;
+ int nearestProjectID;
+ double longitude;
+ double latitude;
+ dynamic appointmentNo;
+ dynamic dischargeID;
+ int lineItemNo;
+ int status;
+ dynamic description;
+ dynamic descriptionN;
+ DateTime createdOn;
+ int serviceID;
+ int createdBy;
+ DateTime editedOn;
+ int editedBy;
+ int channel;
+ dynamic clientRequestID;
+ bool returnedToQueue;
+ dynamic pickupDateTime;
+ dynamic pickupLocationName;
+ dynamic dropoffLocationName;
+ int realRRTHaveTransactions;
+ dynamic nearestProjectDescription;
+ dynamic nearestProjectDescriptionN;
+ dynamic projectDescription;
+ dynamic projectDescriptionN;
+
+ PrescriptionsOrder(
+ {this.iD,
+ this.patientID,
+ this.patientOutSA,
+ this.isOutPatient,
+ this.projectID,
+ this.nearestProjectID,
+ this.longitude,
+ this.latitude,
+ this.appointmentNo,
+ this.dischargeID,
+ this.lineItemNo,
+ this.status,
+ this.description,
+ this.descriptionN,
+ this.createdOn,
+ this.serviceID,
+ this.createdBy,
+ this.editedOn,
+ this.editedBy,
+ this.channel,
+ this.clientRequestID,
+ this.returnedToQueue,
+ this.pickupDateTime,
+ this.pickupLocationName,
+ this.dropoffLocationName,
+ this.realRRTHaveTransactions,
+ this.nearestProjectDescription,
+ this.nearestProjectDescriptionN,
+ this.projectDescription,
+ this.projectDescriptionN});
+
+ PrescriptionsOrder.fromJson(Map json) {
+ iD = json['ID'];
+ patientID = json['PatientID'];
+ patientOutSA = json['PatientOutSA'];
+ isOutPatient = json['IsOutPatient'];
+ projectID = json['ProjectID'];
+ nearestProjectID = json['NearestProjectID'];
+ longitude = json['Longitude'];
+ latitude = json['Latitude'];
+ appointmentNo = json['AppointmentNo'];
+ dischargeID = json['DischargeID'];
+ lineItemNo = json['LineItemNo'];
+ status = json['Status'];
+ description = json['Description'];
+ descriptionN = json['DescriptionN'];
+ createdOn = DateUtils.convertStringToDate(json['CreatedOn']);
+ serviceID = json['ServiceID'];
+ createdBy = json['CreatedBy'];
+ editedOn = DateUtils.convertStringToDate(json['EditedOn']);
+ editedBy = json['EditedBy'];
+ channel = json['Channel'];
+ clientRequestID = json['ClientRequestID'];
+ returnedToQueue = json['ReturnedToQueue'];
+ pickupDateTime = json['PickupDateTime'];
+ pickupLocationName = json['PickupLocationName'];
+ dropoffLocationName = json['DropoffLocationName'];
+ realRRTHaveTransactions = json['RealRRT_HaveTransactions'];
+ nearestProjectDescription = json['NearestProjectDescription'];
+ nearestProjectDescriptionN = json['NearestProjectDescriptionN'];
+ projectDescription = json['ProjectDescription'];
+ projectDescriptionN = json['ProjectDescriptionN'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ID'] = this.iD;
+ data['PatientID'] = this.patientID;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['IsOutPatient'] = this.isOutPatient;
+ data['ProjectID'] = this.projectID;
+ data['NearestProjectID'] = this.nearestProjectID;
+ data['Longitude'] = this.longitude;
+ data['Latitude'] = this.latitude;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['DischargeID'] = this.dischargeID;
+ data['LineItemNo'] = this.lineItemNo;
+ data['Status'] = this.status;
+ data['Description'] = this.description;
+ data['DescriptionN'] = this.descriptionN;
+ data['CreatedOn'] = this.createdOn;
+ data['ServiceID'] = this.serviceID;
+ data['CreatedBy'] = this.createdBy;
+ data['EditedOn'] = this.editedOn;
+ data['EditedBy'] = this.editedBy;
+ data['Channel'] = this.channel;
+ data['ClientRequestID'] = this.clientRequestID;
+ data['ReturnedToQueue'] = this.returnedToQueue;
+ data['PickupDateTime'] = this.pickupDateTime;
+ data['PickupLocationName'] = this.pickupLocationName;
+ data['DropoffLocationName'] = this.dropoffLocationName;
+ data['RealRRT_HaveTransactions'] = this.realRRTHaveTransactions;
+ data['NearestProjectDescription'] = this.nearestProjectDescription;
+ data['NearestProjectDescriptionN'] = this.nearestProjectDescriptionN;
+ data['ProjectDescription'] = this.projectDescription;
+ data['ProjectDescriptionN'] = this.projectDescriptionN;
+ return data;
+ }
+}
diff --git a/lib/core/model/Prescriptions/request_get_list_pharmacy_for_prescriptions.dart b/lib/core/model/Prescriptions/request_get_list_pharmacy_for_prescriptions.dart
new file mode 100644
index 00000000..739bb838
--- /dev/null
+++ b/lib/core/model/Prescriptions/request_get_list_pharmacy_for_prescriptions.dart
@@ -0,0 +1,60 @@
+class RequestGetListPharmacyForPrescriptions {
+ int latitude;
+ int longitude;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int itemID;
+
+ RequestGetListPharmacyForPrescriptions(
+ {this.latitude,
+ this.longitude,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.itemID});
+
+ RequestGetListPharmacyForPrescriptions.fromJson(Map json) {
+ latitude = json['Latitude'];
+ longitude = json['Longitude'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ itemID = json['ItemID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Latitude'] = this.latitude;
+ data['Longitude'] = this.longitude;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['ItemID'] = this.itemID;
+ return data;
+ }
+}
diff --git a/lib/core/model/Prescriptions/request_prescription_report.dart b/lib/core/model/Prescriptions/request_prescription_report.dart
new file mode 100644
index 00000000..c8323740
--- /dev/null
+++ b/lib/core/model/Prescriptions/request_prescription_report.dart
@@ -0,0 +1,88 @@
+class RequestPrescriptionReport {
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int patientID;
+ String tokenID;
+ int patientTypeID;
+ int patientType;
+ int appointmentNo;
+ String setupID;
+ int episodeID;
+ int clinicID;
+ int projectID;
+ int dischargeNo;
+
+ RequestPrescriptionReport(
+ {this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.patientID,
+ this.tokenID,
+ this.patientTypeID,
+ this.patientType,
+ this.appointmentNo,
+ this.setupID,
+ this.episodeID,
+ this.clinicID,
+ this.projectID,
+ this.dischargeNo});
+
+ RequestPrescriptionReport.fromJson(Map json) {
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ patientID = json['PatientID'];
+ tokenID = json['TokenID'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ appointmentNo = json['AppointmentNo'];
+ setupID = json['SetupID'];
+ episodeID = json['EpisodeID'];
+ clinicID = json['ClinicID'];
+ projectID = json['ProjectID'];
+ dischargeNo = json['DischargeNo'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['PatientID'] = this.patientID;
+ data['TokenID'] = this.tokenID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['SetupID'] = this.setupID;
+ data['EpisodeID'] = this.episodeID;
+ data['ClinicID'] = this.clinicID;
+ data['ProjectID'] = this.projectID;
+ data['DischargeNo'] = this.dischargeNo;
+ return data;
+ }
+}
diff --git a/lib/core/model/Prescriptions/request_prescription_report_enh.dart b/lib/core/model/Prescriptions/request_prescription_report_enh.dart
new file mode 100644
index 00000000..4905fc2a
--- /dev/null
+++ b/lib/core/model/Prescriptions/request_prescription_report_enh.dart
@@ -0,0 +1,86 @@
+class RequestPrescriptionReportEnh {
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int patientID;
+ String tokenID;
+ int patientTypeID;
+ int patientType;
+ int appointmentNo;
+ String setupID;
+ int dischargeNo;
+ int episodeID;
+ int clinicID;
+ int projectID;
+
+ RequestPrescriptionReportEnh(
+ {this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.patientID,
+ this.tokenID,
+ this.patientTypeID,
+ this.patientType,
+ this.appointmentNo,
+ this.setupID,
+ this.episodeID,
+ this.clinicID,
+ this.projectID,this.dischargeNo});
+
+ RequestPrescriptionReportEnh.fromJson(Map json) {
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ patientID = json['PatientID'];
+ tokenID = json['TokenID'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ appointmentNo = json['AppointmentNo'];
+ setupID = json['SetupID'];
+ episodeID = json['EpisodeID'];
+ clinicID = json['ClinicID'];
+ projectID = json['ProjectID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['PatientID'] = this.patientID;
+ data['TokenID'] = this.tokenID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['SetupID'] = this.setupID;
+ data['EpisodeID'] = this.episodeID;
+ data['ClinicID'] = this.clinicID;
+ data['ProjectID'] = this.projectID;
+ data['DischargeNo'] = this.dischargeNo;
+ return data;
+ }
+}
diff --git a/lib/core/model/admissionRequest/admission-request.dart b/lib/core/model/admissionRequest/admission-request.dart
new file mode 100644
index 00000000..1ab5a990
--- /dev/null
+++ b/lib/core/model/admissionRequest/admission-request.dart
@@ -0,0 +1,200 @@
+class AdmissionRequest {
+ int patientMRN;
+ int admitToClinic;
+ bool isPregnant;
+ int pregnancyWeeks;
+ int pregnancyType;
+ int noOfBabies;
+ int mrpDoctorID;
+ String admissionDate;
+ int expectedDays;
+ int admissionType;
+ int admissionLocationID;
+ int roomCategoryID;
+ int wardID;
+ bool isSickLeaveRequired;
+ String sickLeaveComments;
+ bool isTransport;
+ String transportComments;
+ bool isPhysioAppointmentNeeded;
+ String physioAppointmentComments;
+ bool isOPDFollowupAppointmentNeeded;
+ String opdFollowUpComments;
+ bool isDietType;
+ int dietType;
+ String dietRemarks;
+ bool isPhysicalActivityModification;
+ String physicalActivityModificationComments;
+ int orStatus;
+ String mainLineOfTreatment;
+ int estimatedCost;
+ String elementsForImprovement;
+ bool isPackagePatient;
+ String complications;
+ String otherDepartmentInterventions;
+ String otherProcedures;
+ String pastMedicalHistory;
+ String pastSurgicalHistory;
+ List admissionRequestDiagnoses;
+ List admissionRequestProcedures;
+ int appointmentNo;
+ int episodeID;
+ int admissionRequestNo;
+
+ AdmissionRequest(
+ {this.patientMRN,
+ this.admitToClinic,
+ this.isPregnant,
+ this.pregnancyWeeks = 0,
+ this.pregnancyType = 0,
+ this.noOfBabies = 0,
+ this.mrpDoctorID,
+ this.admissionDate,
+ this.expectedDays,
+ this.admissionType,
+ this.admissionLocationID = 0,
+ this.roomCategoryID = 0,
+ this.wardID,
+ this.isSickLeaveRequired,
+ this.sickLeaveComments = "",
+ this.isTransport = false,
+ this.transportComments = "",
+ this.isPhysioAppointmentNeeded = false,
+ this.physioAppointmentComments = "",
+ this.isOPDFollowupAppointmentNeeded = false,
+ this.opdFollowUpComments = "",
+ this.isDietType,
+ this.dietType,
+ this.dietRemarks,
+ this.isPhysicalActivityModification = false,
+ this.physicalActivityModificationComments = "",
+ this.orStatus = 1,
+ this.mainLineOfTreatment,
+ this.estimatedCost,
+ this.elementsForImprovement,
+ this.isPackagePatient = false,
+ this.complications = "",
+ this.otherDepartmentInterventions = "",
+ this.otherProcedures = "",
+ this.pastMedicalHistory = "",
+ this.pastSurgicalHistory = "",
+ this.admissionRequestDiagnoses,
+ this.admissionRequestProcedures,
+ this.appointmentNo,
+ this.episodeID,
+ this.admissionRequestNo});
+
+ AdmissionRequest.fromJson(Map json) {
+ patientMRN = json['patientMRN'];
+ admitToClinic = json['admitToClinic'];
+ isPregnant = json['isPregnant'];
+ pregnancyWeeks = json['pregnancyWeeks'];
+ pregnancyType = json['pregnancyType'];
+ noOfBabies = json['noOfBabies'];
+ mrpDoctorID = json['mrpDoctorID'];
+ admissionDate = json['admissionDate'];
+ expectedDays = json['expectedDays'];
+ admissionType = json['admissionType'];
+ admissionLocationID = json['admissionLocationID'];
+ roomCategoryID = json['roomCategoryID'];
+ wardID = json['wardID'];
+ isSickLeaveRequired = json['isSickLeaveRequired'];
+ sickLeaveComments = json['sickLeaveComments'];
+ isTransport = json['isTransport'];
+ transportComments = json['transportComments'];
+ isPhysioAppointmentNeeded = json['isPhysioAppointmentNeeded'];
+ physioAppointmentComments = json['physioAppointmentComments'];
+ isOPDFollowupAppointmentNeeded = json['isOPDFollowupAppointmentNeeded'];
+ opdFollowUpComments = json['opdFollowUpComments'];
+ isDietType = json['isDietType'];
+ dietType = json['dietType'];
+ dietRemarks = json['dietRemarks'];
+ isPhysicalActivityModification = json['isPhysicalActivityModification'];
+ physicalActivityModificationComments =
+ json['physicalActivityModificationComments'];
+ orStatus = json['orStatus'];
+ mainLineOfTreatment = json['mainLineOfTreatment'];
+ estimatedCost = json['estimatedCost'];
+ elementsForImprovement = json['elementsForImprovement'];
+ isPackagePatient = json['isPackagePatient'];
+ complications = json['complications'];
+ otherDepartmentInterventions = json['otherDepartmentInterventions'];
+ otherProcedures = json['otherProcedures'];
+ pastMedicalHistory = json['pastMedicalHistory'];
+ pastSurgicalHistory = json['pastSurgicalHistory'];
+ if (json['admissionRequestDiagnoses'] != null) {
+ admissionRequestDiagnoses = new List();
+ json['admissionRequestDiagnoses'].forEach((v) {
+ admissionRequestDiagnoses.add(v);
+ // admissionRequestDiagnoses
+ // .add(new AdmissionRequestDiagnoses.fromJson(v));
+ });
+ }
+ if (json['admissionRequestProcedures'] != null) {
+ admissionRequestProcedures = new List();
+ json['admissionRequestProcedures'].forEach((v) {
+ admissionRequestProcedures.add(v);
+ // admissionRequestProcedures
+ // .add(new AdmissionRequestProcedures.fromJson(v));
+ });
+ }
+ appointmentNo = json['appointmentNo'];
+ episodeID = json['episodeID'];
+ admissionRequestNo = json['admissionRequestNo'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['patientMRN'] = this.patientMRN;
+ data['admitToClinic'] = this.admitToClinic;
+ data['isPregnant'] = this.isPregnant;
+ data['pregnancyWeeks'] = this.pregnancyWeeks;
+ data['pregnancyType'] = this.pregnancyType;
+ data['noOfBabies'] = this.noOfBabies;
+ data['mrpDoctorID'] = this.mrpDoctorID;
+ data['admissionDate'] = this.admissionDate;
+ data['expectedDays'] = this.expectedDays;
+ data['admissionType'] = this.admissionType;
+ data['admissionLocationID'] = this.admissionLocationID;
+ data['roomCategoryID'] = this.roomCategoryID;
+ data['wardID'] = this.wardID;
+ data['isSickLeaveRequired'] = this.isSickLeaveRequired;
+ data['sickLeaveComments'] = this.sickLeaveComments;
+ data['isTransport'] = this.isTransport;
+ data['transportComments'] = this.transportComments;
+ data['isPhysioAppointmentNeeded'] = this.isPhysioAppointmentNeeded;
+ data['physioAppointmentComments'] = this.physioAppointmentComments;
+ data['isOPDFollowupAppointmentNeeded'] =
+ this.isOPDFollowupAppointmentNeeded;
+ data['opdFollowUpComments'] = this.opdFollowUpComments;
+ data['isDietType'] = this.isDietType;
+ data['dietType'] = this.dietType;
+ data['dietRemarks'] = this.dietRemarks;
+ data['isPhysicalActivityModification'] =
+ this.isPhysicalActivityModification;
+ data['physicalActivityModificationComments'] =
+ this.physicalActivityModificationComments;
+ data['orStatus'] = this.orStatus;
+ data['mainLineOfTreatment'] = this.mainLineOfTreatment;
+ data['estimatedCost'] = this.estimatedCost;
+ data['elementsForImprovement'] = this.elementsForImprovement;
+ data['isPackagePatient'] = this.isPackagePatient;
+ data['complications'] = this.complications;
+ data['otherDepartmentInterventions'] = this.otherDepartmentInterventions;
+ data['otherProcedures'] = this.otherProcedures;
+ data['pastMedicalHistory'] = this.pastMedicalHistory;
+ data['pastSurgicalHistory'] = this.pastSurgicalHistory;
+ if (this.admissionRequestDiagnoses != null) {
+ data['admissionRequestDiagnoses'] = this.admissionRequestDiagnoses;
+ // this.admissionRequestDiagnoses.map((v) => v.toJson()).toList();
+ }
+ if (this.admissionRequestProcedures != null) {
+ data['admissionRequestProcedures'] =
+ this.admissionRequestProcedures.map((v) => v.toJson()).toList();
+ }
+ data['appointmentNo'] = this.appointmentNo;
+ data['episodeID'] = this.episodeID;
+ data['admissionRequestNo'] = this.admissionRequestNo;
+ return data;
+ }
+}
diff --git a/lib/core/model/admissionRequest/clinic-model.dart b/lib/core/model/admissionRequest/clinic-model.dart
new file mode 100644
index 00000000..05d34645
--- /dev/null
+++ b/lib/core/model/admissionRequest/clinic-model.dart
@@ -0,0 +1,33 @@
+class Clinic {
+ int clinicGroupID;
+ String clinicGroupName;
+ int clinicID;
+ String clinicNameArabic;
+ String clinicNameEnglish;
+
+ Clinic(
+ {this.clinicGroupID,
+ this.clinicGroupName,
+ this.clinicID,
+ this.clinicNameArabic,
+ this.clinicNameEnglish});
+
+ Clinic.fromJson(Map json) {
+ clinicGroupID = json['clinicGroupID'];
+ clinicGroupName = json['clinicGroupName'];
+ clinicID = json['clinicID'];
+ clinicNameArabic = json['clinicNameArabic'];
+ clinicNameEnglish = json['clinicNameEnglish'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['clinicGroupID'] = this.clinicGroupID;
+ data['clinicGroupName'] = this.clinicGroupName;
+ data['clinicID'] = this.clinicID;
+ data['clinicNameArabic'] = this.clinicNameArabic;
+ data['clinicNameEnglish'] = this.clinicNameEnglish;
+ return data;
+ }
+
+}
\ No newline at end of file
diff --git a/lib/core/model/admissionRequest/ward-model.dart b/lib/core/model/admissionRequest/ward-model.dart
new file mode 100644
index 00000000..606758d3
--- /dev/null
+++ b/lib/core/model/admissionRequest/ward-model.dart
@@ -0,0 +1,26 @@
+class WardModel{
+
+ String description;
+ String descriptionN;
+ int floorID;
+ bool isActive;
+
+ WardModel(
+ {this.description, this.descriptionN, this.floorID, this.isActive});
+
+ WardModel.fromJson(Map json) {
+ description = json['description'];
+ descriptionN = json['descriptionN'];
+ floorID = json['floorID'];
+ isActive = json['isActive'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['description'] = this.description;
+ data['descriptionN'] = this.descriptionN;
+ data['floorID'] = this.floorID;
+ data['isActive'] = this.isActive;
+ return data;
+ }
+}
\ No newline at end of file
diff --git a/lib/core/model/calculate_box_request_model.dart b/lib/core/model/calculate_box_request_model.dart
new file mode 100644
index 00000000..80281854
--- /dev/null
+++ b/lib/core/model/calculate_box_request_model.dart
@@ -0,0 +1,32 @@
+class CalculateBoxQuantityRequestModel {
+ int itemCode;
+ double strength;
+ int frequency;
+ int duration;
+ String vidaAuthTokenID;
+
+ CalculateBoxQuantityRequestModel(
+ {this.itemCode,
+ this.strength,
+ this.frequency,
+ this.duration,
+ this.vidaAuthTokenID});
+
+ CalculateBoxQuantityRequestModel.fromJson(Map json) {
+ itemCode = json['ItemCode'];
+ strength = json['Strength'];
+ frequency = json['Frequency'];
+ duration = json['Duration'];
+ vidaAuthTokenID = json['VidaAuthTokenID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ItemCode'] = this.itemCode;
+ data['Strength'] = this.strength;
+ data['Frequency'] = this.frequency;
+ data['Duration'] = this.duration;
+ data['VidaAuthTokenID'] = this.vidaAuthTokenID;
+ return data;
+ }
+}
diff --git a/lib/core/model/get_medication_response_model.dart b/lib/core/model/get_medication_response_model.dart
new file mode 100644
index 00000000..a42a8b47
--- /dev/null
+++ b/lib/core/model/get_medication_response_model.dart
@@ -0,0 +1,47 @@
+class GetMedicationResponseModel {
+ String description;
+ String genericName;
+ int itemId;
+ String keywords;
+ dynamic price;
+ dynamic quantity;
+ dynamic mediSpanGPICode;
+ bool isNarcotic;
+ String uom;
+ GetMedicationResponseModel(
+ {this.description,
+ this.genericName,
+ this.itemId,
+ this.keywords,
+ this.price,
+ this.quantity,
+ this.isNarcotic,
+ this.uom,
+ this.mediSpanGPICode});
+
+ GetMedicationResponseModel.fromJson(Map json) {
+ description = json['Description'];
+ genericName = json['GenericName'];
+ itemId = json['ItemId'];
+ keywords = json['Keywords'];
+ price = json['Price'];
+ quantity = json['Quantity'];
+ mediSpanGPICode = json['mediSpanGPICode'];
+ isNarcotic = json['isNarcotic'];
+ uom = json['uom'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Description'] = this.description;
+ data['GenericName'] = this.genericName;
+ data['ItemId'] = this.itemId;
+ data['Keywords'] = this.keywords;
+ data['Price'] = this.price;
+ data['Quantity'] = this.quantity;
+ data['mediSpanGPICode'] = this.mediSpanGPICode;
+ data['isNarcotic'] = this.isNarcotic;
+ data['uom'] = this.uom;
+ return data;
+ }
+}
diff --git a/lib/core/model/imei_details.dart b/lib/core/model/imei_details.dart
new file mode 100644
index 00000000..eb37e736
--- /dev/null
+++ b/lib/core/model/imei_details.dart
@@ -0,0 +1,127 @@
+class GetIMEIDetailsModel {
+ int iD;
+ String iMEI;
+ int logInTypeID;
+ bool outSA;
+ String mobile;
+ dynamic identificationNo;
+ int doctorID;
+ String doctorName;
+ String doctorNameN;
+ int clinicID;
+ String clinicDescription;
+ dynamic clinicDescriptionN;
+ int projectID;
+ String projectName;
+ String genderDescription;
+ dynamic genderDescriptionN;
+ String titleDescription;
+ dynamic titleDescriptionN;
+ dynamic zipCode;
+ String createdOn;
+ dynamic createdBy;
+ String editedOn;
+ dynamic editedBy;
+ bool biometricEnabled;
+ dynamic preferredLanguage;
+ bool isActive;
+ String vidaAuthTokenID;
+ String vidaRefreshTokenID;
+ String password;
+ GetIMEIDetailsModel(
+ {this.iD,
+ this.iMEI,
+ this.logInTypeID,
+ this.outSA,
+ this.mobile,
+ this.identificationNo,
+ this.doctorID,
+ this.doctorName,
+ this.doctorNameN,
+ this.clinicID,
+ this.clinicDescription,
+ this.clinicDescriptionN,
+ this.projectID,
+ this.projectName,
+ this.genderDescription,
+ this.genderDescriptionN,
+ this.titleDescription,
+ this.titleDescriptionN,
+ this.zipCode,
+ this.createdOn,
+ this.createdBy,
+ this.editedOn,
+ this.editedBy,
+ this.biometricEnabled,
+ this.preferredLanguage,
+ this.isActive,
+ this.vidaAuthTokenID,
+ this.vidaRefreshTokenID,
+ this.password});
+
+ GetIMEIDetailsModel.fromJson(Map json) {
+ iD = json['ID'];
+ iMEI = json['IMEI'];
+ logInTypeID = json['LogInTypeID'];
+ outSA = json['OutSA'];
+ mobile = json['Mobile'];
+ identificationNo = json['IdentificationNo'];
+ doctorID = json['DoctorID'];
+ doctorName = json['DoctorName'];
+ doctorNameN = json['DoctorNameN'];
+ clinicID = json['ClinicID'];
+ clinicDescription = json['ClinicDescription'];
+ clinicDescriptionN = json['ClinicDescriptionN'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ genderDescription = json['Gender_Description'];
+ genderDescriptionN = json['Gender_DescriptionN'];
+ titleDescription = json['Title_Description'];
+ titleDescriptionN = json['Title_DescriptionN'];
+ zipCode = json['ZipCode'];
+ createdOn = json['CreatedOn'];
+ createdBy = json['CreatedBy'];
+ editedOn = json['EditedOn'];
+ editedBy = json['EditedBy'];
+ biometricEnabled = json['BiometricEnabled'];
+ preferredLanguage = json['PreferredLanguage'];
+ isActive = json['IsActive'];
+ vidaAuthTokenID = json['VidaAuthTokenID'];
+ vidaRefreshTokenID = json['VidaRefreshTokenID'];
+ password = json['Password'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ID'] = this.iD;
+ data['IMEI'] = this.iMEI;
+ data['LogInTypeID'] = this.logInTypeID;
+ data['OutSA'] = this.outSA;
+ data['Mobile'] = this.mobile;
+ data['IdentificationNo'] = this.identificationNo;
+ data['DoctorID'] = this.doctorID;
+ data['DoctorName'] = this.doctorName;
+ data['DoctorNameN'] = this.doctorNameN;
+ data['ClinicID'] = this.clinicID;
+ data['ClinicDescription'] = this.clinicDescription;
+ data['ClinicDescriptionN'] = this.clinicDescriptionN;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['Gender_Description'] = this.genderDescription;
+ data['Gender_DescriptionN'] = this.genderDescriptionN;
+ data['Title_Description'] = this.titleDescription;
+ data['Title_DescriptionN'] = this.titleDescriptionN;
+ data['ZipCode'] = this.zipCode;
+ data['CreatedOn'] = this.createdOn;
+ data['CreatedBy'] = this.createdBy;
+ data['EditedOn'] = this.editedOn;
+ data['EditedBy'] = this.editedBy;
+ data['BiometricEnabled'] = this.biometricEnabled;
+ data['PreferredLanguage'] = this.preferredLanguage;
+ data['IsActive'] = this.isActive;
+ data['VidaAuthTokenID'] = this.vidaAuthTokenID;
+ data['VidaRefreshTokenID'] = this.vidaRefreshTokenID;
+ data['Password'] = this.password;
+ return data;
+ }
+}
diff --git a/lib/core/model/insert_imei_model.dart b/lib/core/model/insert_imei_model.dart
new file mode 100644
index 00000000..25e22b7a
--- /dev/null
+++ b/lib/core/model/insert_imei_model.dart
@@ -0,0 +1,143 @@
+class InsertIMEIDetailsModel {
+ String iMEI;
+ int logInTypeID;
+ dynamic outSA;
+ String mobile;
+ dynamic identificationNo;
+ int doctorID;
+ String doctorName;
+ String doctorNameN;
+ int clinicID;
+ String clinicDescription;
+ Null clinicDescriptionN;
+ String projectName;
+ String genderDescription;
+ Null genderDescriptionN;
+ String titleDescription;
+ Null titleDescriptionN;
+ bool bioMetricEnabled;
+ Null preferredLanguage;
+ bool isActive;
+ int editedBy;
+ int projectID;
+ String tokenID;
+ int languageID;
+ String stamp;
+ String iPAdress;
+ double versionID;
+ int channel;
+ String sessionID;
+ bool isLoginForDoctorApp;
+ int patientOutSA;
+ String vidaAuthTokenID;
+ String vidaRefreshTokenID;
+ dynamic password;
+ InsertIMEIDetailsModel(
+ {this.iMEI,
+ this.logInTypeID,
+ this.outSA,
+ this.mobile,
+ this.identificationNo,
+ this.doctorID,
+ this.doctorName,
+ this.doctorNameN,
+ this.clinicID,
+ this.clinicDescription,
+ this.clinicDescriptionN,
+ this.projectName,
+ this.genderDescription,
+ this.genderDescriptionN,
+ this.titleDescription,
+ this.titleDescriptionN,
+ this.bioMetricEnabled,
+ this.preferredLanguage,
+ this.isActive,
+ this.editedBy,
+ this.projectID,
+ this.tokenID,
+ this.languageID,
+ this.stamp,
+ this.iPAdress,
+ this.versionID,
+ this.channel,
+ this.sessionID,
+ this.isLoginForDoctorApp,
+ this.patientOutSA,
+ this.vidaAuthTokenID,
+ this.vidaRefreshTokenID,
+ this.password});
+
+ InsertIMEIDetailsModel.fromJson(Map json) {
+ iMEI = json['IMEI'];
+ logInTypeID = json['LogInTypeID'];
+ outSA = json['OutSA'];
+ mobile = json['MobileNo'];
+ identificationNo = json['IdentificationNo'];
+ doctorID = json['DoctorID'];
+ doctorName = json['DoctorName'];
+ doctorNameN = json['DoctorNameN'];
+ clinicID = json['ClinicID'];
+ clinicDescription = json['ClinicDescription'];
+ clinicDescriptionN = json['ClinicDescriptionN'];
+ projectName = json['ProjectName'];
+ genderDescription = json['GenderDescription'];
+ genderDescriptionN = json['GenderDescriptionN'];
+ titleDescription = json['TitleDescription'];
+ titleDescriptionN = json['Title_DescriptionN'];
+ bioMetricEnabled = json['BioMetricEnabled'];
+ preferredLanguage = json['PreferredLanguage'];
+ isActive = json['IsActive'];
+ editedBy = json['EditedBy'];
+ projectID = json['ProjectID'];
+ tokenID = json['TokenID'];
+ languageID = json['LanguageID'];
+ stamp = json['stamp'];
+ iPAdress = json['IPAdress'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ sessionID = json['SessionID'];
+ isLoginForDoctorApp = json['IsLoginForDoctorApp'];
+ patientOutSA = json['PatientOutSA'];
+ vidaAuthTokenID = json['VidaAuthTokenID'];
+ vidaRefreshTokenID = json['VidaRefreshTokenID'];
+ password = json['Password'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['IMEI'] = this.iMEI;
+ data['LogInTypeID'] = this.logInTypeID;
+ data['OutSA'] = this.outSA;
+ data['MobileNo'] = this.mobile;
+ data['IdentificationNo'] = this.identificationNo;
+ data['DoctorID'] = this.doctorID;
+ data['DoctorName'] = this.doctorName;
+ data['DoctorNameN'] = this.doctorNameN;
+ data['ClinicID'] = this.clinicID;
+ data['ClinicDescription'] = this.clinicDescription;
+ data['ClinicDescriptionN'] = this.clinicDescriptionN;
+ data['ProjectName'] = this.projectName;
+ data['GenderDescription'] = this.genderDescription;
+ data['GenderDescriptionN'] = this.genderDescriptionN;
+ data['TitleDescription'] = this.titleDescription;
+ data['Title_DescriptionN'] = this.titleDescriptionN;
+ data['BioMetricEnabled'] = this.bioMetricEnabled;
+ data['PreferredLanguage'] = this.preferredLanguage;
+ data['IsActive'] = this.isActive;
+ data['EditedBy'] = this.editedBy;
+ data['ProjectID'] = this.projectID;
+ data['TokenID'] = this.tokenID;
+ data['LanguageID'] = this.languageID;
+ data['stamp'] = this.stamp;
+ data['IPAdress'] = this.iPAdress;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['SessionID'] = this.sessionID;
+ data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['VidaAuthTokenID'] = this.vidaAuthTokenID;
+ data['VidaRefreshTokenID'] = this.vidaRefreshTokenID;
+ data['Password'] = this.password;
+ return data;
+ }
+}
diff --git a/lib/core/model/insurance_approval.dart b/lib/core/model/insurance_approval.dart
new file mode 100644
index 00000000..894fad46
--- /dev/null
+++ b/lib/core/model/insurance_approval.dart
@@ -0,0 +1,140 @@
+class InsuranceApprovalDetails {
+ String procedureName;
+ String status;
+ String isInvoicedDesc;
+
+ InsuranceApprovalDetails({
+ this.procedureName,
+ this.status,
+ this.isInvoicedDesc,
+ });
+
+ InsuranceApprovalDetails.fromJson(Map json) {
+ try {
+ isInvoicedDesc = json['IsInvoicedDesc'];
+ status = json['Status'];
+ procedureName = json['ProcedureName'];
+ } catch (e) {
+ print(e);
+ }
+ }
+}
+
+class InsuranceApprovalModel {
+ InsuranceApprovalDetails approvalDetails;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int patientID;
+ String tokenID;
+ int patientTypeID;
+ int patientType;
+ int eXuldAPPNO;
+ int projectID;
+ String doctorName;
+ String clinicName;
+ String patientDescription;
+ int approvalNo;
+ String approvalStatusDescption;
+ int unUsedCount;
+
+ //String companyName;
+ String expiryDate;
+ String rceiptOn;
+ int appointmentNo;
+
+ InsuranceApprovalModel(
+ {this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.patientID,
+ this.tokenID,
+ this.patientTypeID,
+ this.patientType,
+ this.eXuldAPPNO,
+ this.projectID,
+ this.doctorName,
+ this.clinicName,
+ this.patientDescription,
+ this.approvalNo,
+ this.approvalStatusDescption,
+ this.unUsedCount,
+ //this.companyName,
+ this.expiryDate,
+ this.rceiptOn,
+ this.approvalDetails,
+ this.appointmentNo});
+
+ InsuranceApprovalDetails x = InsuranceApprovalDetails();
+
+ InsuranceApprovalModel.fromJson(Map json) {
+ try {
+ rceiptOn = json['ReceiptOn'];
+ expiryDate = json['ExpiryDate'];
+ //companyName = json['CompanyName'];
+ unUsedCount = json['TotaUnUsedCount'];
+ approvalStatusDescption = json['ApprovalStatusDescption'];
+ approvalNo = json['ApprovalNo'];
+ patientDescription = json['IsInOutPatientDescription'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ patientID = json['PatientID'];
+ tokenID = json['TokenID'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ eXuldAPPNO = json['EXuldAPPNO'];
+ projectID = json['ProjectID'];
+ doctorName = json['DoctorName'];
+ clinicName = json['ClinicName'];
+ approvalDetails =
+ InsuranceApprovalDetails.fromJson(json['ApporvalDetails'][0]);
+ appointmentNo = json['AppointmentNo'];
+ } catch (e) {
+ print(e);
+ }
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['PatientID'] = this.patientID;
+ data['TokenID'] = this.tokenID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ if (appointmentNo == null) {
+ data['EXuldAPPNO'] = this.eXuldAPPNO;
+ data['ProjectID'] = this.projectID;
+ }
+ if (appointmentNo != null) {
+ data['AppointmentNo'] = this.appointmentNo;
+ }
+ return data;
+ }
+}
diff --git a/lib/core/model/item_by_medicine_model.dart b/lib/core/model/item_by_medicine_model.dart
new file mode 100644
index 00000000..0a93a4f1
--- /dev/null
+++ b/lib/core/model/item_by_medicine_model.dart
@@ -0,0 +1,108 @@
+class ItemByMedicineModel {
+ List frequencies;
+ List routes;
+ List strengths;
+
+ ItemByMedicineModel({this.frequencies, this.routes, this.strengths});
+
+ ItemByMedicineModel.fromJson(Map json) {
+ if (json['frequencies'] != null) {
+ frequencies = new List();
+ json['frequencies'].forEach((v) {
+ frequencies.add(new Frequencies.fromJson(v));
+ });
+ }
+ if (json['routes'] != null) {
+ routes = new List();
+ json['routes'].forEach((v) {
+ routes.add(new Routes.fromJson(v));
+ });
+ }
+ if (json['strengths'] != null) {
+ strengths = new List();
+ json['strengths'].forEach((v) {
+ strengths.add(new Strengths.fromJson(v));
+ });
+ }
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ if (this.frequencies != null) {
+ data['frequencies'] = this.frequencies.map((v) => v.toJson()).toList();
+ }
+ if (this.routes != null) {
+ data['routes'] = this.routes.map((v) => v.toJson()).toList();
+ }
+ if (this.strengths != null) {
+ data['strengths'] = this.strengths.map((v) => v.toJson()).toList();
+ }
+ return data;
+ }
+}
+
+class Frequencies {
+ String description;
+ bool isDefault;
+ int parameterCode;
+
+ Frequencies({this.description, this.isDefault, this.parameterCode});
+
+ Frequencies.fromJson(Map json) {
+ description = json['description'];
+ isDefault = json['isDefault'];
+ parameterCode = json['parameterCode'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['description'] = this.description;
+ data['isDefault'] = this.isDefault;
+ data['parameterCode'] = this.parameterCode;
+ return data;
+ }
+}
+
+class Strengths {
+ String description;
+ bool isDefault;
+ int parameterCode;
+
+ Strengths({this.description, this.isDefault, this.parameterCode});
+
+ Strengths.fromJson(Map json) {
+ description = json['description'];
+ isDefault = json['isDefault'];
+ parameterCode = json['parameterCode'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['description'] = this.description;
+ data['isDefault'] = this.isDefault;
+ data['parameterCode'] = this.parameterCode;
+ return data;
+ }
+}
+
+class Routes {
+ String description;
+ bool isDefault;
+ int parameterCode;
+
+ Routes({this.description, this.isDefault, this.parameterCode});
+
+ Routes.fromJson(Map json) {
+ description = json['description'];
+ isDefault = json['isDefault'];
+ parameterCode = json['parameterCode'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['description'] = this.description;
+ data['isDefault'] = this.isDefault;
+ data['parameterCode'] = this.parameterCode;
+ return data;
+ }
+}
diff --git a/lib/core/model/item_by_medicine_request_model.dart b/lib/core/model/item_by_medicine_request_model.dart
new file mode 100644
index 00000000..7460044b
--- /dev/null
+++ b/lib/core/model/item_by_medicine_request_model.dart
@@ -0,0 +1,18 @@
+class ItemByMedicineRequestModel {
+ String vidaAuthTokenID;
+ int medicineCode;
+
+ ItemByMedicineRequestModel({this.vidaAuthTokenID, this.medicineCode});
+
+ ItemByMedicineRequestModel.fromJson(Map json) {
+ vidaAuthTokenID = json['VidaAuthTokenID'];
+ medicineCode = json['MedicineCode'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VidaAuthTokenID'] = this.vidaAuthTokenID;
+ data['MedicineCode'] = this.medicineCode;
+ return data;
+ }
+}
diff --git a/lib/core/model/labs/LabOrderResult.dart b/lib/core/model/labs/LabOrderResult.dart
new file mode 100644
index 00000000..ecb4ae65
--- /dev/null
+++ b/lib/core/model/labs/LabOrderResult.dart
@@ -0,0 +1,88 @@
+class LabOrderResult {
+ String description;
+ dynamic femaleInterpretativeData;
+ int gender;
+ int lineItemNo;
+ dynamic maleInterpretativeData;
+ dynamic notes;
+ String packageID;
+ int patientID;
+ String projectID;
+ String referanceRange;
+ String resultValue;
+ String sampleCollectedOn;
+ String sampleReceivedOn;
+ String setupID;
+ dynamic superVerifiedOn;
+ String testCode;
+ String uOM;
+ String verifiedOn;
+ String verifiedOnDateTime;
+
+ LabOrderResult(
+ {this.description,
+ this.femaleInterpretativeData,
+ this.gender,
+ this.lineItemNo,
+ this.maleInterpretativeData,
+ this.notes,
+ this.packageID,
+ this.patientID,
+ this.projectID,
+ this.referanceRange,
+ this.resultValue,
+ this.sampleCollectedOn,
+ this.sampleReceivedOn,
+ this.setupID,
+ this.superVerifiedOn,
+ this.testCode,
+ this.uOM,
+ this.verifiedOn,
+ this.verifiedOnDateTime});
+
+ LabOrderResult.fromJson(Map json) {
+ description = json['Description'];
+ femaleInterpretativeData = json['FemaleInterpretativeData'];
+ gender = json['Gender'];
+ lineItemNo = json['LineItemNo'];
+ maleInterpretativeData = json['MaleInterpretativeData'];
+ notes = json['Notes'];
+ packageID = json['PackageID'];
+ patientID = json['PatientID'];
+ projectID = json['ProjectID'];
+ referanceRange = json['ReferanceRange'];
+ resultValue = json['ResultValue'];
+ sampleCollectedOn = json['SampleCollectedOn'];
+ sampleReceivedOn = json['SampleReceivedOn'];
+ setupID = json['SetupID'];
+ superVerifiedOn = json['SuperVerifiedOn'];
+ testCode = json['TestCode'];
+ uOM = json['UOM'];
+ verifiedOn = json['VerifiedOn'];
+ verifiedOnDateTime = json['VerifiedOnDateTime'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Description'] = this.description;
+ data['FemaleInterpretativeData'] = this.femaleInterpretativeData;
+ data['Gender'] = this.gender;
+ data['LineItemNo'] = this.lineItemNo;
+ data['MaleInterpretativeData'] = this.maleInterpretativeData;
+ data['Notes'] = this.notes;
+ data['PackageID'] = this.packageID;
+ data['PatientID'] = this.patientID;
+ data['ProjectID'] = this.projectID;
+ data['ReferanceRange'] = this.referanceRange;
+ data['ResultValue'] = this.resultValue;
+ data['SampleCollectedOn'] = this.sampleCollectedOn;
+ data['SampleReceivedOn'] = this.sampleReceivedOn;
+ data['SetupID'] = this.setupID;
+ data['SuperVerifiedOn'] = this.superVerifiedOn;
+ data['TestCode'] = this.testCode;
+ data['UOM'] = this.uOM;
+ data['VerifiedOn'] = this.verifiedOn;
+ data['VerifiedOnDateTime'] = this.verifiedOnDateTime;
+ return data;
+ }
+}
diff --git a/lib/core/model/labs/lab_result.dart b/lib/core/model/labs/lab_result.dart
new file mode 100644
index 00000000..2deb13f3
--- /dev/null
+++ b/lib/core/model/labs/lab_result.dart
@@ -0,0 +1,98 @@
+class LabResult {
+ String description;
+ dynamic femaleInterpretativeData;
+ int gender;
+ int lineItemNo;
+ dynamic maleInterpretativeData;
+ String notes;
+ String packageID;
+ int patientID;
+ String projectID;
+ String referanceRange;
+ String resultValue;
+ String sampleCollectedOn;
+ String sampleReceivedOn;
+ String setupID;
+ dynamic superVerifiedOn;
+ String testCode;
+ String uOM;
+ String verifiedOn;
+ dynamic verifiedOnDateTime;
+
+ LabResult(
+ {this.description,
+ this.femaleInterpretativeData,
+ this.gender,
+ this.lineItemNo,
+ this.maleInterpretativeData,
+ this.notes,
+ this.packageID,
+ this.patientID,
+ this.projectID,
+ this.referanceRange,
+ this.resultValue,
+ this.sampleCollectedOn,
+ this.sampleReceivedOn,
+ this.setupID,
+ this.superVerifiedOn,
+ this.testCode,
+ this.uOM,
+ this.verifiedOn,
+ this.verifiedOnDateTime});
+
+ LabResult.fromJson(Map json) {
+ description = json['Description'];
+ femaleInterpretativeData = json['FemaleInterpretativeData'];
+ gender = json['Gender'];
+ lineItemNo = json['LineItemNo'];
+ maleInterpretativeData = json['MaleInterpretativeData'];
+ notes = json['Notes'];
+ packageID = json['PackageID'];
+ patientID = json['PatientID'];
+ projectID = json['ProjectID'];
+ referanceRange = json['ReferanceRange'];
+ resultValue = json['ResultValue'];
+ sampleCollectedOn = json['SampleCollectedOn'];
+ sampleReceivedOn = json['SampleReceivedOn'];
+ setupID = json['SetupID'];
+ superVerifiedOn = json['SuperVerifiedOn'];
+ testCode = json['TestCode'];
+ uOM = json['UOM'];
+ verifiedOn = json['VerifiedOn'];
+ verifiedOnDateTime = json['VerifiedOnDateTime'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Description'] = this.description;
+ data['FemaleInterpretativeData'] = this.femaleInterpretativeData;
+ data['Gender'] = this.gender;
+ data['LineItemNo'] = this.lineItemNo;
+ data['MaleInterpretativeData'] = this.maleInterpretativeData;
+ data['Notes'] = this.notes;
+ data['PackageID'] = this.packageID;
+ data['PatientID'] = this.patientID;
+ data['ProjectID'] = this.projectID;
+ data['ReferanceRange'] = this.referanceRange;
+ data['ResultValue'] = this.resultValue;
+ data['SampleCollectedOn'] = this.sampleCollectedOn;
+ data['SampleReceivedOn'] = this.sampleReceivedOn;
+ data['SetupID'] = this.setupID;
+ data['SuperVerifiedOn'] = this.superVerifiedOn;
+ data['TestCode'] = this.testCode;
+ data['UOM'] = this.uOM;
+ data['VerifiedOn'] = this.verifiedOn;
+ data['VerifiedOnDateTime'] = this.verifiedOnDateTime;
+ return data;
+ }
+}
+
+
+class LabResultList {
+ String filterName = "";
+ List patientLabResultList = List();
+
+ LabResultList({this.filterName, LabResult lab}) {
+ patientLabResultList.add(lab);
+ }
+}
diff --git a/lib/core/model/labs/patient_lab_orders.dart b/lib/core/model/labs/patient_lab_orders.dart
new file mode 100644
index 00000000..07044b0e
--- /dev/null
+++ b/lib/core/model/labs/patient_lab_orders.dart
@@ -0,0 +1,158 @@
+import 'package:doctor_app_flutter/util/date-utils.dart';
+
+class PatientLabOrders {
+ int actualDoctorRate;
+ String clinicDescription;
+ String clinicDescriptionEnglish;
+ Null clinicDescriptionN;
+ int clinicID;
+ int doctorID;
+ String doctorImageURL;
+ String doctorName;
+ String doctorNameEnglish;
+ Null doctorNameN;
+ int doctorRate;
+ String doctorTitle;
+ int gender;
+ String genderDescription;
+ String invoiceNo;
+ bool isActiveDoctorProfile;
+ bool isDoctorAllowVedioCall;
+ bool isExecludeDoctor;
+ bool isInOutPatient;
+ String isInOutPatientDescription;
+ String isInOutPatientDescriptionN;
+ bool isRead;
+ String nationalityFlagURL;
+ int noOfPatientsRate;
+ DateTime orderDate;
+ String orderNo;
+ String patientID;
+ String projectID;
+ String projectName;
+ Null projectNameN;
+ String qR;
+ String setupID;
+ List speciality;
+ bool isLiveCareAppointment;
+ PatientLabOrders(
+ {this.actualDoctorRate,
+ this.clinicDescription,
+ this.clinicDescriptionEnglish,
+ this.clinicDescriptionN,
+ this.clinicID,
+ this.doctorID,
+ this.doctorImageURL,
+ this.doctorName,
+ this.doctorNameEnglish,
+ this.doctorNameN,
+ this.doctorRate,
+ this.doctorTitle,
+ this.gender,
+ this.genderDescription,
+ this.invoiceNo,
+ this.isActiveDoctorProfile,
+ this.isDoctorAllowVedioCall,
+ this.isExecludeDoctor,
+ this.isInOutPatient,
+ this.isInOutPatientDescription,
+ this.isInOutPatientDescriptionN,
+ this.isRead,
+ this.nationalityFlagURL,
+ this.noOfPatientsRate,
+ this.orderDate,
+ this.orderNo,
+ this.patientID,
+ this.projectID,
+ this.projectName,
+ this.projectNameN,
+ this.qR,
+ this.setupID,
+ this.speciality,this.isLiveCareAppointment});
+
+ PatientLabOrders.fromJson(Map json) {
+ actualDoctorRate = json['ActualDoctorRate'];
+ clinicDescription = json['ClinicDescription'];
+ clinicDescriptionEnglish = json['ClinicDescriptionEnglish'];
+ clinicDescriptionN = json['ClinicDescriptionN'];
+ clinicID = json['ClinicID'];
+ doctorID = json['DoctorID'];
+ doctorImageURL = json['DoctorImageURL'];
+ doctorName = json['DoctorName'];
+ doctorNameEnglish = json['DoctorNameEnglish'];
+ doctorNameN = json['DoctorNameN'];
+ doctorRate = json['DoctorRate'];
+ doctorTitle = json['DoctorTitle'];
+ gender = json['Gender'];
+ genderDescription = json['GenderDescription'];
+ invoiceNo = json['InvoiceNo'];
+ isActiveDoctorProfile = json['IsActiveDoctorProfile'];
+ isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
+ isExecludeDoctor = json['IsExecludeDoctor'];
+ isInOutPatient = json['IsInOutPatient'];
+ isInOutPatientDescription = json['IsInOutPatientDescription'];
+ isInOutPatientDescriptionN = json['IsInOutPatientDescriptionN'];
+ isRead = json['IsRead'];
+ nationalityFlagURL = json['NationalityFlagURL'];
+ noOfPatientsRate = json['NoOfPatientsRate'];
+ orderDate = DateUtils.convertStringToDate(json['OrderDate']);
+ orderNo = json['OrderNo'];
+ patientID = json['PatientID'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ projectNameN = json['ProjectNameN'];
+ qR = json['QR'];
+ setupID = json['SetupID'];
+ isLiveCareAppointment = json['IsLiveCareAppointment'];
+ // speciality = json['Speciality'].cast();
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ActualDoctorRate'] = this.actualDoctorRate;
+ data['ClinicDescription'] = this.clinicDescription;
+ data['ClinicDescriptionEnglish'] = this.clinicDescriptionEnglish;
+ data['ClinicDescriptionN'] = this.clinicDescriptionN;
+ data['ClinicID'] = this.clinicID;
+ data['DoctorID'] = this.doctorID;
+ data['DoctorImageURL'] = this.doctorImageURL;
+ data['DoctorName'] = this.doctorName;
+ data['DoctorNameEnglish'] = this.doctorNameEnglish;
+ data['DoctorNameN'] = this.doctorNameN;
+ data['DoctorRate'] = this.doctorRate;
+ data['DoctorTitle'] = this.doctorTitle;
+ data['Gender'] = this.gender;
+ data['GenderDescription'] = this.genderDescription;
+ data['InvoiceNo'] = this.invoiceNo;
+ data['IsActiveDoctorProfile'] = this.isActiveDoctorProfile;
+ data['IsDoctorAllowVedioCall'] = this.isDoctorAllowVedioCall;
+ data['IsExecludeDoctor'] = this.isExecludeDoctor;
+ data['IsInOutPatient'] = this.isInOutPatient;
+ data['IsInOutPatientDescription'] = this.isInOutPatientDescription;
+ data['IsInOutPatientDescriptionN'] = this.isInOutPatientDescriptionN;
+ data['IsRead'] = this.isRead;
+ data['NationalityFlagURL'] = this.nationalityFlagURL;
+ data['NoOfPatientsRate'] = this.noOfPatientsRate;
+ data['OrderDate'] = this.orderDate;
+ data['OrderNo'] = this.orderNo;
+ data['PatientID'] = this.patientID;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['ProjectNameN'] = this.projectNameN;
+ data['QR'] = this.qR;
+ data['SetupID'] = this.setupID;
+ data['Speciality'] = this.speciality;
+ data['IsLiveCareAppointment'] = this.isLiveCareAppointment;
+ return data;
+ }
+}
+
+class PatientLabOrdersList {
+ String filterName = "";
+ List patientLabOrdersList = List();
+
+ PatientLabOrdersList(
+ {this.filterName, PatientLabOrders patientDoctorAppointment}) {
+ patientLabOrdersList.add(patientDoctorAppointment);
+ }
+}
diff --git a/lib/core/model/labs/patient_lab_special_result.dart b/lib/core/model/labs/patient_lab_special_result.dart
new file mode 100644
index 00000000..2fbcb832
--- /dev/null
+++ b/lib/core/model/labs/patient_lab_special_result.dart
@@ -0,0 +1,32 @@
+class PatientLabSpecialResult {
+ String invoiceNo;
+ String moduleID;
+ String resultData;
+ String resultDataHTML;
+ Null resultDataTxt;
+
+ PatientLabSpecialResult(
+ {this.invoiceNo,
+ this.moduleID,
+ this.resultData,
+ this.resultDataHTML,
+ this.resultDataTxt});
+
+ PatientLabSpecialResult.fromJson(Map json) {
+ invoiceNo = json['InvoiceNo'];
+ moduleID = json['ModuleID'];
+ resultData = json['ResultData'];
+ resultDataHTML = json['ResultDataHTML'];
+ resultDataTxt = json['ResultDataTxt'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['InvoiceNo'] = this.invoiceNo;
+ data['ModuleID'] = this.moduleID;
+ data['ResultData'] = this.resultData;
+ data['ResultDataHTML'] = this.resultDataHTML;
+ data['ResultDataTxt'] = this.resultDataTxt;
+ return data;
+ }
+}
diff --git a/lib/core/model/labs/request_patient_lab_orders.dart b/lib/core/model/labs/request_patient_lab_orders.dart
new file mode 100644
index 00000000..ce9263ef
--- /dev/null
+++ b/lib/core/model/labs/request_patient_lab_orders.dart
@@ -0,0 +1,64 @@
+class RequestPatientLabOrders {
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int patientID;
+ String tokenID;
+ int patientTypeID;
+ int patientType;
+
+ RequestPatientLabOrders(
+ {this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.patientID,
+ this.tokenID,
+ this.patientTypeID,
+ this.patientType});
+
+ RequestPatientLabOrders.fromJson(Map json) {
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ patientID = json['PatientID'];
+ tokenID = json['TokenID'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['PatientID'] = this.patientID;
+ data['TokenID'] = this.tokenID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ return data;
+ }
+}
diff --git a/lib/core/model/labs/request_patient_lab_special_result.dart b/lib/core/model/labs/request_patient_lab_special_result.dart
new file mode 100644
index 00000000..bdeb3930
--- /dev/null
+++ b/lib/core/model/labs/request_patient_lab_special_result.dart
@@ -0,0 +1,84 @@
+class RequestPatientLabSpecialResult {
+ String invoiceNo;
+ String orderNo;
+ String setupID;
+ String projectID;
+ int clinicID;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int patientID;
+ String tokenID;
+ int patientTypeID;
+ int patientType;
+
+ RequestPatientLabSpecialResult(
+ {this.invoiceNo,
+ this.orderNo,
+ this.setupID,
+ this.projectID,
+ this.clinicID,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.patientID,
+ this.tokenID,
+ this.patientTypeID,
+ this.patientType});
+
+ RequestPatientLabSpecialResult.fromJson(Map json) {
+ invoiceNo = json['InvoiceNo'];
+ orderNo = json['OrderNo'];
+ setupID = json['SetupID'];
+ projectID = json['ProjectID'];
+ clinicID = json['ClinicID'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ patientID = json['PatientID'];
+ tokenID = json['TokenID'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['InvoiceNo'] = this.invoiceNo;
+ data['OrderNo'] = this.orderNo;
+ data['SetupID'] = this.setupID;
+ data['ProjectID'] = this.projectID;
+ data['ClinicID'] = this.clinicID;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['PatientID'] = this.patientID;
+ data['TokenID'] = this.tokenID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ return data;
+ }
+}
diff --git a/lib/core/model/labs/request_send_lab_report_email.dart b/lib/core/model/labs/request_send_lab_report_email.dart
new file mode 100644
index 00000000..118da906
--- /dev/null
+++ b/lib/core/model/labs/request_send_lab_report_email.dart
@@ -0,0 +1,112 @@
+class RequestSendLabReportEmail {
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ int patientID;
+ String tokenID;
+ int patientTypeID;
+ int patientType;
+ String to;
+ String dateofBirth;
+ String patientIditificationNum;
+ String patientMobileNumber;
+ String patientName;
+ String setupID;
+ String projectName;
+ String clinicName;
+ String doctorName;
+ String projectID;
+ String invoiceNo;
+ String orderDate;
+
+ RequestSendLabReportEmail(
+ {this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.patientID,
+ this.tokenID,
+ this.patientTypeID,
+ this.patientType,
+ this.to,
+ this.dateofBirth,
+ this.patientIditificationNum,
+ this.patientMobileNumber,
+ this.patientName,
+ this.setupID,
+ this.projectName,
+ this.clinicName,
+ this.doctorName,
+ this.projectID,
+ this.invoiceNo,
+ this.orderDate});
+
+ RequestSendLabReportEmail.fromJson(Map json) {
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ patientID = json['PatientID'];
+ tokenID = json['TokenID'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ to = json['To'];
+ dateofBirth = json['DateofBirth'];
+ patientIditificationNum = json['PatientIditificationNum'];
+ patientMobileNumber = json['PatientMobileNumber'];
+ patientName = json['PatientName'];
+ setupID = json['SetupID'];
+ projectName = json['ProjectName'];
+ clinicName = json['ClinicName'];
+ doctorName = json['DoctorName'];
+ projectID = json['ProjectID'];
+ invoiceNo = json['InvoiceNo'];
+ orderDate = json['OrderDate'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['PatientID'] = this.patientID;
+ data['TokenID'] = this.tokenID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ data['To'] = this.to;
+ data['DateofBirth'] = this.dateofBirth;
+ data['PatientIditificationNum'] = this.patientIditificationNum;
+ data['PatientMobileNumber'] = this.patientMobileNumber;
+ data['PatientName'] = this.patientName;
+ data['SetupID'] = this.setupID;
+ data['ProjectName'] = this.projectName;
+ data['ClinicName'] = this.clinicName;
+ data['DoctorName'] = this.doctorName;
+ data['ProjectID'] = this.projectID;
+ data['InvoiceNo'] = this.invoiceNo;
+ data['OrderDate'] = this.orderDate;
+ return data;
+ }
+}
diff --git a/lib/core/model/medical_file_model.dart b/lib/core/model/medical_file_model.dart
new file mode 100644
index 00000000..f2b4ce3c
--- /dev/null
+++ b/lib/core/model/medical_file_model.dart
@@ -0,0 +1,602 @@
+class MedicalFileModel {
+ List entityList;
+ dynamic statusMessage;
+
+ MedicalFileModel({this.entityList, this.statusMessage});
+
+ MedicalFileModel.fromJson(Map json) {
+ if (json['entityList'] != null) {
+ entityList = new List();
+ json['entityList'].forEach((v) {
+ entityList.add(new EntityList.fromJson(v));
+ });
+ }
+ statusMessage = json['statusMessage'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ if (this.entityList != null) {
+ data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
+ }
+ data['statusMessage'] = this.statusMessage;
+ return data;
+ }
+}
+
+class EntityList {
+ List timelines;
+
+ EntityList({this.timelines});
+
+ EntityList.fromJson(Map json) {
+ if (json['Timelines'] != null) {
+ timelines = new List();
+ json['Timelines'].forEach((v) {
+ timelines.add(new Timelines.fromJson(v));
+ });
+ }
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ if (this.timelines != null) {
+ data['Timelines'] = this.timelines.map((v) => v.toJson()).toList();
+ }
+ return data;
+ }
+}
+
+class Timelines {
+ int clinicId;
+ String clinicName;
+ String date;
+ int doctorId;
+ String doctorImage;
+ String doctorName;
+ int encounterNumber;
+ String encounterType;
+ int projectID;
+ String projectName;
+ String setupID;
+ List timeLineEvents;
+
+ Timelines(
+ {this.clinicId,
+ this.clinicName,
+ this.date,
+ this.doctorId,
+ this.doctorImage,
+ this.doctorName,
+ this.encounterNumber,
+ this.encounterType,
+ this.projectID,
+ this.projectName,
+ this.setupID,
+ this.timeLineEvents});
+
+ Timelines.fromJson(Map json) {
+ clinicId = json['ClinicId'];
+ clinicName = json['ClinicName'];
+ date = json['Date'];
+ doctorId = json['DoctorId'];
+ doctorImage = json['DoctorImage'];
+ doctorName = json['DoctorName'];
+ encounterNumber = json['EncounterNumber'];
+ encounterType = json['EncounterType'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ setupID = json['SetupID'];
+ if (json['TimeLineEvents'] != null) {
+ timeLineEvents = new List();
+ json['TimeLineEvents'].forEach((v) {
+ timeLineEvents.add(new TimeLineEvents.fromJson(v));
+ });
+ }
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ClinicId'] = this.clinicId;
+ data['ClinicName'] = this.clinicName;
+ data['Date'] = this.date;
+ data['DoctorId'] = this.doctorId;
+ data['DoctorImage'] = this.doctorImage;
+ data['DoctorName'] = this.doctorName;
+ data['EncounterNumber'] = this.encounterNumber;
+ data['EncounterType'] = this.encounterType;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['SetupID'] = this.setupID;
+ if (this.timeLineEvents != null) {
+ data['TimeLineEvents'] =
+ this.timeLineEvents.map((v) => v.toJson()).toList();
+ }
+ return data;
+ }
+}
+
+class TimeLineEvents {
+ List admissions;
+ String colorClass;
+ List consulations;
+
+ TimeLineEvents({this.admissions, this.colorClass, this.consulations});
+
+ TimeLineEvents.fromJson(Map json) {
+ colorClass = json['ColorClass'];
+ if (json['Consulations'] != null) {
+ consulations = new List();
+ json['Consulations'].forEach((v) {
+ consulations.add(new Consulations.fromJson(v));
+ });
+ }
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+
+ data['ColorClass'] = this.colorClass;
+ if (this.consulations != null) {
+ data['Consulations'] = this.consulations.map((v) => v.toJson()).toList();
+ }
+ return data;
+ }
+}
+
+class Consulations {
+ int admissionNo;
+ String appointmentDate;
+ int appointmentNo;
+ String appointmentType;
+ String clinicID;
+ String clinicName;
+ int doctorID;
+ String doctorName;
+ String endTime;
+ String episodeDate;
+ int episodeID;
+ int patientID;
+ int projectID;
+ String projectName;
+ String remarks;
+ String setupID;
+ String startTime;
+ String visitFor;
+ String visitType;
+ String dispalyName;
+ List lstAssessments;
+ List lstPhysicalExam;
+ List lstProcedure;
+ List lstMedicalHistory;
+ List lstCheifComplaint;
+
+ Consulations(
+ {this.admissionNo,
+ this.appointmentDate,
+ this.appointmentNo,
+ this.appointmentType,
+ this.clinicID,
+ this.clinicName,
+ this.doctorID,
+ this.doctorName,
+ this.endTime,
+ this.episodeDate,
+ this.episodeID,
+ this.patientID,
+ this.projectID,
+ this.projectName,
+ this.remarks,
+ this.setupID,
+ this.startTime,
+ this.visitFor,
+ this.visitType,
+ this.dispalyName,
+ this.lstAssessments,
+ this.lstPhysicalExam,
+ this.lstProcedure,
+ this.lstMedicalHistory,
+ this.lstCheifComplaint});
+
+ Consulations.fromJson(Map json) {
+ admissionNo = json['AdmissionNo'];
+ appointmentDate = json['AppointmentDate'];
+ appointmentNo = json['AppointmentNo'];
+ appointmentType = json['AppointmentType'];
+ clinicID = json['ClinicID'];
+ clinicName = json['ClinicName'];
+ doctorID = json['DoctorID'];
+ doctorName = json['DoctorName'];
+ endTime = json['EndTime'];
+ episodeDate = json['EpisodeDate'];
+ episodeID = json['EpisodeID'];
+ patientID = json['PatientID'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ remarks = json['Remarks'];
+ setupID = json['SetupID'];
+ startTime = json['StartTime'];
+ visitFor = json['VisitFor'];
+ visitType = json['VisitType'];
+ dispalyName = json['dispalyName'];
+ if (json['lstAssessments'] != null) {
+ lstAssessments = new List();
+ json['lstAssessments'].forEach((v) {
+ lstAssessments.add(new LstAssessments.fromJson(v));
+ });
+ }
+ if (json['lstCheifComplaint'] != null) {
+ lstCheifComplaint = new List();
+ json['lstCheifComplaint'].forEach((v) {
+ lstCheifComplaint.add(new LstCheifComplaint.fromJson(v));
+ });
+ }
+ if (json['lstPhysicalExam'] != null) {
+ lstPhysicalExam = new List();
+ json['lstPhysicalExam'].forEach((v) {
+ lstPhysicalExam.add(new LstPhysicalExam.fromJson(v));
+ });
+ }
+ if (json['lstProcedure'] != null) {
+ lstProcedure = new List();
+ json['lstProcedure'].forEach((v) {
+ lstProcedure.add(new LstProcedure.fromJson(v));
+ });
+ }
+ if (json['lstMedicalHistory'] != null) {
+ lstMedicalHistory = new List();
+ json['lstMedicalHistory'].forEach((v) {
+ lstMedicalHistory.add(new LstMedicalHistory.fromJson(v));
+ });
+ }
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['AdmissionNo'] = this.admissionNo;
+ data['AppointmentDate'] = this.appointmentDate;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['AppointmentType'] = this.appointmentType;
+ data['ClinicID'] = this.clinicID;
+ data['ClinicName'] = this.clinicName;
+ data['DoctorID'] = this.doctorID;
+ data['DoctorName'] = this.doctorName;
+ data['EndTime'] = this.endTime;
+ data['EpisodeDate'] = this.episodeDate;
+ data['EpisodeID'] = this.episodeID;
+ data['PatientID'] = this.patientID;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['Remarks'] = this.remarks;
+ data['SetupID'] = this.setupID;
+ data['StartTime'] = this.startTime;
+ data['VisitFor'] = this.visitFor;
+ data['VisitType'] = this.visitType;
+ data['dispalyName'] = this.dispalyName;
+ if (this.lstAssessments != null) {
+ data['lstAssessments'] =
+ this.lstAssessments.map((v) => v.toJson()).toList();
+ }
+ if (this.lstCheifComplaint != null) {
+ data['lstCheifComplaint'] =
+ this.lstCheifComplaint.map((v) => v.toJson()).toList();
+ }
+ if (this.lstPhysicalExam != null) {
+ data['lstPhysicalExam'] =
+ this.lstPhysicalExam.map((v) => v.toJson()).toList();
+ }
+ if (this.lstProcedure != null) {
+ data['lstProcedure'] = this.lstProcedure.map((v) => v.toJson()).toList();
+ }
+ if (this.lstMedicalHistory != null) {
+ data['lstMedicalHistory'] =
+ this.lstMedicalHistory.map((v) => v.toJson()).toList();
+ }
+ return data;
+ }
+}
+
+class LstCheifComplaint {
+ int appointmentNo;
+ String cCDate;
+ String chiefComplaint;
+ String currentMedication;
+ int episodeID;
+ String hOPI;
+ int patientID;
+ String patientType;
+ int projectID;
+ String projectName;
+ String setupID;
+ String dispalyName;
+
+ LstCheifComplaint(
+ {this.appointmentNo,
+ this.cCDate,
+ this.chiefComplaint,
+ this.currentMedication,
+ this.episodeID,
+ this.hOPI,
+ this.patientID,
+ this.patientType,
+ this.projectID,
+ this.projectName,
+ this.setupID,
+ this.dispalyName});
+
+ LstCheifComplaint.fromJson(Map json) {
+ appointmentNo = json['AppointmentNo'];
+ cCDate = json['CCDate'];
+ chiefComplaint = json['ChiefComplaint'];
+ currentMedication = json['CurrentMedication'];
+ episodeID = json['EpisodeID'];
+ hOPI = json['HOPI'];
+ patientID = json['PatientID'];
+ patientType = json['PatientType'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ setupID = json['SetupID'];
+ dispalyName = json['dispalyName'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['AppointmentNo'] = this.appointmentNo;
+ data['CCDate'] = this.cCDate;
+ data['ChiefComplaint'] = this.chiefComplaint;
+ data['CurrentMedication'] = this.currentMedication;
+ data['EpisodeID'] = this.episodeID;
+ data['HOPI'] = this.hOPI;
+ data['PatientID'] = this.patientID;
+ data['PatientType'] = this.patientType;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['SetupID'] = this.setupID;
+ data['dispalyName'] = this.dispalyName;
+ return data;
+ }
+}
+
+class LstAssessments {
+ int appointmentNo;
+ String condition;
+ String description;
+ int episodeID;
+ String iCD10;
+ int patientID;
+ String patientType;
+ int projectID;
+ String projectName;
+ String remarks;
+ String setupID;
+ String type;
+ String dispalyName;
+
+ LstAssessments(
+ {this.appointmentNo,
+ this.condition,
+ this.description,
+ this.episodeID,
+ this.iCD10,
+ this.patientID,
+ this.patientType,
+ this.projectID,
+ this.projectName,
+ this.remarks,
+ this.setupID,
+ this.type,
+ this.dispalyName});
+
+ LstAssessments.fromJson(Map json) {
+ appointmentNo = json['AppointmentNo'];
+ condition = json['Condition'];
+ description = json['Description'];
+ episodeID = json['EpisodeID'];
+ iCD10 = json['ICD10'];
+ patientID = json['PatientID'];
+ patientType = json['PatientType'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ remarks = json['Remarks'];
+ setupID = json['SetupID'];
+ type = json['Type'];
+ dispalyName = json['dispalyName'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['AppointmentNo'] = this.appointmentNo;
+ data['Condition'] = this.condition;
+ data['Description'] = this.description;
+ data['EpisodeID'] = this.episodeID;
+ data['ICD10'] = this.iCD10;
+ data['PatientID'] = this.patientID;
+ data['PatientType'] = this.patientType;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['Remarks'] = this.remarks;
+ data['SetupID'] = this.setupID;
+ data['Type'] = this.type;
+ data['dispalyName'] = this.dispalyName;
+ return data;
+ }
+}
+
+class LstPhysicalExam {
+ String abnormal;
+ int appointmentNo;
+ int episodeID;
+ String examDesc;
+ String examID;
+ String examType;
+ int patientID;
+ String patientType;
+ int projectID;
+ String projectName;
+ String remarks;
+ String setupID;
+ String dispalyName;
+
+ LstPhysicalExam(
+ {this.abnormal,
+ this.appointmentNo,
+ this.episodeID,
+ this.examDesc,
+ this.examID,
+ this.examType,
+ this.patientID,
+ this.patientType,
+ this.projectID,
+ this.projectName,
+ this.remarks,
+ this.setupID,
+ this.dispalyName});
+
+ LstPhysicalExam.fromJson(Map json) {
+ abnormal = json['Abnormal'];
+ appointmentNo = json['AppointmentNo'];
+ episodeID = json['EpisodeID'];
+ examDesc = json['ExamDesc'];
+ examID = json['ExamID'];
+ examType = json['ExamType'];
+ patientID = json['PatientID'];
+ patientType = json['PatientType'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ remarks = json['Remarks'];
+ setupID = json['SetupID'];
+ dispalyName = json['dispalyName'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Abnormal'] = this.abnormal;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['EpisodeID'] = this.episodeID;
+ data['ExamDesc'] = this.examDesc;
+ data['ExamID'] = this.examID;
+ data['ExamType'] = this.examType;
+ data['PatientID'] = this.patientID;
+ data['PatientType'] = this.patientType;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['Remarks'] = this.remarks;
+ data['SetupID'] = this.setupID;
+ data['dispalyName'] = this.dispalyName;
+ return data;
+ }
+}
+
+class LstProcedure {
+ int appointmentNo;
+ int episodeID;
+ String orderDate;
+ int patientID;
+ String patientType;
+ String procName;
+ String procedureId;
+ int projectID;
+ String projectName;
+ String setupID;
+ String dispalyName;
+
+ LstProcedure(
+ {this.appointmentNo,
+ this.episodeID,
+ this.orderDate,
+ this.patientID,
+ this.patientType,
+ this.procName,
+ this.procedureId,
+ this.projectID,
+ this.projectName,
+ this.setupID,
+ this.dispalyName});
+
+ LstProcedure.fromJson(Map json) {
+ appointmentNo = json['AppointmentNo'];
+ episodeID = json['EpisodeID'];
+ orderDate = json['OrderDate'];
+ patientID = json['PatientID'];
+ patientType = json['PatientType'];
+ procName = json['ProcName'];
+ procedureId = json['ProcedureId'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ setupID = json['SetupID'];
+ dispalyName = json['dispalyName'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['AppointmentNo'] = this.appointmentNo;
+ data['EpisodeID'] = this.episodeID;
+ data['OrderDate'] = this.orderDate;
+ data['PatientID'] = this.patientID;
+ data['PatientType'] = this.patientType;
+ data['ProcName'] = this.procName;
+ data['ProcedureId'] = this.procedureId;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['SetupID'] = this.setupID;
+ data['dispalyName'] = this.dispalyName;
+ return data;
+ }
+}
+
+class LstMedicalHistory {
+ int appointmentNo;
+ String checked;
+ int episodeID;
+ String history;
+ int patientID;
+ String patientType;
+ int projectID;
+ String projectName;
+ String remarks;
+ String setupID;
+ String dispalyName;
+
+ LstMedicalHistory(
+ {this.appointmentNo,
+ this.checked,
+ this.episodeID,
+ this.history,
+ this.patientID,
+ this.patientType,
+ this.projectID,
+ this.projectName,
+ this.remarks,
+ this.setupID,
+ this.dispalyName});
+
+ LstMedicalHistory.fromJson(Map json) {
+ appointmentNo = json['AppointmentNo'];
+ checked = json['Checked'];
+ episodeID = json['EpisodeID'];
+ history = json['History'];
+ patientID = json['PatientID'];
+ patientType = json['PatientType'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ remarks = json['Remarks'];
+ setupID = json['SetupID'];
+ dispalyName = json['dispalyName'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['AppointmentNo'] = this.appointmentNo;
+ data['Checked'] = this.checked;
+ data['EpisodeID'] = this.episodeID;
+ data['History'] = this.history;
+ data['PatientID'] = this.patientID;
+ data['PatientType'] = this.patientType;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['Remarks'] = this.remarks;
+ data['SetupID'] = this.setupID;
+ data['dispalyName'] = this.dispalyName;
+ return data;
+ }
+}
diff --git a/lib/core/model/medical_file_request_model.dart b/lib/core/model/medical_file_request_model.dart
new file mode 100644
index 00000000..c5a40bb7
--- /dev/null
+++ b/lib/core/model/medical_file_request_model.dart
@@ -0,0 +1,18 @@
+class MedicalFileRequestModel {
+ int patientMRN;
+ String vidaAuthTokenID;
+
+ MedicalFileRequestModel({this.patientMRN, this.vidaAuthTokenID});
+
+ MedicalFileRequestModel.fromJson(Map json) {
+ patientMRN = json['PatientMRN'];
+ vidaAuthTokenID = json['VidaAuthTokenID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientMRN'] = this.patientMRN;
+ data['VidaAuthTokenID'] = this.vidaAuthTokenID;
+ return data;
+ }
+}
diff --git a/lib/core/model/post_prescrition_req_model.dart b/lib/core/model/post_prescrition_req_model.dart
new file mode 100644
index 00000000..06a524ed
--- /dev/null
+++ b/lib/core/model/post_prescrition_req_model.dart
@@ -0,0 +1,106 @@
+class PostPrescriptionReqModel {
+ String vidaAuthTokenID;
+ int clinicID;
+ int episodeID;
+ int appointmentNo;
+ int patientMRN;
+ List prescriptionRequestModel;
+
+ PostPrescriptionReqModel(
+ {this.vidaAuthTokenID,
+ this.clinicID,
+ this.episodeID,
+ this.appointmentNo,
+ this.patientMRN,
+ this.prescriptionRequestModel});
+
+ PostPrescriptionReqModel.fromJson(Map json) {
+ vidaAuthTokenID = json['VidaAuthTokenID'];
+ clinicID = json['ClinicID'];
+ episodeID = json['EpisodeID'];
+ appointmentNo = json['AppointmentNo'];
+ patientMRN = json['PatientMRN'];
+ if (json['prescriptionRequestModel'] != null) {
+ prescriptionRequestModel = new List();
+ json['prescriptionRequestModel'].forEach((v) {
+ prescriptionRequestModel.add(new PrescriptionRequestModel.fromJson(v));
+ });
+ }
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VidaAuthTokenID'] = this.vidaAuthTokenID;
+ data['ClinicID'] = this.clinicID;
+ data['EpisodeID'] = this.episodeID;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['PatientMRN'] = this.patientMRN;
+ if (this.prescriptionRequestModel != null) {
+ data['prescriptionRequestModel'] =
+ this.prescriptionRequestModel.map((v) => v.toJson()).toList();
+ }
+ return data;
+ }
+}
+
+class PrescriptionRequestModel {
+ int itemId;
+ String doseStartDate;
+ int duration;
+ double dose;
+ int doseUnitId;
+ int route;
+ int frequency;
+ int doseTime;
+ bool covered;
+ bool approvalRequired;
+ String remarks;
+ String icdcode10Id;
+
+ PrescriptionRequestModel({
+ this.itemId,
+ this.doseStartDate,
+ this.duration,
+ this.dose,
+ this.doseUnitId,
+ this.route,
+ this.frequency,
+ this.doseTime,
+ this.covered,
+ this.approvalRequired,
+ this.remarks,
+ this.icdcode10Id,
+ });
+
+ PrescriptionRequestModel.fromJson(Map json) {
+ itemId = json['itemId'];
+ doseStartDate = json['doseStartDate'];
+ duration = json['duration'];
+ dose = json['dose'];
+ doseUnitId = json['doseUnitId'];
+ route = json['route'];
+ frequency = json['frequency'];
+ doseTime = json['doseTime'];
+ covered = json['covered'];
+ approvalRequired = json['approvalRequired'];
+ remarks = json['remarks'];
+ icdcode10Id = json['icdcode10Id'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['itemId'] = this.itemId;
+ data['doseStartDate'] = this.doseStartDate;
+ data['duration'] = this.duration;
+ data['dose'] = this.dose;
+ data['doseUnitId'] = this.doseUnitId;
+ data['route'] = this.route;
+ data['frequency'] = this.frequency;
+ data['doseTime'] = this.doseTime;
+ data['covered'] = this.covered;
+ data['approvalRequired'] = this.approvalRequired;
+ data['remarks'] = this.remarks;
+ data['icdcode10Id'] = this.icdcode10Id;
+ return data;
+ }
+}
diff --git a/lib/core/model/prescription_model.dart b/lib/core/model/prescription_model.dart
new file mode 100644
index 00000000..92574c66
--- /dev/null
+++ b/lib/core/model/prescription_model.dart
@@ -0,0 +1,173 @@
+class PrescriptionModel {
+ List entityList;
+ dynamic rowcount;
+ dynamic statusMessage;
+
+ PrescriptionModel({this.entityList, this.rowcount, this.statusMessage});
+
+ PrescriptionModel.fromJson(Map json) {
+ if (json['entityList'] != null) {
+ entityList = new List();
+ json['entityList'].forEach((v) {
+ entityList.add(new EntityList.fromJson(v));
+ });
+ }
+ rowcount = json['rowcount'];
+ statusMessage = json['statusMessage'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ if (this.entityList != null) {
+ data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
+ }
+ data['rowcount'] = this.rowcount;
+ data['statusMessage'] = this.statusMessage;
+ return data;
+ }
+}
+
+class EntityList {
+ dynamic appointmentNo;
+ dynamic clinicName;
+ dynamic createdBy;
+ dynamic createdOn;
+ dynamic doctorName;
+ dynamic doseDailyQuantity;
+ dynamic doseDailyUnitID;
+ dynamic doseDetail;
+ dynamic doseDurationDays;
+ dynamic doseTimingID;
+ dynamic episodeID;
+ dynamic frequencyID;
+ dynamic icdCode10ID;
+ dynamic indication;
+ dynamic isDispensed;
+ dynamic isMedicineCovered;
+ dynamic isSIG;
+ dynamic medicationName;
+ dynamic medicationPrice;
+ dynamic medicineCode;
+ dynamic orderTypeDescription;
+ dynamic qty;
+ dynamic quantity;
+ dynamic remarks;
+ dynamic routeID;
+ dynamic startDate;
+ dynamic status;
+ dynamic stopDate;
+ dynamic uom;
+ dynamic pharmacistRemarks;
+ dynamic pharmacyInervention;
+ dynamic refill;
+ dynamic mediSpanGPICode;
+ EntityList(
+ {this.appointmentNo,
+ this.clinicName,
+ this.createdBy,
+ this.createdOn,
+ this.doctorName,
+ this.doseDailyQuantity,
+ this.doseDailyUnitID,
+ this.doseDetail,
+ this.doseDurationDays,
+ this.doseTimingID,
+ this.episodeID,
+ this.frequencyID,
+ this.icdCode10ID,
+ this.indication,
+ this.isDispensed,
+ this.isMedicineCovered,
+ this.isSIG,
+ this.medicationName,
+ this.medicationPrice,
+ this.medicineCode,
+ this.orderTypeDescription,
+ this.qty,
+ this.quantity,
+ this.remarks,
+ this.routeID,
+ this.startDate,
+ this.status,
+ this.stopDate,
+ this.uom,
+ this.pharmacistRemarks,
+ this.mediSpanGPICode,
+ this.pharmacyInervention,
+ this.refill});
+
+ EntityList.fromJson(Map json) {
+ appointmentNo = json['appointmentNo'];
+ clinicName = json['clinicName'];
+ createdBy = json['createdBy'];
+ createdOn = json['createdOn'];
+ doctorName = json['doctorName'];
+ doseDailyQuantity = json['doseDailyQuantity'];
+ doseDailyUnitID = json['doseDailyUnitID'];
+ doseDetail = json['doseDetail'];
+ doseDurationDays = json['doseDurationDays'];
+ doseTimingID = json['doseTimingID'];
+ episodeID = json['episodeID'];
+ frequencyID = json['frequencyID'];
+ icdCode10ID = json['icdCode10ID'];
+ indication = json['indication'];
+ isDispensed = json['isDispensed'];
+ isMedicineCovered = json['isMedicineCovered'];
+ isSIG = json['isSIG'];
+ medicationName = json['medicationName'];
+ medicationPrice = json['medicationPrice'];
+ medicineCode = json['medicineCode'];
+ orderTypeDescription = json['orderTypeDescription'];
+ qty = json['qty'];
+ quantity = json['quantity'];
+ remarks = json['remarks'];
+ routeID = json['routeID'];
+ startDate = json['startDate'];
+ status = json['status'];
+ stopDate = json['stopDate'];
+ uom = json['uom'];
+ pharmacistRemarks = json['pharmacistRemarks'];
+ mediSpanGPICode = json['mediSpanGPICode'];
+ refill = json['refill'];
+ pharmacyInervention = json['interventionID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['appointmentNo'] = this.appointmentNo;
+ data['clinicName'] = this.clinicName;
+ data['createdBy'] = this.createdBy;
+ data['createdOn'] = this.createdOn;
+ data['doctorName'] = this.doctorName;
+ data['doseDailyQuantity'] = this.doseDailyQuantity;
+ data['doseDailyUnitID'] = this.doseDailyUnitID;
+ data['doseDetail'] = this.doseDetail;
+ data['doseDurationDays'] = this.doseDurationDays;
+ data['doseTimingID'] = this.doseTimingID;
+ data['episodeID'] = this.episodeID;
+ data['frequencyID'] = this.frequencyID;
+ data['icdCode10ID'] = this.icdCode10ID;
+ data['indication'] = this.indication;
+ data['isDispensed'] = this.isDispensed;
+ data['isMedicineCovered'] = this.isMedicineCovered;
+ data['isSIG'] = this.isSIG;
+ data['medicationName'] = this.medicationName;
+ data['medicationPrice'] = this.medicationPrice;
+ data['medicineCode'] = this.medicineCode;
+ data['orderTypeDescription'] = this.orderTypeDescription;
+ data['qty'] = this.qty;
+ data['quantity'] = this.quantity;
+ data['remarks'] = this.remarks;
+ data['routeID'] = this.routeID;
+ data['startDate'] = this.startDate;
+ data['status'] = this.status;
+ data['stopDate'] = this.stopDate;
+ data['uom'] = this.uom;
+ data['pharmacistRemarks'] = this.pharmacistRemarks;
+ data['mediSpanGPICode'] = this.mediSpanGPICode;
+ data['refill'] = this.refill;
+ data['interventionID'] = this.pharmacyInervention;
+
+ return data;
+ }
+}
diff --git a/lib/core/model/prescription_req_model.dart b/lib/core/model/prescription_req_model.dart
new file mode 100644
index 00000000..3eb71072
--- /dev/null
+++ b/lib/core/model/prescription_req_model.dart
@@ -0,0 +1,21 @@
+class PrescriptionReqModel {
+ String vidaAuthTokenID;
+ dynamic patientMRN;
+ dynamic appNo;
+
+ PrescriptionReqModel({this.vidaAuthTokenID, this.patientMRN, this.appNo});
+
+ PrescriptionReqModel.fromJson(Map json) {
+ vidaAuthTokenID = json['VidaAuthTokenID'];
+ patientMRN = json['PatientMRN'];
+ appNo = json['AppointmentNo'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VidaAuthTokenID'] = this.vidaAuthTokenID;
+ data['PatientMRN'] = this.patientMRN;
+ data['AppointmentNo'] = this.appNo;
+ return data;
+ }
+}
diff --git a/lib/core/model/procedure/ControlsModel.dart b/lib/core/model/procedure/ControlsModel.dart
new file mode 100644
index 00000000..b3e8ae9c
--- /dev/null
+++ b/lib/core/model/procedure/ControlsModel.dart
@@ -0,0 +1,18 @@
+class Controls {
+ String code;
+ String controlValue;
+
+ Controls({this.code, this.controlValue});
+
+ Controls.fromJson(Map json) {
+ code = json['Code'];
+ controlValue = json['ControlValue'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Code'] = this.code;
+ data['ControlValue'] = this.controlValue;
+ return data;
+ }
+}
diff --git a/lib/core/model/procedure/categories_procedure.dart b/lib/core/model/procedure/categories_procedure.dart
new file mode 100644
index 00000000..9e6f847f
--- /dev/null
+++ b/lib/core/model/procedure/categories_procedure.dart
@@ -0,0 +1,94 @@
+class CategoriseProcedureModel {
+ List entityList;
+ int rowcount;
+ dynamic statusMessage;
+
+ CategoriseProcedureModel(
+ {this.entityList, this.rowcount, this.statusMessage});
+
+ CategoriseProcedureModel.fromJson(Map json) {
+ if (json['entityList'] != null) {
+ entityList = new List();
+ json['entityList'].forEach((v) {
+ entityList.add(new EntityList.fromJson(v));
+ });
+ }
+ rowcount = json['rowcount'];
+ statusMessage = json['statusMessage'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ if (this.entityList != null) {
+ data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
+ }
+ data['rowcount'] = this.rowcount;
+ data['statusMessage'] = this.statusMessage;
+ return data;
+ }
+}
+
+class EntityList {
+ bool allowedClinic;
+ String category;
+ String categoryID;
+ String genderValidation;
+ String group;
+ String orderedValidation;
+ dynamic price;
+ String procedureId;
+ String procedureName;
+ String specialPermission;
+ String subGroup;
+ String template;
+ String remarks;
+ String type;
+
+ EntityList(
+ {this.allowedClinic,
+ this.category,
+ this.categoryID,
+ this.genderValidation,
+ this.group,
+ this.orderedValidation,
+ this.price,
+ this.procedureId,
+ this.procedureName,
+ this.specialPermission,
+ this.subGroup,
+ this.template,
+ this.remarks,
+ this.type});
+
+ EntityList.fromJson(Map json) {
+ allowedClinic = json['allowedClinic'];
+ category = json['category'];
+ categoryID = json['categoryID'];
+ genderValidation = json['genderValidation'];
+ group = json['group'];
+ orderedValidation = json['orderedValidation'];
+ price = json['price'];
+ procedureId = json['procedureId'];
+ procedureName = json['procedureName'];
+ specialPermission = json['specialPermission'];
+ subGroup = json['subGroup'];
+ template = json['template'];
+ }
+
+ Map toJson() {
+ final Map data = new Map