diff --git a/android/app/build.gradle b/android/app/build.gradle
index 96428f49..ab88f580 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -28,6 +28,15 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 30
+// signingConfigs {
+// release {
+// storeFile file('C:\\Users\\admin\\Downloads\\DQKey.jks')
+// storePassword 'HmGsa123'
+// keyAlias 'key'
+// keyPassword 'HmGsa123'
+// }
+// }
+
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
@@ -50,10 +59,25 @@ android {
buildTypes {
release {
// TODO: Add your own signing config for the release build.
+ signingConfig signingConfigs.debug
+ }
+ debug {
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
+
+// flavorDimensions 'environment'
+// productFlavors {
+// production {
+// dimension 'environment'
+// }
+// }
+//
+// configurations {
+// productionDebugImplementation
+// productionReleaseImplementation
+// }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
@@ -84,6 +108,8 @@ dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
+ implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
+ implementation 'com.google.firebase:firebase-analytics:17.4.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
index db548786..e6560790 100644
--- a/android/app/google-services.json
+++ b/android/app/google-services.json
@@ -1,34 +1,77 @@
{
"project_info": {
- "project_number": "157373154094",
- "project_id": "hmg-doctor-app-1553688619744",
- "storage_bucket": "hmg-doctor-app-1553688619744.appspot.com"
+ "project_number": "934365232760",
+ "project_id": "hmg-dr-app",
+ "storage_bucket": "hmg-dr-app.appspot.com"
},
"client": [
{
"client_info": {
- "mobilesdk_app_id": "1:157373154094:android:daeea3a4e1f4462a1bf0bf",
+ "mobilesdk_app_id": "1:934365232760:android:024b3569972f1c09f9778d",
+ "android_client_info": {
+ "package_name": "COM.HMG.HMGDR"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyCpYwrmuntOBdZv6GV6KEnLj8nQRvEnZ6I"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
+ "client_type": 3
+ },
+ {
+ "client_id": "934365232760-57v2ld1qqulc4nt4o5pgjfbpc47fj3qf.apps.googleusercontent.com",
+ "client_type": 2,
+ "ios_info": {
+ "bundle_id": "COM.HMG.HMGDR"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:934365232760:android:e0e185e68c0d7690f9778d",
"android_client_info": {
"package_name": "com.hmg.hmgDr"
}
},
"oauth_client": [
{
- "client_id": "157373154094-egrhbfr861l7k722g3v2gd4a0opi3r1u.apps.googleusercontent.com",
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
- "current_key": "AIzaSyDX8RPwu00MyrpqC-T2zXtrUQvTQGRv1mM"
+ "current_key": "AIzaSyCpYwrmuntOBdZv6GV6KEnLj8nQRvEnZ6I"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
- "client_id": "157373154094-egrhbfr861l7k722g3v2gd4a0opi3r1u.apps.googleusercontent.com",
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
"client_type": 3
+ },
+ {
+ "client_id": "934365232760-57v2ld1qqulc4nt4o5pgjfbpc47fj3qf.apps.googleusercontent.com",
+ "client_type": 2,
+ "ios_info": {
+ "bundle_id": "COM.HMG.HMGDR"
+ }
}
]
}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
deleted file mode 100644
index 317d0290..00000000
--- a/android/app/src/debug/AndroidManifest.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index bf0d3766..9cd98ee3 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -10,22 +10,30 @@
FlutterApplication and put your custom class here.
-->
-
+
+
+
-
+
+
+
+
+
+
+
60dp
54dp
- 52dp
+ 48dp
24dp
@@ -33,9 +33,15 @@
4dp
- 8sp
+ 8dp
16dp
24dp
+ 36dp
+ 60dp
+ 80dp
+ 40dp
+
+
diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml
index bc694f7c..ed85970e 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -4,7 +4,6 @@
الوقت المتبقي بالثانيه:
Settings
Cancel
-
- Hello blank fragment
+ An unexpected error has occurred.\nHelp developers by providing error details.\nThank you for your support.
\ No newline at end of file
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
index e13b5b14..e5b2f6d2 100644
--- a/android/app/src/main/res/values/styles.xml
+++ b/android/app/src/main/res/values/styles.xml
@@ -1,10 +1,12 @@
-
+
@@ -25,12 +27,17 @@
- true
- - true
+ - true
+ - true
+ - false
- @null
- match_parent
- match_parent
+
+ - @android:style/Animation.Dialog
+
diff --git a/android/app/src/main/res/xml/provider_paths.xml b/android/app/src/main/res/xml/provider_paths.xml
new file mode 100644
index 00000000..8d13fa17
--- /dev/null
+++ b/android/app/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
index 4cb72d20..51c49a99 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -8,7 +8,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath 'com.google.gms:google-services:4.3.2'
+ classpath 'com.google.gms:google-services:4.3.3'
}
}
diff --git a/android/google-services.json b/android/google-services.json
index db548786..e6560790 100644
--- a/android/google-services.json
+++ b/android/google-services.json
@@ -1,34 +1,77 @@
{
"project_info": {
- "project_number": "157373154094",
- "project_id": "hmg-doctor-app-1553688619744",
- "storage_bucket": "hmg-doctor-app-1553688619744.appspot.com"
+ "project_number": "934365232760",
+ "project_id": "hmg-dr-app",
+ "storage_bucket": "hmg-dr-app.appspot.com"
},
"client": [
{
"client_info": {
- "mobilesdk_app_id": "1:157373154094:android:daeea3a4e1f4462a1bf0bf",
+ "mobilesdk_app_id": "1:934365232760:android:024b3569972f1c09f9778d",
+ "android_client_info": {
+ "package_name": "COM.HMG.HMGDR"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyCpYwrmuntOBdZv6GV6KEnLj8nQRvEnZ6I"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
+ "client_type": 3
+ },
+ {
+ "client_id": "934365232760-57v2ld1qqulc4nt4o5pgjfbpc47fj3qf.apps.googleusercontent.com",
+ "client_type": 2,
+ "ios_info": {
+ "bundle_id": "COM.HMG.HMGDR"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:934365232760:android:e0e185e68c0d7690f9778d",
"android_client_info": {
"package_name": "com.hmg.hmgDr"
}
},
"oauth_client": [
{
- "client_id": "157373154094-egrhbfr861l7k722g3v2gd4a0opi3r1u.apps.googleusercontent.com",
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
- "current_key": "AIzaSyDX8RPwu00MyrpqC-T2zXtrUQvTQGRv1mM"
+ "current_key": "AIzaSyCpYwrmuntOBdZv6GV6KEnLj8nQRvEnZ6I"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
- "client_id": "157373154094-egrhbfr861l7k722g3v2gd4a0opi3r1u.apps.googleusercontent.com",
+ "client_id": "934365232760-bobv1r1sn222le020jeni6u1bdbjdu1v.apps.googleusercontent.com",
"client_type": 3
+ },
+ {
+ "client_id": "934365232760-57v2ld1qqulc4nt4o5pgjfbpc47fj3qf.apps.googleusercontent.com",
+ "client_type": 2,
+ "ios_info": {
+ "bundle_id": "COM.HMG.HMGDR"
+ }
}
]
}
diff --git a/assets/images/patient_register.png b/assets/images/patient_register.png
new file mode 100644
index 00000000..c55935bc
Binary files /dev/null and b/assets/images/patient_register.png differ
diff --git a/ios/GoogleService-Info .plist b/ios/GoogleService-Info .plist
index 81c3af44..a29eac6d 100644
--- a/ios/GoogleService-Info .plist
+++ b/ios/GoogleService-Info .plist
@@ -3,21 +3,21 @@
CLIENT_ID
- 1097451043303-ifgtu6ub88dlk5dmv5tm531a5s47gbre.apps.googleusercontent.com
+ 934365232760-en86g42ch3fgu7odnv5ka6kec8irg8d5.apps.googleusercontent.com
REVERSED_CLIENT_ID
- com.googleusercontent.apps.1097451043303-ifgtu6ub88dlk5dmv5tm531a5s47gbre
+ com.googleusercontent.apps.934365232760-en86g42ch3fgu7odnv5ka6kec8irg8d5
API_KEY
- AIzaSyAKPayaNaI-2RN6S4PH5W9wYExmEgoBUvo
+ AIzaSyBtA8-oCZ5T4gkuTG7CucGr_d_7lakp4MM
GCM_SENDER_ID
- 1097451043303
+ 934365232760
PLIST_VERSION
1
BUNDLE_ID
- com.hmg.doctorApp
+ com.hmg.hmgDr
PROJECT_ID
- doctor-app-35ddc
+ hmg-dr-app
STORAGE_BUCKET
- doctor-app-35ddc.appspot.com
+ hmg-dr-app.appspot.com
IS_ADS_ENABLED
IS_ANALYTICS_ENABLED
@@ -29,6 +29,6 @@
IS_SIGNIN_ENABLED
GOOGLE_APP_ID
- 1:1097451043303:ios:0e9b87e77dcf397d866542
+ 1:934365232760:ios:61e01db91b41502bf9778d
\ No newline at end of file
diff --git a/ios/Runner/GoogleService-Info.plist b/ios/Runner/GoogleService-Info.plist
index 81c3af44..a29eac6d 100644
--- a/ios/Runner/GoogleService-Info.plist
+++ b/ios/Runner/GoogleService-Info.plist
@@ -3,21 +3,21 @@
CLIENT_ID
- 1097451043303-ifgtu6ub88dlk5dmv5tm531a5s47gbre.apps.googleusercontent.com
+ 934365232760-en86g42ch3fgu7odnv5ka6kec8irg8d5.apps.googleusercontent.com
REVERSED_CLIENT_ID
- com.googleusercontent.apps.1097451043303-ifgtu6ub88dlk5dmv5tm531a5s47gbre
+ com.googleusercontent.apps.934365232760-en86g42ch3fgu7odnv5ka6kec8irg8d5
API_KEY
- AIzaSyAKPayaNaI-2RN6S4PH5W9wYExmEgoBUvo
+ AIzaSyBtA8-oCZ5T4gkuTG7CucGr_d_7lakp4MM
GCM_SENDER_ID
- 1097451043303
+ 934365232760
PLIST_VERSION
1
BUNDLE_ID
- com.hmg.doctorApp
+ com.hmg.hmgDr
PROJECT_ID
- doctor-app-35ddc
+ hmg-dr-app
STORAGE_BUCKET
- doctor-app-35ddc.appspot.com
+ hmg-dr-app.appspot.com
IS_ADS_ENABLED
IS_ANALYTICS_ENABLED
@@ -29,6 +29,6 @@
IS_SIGNIN_ENABLED
GOOGLE_APP_ID
- 1:1097451043303:ios:0e9b87e77dcf397d866542
+ 1:934365232760:ios:61e01db91b41502bf9778d
\ No newline at end of file
diff --git a/lib/client/base_app_client.dart b/lib/client/base_app_client.dart
index 5286a54b..1414c78f 100644
--- a/lib/client/base_app_client.dart
+++ b/lib/client/base_app_client.dart
@@ -26,7 +26,8 @@ class BaseAppClient {
required Function(dynamic response, int statusCode) onSuccess,
required Function(String error, int statusCode) onFailure,
bool isAllowAny = false,
- bool isLiveCare = false}) async {
+ bool isLiveCare = false,
+ bool isFallLanguage = false}) async {
String url;
if (isLiveCare)
url = BASE_URL_LIVE_CARE + endPoint;
@@ -59,17 +60,22 @@ class BaseAppClient {
body['TokenID'] = token;
}
// body['TokenID'] = "@dm!n" ?? '';
- String lang = await sharedPref.getString(APP_Language);
- if (lang != null && lang == 'ar')
- body['LanguageID'] = 1;
- else
- body['LanguageID'] = 2;
-
- body['stamp'] = STAMP;
+ if (!isFallLanguage) {
+ String lang = await sharedPref.getString(APP_Language);
+ if (lang != null && lang == 'ar')
+ body['LanguageID'] = 1;
+ else
+ body['LanguageID'] = 2;
+ }
+ body['stamp'] = DateTime.now().toIso8601String();
// if(!body.containsKey("IPAdress"))
body['IPAdress'] = IP_ADDRESS;
- body['VersionID'] = VERSION_ID;
- body['Channel'] = CHANNEL;
+ if (body['VersionID'] == null) {
+ body['VersionID'] = VERSION_ID;
+ }
+ if (body['Channel'] == null) {
+ body['Channel'] = CHANNEL;
+ }
body['SessionID'] = SESSION_ID;
body['IsLoginForDoctorApp'] = IS_LOGIN_FOR_DOCTOR_APP;
body['PatientOutSA'] = body['PatientOutSA'] ?? 0; // PATIENT_OUT_SA;
@@ -83,7 +89,10 @@ class BaseAppClient {
int projectID = await sharedPref.getInt(PROJECT_ID);
if (projectID == 2 || projectID == 3)
body['PatientOutSA'] = true;
- else if (body.containsKey('facilityId') && body['facilityId'] == 2 || body['facilityId'] == 3)
+ else if ((body.containsKey('facilityId') && body['facilityId'] == 2 ||
+ body['facilityId'] == 3) ||
+ body['ProjectID'] == 2 ||
+ body['ProjectID'] == 3)
body['PatientOutSA'] = true;
else
body['PatientOutSA'] = false;
@@ -205,7 +214,8 @@ class BaseAppClient {
print("URL : $url");
print("Body : ${json.encode(body)}");
-
+ var asd = json.encode(body);
+ var asd2;
if (await Helpers.checkConnection()) {
final response = await http.post(Uri.parse(url.trim()), body: json.encode(body), headers: headers);
final int statusCode = response.statusCode;
diff --git a/lib/config/config.dart b/lib/config/config.dart
index 8241b36c..ce9b3c5c 100644
--- a/lib/config/config.dart
+++ b/lib/config/config.dart
@@ -9,85 +9,118 @@ 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 = "Services/DoctorApplication.svc/REST/GetProgressNoteForInPatient";
-const PATIENT_INSURANCE_APPROVALS_URL = "Services/DoctorApplication.svc/REST/GetApprovalStatusForInpatient";
-const PATIENT_ORDERS_URL = "Services/DoctorApplication.svc/REST/GetProgressNoteForInPatient";
-const PATIENT_REFER_TO_DOCTOR_URL = "Services/DoctorApplication.svc/REST/ReferToDoctor";
-const PATIENT_GET_DOCTOR_BY_CLINIC_URL = "Services/DoctorApplication.svc/REST/GetDoctorsByClinicID";
-
-const PATIENT_GET_DOCTOR_BY_CLINIC_Hospital = "Services/Doctors.svc/REST/SearchDoctorsByTime";
-
-const GET_CLINICS_FOR_DOCTOR = 'Services/DoctorApplication.svc/REST/GetClinicsForDoctor';
-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 PATIENT_PROGRESS_NOTE_URL =
+ "Services/DoctorApplication.svc/REST/GetProgressNoteForInPatient";
+const PATIENT_INSURANCE_APPROVALS_URL =
+ "Services/DoctorApplication.svc/REST/GetApprovalStatusForInpatient";
+const PATIENT_ORDERS_URL =
+ "Services/DoctorApplication.svc/REST/GetProgressNoteForInPatient";
+const PATIENT_REFER_TO_DOCTOR_URL =
+ "Services/DoctorApplication.svc/REST/ReferToDoctor";
+const PATIENT_GET_DOCTOR_BY_CLINIC_URL =
+ "Services/DoctorApplication.svc/REST/GetDoctorsByClinicID";
+
+const PATIENT_GET_DOCTOR_BY_CLINIC_Hospital =
+ "Services/Doctors.svc/REST/SearchDoctorsByTime";
+
+const GET_CLINICS_FOR_DOCTOR =
+ 'Services/DoctorApplication.svc/REST/GetClinicsForDoctor';
+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_REFERRAL_FACILITIES =
+ 'Services/DoctorApplication.svc/REST/GetReferralFacilities';
const GET_PROJECTS = 'Services/DoctorApplication.svc/REST/GetProjectInfo';
-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_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';
const GET_RADIOLOGY = 'Services/DoctorApplication.svc/REST/GetPatientRadResult';
-const GET_LIVECARE_PENDINGLIST = 'Services/DoctorApplication.svc/REST/GetPendingPatientER';
+const GET_LIVECARE_PENDINGLIST =
+ 'Services/DoctorApplication.svc/REST/GetPendingPatientER';
const START_LIVE_CARE_CALL = 'LiveCareApi/DoctorApp/CallPatient';
const LIVE_CARE_STATISTICS_FOR_CERTAIN_DOCTOR_URL =
"Lists.svc/REST/DashBoard_GetLiveCareDoctorsStatsticsForCertainDoctor";
-const GET_PRESCRIPTION_REPORT = 'Services/Patients.svc/REST/GetPrescriptionReport';
+const GET_PRESCRIPTION_REPORT =
+ 'Services/Patients.svc/REST/GetPrescriptionReport';
-const GT_MY_PATIENT_QUESTION = 'Services/DoctorApplication.svc/REST/GtMyPatientsQuestions';
+const GT_MY_PATIENT_QUESTION =
+ 'Services/DoctorApplication.svc/REST/GtMyPatientsQuestions';
-const PRM_SEARCH_PATIENT = 'Services/Patients.svc/REST/GetPatientInformation_PRM';
+const PRM_SEARCH_PATIENT =
+ 'Services/Patients.svc/REST/GetPatientInformation_PRM';
const GET_PATIENT = 'Services/DoctorApplication.svc/REST/';
-const GET_PRESCRIPTION_REPORT_FOR_IN_PATIENT = 'Services/DoctorApplication.svc/REST/GetPrescriptionReportForInPatient';
+const GET_PRESCRIPTION_REPORT_FOR_IN_PATIENT =
+ 'Services/DoctorApplication.svc/REST/GetPrescriptionReportForInPatient';
-const GET_MY_REFERRAL_PATIENT = 'Services/DoctorApplication.svc/REST/GtMyReferralPatient';
+const GET_MY_REFERRAL_PATIENT =
+ 'Services/DoctorApplication.svc/REST/GtMyReferralPatient';
const REFER_TO_DOCTOR = 'Services/DoctorApplication.svc/REST/ReferToDoctor';
-const ADD_REFERRED_DOCTOR_REMARKS = 'Services/DoctorApplication.svc/REST/AddReferredDoctorRemarks';
+const ADD_REFERRED_DOCTOR_REMARKS =
+ 'Services/DoctorApplication.svc/REST/AddReferredDoctorRemarks';
-const GET_MY_REFERRED_PATIENT = 'Services/DoctorApplication.svc/REST/GtMyReferredPatient';
+const GET_MY_REFERRED_PATIENT =
+ 'Services/DoctorApplication.svc/REST/GtMyReferredPatient';
-const GET_MY_REFERRED_OUT_PATIENT = 'Services/DoctorApplication.svc/REST/GtMyReferredOutPatient';
+const GET_MY_REFERRED_OUT_PATIENT =
+ 'Services/DoctorApplication.svc/REST/GtMyReferredOutPatient';
-const GET_PENDING_REFERRAL_PATIENT = 'Services/DoctorApplication.svc/REST/PendingReferrals';
+const GET_PENDING_REFERRAL_PATIENT =
+ 'Services/DoctorApplication.svc/REST/PendingReferrals';
-const CREATE_REFERRAL_PATIENT = 'Services/DoctorApplication.svc/REST/CreateReferral';
+const CREATE_REFERRAL_PATIENT =
+ 'Services/DoctorApplication.svc/REST/CreateReferral';
-const RESPONSE_PENDING_REFERRAL_PATIENT = 'Services/DoctorApplication.svc/REST/RespondReferral';
+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';
+const GET_DOCTOR_WORKING_HOURS_TABLE =
+ 'Services/Doctors.svc/REST/GetDoctorWorkingHoursTable';
-const GET_PATIENT_LAB_RESULTS = 'Services/DoctorApplication.svc/REST/GetPatientLabResults';
+const GET_PATIENT_LAB_RESULTS =
+ 'Services/DoctorApplication.svc/REST/GetPatientLabResults';
const LOGIN_URL = 'Services/Sentry.svc/REST/MemberLogIN_New';
-const INSERT_DEVICE_IMEI = 'Services/DoctorApplication.svc/REST/DoctorApp_InsertOrUpdateDeviceDetails';
+const INSERT_DEVICE_IMEI =
+ '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/DoctorApplication.svc/REST/DoctorApp_GetDeviceDetailsByIMEI';
+const SELECT_DEVICE_IMEI =
+ '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_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 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 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';
@@ -95,138 +128,261 @@ const SEND_SMS_INSTRUCTIONS = 'LiveCareApi/DoctorApp/SendSMSInstruction';
const GET_ALTERNATIVE_SERVICE = 'LiveCareApi/DoctorApp/GetAlternativeServices';
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 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/Patients.svc/REST/GetPatientSickLeave';
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 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 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';
+const GET_PATIENT_ARRIVAL_LIST =
+ 'Services/DoctorApplication.svc/REST/PatientArrivalList';
-const GET_PATIENT_IN_PATIENT_LIST = 'Services/DoctorApplication.svc/REST/GetMyInPatient';
+const GET_PATIENT_IN_PATIENT_LIST =
+ 'Services/DoctorApplication.svc/REST/GetMyInPatient';
-const Verify_Referral_Doctor_Remarks = 'Services/DoctorApplication.svc/REST/VerifyReferralDoctorRemarks';
+const Verify_Referral_Doctor_Remarks =
+ 'Services/DoctorApplication.svc/REST/VerifyReferralDoctorRemarks';
///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';
+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';
+const GET_PATIENT_LAB_ORDERS_RESULT_HISTORY_BY_DESCRIPTION =
+ 'Services/Patients.svc/REST/GetPatientLabOrdersResultsHistoryByDescription';
// SOAP
const GET_ALLERGIES = 'Services/DoctorApplication.svc/REST/GetAllergies';
-const GET_MASTER_LOOKUP_LIST = 'Services/DoctorApplication.svc/REST/GetMasterLookUpList';
+const GET_MASTER_LOOKUP_LIST =
+ 'Services/DoctorApplication.svc/REST/GetMasterLookUpList';
const POST_EPISODE = 'Services/DoctorApplication.svc/REST/PostEpisode';
+const POST_EPISODE_FOR_IN_PATIENT =
+ 'Services/DoctorApplication.svc/REST/PostEpisodeForInpatient';
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_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_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_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_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_ORDER_PROCEDURE =
+ 'Services/DoctorApplication.svc/REST/GetOrderedProcedure';
-const GET_LIST_CATEGORISE = 'Services/DoctorApplication.svc/REST/GetProcedureCategories';
+const GET_LIST_CATEGORISE =
+ 'Services/DoctorApplication.svc/REST/GetProcedureCategories';
-const GET_CATEGORISE_PROCEDURE = 'Services/DoctorApplication.svc/REST/GetProcedure';
+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 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 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_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 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';
+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_MY_REFERRAL_INPATIENT = "Services/DoctorApplication.svc/REST/GtMyReferralPatient";
+const GET_MY_REFERRAL_INPATIENT =
+ "Services/DoctorApplication.svc/REST/GtMyReferralPatient";
-const GET_MY_REFERRAL_OUT_PATIENT = "Services/DoctorApplication.svc/REST/GtMyReferralForOutPatient";
+const GET_MY_REFERRAL_OUT_PATIENT =
+ "Services/DoctorApplication.svc/REST/GtMyReferralForOutPatient";
-const GET_MY_DISCHARGE_PATIENT = "Services/DoctorApplication.svc/REST/GtMyDischargeReferralPatient";
-const GET_DISCHARGE_PATIENT = "Services/DoctorApplication.svc/REST/GtMyDischargePatient";
+const GET_MY_DISCHARGE_PATIENT =
+ "Services/DoctorApplication.svc/REST/GtMyDischargeReferralPatient";
+const GET_DISCHARGE_PATIENT =
+ "Services/DoctorApplication.svc/REST/GtMyDischargePatient";
-const GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus";
+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';
-const GET_IN_PATIENT_ORDERS = 'Services/DoctorApplication.svc/REST/GetPatientRadResult';
+const GET_IN_PATIENT_ORDERS =
+ 'Services/DoctorApplication.svc/REST/GetPatientRadResult';
///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_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";
-const UPDATE_PROGRESS_NOTE_FOR_INPATIENT = "Services/DoctorApplication.svc/REST/UpdateProgressNoteForInPatient";
-const CREATE_PROGRESS_NOTE_FOR_INPATIENT = "Services/DoctorApplication.svc/REST/CreateProgressNoteForInPatient";
+const UPDATE_PROGRESS_NOTE_FOR_INPATIENT =
+ "Services/DoctorApplication.svc/REST/UpdateProgressNoteForInPatient";
+const CREATE_PROGRESS_NOTE_FOR_INPATIENT =
+ "Services/DoctorApplication.svc/REST/CreateProgressNoteForInPatient";
-const GET_PRESCRIPTION_IN_PATIENT = 'Services/DoctorApplication.svc/REST/GetPrescriptionReportForInPatient';
+const GET_PRESCRIPTION_IN_PATIENT =
+ 'Services/DoctorApplication.svc/REST/GetPrescriptionReportForInPatient';
-const GET_INSURANCE_IN_PATIENT = "Services/DoctorApplication.svc/REST/GetApprovalStatusForInpatient";
+const GET_INSURANCE_IN_PATIENT =
+ "Services/DoctorApplication.svc/REST/GetApprovalStatusForInpatient";
const GET_SICK_LEAVE_PATIENT = "Services/Patients.svc/REST/GetPatientSickLeave";
-const GET_MY_OUT_PATIENT = "Services/DoctorApplication.svc/REST/GetMyOutPatient";
+const GET_MY_OUT_PATIENT =
+ "Services/DoctorApplication.svc/REST/GetMyOutPatient";
-const PATIENT_MEDICAL_REPORT_GET_LIST = "Services/Patients.svc/REST/DAPP_ListMedicalReport";
-const PATIENT_MEDICAL_REPORT_GET_TEMPLATE = "Services/Patients.svc/REST/DAPP_GetTemplateByID";
-const PATIENT_MEDICAL_REPORT_INSERT = "Services/Patients.svc/REST/DAPP_InsertMedicalReport";
-const PATIENT_MEDICAL_REPORT_VERIFIED = "Services/Patients.svc/REST/DAPP_VerifiedMedicalReport";
+const PATIENT_MEDICAL_REPORT_GET_LIST =
+ "Services/Patients.svc/REST/DAPP_ListMedicalReport";
+const PATIENT_MEDICAL_REPORT_GET_TEMPLATE =
+ "Services/Patients.svc/REST/DAPP_GetTemplateByID";
+const PATIENT_MEDICAL_REPORT_INSERT =
+ "Services/Patients.svc/REST/DAPP_InsertMedicalReport";
+const PATIENT_MEDICAL_REPORT_VERIFIED =
+ "Services/Patients.svc/REST/DAPP_VerifiedMedicalReport";
-const GET_PROCEDURE_TEMPLETE = 'Services/Doctors.svc/REST/DAPP_ProcedureTemplateGet';
+const GET_PROCEDURE_TEMPLETE =
+ 'Services/Doctors.svc/REST/DAPP_ProcedureTemplateGet';
const GET_TEMPLETE_LIST = 'Services/Doctors.svc/REST/DAPP_TemplateGet';
-const GET_PROCEDURE_TEMPLETE_DETAILS = "Services/Doctors.svc/REST/DAPP_ProcedureTemplateDetailsGet";
-const GET_PENDING_PATIENT_ER_FOR_DOCTOR_APP = 'Services/DoctorApplication.svc/REST/GetPendingPatientERForDoctorApp';
+const GET_PROCEDURE_TEMPLETE_DETAILS =
+ "Services/Doctors.svc/REST/DAPP_ProcedureTemplateDetailsGet";
+const GET_PENDING_PATIENT_ER_FOR_DOCTOR_APP =
+ 'Services/DoctorApplication.svc/REST/GetPendingPatientERForDoctorApp';
-const DOCTOR_CHECK_HAS_LIVE_CARE = "Services/DoctorApplication.svc/REST/CheckDoctorHasLiveCare";
+const DOCTOR_CHECK_HAS_LIVE_CARE =
+ "Services/DoctorApplication.svc/REST/CheckDoctorHasLiveCare";
const LIVE_CARE_IS_LOGIN = "LiveCareApi/DoctorApp/UseIsLogin";
-const ADD_REFERRED_REMARKS_NEW = "Services/DoctorApplication.svc/REST/AddReferredDoctorRemarks_New";
-const GET_SPECIAL_CLINICAL_CARE_LIST = "Services/DoctorApplication.svc/REST/GetSpecialClinicalCareList";
-const GET_SPECIAL_CLINICAL_CARE_MAPPING_LIST = "Services/DoctorApplication.svc/REST/GetSpecialClinicalCareMappingList";
+const ADD_REFERRED_REMARKS_NEW =
+ "Services/DoctorApplication.svc/REST/AddReferredDoctorRemarks_New";
+const GET_SPECIAL_CLINICAL_CARE_LIST =
+ "Services/DoctorApplication.svc/REST/GetSpecialClinicalCareList";
+const GET_SPECIAL_CLINICAL_CARE_MAPPING_LIST =
+ "Services/DoctorApplication.svc/REST/GetSpecialClinicalCareMappingList";
+
+const INSERT_MEDICAL_REPORT =
+ "Services/Patients.svc/REST/DAPP_InsertMedicalReport_New";
+
+const UPDATE_MEDICAL_REPORT =
+ "Services/Patients.svc/REST/DAPP_UpdateMedicalReport";
+const GET_SICK_LEAVE_DOCTOR_APP =
+ "Services/DoctorApplication.svc/REST/GetAllSickLeaves";
+const ADD_PATIENT_TO_DOCTOR = "LiveCareApi/DoctorApp/AssignPatientToDoctor";
+const REMOVE_PATIENT_FROM_DOCTOR = "LiveCareApi/DoctorApp/BackPatientToQueue";
+const CREATE_DOCTOR_RESPONSE =
+ "Services/DoctorApplication.svc/REST/CreateDoctorResponse";
+const GET_DOCTOR_NOT_REPLIED_COUNTS =
+ "Services/DoctorApplication.svc/REST/DoctorApp_GetDoctorNotRepliedCounts";
+const ALL_SPECIAL_LAB_RESULT =
+ "services/Patients.svc/REST/GetPatientLabSpecialResultsALL";
+const GET_MEDICATION_FOR_IN_PATIENT =
+ "Services/DoctorApplication.svc/REST/Doctor_GetMedicationForInpatient";
+const GET_EPISODE_FOR_INPATIENT =
+ "/Services/DoctorApplication.svc/REST/DoctorApp_GetEpisodeForInpatient";
+
+
+///Operation Details Services
+
+const GET_RESERVATIONS =
+ "Services/DoctorApplication.svc/REST/DoctorApp_GetReservationDetails";
+const GET_OPERATION_DETAILS =
+ "Services/DoctorApplication.svc/REST/DoctorApp_GetOperationDetails";
+const UPDATE_OPERATION_REPORT =
+ "Services/DoctorApplication.svc/REST/DoctorApp_CreateUpdateOperationReport";
+
+const NURSING_PROGRESS_NOTE =
+ "Services/DoctorApplication.svc/REST/DoctorApp_GetNursingProgressNote";
+const GET_DIAGNOSIS_FOR_IN_PATIENT =
+ "Services/DoctorApplication.svc/REST/DoctorApp_GetDiagnosisForInPatient";
+
+const GET_DIABETIC_CHART_VALUES =
+ "Services/DoctorApplication.svc/REST/DoctorApp_GetDiabeticChartValues";
+
+const GET_PENDING_ORDERS =
+ "Services/DoctorApplication.svc/REST/DoctorApp_GetPendingOrdersForInPatient";
+
+const GET_ADMISSION_ORDERS =
+ "/Services/DoctorApplication.svc/REST/DoctorApp_GetAdmissionOrders";
+
+///Patient Registration Services
+const CHECK_PATIENT_FOR_REGISTRATION =
+ "Services/Authentication.svc/REST/CheckPatientForRegisteration";
+const SEND_ACTIVATION_CODE_BY_OTP_NOT_TYPE_FOR_REGISTRATION =
+ "Services/Authentication.svc/REST/SendActivationCodebyOTPNotificationTypeForRegistration";
+const CHECK_ACTIVATION_CODE_FOR_PATIENT =
+ "Services/Authentication.svc/REST/CheckActivationCode";
+const PATIENT_REGISTRATION = "Services/Authentication.svc/REST/PatientRegistration";
+const GET_PATIENT_INFO= "Services/NHIC.svc/REST/GetPatientInfo";
+
+
+/// Discharge Summary
+const GET_PENDING_DISCHARGE_SUMMARY = "Services/DoctorApplication.svc/REST/DoctorApp_GetPendingDischargeSummary";
var selectedPatientType = 1;
@@ -272,14 +428,13 @@ var SERVICES_PATIANT_HEADER_AR = [
"المريض الواصل"
];
-var DEVICE_TOKEN = "";
const PRIMARY_COLOR = 0xff515B5D;
const TRANSACTION_NO = 0;
const LANGUAGE_ID = 2;
const STAMP = '2020-04-27T12:17:17.721Z';
const IP_ADDRESS = '9.9.9.9';
-const VERSION_ID = 6.1;
+const VERSION_ID = 6.4;
const CHANNEL = 9;
const SESSION_ID = 'BlUSkYymTt';
const IS_LOGIN_FOR_DOCTOR_APP = true;
@@ -291,6 +446,8 @@ const GENERAL_ID = 'Cs2020@2016\$2958';
const PATIENT_TYPE = 1;
const PATIENT_TYPE_ID = 1;
+const Color IN_PROGRESS_COLOR = Color(0xFFCC9B14);
+
/// Timer Info
const TIMER_MIN = 10;
diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart
index e6ded47a..9c40e638 100644
--- a/lib/config/localized_values.dart
+++ b/lib/config/localized_values.dart
@@ -1,216 +1,216 @@
const Map> localizedValues = {
- 'dashboardScreenToolbarTitle': {'ar': 'الرئيسة', 'en': 'Home'},
- 'settings': {'en': 'Settings', 'ar': 'الاعدادات'},
- 'areYouSureYouWantTo': {'en': 'Are you sure you want to', 'ar': 'هل انت متاكد من انك تريد أن'},
- 'language': {'en': 'App Language', 'ar': 'لغة التطبيق'},
- 'lanEnglish': {'en': 'English', 'ar': 'English'},
- 'lanArabic': {'en': 'العربية', 'ar': 'العربية'},
- 'theDoctor': {'en': 'Doctor', 'ar': 'الطبيب'},
- 'reply': {'en': 'Reply', 'ar': 'رد'},
- 'time': {'en': 'Time', 'ar': 'الوقت'},
- 'fileNo': {'en': 'File No : ', 'ar': 'رقم الملف :'},
- 'mobileNo': {'en': 'Mobile No', 'ar': 'رقم الموبايل'},
- 'messagesScreenToolbarTitle': {'en': 'Messages', 'ar': 'الرسائل'},
- 'mySchedule': {'en': 'Schedule', 'ar': 'جدولي'},
- 'errorNoSchedule': {'en': 'You don\'t have any Schedule', 'ar': 'ليس لديك أي جدول زمني'},
- 'verify': {'en': 'VERIFY', 'ar': 'تحقق'},
- 'referralDoctor': {'en': 'Referral Doctor', 'ar': 'الطبيب المُحول إليه'},
- 'referringClinic': {'en': 'Referring Clinic', 'ar': 'العيادة المُحول إليها'},
- 'frequency': {'en': 'Frequency', 'ar': 'نوع التحويلا'},
- 'priority': {'en': 'Priority', 'ar': 'الأولوية'},
- 'maxResponseTime': {'en': 'Max Response Time', 'ar': 'الوقت الأقصى للرد'},
- 'clinicDetailsandRemarks': {'en': 'Clinic Details and Remarks', 'ar': 'ملاحضات وتفاصيل العيادة'},
- 'answerSuggestions': {'en': 'Answer/Suggestions', 'ar': 'ملاحضات وتفاصيل العيادة'},
- 'outPatients': {'en': 'Out Patient', 'ar': 'المريض الخارجي'},
- 'myOutPatient': {'en': 'My OutPatients', 'ar': 'المريض الخارجي'},
- 'myOutPatient_2lines': {'en': 'My\nOutPatients', 'ar': 'المريض\nالخارجي'},
-
- 'searchPatient': {'en': 'Search Patients', 'ar': 'البحث عن مريض'},
- 'searchPatientDashBoard': {'en': 'Search\nPatients', 'ar': 'البحث\nعن مريض'},
- 'searchAbout': {'en': 'Search', 'ar': 'البحث عن'},
- 'patient': {'en': 'Patient', 'ar': ' مريض'},
- 'patients': {'en': "Patient's", 'ar': ' مريض'},
- 'labResult': {'en': 'Lab Result', 'ar': 'نتيجة المختبر'},
- 'lab': {'en': 'Lab', 'ar': 'المختبر'},
- 'result': {'en': 'Result', 'ar': 'نتيجة'},
- 'todayStatistics': {'en': 'Today Statistics', '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': 'InPatients', 'ar': 'مرضاي'},
- 'myInPatient': {'en': 'My\nInPatients', 'ar': 'مرضاي\nالداخليين'},
- 'inPatientLabel': {'en': 'InPatients', 'ar': 'المريض الداخلي'},
- 'inPatientAll': {'en': 'All InPatients', 'ar': 'كل المرضى'},
- 'operations': {'en': 'Operations', 'ar': 'عمليات'},
- 'patientServices': {'en': 'Patient Services', 'ar': 'خدمات المرضى'},
- 'searchMedicineDashboard': {'en': 'Search\nMedicines', 'ar': 'بحث\nعن الدواء'},
- 'searchMedicine': {'en': 'Search Medicines', 'ar': 'بحثعن الدواء'},
- 'myReferralPatient': {'en': 'My Referral Patient', 'ar': 'مرضى الاحالة'},
- 'referPatient': {'en': 'Referral Patient', 'ar': 'إحالة مريض'},
- 'myReferral': {'en': 'My Referral', 'ar': 'إحالة'},
- 'myReferredPatient': {'en': 'Referred', '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': "Patient's Phone Number ", 'ar': 'رقم الجوال'},
- 'patientID': {'en': 'Patient ID', 'ar': 'رقم المريض'},
- 'patientFile': {'en': 'Patient File', 'ar': 'ملف المريض'},
- 'familyMedicine': {'en': 'Family Medicine Clinic', 'ar': 'عيادة طب الأسرة'},
- 'search': {'en': 'Search', 'ar': 'بحث '},
- 'onlyArrivedPatient': {'en': 'Only Arrived Patient', 'ar': 'المريض الذي حضر للموعد'},
- 'searchMedicineNameHere': {'en': 'Search Medicine ', 'ar': 'ابحث هنا'},
- 'youCanFind': {'en': 'You Can Find ', 'ar': 'تستطيع ان تجد '},
- 'itemsInSearch': {'en': 'items in search', 'ar': 'عناصر في البحث'},
- 'qr': {'en': 'QR', 'ar': 'QR'},
- 'reader': {'en': 'Reader', 'ar': 'قارىء رمز ال'},
- 'startScanning': {'en': 'Start Scanning', 'ar': 'بدء المسح'},
- 'scanQrCode': {'en': 'scan Qr code to retrieve patient profile', 'ar': 'مسح رمزاال QR لاسترداد ملف تعريف المريض '},
- 'scanQr': {'en': 'Scan Qr', 'ar': 'اقراء ال QR'},
- 'profile': {'en': 'Profile', 'ar': 'ملفي الشخصي'},
- 'gender': {'en': 'Gender', 'ar': 'الجنس'},
- 'clinic': {'en': 'Clinic', 'ar': 'العيادة'},
- 'hospital': {'en': 'Hospital', 'ar': 'المستشفى'},
- 'speciality': {'en': 'Speciality', 'ar': 'التخصص'},
- 'errorMessage': {'en': 'Something went wrong', 'ar': 'حدث خطأ ما'},
- 'patientProfile': {'en': 'Patient Profile', 'ar': 'ملف المريض'},
- 'vitalSign': {'en': 'Vital Signs', 'ar': 'المؤشرات الحيوية'},
- 'vital': {'en': 'Vital', 'ar': 'الحيوية'},
- 'signs': {'en': 'Signs', 'ar': 'المؤشرات'},
- 'labOrder': {'en': 'Lab Order', 'ar': 'نتائج التحاليل'},
- 'medicines': {'en': 'Medicines', 'ar': 'الأدوية'},
- 'prescription': {'en': 'Prescription', 'ar': 'وصفات'},
- 'insuranceApprovals': {'en': 'Insurance Approvals', 'ar': 'موافقات التأمين'},
- 'insurance': {'en': 'Insurance', 'ar': 'التأمين'},
- 'approvals': {'en': 'Approvals', 'ar': 'موافقات'},
- 'bodyMeasurements': {'en': 'Body Measurements', 'ar': 'قياسات الجسم'},
- 'temperature': {'en': 'Temperature', 'ar': 'درجة الحرارة'},
- 'pulse': {'en': 'Pulse', 'ar': 'النبض'},
- 'respiration': {'en': 'Respiration', 'ar': 'التنفس'},
- 'bloodPressure': {'en': 'Blood Pressure', 'ar': 'ضغط الدم'},
- 'oxygenation': {'en': 'Oxygenation', 'ar': 'الأوكسجين'},
- 'painScale': {'en': 'Pain Scale', 'ar': 'مقياس الألم'},
- 'errorNoVitalSign': {'en': 'You don\'t have any Vital Sign', 'ar': 'ليس لديك اي اعراض حيوية'},
- 'labOrders': {'en': 'Lab Orders', 'ar': 'الفحوصات الطبية'},
- 'errorNoLabOrders': {'en': 'You don\'t have any lab orders', 'ar': 'ليس لديك اي فحوصات طبية'},
- 'answerThePatient': {'en': 'answer the patient', 'ar': 'اجب المريض '},
- 'pleaseEnterAnswer': {'en': 'please enter answer', 'ar': 'الرجاء ادخال اجابة '},
- 'replay': {'en': 'Reply', 'ar': 'تاكيد'},
- 'progressNote': {'en': 'Progress Note', 'ar': 'ملاحظة التقدم'},
- 'progress': {'en': 'Progress', 'ar': 'التقدم'},
- 'note': {'en': 'Note', 'ar': 'ملاحظة'},
- 'searchNote': {'en': 'Search Note', 'ar': 'بحث عن ملاحظة'},
- 'errorNoProgressNote': {'en': 'You don\'t have any Progress Note', 'ar': 'ليس لديك اي ملاحظة تقدم '},
- 'invoiceNo:': {'en': 'Invoice No :', 'ar': 'رقم الفاتورة'},
- 'generalResult': {'en': 'General Result ', 'ar': 'النتيجة العامة'},
- 'description': {'en': 'Description', 'ar': 'الوصف'},
- 'value': {'en': 'Value', 'ar': 'القيمة'},
- 'range': {'en': 'Range', 'ar': 'النطاق'},
- 'enterId': {'en': 'User ID', 'ar': 'معرف المستخدم'},
- 'pleaseEnterYourID': {'en': 'Please enter your ID', 'ar': 'الرجاء ادخال الهوية'},
- 'enterPassword': {'en': 'Password', 'ar': 'كلمه السر'},
- 'pleaseEnterPassword': {'en': 'Please Enter Password', 'ar': 'الرجاء ادخال الرقم السري'},
- 'selectYourProject': {'en': 'Branch', 'ar': 'فرع'},
- 'pleaseEnterYourProject': {'en': 'Please Enter Your Project', 'ar': 'الرجاء ادخال مستشفى'},
- 'login': {'en': 'Login', 'ar': 'تسجيل دخول'},
- 'drSulaimanAlHabib': {'en': 'Dr Sulaiman Al Habib', 'ar': 'د.سليمان الحبيب'},
- 'welcomeTo': {'en': 'Welcome to', 'ar': 'مرحبا بك'},
- 'welcomeBackTo': {'en': 'Welcome Back to', 'ar': 'مرحبًا بعودتك الى '},
- 'home': {'en': 'Home', 'ar': 'الرئيسية'},
- 'services': {'en': 'Services', 'ar': 'الخدمات'},
- 'sms': {'en': 'SMS', 'ar': 'رسالة قصيرة'},
- 'fingerprint': {'en': 'Fingerprint', 'ar': 'بصمة'},
- 'faceId': {'en': 'Face ID', 'ar': 'معرف الوجه'},
- 'whatsAppBy': {'en': 'by WhatsApp', 'ar': 'عن طريق واتس اب'},
- 'whatsApp': {'en': 'WhatsApp', 'ar': 'واتس اب'},
- 'pleaseChoose': {
- 'en': 'Please choose one of the Following option to verify',
- 'ar': 'يرجى اختيار أحد الخيارات التالية للتحقق'
+ "dashboardScreenToolbarTitle": {"ar": "الرئيسة", "en": "Home"},
+ "settings": {"en": "Settings", "ar": "الاعدادات"},
+ "areYouSureYouWantTo": {"en": "Are you sure you want to", "ar": "هل انت متاكد من انك تريد أن"},
+ "language": {"en": "App Language", "ar": "لغة التطبيق"},
+ "lanEnglish": {"en": "English", "ar": "English"},
+ "lanArabic": {"en": "العربية", "ar": "العربية"},
+ "theDoctor": {"en": "Doctor", "ar": "الطبيب"},
+ "reply": {"en": "Reply", "ar": "رد"},
+ "time": {"en": "Time", "ar": "الوقت"},
+ "fileNo": {"en": "File No : ", "ar": "رقم الملف :"},
+ "mobileNo": {"en": "Mobile No", "ar": "رقم الجوال"},
+ "messagesScreenToolbarTitle": {"en": "Messages", "ar": "الرسائل"},
+ "mySchedule": {"en": "Schedule", "ar": "جدولي"},
+ "errorNoSchedule": {"en": "You don't have any Schedule", "ar": "ليس لديك أي جدول"},
+ "verify": {"en": "VERIFY", "ar": "تحقق"},
+ "referralDoctor": {"en": "Referral Doctor", "ar": "الطبيب المُحول إليه"},
+ "referringClinic": {"en": "Referring Clinic", "ar": "العيادة المُحول إليها"},
+ "frequency": {"en": "Frequency", "ar": "تكرر"},
+ "priority": {"en": "Priority", "ar": "الأولوية"},
+ "maxResponseTime": {"en": "Max Response Time", "ar": "الوقت الأقصى للرد"},
+ "clinicDetailsandRemarks": {"en": "Clinic Details and Remarks", "ar": "ملاحضات وتفاصيل العيادة"},
+ "answerSuggestions": {"en": "Answer/Suggestions", "ar": "الرد / الاقتراحات"},
+ "outPatients": {"en": "Out Patient", "ar": "العيادات الخارجية"},
+ "myOutPatient": {"en": "My OutPatients", "ar": "مرضى العيادات الخارجية"},
+ "myOutPatient_2lines": {"en": "My\nOutPatients", "ar": "مريض\nالعيادات الخارجية"},
+ "searchPatient": {"en": "Search Patients", "ar": "البحث عن مريض"},
+ "searchPatientDashBoard": {"en": "Search\nPatients", "ar": "البحث\nعن مريض"},
+ "searchAbout": {"en": "Search", "ar": "البحث عن"},
+ "patient": {"en": "Patient", "ar": " مريض"},
+ "patients": {"en": "Patients", "ar": "مرضى"},
+ "labResult": {"en": "Lab Result", "ar": "نتيجة المختبر"},
+ "lab": {"en": "Lab", "ar": "المختبر"},
+ "result": {"en": "Result", "ar": "نتيجة"},
+ "todayStatistics": {"en": "Today Statistics", "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": "InPatients", "ar": "مرضاي"},
+ "myInPatient": {"en": "My\nInPatients", "ar": "مرضاي\nالمنومين"},
+ "myInPatientTitle": {"en": "My InPatients", "ar": "مرضاي المنومين"},
+ "inPatientLabel": {"en": "InPatients", "ar": "المريض المنوم"},
+ "inPatientAll": {"en": "All InPatients", "ar": "جميع المرضى المنومين"},
+ "operations": {"en": "Operations", "ar": "عمليات"},
+ "patientServices": {"en": "Patient Services", "ar": "خدمات المرضى"},
+ "searchMedicineDashboard": {"en": "Search\nMedicines", "ar": "بحث\nعن الدواء"},
+ "searchMedicine": {"en": "Search Medicines", "ar": "بحث عن الدواء"},
+ "myReferralPatient": {"en": "My Referral Patient", "ar": "مرضى الاحالة"},
+ "referPatient": {"en": "Referral Patient", "ar": "إحالة مريض"},
+ "myReferral": {"en": "My Referral", "ar": "إحالة"},
+ "myReferredPatient": {"en": "Referred", "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": "Patients Phone Number ", "ar": "رقم الجوال"},
+ "patientID": {"en": "Patient ID", "ar": "رقم المريض"},
+ "patientFile": {"en": "Patient File", "ar": "ملف المريض"},
+ "familyMedicine": {"en": "Family Medicine Clinic", "ar": "عيادة طب الأسرة"},
+ "search": {"en": "Search", "ar": "بحث "},
+ "onlyArrivedPatient": {"en": "Only Arrived Patient", "ar": "المريض الذي حضر للموعد"},
+ "searchMedicineNameHere": {"en": "Search Medicine ", "ar": "ابحث هنا"},
+ "youCanFind": {"en": "You Can Find ", "ar": "تستطيع ان تجد "},
+ "itemsInSearch": {"en": "items in search", "ar": "عناصر في البحث"},
+ "qr": {"en": "QR", "ar": "QR"},
+ "reader": {"en": "Reader", "ar": "قارىء رمز ال"},
+ "startScanning": {"en": "Start Scanning", "ar": "بدء المسح"},
+ "scanQrCode": {"en": "scan Qr code to retrieve patient profile", "ar": "مسح رمزاال QR لاسترداد ملف تعريف المريض"},
+ "scanQr": {"en": "Scan Qr", "ar": "اقراء ال QR"},
+ "profile": {"en": "Profile", "ar": "ملفي الشخصي"},
+ "gender": {"en": "Gender", "ar": "الجنس"},
+ "clinic": {"en": "Clinic", "ar": "العيادة"},
+ "hospital": {"en": "Hospital", "ar": "المستشفى"},
+ "speciality": {"en": "Speciality", "ar": "التخصص"},
+ "errorMessage": {"en": "Something went wrong", "ar": "حدث خطأ ما"},
+ "patientProfile": {"en": "Patient Profile", "ar": "ملف المريض"},
+ "vitalSign": {"en": "Vital Signs", "ar": "المؤشرات الحيوية"},
+ "vital": {"en": "Vital", "ar": "الحيوية"},
+ "signs": {"en": "Signs", "ar": "المؤشرات"},
+ "labOrder": {"en": "Lab Order", "ar": "نتائج التحاليل"},
+ "medicines": {"en": "Medicines", "ar": "الأدوية"},
+ "prescription": {"en": "Prescription", "ar": "الوصفات"},
+ "insuranceApprovals": {"en": "Insurance Approvals", "ar": "موافقات التأمين"},
+ "insurance": {"en": "Insurance", "ar": "التأمين"},
+ "approvals": {"en": "Approvals", "ar": "موافقات"},
+ "bodyMeasurements": {"en": "Body Measurements", "ar": "قياسات الجسم"},
+ "temperature": {"en": "Temperature", "ar": "درجة الحرارة"},
+ "pulse": {"en": "Pulse", "ar": "النبض"},
+ "respiration": {"en": "Respiration", "ar": "التنفس"},
+ "bloodPressure": {"en": "Blood Pressure", "ar": "ضغط الدم"},
+ "oxygenation": {"en": "Oxygenation", "ar": "الأوكسجين"},
+ "painScale": {"en": "Pain Scale", "ar": "مقياس الألم"},
+ "errorNoVitalSign": {"en": "You don't have any Vital Sign", "ar": "ليس لديك اي مؤشرات حيوية"},
+ "labOrders": {"en": "Lab Orders", "ar": "طلبات المختبر"},
+ "errorNoLabOrders": {"en": "You don\"t have any lab orders", "ar": "ليس لديك اي طلبات للمختبر"},
+ "answerThePatient": {"en": "answer the patient", "ar": "الرد على المريض "},
+ "pleaseEnterAnswer": {"en": "please enter answer", "ar": "الرجاء ادخال الرد"},
+ "replay": {"en": "Reply", "ar": "تاكيد"},
+ "progressNote": {"en": "Progress Note", "ar": "ملاحظات التقدم"},
+ "progress": {"en": "Progress", "ar": "التقدم"},
+ "note": {"en": "Note", "ar": "ملاحظة"},
+ "searchNote": {"en": "Search Note", "ar": "بحث عن ملاحظة"},
+ "errorNoProgressNote": {"en": "You don\"t have any Progress Note", "ar": "ليس لديك اي ملاحظة تقدم"},
+ "invoiceNo:": {"en": "Invoice No :", "ar": "رقم الفاتورة"},
+ "generalResult": {"en": "General Result ", "ar": "النتيجة العامة"},
+ "description": {"en": "Description", "ar": "الوصف"},
+ "value": {"en": "Value", "ar": "القيمة"},
+ "range": {"en": "Range", "ar": "النطاق"},
+ "enterId": {"en": "User ID", "ar": "معرف المستخدم"},
+ "pleaseEnterYourID": {"en": "Please enter your ID", "ar": "الرجاء ادخال الهوية"},
+ "enterPassword": {"en": "Password", "ar": "كلمه السر"},
+ "pleaseEnterPassword": {"en": "Please Enter Password", "ar": "الرجاء ادخال الرقم السري"},
+ "selectYourProject": {"en": "Branch", "ar": "فرع"},
+ "pleaseEnterYourProject": {"en": "Please Enter Your Project", "ar": "الرجاء ادخال مستشفى"},
+ "login": {"en": "Login", "ar": "تسجيل دخول"},
+ "drSulaimanAlHabib": {"en": "Dr Sulaiman Al Habib", "ar": "د.سليمان الحبيب"},
+ "welcomeTo": {"en": "Welcome to", "ar": "مرحبا بك"},
+ "welcomeBackTo": {"en": "Welcome Back to", "ar": "مرحبًا بعودتك الى "},
+ "home": {"en": "Home", "ar": "الرئيسية"},
+ "services": {"en": "Services", "ar": "الخدمات"},
+ "sms": {"en": "SMS", "ar": "رسالة قصيرة"},
+ "fingerprint": {"en": "Fingerprint", "ar": "بصمة"},
+ "faceId": {"en": "Face ID", "ar": "معرف الوجه"},
+ "whatsAppBy": {"en": "by WhatsApp", "ar": "عن طريق واتس اب"},
+ "whatsApp": {"en": "WhatsApp", "ar": "واتس اب"},
+ "pleaseChoose": {
+ "en": "Please choose one of the Following option to verify",
+ "ar": "يرجى اختيار أحد الخيارات التالية للتحقق"
},
- 'choose': {'en': 'Choose', 'ar': 'اختر'},
- 'verification': {'en': 'Verification', 'ar': 'طريقة التحقق'},
- 'firstStep': {
- 'en': 'As a first step, you need to verify by one of those methods',
- 'ar': 'كخطوة أولى ، تحتاج إلى التحقق بإحدى هذه الطرق'
+ "choose": {"en": "Choose", "ar": "اختر"},
+ "verification": {"en": "Verification", "ar": "طريقة التحقق"},
+ "firstStep": {
+ "en": "As a first step, you need to verify by one of those methods",
+ "ar": "كخطوة أولى ، تحتاج إلى التحقق بإحدى هذه الطرق"
},
- 'yourAccount!': {'en': 'Your Account!', 'ar': 'حسابك!'},
- 'verify1': {'en': 'Verify', 'ar': 'ثبت'},
- 'youWillReceiveA': {'en': 'You will receive a', 'ar': 'سوف تتلقى '},
- 'loginCode': {'en': 'Login Code', 'ar': 'رمز تسجيل دخول'},
- 'smsBy': {'en': 'By SMS', 'ar': 'عن طريق رسالة قصيرة'},
- 'pleaseEnterTheCode': {'en': 'Please enter the code', 'ar': 'الرجاء ادخال الرمز'},
- 'youDon\'tHaveAnyPatient': {
- 'en': 'No data found for the selected search criteria',
- 'ar': 'لا توجد بيانات لمعايير البحث المختارة'
+ "yourAccount!": {"en": "Your Account!", "ar": "حسابك!"},
+ "verify1": {"en": "Verify", "ar": "ثبت"},
+ "youWillReceiveA": {"en": "You will receive a", "ar": "سوف تتلقى "},
+ "loginCode": {"en": "Login Code", "ar": "رمز تسجيل دخول"},
+ "smsBy": {"en": "By SMS", "ar": "عن طريق رسالة قصيرة"},
+ "pleaseEnterTheCode": {"en": "Please enter the code", "ar": "الرجاء ادخال الرمز"},
+ "youDontHaveAnyPatient": {
+ "en": "No data found for the selected search criteria",
+ "ar": "لا توجد بيانات لمعايير البحث المختارة"
},
- 'age': {'en': 'Age', 'ar': 'العمر'},
- 'nationality': {'en': 'Nationality', 'ar': 'الجنسية'},
- 'today': {'en': 'Today', 'ar': 'اليوم'},
- 'yesterday': {'en': 'Yesterday', 'ar': 'الأمس'},
- 'tomorrow': {'en': 'Tomorrow', 'ar': 'الغد'},
- 'nextWeek': {'en': 'Next Week', 'ar': 'الاسبوع القادم'},
- 'all': {'en': 'All', 'ar': 'الجميع'},
- 'errorNoInsuranceApprovals': {'en': 'You don\'t have any Insurance Approvals', 'ar': 'ليس لديك اي موفقات تأمين'},
- 'searchInsuranceApprovals': {'en': 'Search InsuranceApprovals', 'ar': 'بحث عن موافقات التأمين'},
- 'status': {'en': 'STATUS', 'ar': 'الحالة'},
- 'expiryDate': {'en': 'EXPIRY DATE', 'ar': 'تاريخ الانتهاء'},
- 'producerName': {'en': 'PRODUCER NAME', 'ar': 'اسم المنتج'},
- 'receiptOn': {'en': 'RECEIPT ON', 'ar': 'تاريخ الاستلام'},
- 'approvalNo': {'en': 'Approval No:', 'ar': 'رقم الموافقة:'},
- 'doctor': {'en': 'Doctor', 'ar': 'الدكتور'},
- 'ext': {'en': 'Ext#', 'ar': 'رقم التحويلة'},
- 'veryUrgent': {'en': 'Very Urgent', 'ar': 'عاجل جدا'},
- 'urgent': {'en': 'Urgent', 'ar': 'عاجل'},
- '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': 'التفاصيل السرسرية والملاحظات'},
- 'remarks': {'en': 'Remarks', 'ar': 'ملاحظات'},
- 'pleaseFill': {'en': 'Please fill all fields..!', 'ar': 'الرجاء ملأ جميع الحقول..!'},
- 'replay2': {'en': 'Reply', 'ar': 'رد الطبيب'},
- 'logout': {'en': 'Logout', 'ar': 'تسجيل خروج'},
- 'pharmaciesList': {'en': 'Pharmacies List', 'ar': 'قائمة الصيدليات'},
- 'price': {'en': 'Price', 'ar': 'السعر'},
- 'youCanFindItIn': {'en': 'You can Find it in', 'ar': 'تستطيع ان تجده هنا '},
- 'radiologyReport': {'en': 'Radiology Report', 'ar': 'تقرير الاشعة'},
- 'orders': {'en': 'Orders', 'ar': 'الطلبات'},
- 'list': {'en': 'List', 'ar': 'قائمة'},
- 'searchOrders': {'en': 'Search Orders', 'ar': ' بحث عن الطلبات'},
- 'prescriptionDetails': {'en': 'Prescription Details', 'ar': 'تفاصبل الوصفة'},
- 'prescriptionInfo': {'en': 'Prescription Info', 'ar': 'معلومات الوصفة'},
- 'errorNoOrders': {'en': 'You don\'t have any Orders', 'ar': 'لا يوجد لديك اي طلبات'},
- 'livecare': {'en': 'Live Care', 'ar': 'Live Care'},
- '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': 'ينتهي مع الشحن'},
- 'endcall': {'en': 'End Call', 'ar': 'إنهاء المكالمة'},
- 'transfertoadmin': {'en': 'Transfer to admin', 'ar': 'نقل إلى المسؤول'},
- "searchMedicineImageCaption": {'en': 'Type the medicine name to search', 'ar': ' اكتب اسم الدواء للبحث'},
- "type": {'en': 'Type ', 'ar': 'اكتب'},
- "fromDate": {'en': 'From Date', 'ar': 'من تاريخ'},
- "toDate": {'en': 'To Date', 'ar': 'الى تاريخ'},
- "searchPatientImageCaptionTitle": {'en': 'SEARCH PATIENT', 'ar': 'البحث عن المريض'},
- "searchPatientImageCaptionBody": {'en': 'Add Details Of Patient To search', 'ar': ' أضف تفاصيل المريض للبحث'},
- "welcome": {'en': 'Welcome', 'ar': ' أهلا بك'},
- 'youDoNotHaveAnyItem': {'en': 'You don\'t have any Items', 'ar': 'لا يوجد اي نتائج'},
- 'typeMedicineName': {'en': 'Type Medicine Name', 'ar': 'اكتب اسم الدواء'},
- 'moreThan3Letter': {
- 'en': 'Medicine Name Should Be More Than 3 letter',
- 'ar': 'يجب أن يكون اسم الدواء أكثر من 3 أحرف'
+ "age": {"en": "Age", "ar": "العمر"},
+ "nationality": {"en": "Nationality", "ar": "الجنسية"},
+ "today": {"en": "Today", "ar": "اليوم"},
+ "yesterday": {"en": "Yesterday", "ar": "الأمس"},
+ "tomorrow": {"en": "Tomorrow", "ar": "الغد"},
+ "nextWeek": {"en": "Next Week", "ar": "الاسبوع القادم"},
+ "all": {"en": "All", "ar": "الجميع"},
+ "errorNoInsuranceApprovals": {"en": "You don\"t have any Insurance Approvals", "ar": "ليس لديك اي موفقات تأمين"},
+ "searchInsuranceApprovals": {"en": "Search InsuranceApprovals", "ar": "بحث عن موافقات التأمين"},
+ "status": {"en": "STATUS", "ar": "الحالة"},
+ "expiryDate": {"en": "EXPIRY DATE", "ar": "تاريخ الانتهاء"},
+ "producerName": {"en": "PRODUCER NAME", "ar": "اسم المنتج"},
+ "receiptOn": {"en": "RECEIPT ON", "ar": "تاريخ الاستلام"},
+ "approvalNo": {"en": "Approval No:", "ar": "رقم الموافقة:"},
+ "doctor": {"en": "Doctor", "ar": "الدكتور"},
+ "ext": {"en": "Ext#", "ar": "رقم التحويلة"},
+ "veryUrgent": {"en": "Very Urgent", "ar": "عاجل جدا"},
+ "urgent": {"en": "Urgent", "ar": "عاجل"},
+ "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": "التفاصيل السرسرية والملاحظات"},
+ "remarks": {"en": "Remarks", "ar": "ملاحظات"},
+ "pleaseFill": {"en": "Please fill all fields..!", "ar": "الرجاء ملأ جميع الحقول..!"},
+ "replay2": {"en": "Reply", "ar": "رد الطبيب"},
+ "logout": {"en": "Logout", "ar": "تسجيل خروج"},
+ "pharmaciesList": {"en": "Pharmacies List", "ar": "قائمة الصيدليات"},
+ "price": {"en": "Price", "ar": "السعر"},
+ "youCanFindItIn": {"en": "You can Find it in", "ar": "تستطيع ان تجده هنا "},
+ "radiologyReport": {"en": "Radiology Report", "ar": "تقرير الاشعة"},
+ "orders": {"en": "Orders", "ar": "الطلبات"},
+ "list": {"en": "List", "ar": "قائمة"},
+ "searchOrders": {"en": "Search Orders", "ar": " بحث عن الطلبات"},
+ "prescriptionDetails": {"en": "Prescription Details", "ar": "تفاصبل الوصفة"},
+ "prescriptionInfo": {"en": "Prescription Info", "ar": "معلومات الوصفة"},
+ "errorNoOrders": {"en": "You don\"t have any Orders", "ar": "لا يوجد لديك اي طلبات"},
+ "livecare": {"en": "Live Care", "ar": "Live Care"},
+ "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": "انهاء مع خصم المبلغ"},
+ "endcall": {"en": "End Call", "ar": "إنهاء المكالمة"},
+ "transfertoadmin": {"en": "Transfer to admin", "ar": "تحويل للمشرف"},
+ "searchMedicineImageCaption": {"en": "Type the medicine name to search", "ar": " اكتب اسم الدواء للبحث"},
+ "type": {"en": "Type", "ar": "اكتب"},
+ "fromDate": {"en": "From Date", "ar": "من تاريخ"},
+ "toDate": {"en": "To Date", "ar": "الى تاريخ"},
+ "searchPatientImageCaptionTitle": {"en": "SEARCH PATIENT", "ar": "البحث عن المريض"},
+ "searchPatientImageCaptionBody": {"en": "Add Details Of Patient To search", "ar": " أضف تفاصيل المريض للبحث"},
+ "welcome": {"en": "Welcome", "ar": "أهلا بك"},
+ "youDoNotHaveAnyItem": {"en": "You don\"t have any Items", "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': 'تم الرد بنجاح'},
+ "gender2": {"en": "Gender: ", "ar": "الجنس: "},
+ "age2": {"en": "Age: ", "ar": "العمر: "},
+ "replySuccessfully": {"en": "Reply Successfully", "ar": "تم الرد بنجاح"},
"sick-leaves": {"en": "Patient Sick Leave", "ar": "الاجازات المرضية"},
"patient-sick": {"en": "Patient Sick", "ar": "مرضية"},
"leave": {"en": "Leave", "ar": "مغادره"},
@@ -219,207 +219,204 @@ const Map> localizedValues = {
"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': 'التالي'},
- 'previous': {'en': 'Previous', 'ar': 'السابق'},
- 'healthRecordInformation': {'en': 'HEALTH RECORD INFORMATION', '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": "التالي"},
+ "previous": {"en": "Previous", "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': 'اختار طبيب'},
+ "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': 'لا توجد إجازة مرضية متاحة ، تقدم بطلب الآن'
+ "no-sickleve-applied": {
+ "en": "No sick leave available, apply Now",
+ "ar": "لا توجد إجازة مرضية متاحة ، تقدم بطلب الآن"
},
- 'no-sickleve': {'en': "No sick leave available", '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': 'قم بتمديد الإجازة المرضية'},
+ "no-sickleve": {"en": "No sick leave available", "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": "Leave Days: ", "ar": "أيام الإجازة "},
+ "extend": {"en": "Extend", "ar": "تمديد"},
+ "extend-sickleave": {"en": "Extend Sick Leave", "ar": "قم بتمديد الإجازة المرضية"},
"chiefComplaintLength": {
"en": "Chief Complaint length should be greater than 25",
- "ar": "يجب أن يكون طول شكوى الرئيس أكبر من 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': "Body Mass Index is", 'ar': 'مؤشر كتلة الجسم هو'},
- 'bmiUnderWeight': {'en': "UnderWeight", 'ar': 'تحت الوزن'},
- 'bmiHealthy': {'en': "Healthy", 'ar': 'صحي'},
- 'bmiOverWeight': {'en': "OverWeight", 'ar': 'فوق الوزن'},
- 'bmiObese': {'en': "Obese", 'ar': 'سمين'},
- 'bmiObeseExtreme': {'en': "Extreme 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': 'تاريخ القبول المتوقع'},
- 'admissionDate': {'en': "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",
- 'ar': 'شكاوى الرئيس'
- // 'en': "CHIEF COMPLAINTS & OTHER SYMPTOMS",
- // 'ar': 'شكاوى الرئيس وأعراض أخرى'
+ "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": "Body Mass Index is", "ar": "مؤشر كتلة الجسم هو"},
+ "bmiUnderWeight": {"en": "UnderWeight", "ar": "اقل من الوزن المثالي"},
+ "bmiHealthy": {"en": "Healthy", "ar": "صحي"},
+ "bmiOverWeight": {"en": "OverWeight", "ar": "اعلى من الوزن المثالي"},
+ "bmiObese": {"en": "Obese", "ar": "سمين"},
+ "bmiObeseExtreme": {"en": "Extreme 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": "تاريخ التنويم المتوقع"},
+ "admissionDate": {"en": "Admission Date", "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", "ar": "الشكوى الرئيسية"},
+ "patientFeelsPainInHisBackAndCough": {
+ "en": "Patient Feels pain in his back and cough",
+ "ar": "يشعر المريض بألم في ظهره ويسعل"
},
- 'patientFeelsPainInHisBackAndCough': {
- 'en': "Patient Feels pain in his back and cough",
- 'ar': 'يشعر المريض بألم في ظهره ويسعل'
+ "additionalTextComplaints": {
+ "en": "Additional text to add about Complaints",
+ "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 \n Options", "ar": "المزيد من خيارات التحقق"},
- "welcome-back": {"en": "Welcome back!", "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": "الحدث"},
+ "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": "تمت الاحالة بنجاح"},
+ "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": "استخدم حسابا آخر"},
+ "another-acc": {"en": "Use Another Account", "ar": "استخدم حساب آخر"},
"verify-login-with": {
"en": "Please choose one of the following options to verify",
- "ar": "الرجاء اختيار احدى الخيارات التالية للتحقق من البيانات"
+ "ar": "الرجاء اختيار احدى الخيارات التالية لعملية التحقق"
},
"register-user": {"en": "Register", "ar": "تسجيل"},
- "verify-with-fingerprint": {"en": "Fingerprint", "ar": "بصمة"},
- "verify-with-faceid": {"en": "Face ID", "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": " الواتس اب"},
"verify-with": {"en": "Verify through ", "ar": " الواتس اب"},
@@ -427,24 +424,24 @@ const Map> localizedValues = {
"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": "لتفعيل خدمة الدخول بالبصمة، يرجى اختيار احدى القنوات التالية للتحقق من البيانات"
+ "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': "لم يتم الفحص"},
+ "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": "كتلة"},
@@ -453,139 +450,134 @@ const Map> localizedValues = {
"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': "اضافة العمليات المختارة "},
- 'addProcedures': {'en': "Add Procedure", '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': "يمكنك فقط تطبيق عطلة أو إجازة من تطبيق الهاتف"
+ "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": "اضافة الاجراءات المختارة "},
+ "addProcedures": {"en": "Add Procedure", "ar": "اضافة اجراء"},
+ "updateProcedure": {"en": "Update Procedure", "ar": "تحديث الاجراء"},
+ "orderProcedure": {"en": "order procedure", "ar": "طلب اجراء"},
+ "nameOrICD": {"en": "Name or ICD", "ar": "Name or 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': "يجب عليك إضافة تقييم واحد على الأقل."
+ "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': "يجب عليك إضافة الفحص واحد على الأقل."
+ "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': "يجب عليك إضافة حقول شكوى الرئيس بشكل صحيح"
+ "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 Details", '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': "الإجازة المرضية في حالة الانتظار لهذا المريض"
+ "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 Details", "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": "تم إنشاء طلب التنويم بنجاح"},
+ "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': "إحالات المريض"},
- 'myPatientsReferral': {'en': "Patient's\nReferrals", 'ar': "إحالات\nالمريض"},
- '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': 'التفاصيل'},
+ "no-clinic": {"en": "No Clinic", "ar": "لايوجد عيادة"},
+ "otherStatistic": {"en": "Other Statistics", "ar": "إحصائيات أخرى"},
+ "ptientsreferral": {"en": "Patients Referrals", "ar": "إحالات المريض"},
+ "myPatientsReferral": {"en": "Patient's\nReferrals", "ar": "إحالات\nالمريض"},
+ "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": "LiveCare", "ar": "لايف كير"},
"out-patient": {"en": "OutPatient", "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": "نتيجة خاصة"},
+ "SpecialResult": {"en": "Special Result", "ar": "نتيجة خاصة"},
"noDataAvailable": {"en": "No data available", "ar": " لا يوجد بيانات متاحة "},
- "show-more-btn": {"en": "Flow Chart", "ar": "النتائج التراكمية"},
-
+ "show-more-btn": {"en": "Flowchart", "ar": "النتائج التراكمية"},
"open-rad": {"en": "Open Radiology 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': 'يغادر'},
+ "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": "جالة الاستخدام"},
+ "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": "إخفاء المعايير الأخرى"},
+ "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": "تمديد طلب الإجازة المرضية"},
- "accepted": {"en": "Accepted", "ar": "وافقت"},
- "cancelled": {"en": "Cancelled", "ar": "ألغيت"},
+ "accepted": {"en": "Accepted", "ar": "موافق"},
+ "cancelled": {"en": "Cancelled", "ar": "ألغي"},
"unReplied": {"en": "UnReplied", "ar": "لم يتم الرد"},
"searchHere": {"en": "Search here", "ar": "إبحث هنا"},
"replied": {"en": "Replied", "ar": " تم الرد"},
@@ -593,7 +585,7 @@ const Map> localizedValues = {
"remove": {"en": "Remove", "ar": "حذف"},
"changeOfSchedule": {"en": "Change of Schedule", "ar": "تغيير الجدول"},
"newSchedule": {"en": "New Schedule", "ar": "جدول جديد"},
- "enter_credentials": {"en": "Enter the user credentials below", "ar": "أدخل بيانات اعتماد المستخدم أدناه"},
+ "enter_credentials": {"en": "Enter the user credentials below", "ar": "أدخل بيانات المستخدم أدناه"},
"step": {"en": "Step", "ar": "خطوة"},
"fieldRequired": {"en": "This field is required", "ar": "هذه الخانة مطلوبه"},
"applyOrRescheduleLeave": {"en": "Apply Reschedule Leave", "ar": "التقدم بطلب أو إعادة جدولة الإجازة"},
@@ -604,48 +596,45 @@ const Map> localizedValues = {
},
"updateNow": {"en": "Update Now", "ar": "تحديث الان"},
"updateTheApp": {"en": "Update The App", "ar": "تحديث التطبيق"},
- "admission-date": {"en": "Admission Date", "ar": "تاريخ القبول"},
+ "admission-date": {"en": "Admission Date", "ar": "تاريخ التنويم"},
"noOfDays": {"en": "No of days", "ar": "عدد الأيام"},
"numOfDays": {"en": "Number of Days", "ar": "عدد الأيام"},
"replayBefore": {"en": "Replay Before", "ar": "رد قبل"},
- "try-saying": {"en": "Try saying something", "ar": 'حاول قول شيء ما'},
+ "try-saying": {"en": "Try saying something", "ar": "حاول قول شيء ما"},
"refClinic": {"en": "Ref Clinic", "ar": "العيادة المرجعية"},
"acknowledged": {"en": "Acknowledged", "ar": "إقرار"},
"didntCatch": {"en": "Didn't catch that. Try Speaking again", "ar": "لم يتم التقاط ذلك. حاول التحدث مرة أخرى"},
"showDetail": {"en": "Show Detail", "ar": "أظهر المعلومات"},
"viewProfile": {"en": "View Profile", "ar": "إعرض الملف"},
"pleaseEnterProcedure": {"en": "Please Enter Procedure", "ar": "الرجاء إدخال الإجراء "},
- "fillTheMandatoryProcedureDetails": {
- "en": "Fill The Mandatory Procedure Details",
- "ar": "املأ تفاصيل الإجراء الإلزامي"
- },
+ "fillTheMandatoryProcedureDetails": {"en": "Fill The Mandatory Procedure Details", "ar": "املأ تفاصيل الإجراء"},
"atLeastThreeCharacters": {"en": "At least three Characters", "ar": "ثلاثة أحرف على الأقل "},
"searchProcedureHere": {"en": "Search Procedure here...", "ar": "إجراء البحث هنا ... "},
"noInsuranceApprovalFound": {"en": "No Insurance Approval Found", "ar": "لم يتم العثور على موافقة التأمين"},
- "procedure": {"en": "Procedure", "ar": "عملية"},
+ "procedure": {"en": "Procedure", "ar": "اجراء"},
"stopDate": {"en": "Stop Date", "ar": "تاريخ التوقف"},
"processed": {"en": "processed", "ar": "معالجتها"},
- "direction": {"en": "Direction", "ar": "إشراف"},
+ "direction": {"en": "Direction", "ar": "توجيه"},
"refill": {"en": "Refill", "ar": "اعادة تعبئه"},
"medicationHasBeenAdded": {"en": "Medication has been added", "ar": "تمت إضافة الدواء"},
"newPrescriptionOrder": {"en": "New Prescription Order", "ar": "طلب وصفة طبية جديد "},
- "pleaseFillAllFields": {"en": "Please Fill All Fields", "ar": "لو سمحت أملأ كل الحقول"},
+ "pleaseFillAllFields": {"en": "Please Fill All Fields", "ar": "الرجاء أملأ جميع الحقول"},
"narcoticMedicineCanOnlyBePrescribedFromVida": {
"en": "Narcotic medicine can only be prescribed from VIDA",
"ar": "لا يمكن وصف الأدوية المخدرة إلا من VIDA "
},
"only5DigitsAllowedForStrength": {"en": "Only 5 Digits allowed for strength", "ar": "يسمح فقط بـ 5 أرقام للقوة"},
"unit": {"en": "Unit", "ar": "وحدة"},
- "boxQuantity": {"en": "Box Quantity", "ar": "كمية الصندوق "},
+ "boxQuantity": {"en": "Box Quantity", "ar": "كمية العبوة "},
"orderTestOr": {"en": "Order Test or", "ar": "اطلب اختبار أو"},
"applyForRadiologyOrder": {"en": "Apply for Radiology Order", "ar": "التقدم بطلب للحصول على طلب الأشعة "},
"applyForNewLabOrder": {"en": "Apply for New Lab Order", "ar": "تقدم بطلب جديد للمختبر الأشعة"},
- "addLabOrder": {"en": "Add Lab Order", "ar": "إضافة طلب معمل"},
+ "addLabOrder": {"en": "Add Lab Order", "ar": "إضافة طلب مختبر"},
"addRadiologyOrder": {"en": "Add Radiology Order", "ar": "إضافة اشعة"},
- "newRadiologyOrder": {"en": "New Radiology Order", "ar": "طلب الأشعة الجديد"},
+ "newRadiologyOrder": {"en": "New Radiology Order", "ar": "طلب أشعة جديد"},
"orderDate": {"en": "Order Date", "ar": "تاريخ الطلب"},
"examType": {"en": "Exam Type", "ar": "نوع الفحص"},
- "health": {"en": "Health", "ar": "الصحي"},
+ "health": {"en": "Health", "ar": "صحي"},
"summary": {"en": "Summary", "ar": "التقرير"},
"applyForNewPrescriptionsOrder": {
"en": "Apply for New Prescriptions Order",
@@ -657,28 +646,28 @@ const Map> localizedValues = {
"approvals22": {"en": "Approvals", "ar": "التامين"},
"severe": {"en": "Severe", "ar": "الشدة"},
"graphDetails": {"en": "Graph Details", "ar": "تفاصيل الرسم البياني"},
- "addNewOrderSheet": {"en": "Add a New Order Sheet", "ar": "أضف ورقة طلب جديدة"},
- "addNewProgressNote": {"en": "Add a New Progress Note", "ar": "أضف ملاحظة تقدم جديدة"},
+ "addNewOrderSheet": {"en": "Add a New Order Sheet", "ar": "أضف طلب جديد"},
+ "addNewProgressNote": {"en": "Add a New Progress Note", "ar": "أضف ملاحظة جديدة"},
"notePending": {"en": "Pending", "ar": "قيد الانتظار"},
- "noteCanceled": {"en": "Canceled", "ar": "ألغيت"},
+ "noteCanceled": {"en": "Canceled", "ar": "ألغي"},
"noteVerified": {"en": "Verified", "ar": "تم التحقق"},
- 'noteVerify': {'en': 'Verify', 'ar': 'تحقق'},
- 'noteConfirm': {'en': 'Confirm', 'ar': 'تاكيد'},
- 'noteAdd': {'en': 'Add ', 'ar': 'اضف '},
- 'noteUpdateْْ': {'en': 'Update ', 'ar': 'تحديت'},
- 'orderSheet': {'en': 'Order Sheet', 'ar': 'ورقة الطلب'},
- 'order': {'en': 'Order', 'ar': 'الطلب'},
- 'sheet': {'en': 'Sheet', 'ar': 'ورقة'},
- 'medical': {'en': 'Medical', 'ar': 'الطبي'},
- 'report': {'en': 'Report', 'ar': 'التقرير'},
- 'discharge': {'en': 'Discharge', 'ar': 'discharge'},
- "discharged": {"en": "Discharged", "ar": "المفرغين"},
+ "noteVerify": {"en": "Verify", "ar": "تحقق"},
+ "noteConfirm": {"en": "Confirm", "ar": "تاكيد"},
+ "noteAdd": {"en": "Add ", "ar": "اضف "},
+ "noteUpdate": {"en": "Update ", "ar": "تحديث"},
+ "orderSheet": {"en": "Order Sheet", "ar": "ورقة الطلب"},
+ "order": {"en": "Order", "ar": "الطلب"},
+ "sheet": {"en": "Sheet", "ar": "ورقة"},
+ "medical": {"en": "Medical", "ar": "الطبي"},
+ "report": {"en": "Report", "ar": "التقرير"},
+ "discharge": {"en": "Discharge", "ar": "مغادرة"},
+ "discharged": {"en": "Discharged", "ar": "المغادرين"},
"none": {"en": "None", "ar": "لا شيء"},
- "notRepliedYet": {"en": "Not Replied yet", "ar": "لم يرد بعد"},
+ "notRepliedYet": {"en": "Not Replied yet", "ar": "لم يتم الرد بعد"},
"clearText": {"en": "Clear Text", "ar": "نص واضح"},
"medicalReportAdd": {"en": "Add Medical Report", "ar": "إضافة تقرير طبي"},
"medicalReportVerify": {"en": "Verify Medical Report", "ar": "تحقق من التقرير الطبي"},
- "comments": {"en": "Comments", "ar": "تعليقات"},
+ "comments": {"en": "Comments", "ar": "ملاحظات"},
"initiateCall": {"en": "Initiate Call ", "ar": "بدء الاتصال"},
"transferTo": {"en": "Transfer To ", "ar": "حول إلى"},
"admin": {"en": "Admin", "ar": "مشرف"},
@@ -689,8 +678,8 @@ const Map> localizedValues = {
"resume": {"en": "Resume", "ar": "استأنف"},
"theCall": {"en": "The Call", "ar": "الاتصال"},
"createNewMedicalReport": {"en": "Create New Medical Report", "ar": "إنشاء تقرير طبي جديد"},
- "historyPhysicalFinding": {"en": "History and Physical Finding", "ar": "التاريخ والاكتشاف المادي"},
- "laboratoryPhysicalData": {"en": "Laboratory and Physical Data", "ar": "المعامل والبيانات الفيزيائية"},
+ "historyPhysicalFinding": {"en": "History and Physical Finding", "ar": "التاريخ"},
+ "laboratoryPhysicalData": {"en": "Laboratory and Physical Data", "ar": "المختبرات والبيانات الفيزيائية"},
"impressionRecommendation": {"en": "Impression and Recommendation", "ar": "الانطباع والتوصية"},
"onHold": {"en": "On Hold", "ar": "قيد الانتظار"},
"verified": {"en": "Verified", "ar": "تم التحقق"},
@@ -702,5 +691,30 @@ const Map> localizedValues = {
"allPrescription": {"en": "All Prescription", "ar": "جميع الوصفات"},
"addPrescription": {"en": "Add prescription", "ar": "إضافة الوصفات"},
"edit": {"en": "Edit", "ar": "تعديل"},
- "summeryReply": {"en": "Summary Reply", "ar": "موجز الرد"},
+ "summeryReply": {"en": "Summary Reply", "ar": "ملخص الرد"},
+ "finish": {"en": "Finish", "ar": "انهاء"},
+ "severityValidationError": {"en": "Please add allergy severity", "ar": "الرجاء إضافة شدة الحساسية"},
+ "inProgress": {"en": "inProgress", "ar": "تحت المعالجه"},
+ "Completed": {"en": "Completed", "ar": "مكتمل"},
+ "Locked": {"en": "Locked", "ar": "مقفل"},
+ "textCopiedSuccessfully": {"en": "Text copied successfully", "ar": "تم نسخ النص بنجاح"},
+ "roomNo": {"en": "Room No", "ar": "رقم الغرفة"},
+ "replayCallStatus": {"en": "Called", "ar": "تم الاتصال"},
+ "patientArrived": {"en": "Patient Arrived", "ar": "وصل المريض"},
+ "calledAndNoResponse": {"en": "Called And No Response", "ar": "تم الاتصال ولا يوجد رد"},
+ "underProcess": {"en": "Under Process", "ar": "تحت التجهيز"},
+ "textResponse": {"en": "Text Response", "ar": "استجابة النص"},
+ "notReplied": {"en": "Not Replied", "ar": "لم يتم يرد"},
+ "requestType":{
+ "en":"Request Type",
+ "ar":"نوع الطلب"},
+ "special": {"en": "Special", "ar": "خاص"},
+ "allClinic": {"en": "All Clinics", "ar": "جميع العيادات"} ,
+ "operationReports": {"en": "Operation Reports", "ar": "تقارير العملية"},
+ "registerNewPatient": {"en": "Register\nNew Patient", "ar": "تسجيل\n مريض جديد"},
+ "registeraPatient": {"en": "Register a Patient", "ar": "تسجيل المريض"},
+ "occupation": {"en": "Occupation", "ar": "مهنة"},
+ "healthID": {"en": "Health ID", "ar": "معرف الصحة"},
+ "identityNumber": {"en": "Identity Number", "ar": "رقم الهوية"},
+ "maritalStatus": {"en": "Marital Status", "ar": "الحالة الزوجية"},
};
diff --git a/lib/config/shared_pref_kay.dart b/lib/config/shared_pref_kay.dart
index eea2ce76..628f5a0e 100644
--- a/lib/config/shared_pref_kay.dart
+++ b/lib/config/shared_pref_kay.dart
@@ -1,16 +1,16 @@
-final TOKEN = 'token';
-final PROJECT_ID = 'projectID';
-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';
+const TOKEN = 'token';
+const PROJECT_ID = 'projectID';
+const VIDA_AUTH_TOKEN_ID = 'VidaAuthTokenID';
+const VIDA_REFRESH_TOKEN_ID = 'VidaRefreshTokenID';
+const LOGIN_TOKEN_ID = 'LogInToken';
+const DOCTOR_ID = 'doctorID';
+const SLECTED_PATIENT_TYPE = 'slectedPatientType';
+const APP_Language = 'language';
+const DOCTOR_PROFILE = 'doctorProfile';
+const LIVE_CARE_PATIENT = 'livecare-patient-profile';
+const LOGGED_IN_USER = 'loggedUser';
+const EMPLOYEE_ID = 'EmployeeID';
+const DASHBOARD_DATA = 'dashboard-data';
+const OTP_TYPE = 'otp-type';
+const LAST_LOGIN_USER = 'last-login-user';
+const CLINIC_NAME = 'clinic-name';
diff --git a/lib/config/size_config.dart b/lib/config/size_config.dart
index 2cbec3eb..3e07990b 100644
--- a/lib/config/size_config.dart
+++ b/lib/config/size_config.dart
@@ -22,7 +22,6 @@ class SizeConfig {
static bool isHeightMiddle = false;
static bool isHeightLarge = false;
static bool isWidthLarge = false;
-
void init(BoxConstraints constraints, Orientation orientation) {
realScreenHeight = constraints.maxHeight;
realScreenWidth = constraints.maxWidth;
@@ -73,9 +72,11 @@ class SizeConfig {
print('widthMultiplier $widthMultiplier');
print('isPortrait $isPortrait');
print('isMobilePortrait $isMobilePortrait');
+
+
}
- static getTextMultiplierBasedOnWidth({double? width}) {
+ static getTextMultiplierBasedOnWidth({double width}) {
// TODO handel LandScape case
if (width != null) {
return width / 100;
@@ -83,7 +84,7 @@ class SizeConfig {
return widthMultiplier;
}
- static getWidthMultiplier({double? width}) {
+ static getWidthMultiplier({double width}) {
// TODO handel LandScape case
if (width != null) {
return width / 100;
diff --git a/lib/core/enum/CalenderType.dart b/lib/core/enum/CalenderType.dart
new file mode 100644
index 00000000..51f98512
--- /dev/null
+++ b/lib/core/enum/CalenderType.dart
@@ -0,0 +1,4 @@
+enum CalenderType{
+ Gregorian,
+ Hijri,
+}
\ No newline at end of file
diff --git a/lib/core/model/PatientRegistration/CheckActivationCodeModel.dart b/lib/core/model/PatientRegistration/CheckActivationCodeModel.dart
new file mode 100644
index 00000000..4b95c1b0
--- /dev/null
+++ b/lib/core/model/PatientRegistration/CheckActivationCodeModel.dart
@@ -0,0 +1,112 @@
+class CheckActivationCodeModel {
+ int patientMobileNumber;
+ String mobileNo;
+ int projectOutSA;
+ int loginType;
+ String zipCode;
+ bool isRegister;
+ String logInTokenID;
+ int searchType;
+ int patientID;
+ int nationalID;
+ int patientIdentificationID;
+ bool forRegisteration;
+ String activationCode;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ String dOB;
+ int isHijri;
+ String healthId;
+
+ CheckActivationCodeModel(
+ {this.patientMobileNumber,
+ this.mobileNo,
+ this.projectOutSA,
+ this.loginType,
+ this.zipCode,
+ this.isRegister,
+ this.logInTokenID,
+ this.searchType,
+ this.patientID,
+ this.nationalID,
+ this.patientIdentificationID,
+ this.forRegisteration,
+ this.activationCode,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.dOB,
+ this.isHijri,
+ this.healthId});
+
+ CheckActivationCodeModel.fromJson(Map json) {
+ patientMobileNumber = json['PatientMobileNumber'];
+ mobileNo = json['MobileNo'];
+ projectOutSA = json['ProjectOutSA'];
+ loginType = json['LoginType'];
+ zipCode = json['ZipCode'];
+ isRegister = json['isRegister'];
+ logInTokenID = json['LogInTokenID'];
+ searchType = json['SearchType'];
+ patientID = json['PatientID'];
+ nationalID = json['NationalID'];
+ patientIdentificationID = json['PatientIdentificationID'];
+ forRegisteration = json['ForRegisteration'];
+ activationCode = json['activationCode'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ dOB = json['DOB'];
+ isHijri = json['IsHijri'];
+ healthId = json['HealthId'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientMobileNumber'] = this.patientMobileNumber;
+ data['MobileNo'] = this.mobileNo;
+ data['ProjectOutSA'] = this.projectOutSA;
+ data['LoginType'] = this.loginType;
+ data['ZipCode'] = this.zipCode;
+ data['isRegister'] = this.isRegister;
+ data['LogInTokenID'] = this.logInTokenID;
+ data['SearchType'] = this.searchType;
+ data['PatientID'] = this.patientID;
+ data['NationalID'] = this.nationalID;
+ data['PatientIdentificationID'] = this.patientIdentificationID;
+ data['ForRegisteration'] = this.forRegisteration;
+ data['activationCode'] = this.activationCode;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['DOB'] = this.dOB;
+ data['IsHijri'] = this.isHijri;
+ data['HealthId'] = this.healthId;
+ return data;
+ }
+}
diff --git a/lib/core/model/PatientRegistration/CheckPatientForRegistrationModel.dart b/lib/core/model/PatientRegistration/CheckPatientForRegistrationModel.dart
new file mode 100644
index 00000000..3465cf8d
--- /dev/null
+++ b/lib/core/model/PatientRegistration/CheckPatientForRegistrationModel.dart
@@ -0,0 +1,80 @@
+class CheckPatientForRegistrationModel {
+ int patientIdentificationID;
+ int patientMobileNumber;
+ String zipCode;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ String tokenID;
+ int patientID;
+ bool isRegister;
+ String dOB;
+ int isHijri;
+
+ CheckPatientForRegistrationModel(
+ {this.patientIdentificationID,
+ this.patientMobileNumber,
+ this.zipCode,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.tokenID,
+ this.patientID,
+ this.isRegister,
+ this.dOB,
+ this.isHijri});
+
+ CheckPatientForRegistrationModel.fromJson(Map json) {
+ patientIdentificationID = json['PatientIdentificationID'];
+ patientMobileNumber = json['PatientMobileNumber'];
+ zipCode = json['ZipCode'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ tokenID = json['TokenID'];
+ patientID = json['PatientID'];
+ isRegister = json['isRegister'];
+ dOB = json['DOB'];
+ isHijri = json['IsHijri'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientIdentificationID'] = this.patientIdentificationID;
+ data['PatientMobileNumber'] = this.patientMobileNumber;
+ data['ZipCode'] = this.zipCode;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['TokenID'] = this.tokenID;
+ data['PatientID'] = this.patientID;
+ data['isRegister'] = this.isRegister;
+ data['DOB'] = this.dOB;
+ data['IsHijri'] = this.isHijri;
+ return data;
+ }
+}
diff --git a/lib/core/model/PatientRegistration/GetPatientInfoRequestModel.dart b/lib/core/model/PatientRegistration/GetPatientInfoRequestModel.dart
new file mode 100644
index 00000000..f05131ef
--- /dev/null
+++ b/lib/core/model/PatientRegistration/GetPatientInfoRequestModel.dart
@@ -0,0 +1,60 @@
+class GetPatientInfoRequestModel {
+ String patientIdentificationID;
+ String dOB;
+ int isHijri;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+
+ GetPatientInfoRequestModel(
+ {this.patientIdentificationID,
+ this.dOB,
+ this.isHijri,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID});
+
+ GetPatientInfoRequestModel.fromJson(Map json) {
+ patientIdentificationID = json['PatientIdentificationID'];
+ dOB = json['DOB'];
+ isHijri = json['IsHijri'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientIdentificationID'] = this.patientIdentificationID;
+ data['DOB'] = this.dOB;
+ data['IsHijri'] = this.isHijri;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['SessionID'] = this.sessionID;
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ return data;
+ }
+}
diff --git a/lib/core/model/PatientRegistration/GetPatientInfoResponseModel.dart b/lib/core/model/PatientRegistration/GetPatientInfoResponseModel.dart
new file mode 100644
index 00000000..158bd1e2
--- /dev/null
+++ b/lib/core/model/PatientRegistration/GetPatientInfoResponseModel.dart
@@ -0,0 +1,374 @@
+class GetPatientInfoResponseModel {
+ dynamic date;
+ int languageID;
+ int serviceName;
+ dynamic time;
+ dynamic androidLink;
+ dynamic authenticationTokenID;
+ dynamic data;
+ bool dataw;
+ int dietType;
+ dynamic errorCode;
+ dynamic errorEndUserMessage;
+ dynamic errorEndUserMessageN;
+ dynamic errorMessage;
+ int errorType;
+ int foodCategory;
+ dynamic iOSLink;
+ bool isAuthenticated;
+ int mealOrderStatus;
+ int mealType;
+ int messageStatus;
+ int numberOfResultRecords;
+ dynamic patientBlodType;
+ dynamic successMsg;
+ dynamic successMsgN;
+ dynamic vidaUpdatedResponse;
+ dynamic accessTokenObject;
+ int age;
+ dynamic clientIdentifierId;
+ int createdBy;
+ String dateOfBirth;
+ String firstNameAr;
+ String firstNameEn;
+ String gender;
+ dynamic genderAr;
+ dynamic genderEn;
+ String healthId;
+ String idNumber;
+ String idType;
+ bool isHijri;
+ int isInstertedOrUpdated;
+ int isNull;
+ int isPatientExistNHIC;
+ bool isRecordLockedByCurrentUser;
+ String lastNameAr;
+ String lastNameEn;
+ dynamic listActiveAccessToken;
+ String maritalStatus;
+ String maritalStatusCode;
+ String nationalDateOfBirth;
+ String nationality;
+ String nationalityCode;
+ String occupation;
+ dynamic pCDTransactionDataResultList;
+ dynamic pCDGetVidaPatientForManualVerificationList;
+ dynamic pCDNHICHMGPatientDetailsMatchCalulationList;
+ int pCDReturnValue;
+ String patientStatus;
+ String placeofBirth;
+ dynamic practitionerStatusCode;
+ dynamic practitionerStatusDescAr;
+ dynamic practitionerStatusDescEn;
+ int rowCount;
+ String secondNameAr;
+ String secondNameEn;
+ String thirdNameAr;
+ String thirdNameEn;
+ dynamic yakeenVidaPatientDataStatisticsByPatientIdList;
+ dynamic yakeenVidaPatientDataStatisticsList;
+ dynamic yakeenVidaPatientDataStatisticsPrefferedList;
+ dynamic accessToken;
+ int categoryCode;
+ dynamic categoryNameAr;
+ dynamic categoryNameEn;
+ int constraintCode;
+ dynamic constraintNameAr;
+ dynamic constraintNameEn;
+ dynamic content;
+ dynamic errorList;
+ dynamic licenseExpiryDate;
+ dynamic licenseIssuedDate;
+ dynamic licenseStatusCode;
+ dynamic licenseStatusDescAr;
+ dynamic licenseStatusDescEn;
+ dynamic organizations;
+ dynamic registrationNumber;
+ int specialtyCode;
+ dynamic specialtyNameAr;
+ dynamic specialtyNameEn;
+
+ GetPatientInfoResponseModel(
+ {this.date,
+ this.languageID,
+ this.serviceName,
+ this.time,
+ this.androidLink,
+ this.authenticationTokenID,
+ this.data,
+ this.dataw,
+ this.dietType,
+ this.errorCode,
+ this.errorEndUserMessage,
+ this.errorEndUserMessageN,
+ this.errorMessage,
+ this.errorType,
+ this.foodCategory,
+ this.iOSLink,
+ this.isAuthenticated,
+ this.mealOrderStatus,
+ this.mealType,
+ this.messageStatus,
+ this.numberOfResultRecords,
+ this.patientBlodType,
+ this.successMsg,
+ this.successMsgN,
+ this.vidaUpdatedResponse,
+ this.accessTokenObject,
+ this.age,
+ this.clientIdentifierId,
+ this.createdBy,
+ this.dateOfBirth,
+ this.firstNameAr,
+ this.firstNameEn,
+ this.gender,
+ this.genderAr,
+ this.genderEn,
+ this.healthId,
+ this.idNumber,
+ this.idType,
+ this.isHijri,
+ this.isInstertedOrUpdated,
+ this.isNull,
+ this.isPatientExistNHIC,
+ this.isRecordLockedByCurrentUser,
+ this.lastNameAr,
+ this.lastNameEn,
+ this.listActiveAccessToken,
+ this.maritalStatus,
+ this.maritalStatusCode,
+ this.nationalDateOfBirth,
+ this.nationality,
+ this.nationalityCode,
+ this.occupation,
+ this.pCDTransactionDataResultList,
+ this.pCDGetVidaPatientForManualVerificationList,
+ this.pCDNHICHMGPatientDetailsMatchCalulationList,
+ this.pCDReturnValue,
+ this.patientStatus,
+ this.placeofBirth,
+ this.practitionerStatusCode,
+ this.practitionerStatusDescAr,
+ this.practitionerStatusDescEn,
+ this.rowCount,
+ this.secondNameAr,
+ this.secondNameEn,
+ this.thirdNameAr,
+ this.thirdNameEn,
+ this.yakeenVidaPatientDataStatisticsByPatientIdList,
+ this.yakeenVidaPatientDataStatisticsList,
+ this.yakeenVidaPatientDataStatisticsPrefferedList,
+ this.accessToken,
+ this.categoryCode,
+ this.categoryNameAr,
+ this.categoryNameEn,
+ this.constraintCode,
+ this.constraintNameAr,
+ this.constraintNameEn,
+ this.content,
+ this.errorList,
+ this.licenseExpiryDate,
+ this.licenseIssuedDate,
+ this.licenseStatusCode,
+ this.licenseStatusDescAr,
+ this.licenseStatusDescEn,
+ this.organizations,
+ this.registrationNumber,
+ this.specialtyCode,
+ this.specialtyNameAr,
+ this.specialtyNameEn});
+
+ GetPatientInfoResponseModel.fromJson(Map json) {
+ date = json['Date'];
+ languageID = json['LanguageID'];
+ serviceName = json['ServiceName'];
+ time = json['Time'];
+ androidLink = json['AndroidLink'];
+ authenticationTokenID = json['AuthenticationTokenID'];
+ data = json['Data'];
+ dataw = json['Dataw'];
+ dietType = json['DietType'];
+ errorCode = json['ErrorCode'];
+ errorEndUserMessage = json['ErrorEndUserMessage'];
+ errorEndUserMessageN = json['ErrorEndUserMessageN'];
+ errorMessage = json['ErrorMessage'];
+ errorType = json['ErrorType'];
+ foodCategory = json['FoodCategory'];
+ iOSLink = json['IOSLink'];
+ isAuthenticated = json['IsAuthenticated'];
+ mealOrderStatus = json['MealOrderStatus'];
+ mealType = json['MealType'];
+ messageStatus = json['MessageStatus'];
+ numberOfResultRecords = json['NumberOfResultRecords'];
+ patientBlodType = json['PatientBlodType'];
+ successMsg = json['SuccessMsg'];
+ successMsgN = json['SuccessMsgN'];
+ vidaUpdatedResponse = json['VidaUpdatedResponse'];
+ accessTokenObject = json['AccessTokenObject'];
+ age = json['Age'];
+ clientIdentifierId = json['ClientIdentifierId'];
+ createdBy = json['CreatedBy'];
+ dateOfBirth = json['DateOfBirth'];
+ firstNameAr = json['FirstNameAr'];
+ firstNameEn = json['FirstNameEn'];
+ gender = json['Gender'];
+ genderAr = json['GenderAr'];
+ genderEn = json['GenderEn'];
+ healthId = json['HealthId'];
+ idNumber = json['IdNumber'];
+ idType = json['IdType'];
+ isHijri = json['IsHijri'];
+ isInstertedOrUpdated = json['IsInstertedOrUpdated'];
+ isNull = json['IsNull'];
+ isPatientExistNHIC = json['IsPatientExistNHIC'];
+ isRecordLockedByCurrentUser = json['IsRecordLockedByCurrentUser'];
+ lastNameAr = json['LastNameAr'];
+ lastNameEn = json['LastNameEn'];
+ listActiveAccessToken = json['List_ActiveAccessToken'];
+ maritalStatus = json['MaritalStatus'];
+ maritalStatusCode = json['MaritalStatusCode'];
+ nationalDateOfBirth = json['NationalDateOfBirth'];
+ nationality = json['Nationality'];
+ nationalityCode = json['NationalityCode'];
+ occupation = json['Occupation'];
+ pCDTransactionDataResultList = json['PCDTransactionDataResultList'];
+ pCDGetVidaPatientForManualVerificationList =
+ json['PCD_GetVidaPatientForManualVerificationList'];
+ pCDNHICHMGPatientDetailsMatchCalulationList =
+ json['PCD_NHIC_HMG_PatientDetailsMatchCalulationList'];
+ pCDReturnValue = json['PCD_ReturnValue'];
+ patientStatus = json['PatientStatus'];
+ placeofBirth = json['PlaceofBirth'];
+ practitionerStatusCode = json['PractitionerStatusCode'];
+ practitionerStatusDescAr = json['PractitionerStatusDescAr'];
+ practitionerStatusDescEn = json['PractitionerStatusDescEn'];
+ rowCount = json['RowCount'];
+ secondNameAr = json['SecondNameAr'];
+ secondNameEn = json['SecondNameEn'];
+ thirdNameAr = json['ThirdNameAr'];
+ thirdNameEn = json['ThirdNameEn'];
+ yakeenVidaPatientDataStatisticsByPatientIdList =
+ json['YakeenVidaPatientDataStatisticsByPatientIdList'];
+ yakeenVidaPatientDataStatisticsList =
+ json['YakeenVidaPatientDataStatisticsList'];
+ yakeenVidaPatientDataStatisticsPrefferedList =
+ json['YakeenVidaPatientDataStatisticsPrefferedList'];
+ accessToken = json['accessToken'];
+ categoryCode = json['categoryCode'];
+ categoryNameAr = json['categoryNameAr'];
+ categoryNameEn = json['categoryNameEn'];
+ constraintCode = json['constraintCode'];
+ constraintNameAr = json['constraintNameAr'];
+ constraintNameEn = json['constraintNameEn'];
+ content = json['content'];
+ errorList = json['errorList'];
+ licenseExpiryDate = json['licenseExpiryDate'];
+ licenseIssuedDate = json['licenseIssuedDate'];
+ licenseStatusCode = json['licenseStatusCode'];
+ licenseStatusDescAr = json['licenseStatusDescAr'];
+ licenseStatusDescEn = json['licenseStatusDescEn'];
+ organizations = json['organizations'];
+ registrationNumber = json['registrationNumber'];
+ specialtyCode = json['specialtyCode'];
+ specialtyNameAr = json['specialtyNameAr'];
+ specialtyNameEn = json['specialtyNameEn'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Date'] = this.date;
+ data['LanguageID'] = this.languageID;
+ data['ServiceName'] = this.serviceName;
+ data['Time'] = this.time;
+ data['AndroidLink'] = this.androidLink;
+ data['AuthenticationTokenID'] = this.authenticationTokenID;
+ data['Data'] = this.data;
+ data['Dataw'] = this.dataw;
+ data['DietType'] = this.dietType;
+ data['ErrorCode'] = this.errorCode;
+ data['ErrorEndUserMessage'] = this.errorEndUserMessage;
+ data['ErrorEndUserMessageN'] = this.errorEndUserMessageN;
+ data['ErrorMessage'] = this.errorMessage;
+ data['ErrorType'] = this.errorType;
+ data['FoodCategory'] = this.foodCategory;
+ data['IOSLink'] = this.iOSLink;
+ data['IsAuthenticated'] = this.isAuthenticated;
+ data['MealOrderStatus'] = this.mealOrderStatus;
+ data['MealType'] = this.mealType;
+ data['MessageStatus'] = this.messageStatus;
+ data['NumberOfResultRecords'] = this.numberOfResultRecords;
+ data['PatientBlodType'] = this.patientBlodType;
+ data['SuccessMsg'] = this.successMsg;
+ data['SuccessMsgN'] = this.successMsgN;
+ data['VidaUpdatedResponse'] = this.vidaUpdatedResponse;
+ data['AccessTokenObject'] = this.accessTokenObject;
+ data['Age'] = this.age;
+ data['ClientIdentifierId'] = this.clientIdentifierId;
+ data['CreatedBy'] = this.createdBy;
+ data['DateOfBirth'] = this.dateOfBirth;
+ data['FirstNameAr'] = this.firstNameAr;
+ data['FirstNameEn'] = this.firstNameEn;
+ data['Gender'] = this.gender;
+ data['GenderAr'] = this.genderAr;
+ data['GenderEn'] = this.genderEn;
+ data['HealthId'] = this.healthId;
+ data['IdNumber'] = this.idNumber;
+ data['IdType'] = this.idType;
+ data['IsHijri'] = this.isHijri;
+ data['IsInstertedOrUpdated'] = this.isInstertedOrUpdated;
+ data['IsNull'] = this.isNull;
+ data['IsPatientExistNHIC'] = this.isPatientExistNHIC;
+ data['IsRecordLockedByCurrentUser'] = this.isRecordLockedByCurrentUser;
+ data['LastNameAr'] = this.lastNameAr;
+ data['LastNameEn'] = this.lastNameEn;
+ data['List_ActiveAccessToken'] = this.listActiveAccessToken;
+ data['MaritalStatus'] = this.maritalStatus;
+ data['MaritalStatusCode'] = this.maritalStatusCode;
+ data['NationalDateOfBirth'] = this.nationalDateOfBirth;
+ data['Nationality'] = this.nationality;
+ data['NationalityCode'] = this.nationalityCode;
+ data['Occupation'] = this.occupation;
+ data['PCDTransactionDataResultList'] = this.pCDTransactionDataResultList;
+ data['PCD_GetVidaPatientForManualVerificationList'] =
+ this.pCDGetVidaPatientForManualVerificationList;
+ data['PCD_NHIC_HMG_PatientDetailsMatchCalulationList'] =
+ this.pCDNHICHMGPatientDetailsMatchCalulationList;
+ data['PCD_ReturnValue'] = this.pCDReturnValue;
+ data['PatientStatus'] = this.patientStatus;
+ data['PlaceofBirth'] = this.placeofBirth;
+ data['PractitionerStatusCode'] = this.practitionerStatusCode;
+ data['PractitionerStatusDescAr'] = this.practitionerStatusDescAr;
+ data['PractitionerStatusDescEn'] = this.practitionerStatusDescEn;
+ data['RowCount'] = this.rowCount;
+ data['SecondNameAr'] = this.secondNameAr;
+ data['SecondNameEn'] = this.secondNameEn;
+ data['ThirdNameAr'] = this.thirdNameAr;
+ data['ThirdNameEn'] = this.thirdNameEn;
+ data['YakeenVidaPatientDataStatisticsByPatientIdList'] =
+ this.yakeenVidaPatientDataStatisticsByPatientIdList;
+ data['YakeenVidaPatientDataStatisticsList'] =
+ this.yakeenVidaPatientDataStatisticsList;
+ data['YakeenVidaPatientDataStatisticsPrefferedList'] =
+ this.yakeenVidaPatientDataStatisticsPrefferedList;
+ data['accessToken'] = this.accessToken;
+ data['categoryCode'] = this.categoryCode;
+ data['categoryNameAr'] = this.categoryNameAr;
+ data['categoryNameEn'] = this.categoryNameEn;
+ data['constraintCode'] = this.constraintCode;
+ data['constraintNameAr'] = this.constraintNameAr;
+ data['constraintNameEn'] = this.constraintNameEn;
+ data['content'] = this.content;
+ data['errorList'] = this.errorList;
+ data['licenseExpiryDate'] = this.licenseExpiryDate;
+ data['licenseIssuedDate'] = this.licenseIssuedDate;
+ data['licenseStatusCode'] = this.licenseStatusCode;
+ data['licenseStatusDescAr'] = this.licenseStatusDescAr;
+ data['licenseStatusDescEn'] = this.licenseStatusDescEn;
+ data['organizations'] = this.organizations;
+ data['registrationNumber'] = this.registrationNumber;
+ data['specialtyCode'] = this.specialtyCode;
+ data['specialtyNameAr'] = this.specialtyNameAr;
+ data['specialtyNameEn'] = this.specialtyNameEn;
+ return data;
+ }
+}
diff --git a/lib/core/model/PatientRegistration/PatientRegistrationModel.dart b/lib/core/model/PatientRegistration/PatientRegistrationModel.dart
new file mode 100644
index 00000000..83ff53d7
--- /dev/null
+++ b/lib/core/model/PatientRegistration/PatientRegistrationModel.dart
@@ -0,0 +1,185 @@
+class PatientRegistrationModel {
+ Patientobject patientobject;
+ String patientIdentificationID;
+ String patientMobileNumber;
+ String logInTokenID;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ String tokenID;
+ String dOB;
+ int isHijri;
+ String healthId;
+ String zipCode;
+
+ PatientRegistrationModel(
+ {this.patientobject,
+ this.patientIdentificationID,
+ this.patientMobileNumber,
+ this.logInTokenID,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.tokenID,
+ this.dOB,
+ this.isHijri,
+ this.healthId,
+ this.zipCode});
+
+ PatientRegistrationModel.fromJson(Map json) {
+ patientobject = json['Patientobject'] != null
+ ? new Patientobject.fromJson(json['Patientobject'])
+ : null;
+ patientIdentificationID = json['PatientIdentificationID'];
+ patientMobileNumber = json['PatientMobileNumber'];
+ logInTokenID = json['LogInTokenID'];
+ 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'];
+ tokenID = json['TokenID'];
+ dOB = json['DOB'];
+ isHijri = json['IsHijri'];
+ healthId = json['HealthId'];
+ zipCode = json['ZipCode'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ if (this.patientobject != null) {
+ data['Patientobject'] = this.patientobject.toJson();
+ }
+ data['PatientIdentificationID'] = this.patientIdentificationID;
+ data['PatientMobileNumber'] = this.patientMobileNumber;
+ data['LogInTokenID'] = this.logInTokenID;
+ 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['TokenID'] = this.tokenID;
+ data['DOB'] = this.dOB;
+ data['IsHijri'] = this.isHijri;
+ data['HealthId'] = this.healthId;
+ data['ZipCode'] = this.zipCode;
+ return data;
+ }
+}
+
+class Patientobject {
+ bool tempValue;
+ int patientIdentificationType;
+ String patientIdentificationNo;
+ int mobileNumber;
+ int patientOutSA;
+ String firstNameN;
+ String middleNameN;
+ String lastNameN;
+ String firstName;
+ String middleName;
+ String lastName;
+ String strDateofBirth;
+ String dateofBirth;
+ int gender;
+ String nationalityID;
+ String dateofBirthN;
+ String emailAddress;
+ String sourceType;
+ String preferredLanguage;
+ String marital;
+ String eHealthIDField;
+
+ Patientobject(
+ {this.tempValue,
+ this.patientIdentificationType,
+ this.patientIdentificationNo,
+ this.mobileNumber,
+ this.patientOutSA,
+ this.firstNameN,
+ this.middleNameN,
+ this.lastNameN,
+ this.firstName,
+ this.middleName,
+ this.lastName,
+ this.strDateofBirth,
+ this.dateofBirth,
+ this.gender,
+ this.nationalityID,
+ this.dateofBirthN,
+ this.emailAddress,
+ this.sourceType,
+ this.preferredLanguage,
+ this.marital,
+ this.eHealthIDField});
+
+ Patientobject.fromJson(Map json) {
+ tempValue = json['TempValue'];
+ patientIdentificationType = json['PatientIdentificationType'];
+ patientIdentificationNo = json['PatientIdentificationNo'];
+ mobileNumber = json['MobileNumber'];
+ patientOutSA = json['PatientOutSA'];
+ firstNameN = json['FirstNameN'];
+ middleNameN = json['MiddleNameN'];
+ lastNameN = json['LastNameN'];
+ firstName = json['FirstName'];
+ middleName = json['MiddleName'];
+ lastName = json['LastName'];
+ strDateofBirth = json['StrDateofBirth'];
+ dateofBirth = json['DateofBirth'];
+ gender = json['Gender'];
+ nationalityID = json['NationalityID'];
+ dateofBirthN = json['DateofBirthN'];
+ emailAddress = json['EmailAddress'];
+ sourceType = json['SourceType'];
+ preferredLanguage = json['PreferredLanguage'];
+ marital = json['Marital'];
+ eHealthIDField = json['eHealthIDField'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['TempValue'] = this.tempValue;
+ data['PatientIdentificationType'] = this.patientIdentificationType;
+ data['PatientIdentificationNo'] = this.patientIdentificationNo;
+ data['MobileNumber'] = this.mobileNumber;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['FirstNameN'] = this.firstNameN;
+ data['MiddleNameN'] = this.middleNameN;
+ data['LastNameN'] = this.lastNameN;
+ data['FirstName'] = this.firstName;
+ data['MiddleName'] = this.middleName;
+ data['LastName'] = this.lastName;
+ data['StrDateofBirth'] = this.strDateofBirth;
+ data['DateofBirth'] = this.dateofBirth;
+ data['Gender'] = this.gender;
+ data['NationalityID'] = this.nationalityID;
+ data['DateofBirthN'] = this.dateofBirthN;
+ data['EmailAddress'] = this.emailAddress;
+ data['SourceType'] = this.sourceType;
+ data['PreferredLanguage'] = this.preferredLanguage;
+ data['Marital'] = this.marital;
+ data['eHealthIDField'] = this.eHealthIDField;
+ return data;
+ }
+}
diff --git a/lib/core/model/PatientRegistration/SendActivationCodebyOTPNotificationTypeForRegistrationModel.dart b/lib/core/model/PatientRegistration/SendActivationCodebyOTPNotificationTypeForRegistrationModel.dart
new file mode 100644
index 00000000..8244a95f
--- /dev/null
+++ b/lib/core/model/PatientRegistration/SendActivationCodebyOTPNotificationTypeForRegistrationModel.dart
@@ -0,0 +1,109 @@
+class SendActivationCodeByOTPNotificationTypeForRegistrationModel {
+ int patientMobileNumber;
+ String mobileNo;
+ int projectOutSA;
+ int loginType;
+ String zipCode;
+ bool isRegister;
+ String logInTokenID;
+ int searchType;
+ int patientID;
+ int nationalID;
+ int patientIdentificationID;
+ int oTPSendType;
+ int languageID;
+ double versionID;
+ int channel;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ Null sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ String dOB;
+ int isHijri;
+ String healthId;
+
+ SendActivationCodeByOTPNotificationTypeForRegistrationModel(
+ {this.patientMobileNumber,
+ this.mobileNo,
+ this.projectOutSA,
+ this.loginType,
+ this.zipCode,
+ this.isRegister,
+ this.logInTokenID,
+ this.searchType,
+ this.patientID,
+ this.nationalID,
+ this.patientIdentificationID,
+ this.oTPSendType,
+ this.languageID,
+ this.versionID,
+ this.channel,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.dOB,
+ this.isHijri,
+ this.healthId});
+
+ SendActivationCodeByOTPNotificationTypeForRegistrationModel.fromJson(
+ Map json) {
+ patientMobileNumber = json['PatientMobileNumber'];
+ mobileNo = json['MobileNo'];
+ projectOutSA = json['ProjectOutSA'];
+ loginType = json['LoginType'];
+ zipCode = json['ZipCode'];
+ isRegister = json['isRegister'];
+ logInTokenID = json['LogInTokenID'];
+ searchType = json['SearchType'];
+ patientID = json['PatientID'];
+ nationalID = json['NationalID'];
+ patientIdentificationID = json['PatientIdentificationID'];
+ oTPSendType = json['OTP_SendType'];
+ languageID = json['LanguageID'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ patientOutSA = json['PatientOutSA'];
+ sessionID = json['SessionID'];
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ deviceTypeID = json['DeviceTypeID'];
+ dOB = json['DOB'];
+ isHijri = json['IsHijri'];
+ healthId = json['HealthId'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientMobileNumber'] = this.patientMobileNumber;
+ data['MobileNo'] = this.mobileNo;
+ data['ProjectOutSA'] = this.projectOutSA;
+ data['LoginType'] = this.loginType;
+ data['ZipCode'] = this.zipCode;
+ data['isRegister'] = this.isRegister;
+ data['LogInTokenID'] = this.logInTokenID;
+ data['SearchType'] = this.searchType;
+ data['PatientID'] = this.patientID;
+ data['NationalID'] = this.nationalID;
+ data['PatientIdentificationID'] = this.patientIdentificationID;
+ data['OTP_SendType'] = this.oTPSendType;
+ data['LanguageID'] = this.languageID;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ 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['DOB'] = this.dOB;
+ data['IsHijri'] = this.isHijri;
+ data['HealthId'] = this.healthId;
+ return data;
+ }
+}
diff --git a/lib/core/model/Prescriptions/get_medication_for_inpatient_model.dart b/lib/core/model/Prescriptions/get_medication_for_inpatient_model.dart
new file mode 100644
index 00000000..8ba07f2a
--- /dev/null
+++ b/lib/core/model/Prescriptions/get_medication_for_inpatient_model.dart
@@ -0,0 +1,157 @@
+class GetMedicationForInPatientModel {
+ String setupID;
+ int projectID;
+ int admissionNo;
+ int patientID;
+ int orderNo;
+ int prescriptionNo;
+ int lineItemNo;
+ String prescriptionDatetime;
+ int itemID;
+ int directionID;
+ int refillID;
+ String dose;
+ int unitofMeasurement;
+ String startDatetime;
+ String stopDatetime;
+ int noOfDoses;
+ int routeId;
+ String comments;
+ int reviewedPharmacist;
+ dynamic reviewedPharmacistDatetime;
+ dynamic discountinueDatetime;
+ dynamic rescheduleDatetime;
+ int status;
+ String statusDescription;
+ int createdBy;
+ String createdOn;
+ dynamic editedBy;
+ dynamic editedOn;
+ dynamic strength;
+ String pHRItemDescription;
+ String pHRItemDescriptionN;
+ String doctorName;
+ String uomDescription;
+ String routeDescription;
+ String directionDescription;
+ String refillDescription;
+
+ GetMedicationForInPatientModel(
+ {this.setupID,
+ this.projectID,
+ this.admissionNo,
+ this.patientID,
+ this.orderNo,
+ this.prescriptionNo,
+ this.lineItemNo,
+ this.prescriptionDatetime,
+ this.itemID,
+ this.directionID,
+ this.refillID,
+ this.dose,
+ this.unitofMeasurement,
+ this.startDatetime,
+ this.stopDatetime,
+ this.noOfDoses,
+ this.routeId,
+ this.comments,
+ this.reviewedPharmacist,
+ this.reviewedPharmacistDatetime,
+ this.discountinueDatetime,
+ this.rescheduleDatetime,
+ this.status,
+ this.statusDescription,
+ this.createdBy,
+ this.createdOn,
+ this.editedBy,
+ this.editedOn,
+ this.strength,
+ this.pHRItemDescription,
+ this.pHRItemDescriptionN,
+ this.doctorName,
+ this.uomDescription,
+ this.routeDescription,
+ this.directionDescription,
+ this.refillDescription});
+
+ GetMedicationForInPatientModel.fromJson(Map json) {
+ setupID = json['SetupID'];
+ projectID = json['ProjectID'];
+ doctorName = json['DoctorName'];
+ refillDescription = json['RefillDescription'];
+ directionDescription = json['DirectionDescription'];
+ routeDescription = json['RouteDescription'];
+
+ uomDescription = json['UOMDescription'];
+ admissionNo = json['AdmissionNo'];
+ patientID = json['PatientID'];
+ orderNo = json['OrderNo'];
+ prescriptionNo = json['PrescriptionNo'];
+ lineItemNo = json['LineItemNo'];
+ prescriptionDatetime = json['PrescriptionDatetime'];
+ itemID = json['ItemID'];
+ directionID = json['DirectionID'];
+ refillID = json['RefillID'];
+ dose = json['Dose'];
+ unitofMeasurement = json['UnitofMeasurement'];
+ startDatetime = json['StartDatetime'];
+ stopDatetime = json['StopDatetime'];
+ noOfDoses = json['NoOfDoses'];
+ routeId = json['RouteId'];
+ comments = json['Comments'];
+ reviewedPharmacist = json['ReviewedPharmacist'];
+ reviewedPharmacistDatetime = json['ReviewedPharmacistDatetime'];
+ discountinueDatetime = json['DiscountinueDatetime'];
+ rescheduleDatetime = json['RescheduleDatetime'];
+ status = json['Status'];
+ statusDescription = json['StatusDescription'];
+ createdBy = json['CreatedBy'];
+ createdOn = json['CreatedOn'];
+ editedBy = json['EditedBy'];
+ editedOn = json['EditedOn'];
+ strength = json['Strength'];
+ pHRItemDescription = json['PHRItemDescription'];
+ pHRItemDescriptionN = json['PHRItemDescriptionN'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['SetupID'] = this.setupID;
+ data['DoctorName'] = this.doctorName;
+ data['RefillDescription'] = this.refillDescription;
+ data['RouteDescription'] = this.routeDescription;
+ data['DirectionDescription'] = this.directionDescription;
+ data['UOMDescription'] = this.uomDescription;
+ data['ProjectID'] = this.projectID;
+ data['AdmissionNo'] = this.admissionNo;
+ data['PatientID'] = this.patientID;
+ data['OrderNo'] = this.orderNo;
+ data['PrescriptionNo'] = this.prescriptionNo;
+ data['LineItemNo'] = this.lineItemNo;
+ data['PrescriptionDatetime'] = this.prescriptionDatetime;
+ data['ItemID'] = this.itemID;
+ data['DirectionID'] = this.directionID;
+ data['RefillID'] = this.refillID;
+ data['Dose'] = this.dose;
+ data['UnitofMeasurement'] = this.unitofMeasurement;
+ data['StartDatetime'] = this.startDatetime;
+ data['StopDatetime'] = this.stopDatetime;
+ data['NoOfDoses'] = this.noOfDoses;
+ data['RouteId'] = this.routeId;
+ data['Comments'] = this.comments;
+ data['ReviewedPharmacist'] = this.reviewedPharmacist;
+ data['ReviewedPharmacistDatetime'] = this.reviewedPharmacistDatetime;
+ data['DiscountinueDatetime'] = this.discountinueDatetime;
+ data['RescheduleDatetime'] = this.rescheduleDatetime;
+ data['Status'] = this.status;
+ data['StatusDescription'] = this.statusDescription;
+ data['CreatedBy'] = this.createdBy;
+ data['CreatedOn'] = this.createdOn;
+ data['EditedBy'] = this.editedBy;
+ data['EditedOn'] = this.editedOn;
+ data['Strength'] = this.strength;
+ data['PHRItemDescription'] = this.pHRItemDescription;
+ data['PHRItemDescriptionN'] = this.pHRItemDescriptionN;
+ return data;
+ }
+}
diff --git a/lib/core/model/Prescriptions/get_medication_for_inpatient_request_model.dart b/lib/core/model/Prescriptions/get_medication_for_inpatient_request_model.dart
new file mode 100644
index 00000000..7c906643
--- /dev/null
+++ b/lib/core/model/Prescriptions/get_medication_for_inpatient_request_model.dart
@@ -0,0 +1,60 @@
+class GetMedicationForInPatientRequestModel {
+ bool isDentalAllowedBackend;
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int deviceTypeID;
+ String tokenID;
+ int patientID;
+ int admissionNo;
+ String sessionID;
+ int projectID;
+
+ GetMedicationForInPatientRequestModel(
+ {this.isDentalAllowedBackend,
+ this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.deviceTypeID,
+ this.tokenID,
+ this.patientID,
+ this.admissionNo,
+ this.sessionID,
+ this.projectID});
+
+ GetMedicationForInPatientRequestModel.fromJson(Map json) {
+ isDentalAllowedBackend = json['isDentalAllowedBackend'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ languageID = json['LanguageID'];
+ iPAdress = json['IPAdress'];
+ generalid = json['generalid'];
+ deviceTypeID = json['DeviceTypeID'];
+ tokenID = json['TokenID'];
+ patientID = json['PatientID'];
+ admissionNo = json['AdmissionNo'];
+ sessionID = json['SessionID'];
+ projectID = json['ProjectID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['LanguageID'] = this.languageID;
+ data['IPAdress'] = this.iPAdress;
+ data['generalid'] = this.generalid;
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['TokenID'] = this.tokenID;
+ data['PatientID'] = this.patientID;
+ data['AdmissionNo'] = this.admissionNo;
+ data['SessionID'] = this.sessionID;
+ data['ProjectID'] = this.projectID;
+ return data;
+ }
+}
diff --git a/lib/core/model/Prescriptions/prescription_report.dart b/lib/core/model/Prescriptions/prescription_report.dart
index e3a6eec8..4b5d574a 100644
--- a/lib/core/model/Prescriptions/prescription_report.dart
+++ b/lib/core/model/Prescriptions/prescription_report.dart
@@ -1,13 +1,13 @@
class PrescriptionReport {
- String ? address;
- int ? appointmentNo;
- String? clinic;
- String ?companyName;
- int ?days;
- String ?doctorName;
+ String? address;
+ dynamic? appodynamicmentNo;
+ String? clinic;
+ String? companyName;
+ dynamic? days;
+ String? doctorName;
var doseDailyQuantity;
String? frequency;
- int ?frequencyNumber;
+ dynamic? frequencyNumber;
String? image;
String? imageExtension;
String? imageSRCUrl;
@@ -15,38 +15,38 @@ class PrescriptionReport {
String? imageThumbUrl;
String? isCovered;
String? itemDescription;
- int? itemID;
+ dynamic? itemID;
String? orderDate;
- int ?patientID;
- String ?patientName;
- String ?phoneOffice1;
- String ?prescriptionQR;
- int ?prescriptionTimes;
+ dynamic? patientID;
+ String? patientName;
+ String? phoneOffice1;
+ String? prescriptionQR;
+ dynamic? prescriptionTimes;
String? productImage;
String? productImageBase64;
String? productImageString;
- int? projectID;
- String?projectName;
- String?remarks;
- String?route;
- String?sKU;
- int ?scaleOffset;
+ dynamic? projectID;
+ String? projectName;
+ String? remarks;
+ String? route;
+ String? sKU;
+ dynamic? scaleOffset;
String? startDate;
- String ? patientAge;
- String ? patientGender;
- String ? phoneOffice;
- int ?doseTimingID;
- int ?frequencyID;
- int ?routeID;
- String ? name;
- String ? itemDescriptionN;
- String ? routeN;
- String ? frequencyN;
+ String? patientAge;
+ String? patientGender;
+ String? phoneOffice;
+ dynamic? doseTimingID;
+ dynamic? frequencyID;
+ dynamic? routeID;
+ String? name;
+ String? itemDescriptionN;
+ String? routeN;
+ String? frequencyN;
PrescriptionReport({
this.address,
- this.appointmentNo,
+ this.appodynamicmentNo,
this.clinic,
this.companyName,
this.days,
@@ -92,7 +92,7 @@ class PrescriptionReport {
PrescriptionReport.fromJson(Map json) {
address = json['Address'];
- appointmentNo = json['AppointmentNo'];
+ appodynamicmentNo = json['AppodynamicmentNo'];
clinic = json['Clinic'];
companyName = json['CompanyName'];
days = json['Days'];
@@ -141,7 +141,7 @@ class PrescriptionReport {
final Map data = new Map();
data['Address'] = this.address;
- data['AppointmentNo'] = this.appointmentNo;
+ data['AppodynamicmentNo'] = this.appodynamicmentNo;
data['Clinic'] = this.clinic;
data['CompanyName'] = this.companyName;
data['Days'] = this.days;
diff --git a/lib/core/model/Prescriptions/prescription_report_enh.dart b/lib/core/model/Prescriptions/prescription_report_enh.dart
index a51cdc7b..96f811de 100644
--- a/lib/core/model/Prescriptions/prescription_report_enh.dart
+++ b/lib/core/model/Prescriptions/prescription_report_enh.dart
@@ -1,5 +1,6 @@
class PrescriptionReportEnh {
String ? address;
+ dynamic appodynamicmentNo;
int ? appointmentNo;
String ? clinic;
dynamic companyName;
@@ -15,27 +16,27 @@ class PrescriptionReportEnh {
String ? imageThumbUrl;
String ? isCovered;
String ? itemDescription;
- int ? itemID;
+ dynamic ? itemID;
String ? orderDate;
- int ? patientID;
+ dynamic ? patientID;
String ? patientName;
String ? phoneOffice1;
dynamic prescriptionQR;
- int ? prescriptionTimes;
+ dynamic ? prescriptionTimes;
dynamic productImage;
dynamic productImageBase64;
String ? productImageString;
- int ? projectID;
+ dynamic ? projectID;
String ? projectName;
String ? remarks;
String ? route;
String ? sKU;
- int ? scaleOffset;
+ dynamic ? scaleOffset;
String ? startDate;
PrescriptionReportEnh(
{this.address,
- this.appointmentNo,
+ this.appodynamicmentNo,
this.clinic,
this.companyName,
this.days,
@@ -70,7 +71,7 @@ class PrescriptionReportEnh {
PrescriptionReportEnh.fromJson(Map json) {
address = json['Address'];
- appointmentNo = json['AppointmentNo'];
+ appodynamicmentNo = json['AppodynamicmentNo'];
clinic = json['Clinic'];
companyName = json['CompanyName'];
days = json['Days'];
@@ -107,7 +108,7 @@ class PrescriptionReportEnh {
Map toJson() {
final Map data = new Map();
data['Address'] = this.address;
- data['AppointmentNo'] = this.appointmentNo;
+ data['AppodynamicmentNo'] = this.appodynamicmentNo;
data['Clinic'] = this.clinic;
data['CompanyName'] = this.companyName;
data['Days'] = this.days;
diff --git a/lib/core/model/auth/activation_Code_req_model.dart b/lib/core/model/auth/activation_Code_req_model.dart
index 1ef02c02..13d64f6a 100644
--- a/lib/core/model/auth/activation_Code_req_model.dart
+++ b/lib/core/model/auth/activation_Code_req_model.dart
@@ -1,52 +1,43 @@
class ActivationCodeModel {
- late String? mobileNumber;
- late String? zipCode;
late int? channel;
+ late int? loginDoctorID;
late int? languageID;
late double? versionID;
late int? memberID;
- late String? password;
late int? facilityId;
late String? generalid;
late String? otpSendType;
ActivationCodeModel(
- {this.mobileNumber,
- this.zipCode,
- this.channel,
+ {this.channel,
this.languageID,
this.versionID,
this.memberID,
- this.password,
this.facilityId,
this.otpSendType,
- this.generalid});
+ this.generalid,this.loginDoctorID});
ActivationCodeModel.fromJson(Map json) {
- mobileNumber = json['MobileNumber'];
- zipCode = json['ZipCode'];
channel = json['Channel'];
languageID = json['LanguageID'];
versionID = json['VersionID'];
memberID = json['MemberID'];
- password = json['Password'];
facilityId = json['facilityId'];
otpSendType = json['OTP_SendType'];
generalid = json['generalid'];
+ loginDoctorID = json['LoginDoctorID'];
}
Map toJson() {
final Map data = new Map();
- data['MobileNumber'] = this.mobileNumber;
- data['ZipCode'] = this.zipCode;
data['Channel'] = this.channel;
data['LanguageID'] = this.languageID;
data['VersionID'] = this.versionID;
data['MemberID'] = this.memberID;
- data['Password'] = this.password;
data['facilityId'] = this.facilityId;
data['OTP_SendType'] = otpSendType;
data['generalid'] = this.generalid;
+ data['LoginDoctorID'] = this.loginDoctorID;
return data;
}
}
diff --git a/lib/core/model/auth/activation_code_for_verification_screen_model.dart b/lib/core/model/auth/activation_code_for_verification_screen_model.dart
index f7aba9f0..51fb5ab3 100644
--- a/lib/core/model/auth/activation_code_for_verification_screen_model.dart
+++ b/lib/core/model/auth/activation_code_for_verification_screen_model.dart
@@ -3,6 +3,7 @@ class ActivationCodeForVerificationScreenModel {
late String? mobileNumber;
late String? zipCode;
late int? channel;
+ late int? loginDoctorID;
late int? languageID;
late double? versionID;
late int? memberID;
@@ -26,7 +27,7 @@ class ActivationCodeForVerificationScreenModel {
this.isMobileFingerPrint,
this.vidaAuthTokenID,
this.vidaRefreshTokenID,
- this.iMEI});
+ this.iMEI,this.loginDoctorID});
ActivationCodeForVerificationScreenModel.fromJson(Map json) {
oTPSendType = json['OTP_SendType'];
@@ -42,6 +43,7 @@ class ActivationCodeForVerificationScreenModel {
vidaAuthTokenID = json['VidaAuthTokenID'];
vidaRefreshTokenID = json['VidaRefreshTokenID'];
iMEI = json['IMEI'];
+ loginDoctorID = json['LoginDoctorID'];
}
Map toJson() {
@@ -56,9 +58,8 @@ class ActivationCodeForVerificationScreenModel {
data['facilityId'] = this.facilityId;
data['generalid'] = this.generalid;
data['IsMobileFingerPrint'] = this.isMobileFingerPrint;
- data['VidaAuthTokenID'] = this.vidaAuthTokenID;
- data['VidaRefreshTokenID'] = this.vidaRefreshTokenID;
data['IMEI'] = this.iMEI;
+ data['LoginDoctorID'] = this.loginDoctorID;
return data;
}
}
diff --git a/lib/core/model/auth/check_activation_code_for_doctor_app_response_model.dart b/lib/core/model/auth/check_activation_code_for_doctor_app_response_model.dart
index 0ae3008e..b30413e5 100644
--- a/lib/core/model/auth/check_activation_code_for_doctor_app_response_model.dart
+++ b/lib/core/model/auth/check_activation_code_for_doctor_app_response_model.dart
@@ -5,9 +5,14 @@ class CheckActivationCodeForDoctorAppResponseModel {
late List? listDoctorsClinic;
List? listDoctorProfile;
late MemberInformation? memberInformation;
+ String vidaAuthTokenID;
+ String vidaRefreshTokenID;
CheckActivationCodeForDoctorAppResponseModel(
- {this.authenticationTokenID, this.listDoctorsClinic, this.memberInformation});
+ {this.authenticationTokenID, this.listDoctorsClinic, this.memberInformation,
+ this.listDoctorProfile,
+ this.vidaAuthTokenID,
+ this.vidaRefreshTokenID});
CheckActivationCodeForDoctorAppResponseModel.fromJson(Map json) {
authenticationTokenID = json['AuthenticationTokenID'];
@@ -24,6 +29,8 @@ class CheckActivationCodeForDoctorAppResponseModel {
listDoctorProfile!.add(new DoctorProfileModel.fromJson(v));
});
}
+ vidaAuthTokenID = json['VidaAuthTokenID'];
+ vidaRefreshTokenID = json['VidaRefreshTokenID'];
memberInformation =
json['memberInformation'] != null ? new MemberInformation.fromJson(json['memberInformation']) : null;
diff --git a/lib/core/model/auth/check_activation_code_request_model.dart b/lib/core/model/auth/check_activation_code_request_model.dart
index 187c989c..fee596fe 100644
--- a/lib/core/model/auth/check_activation_code_request_model.dart
+++ b/lib/core/model/auth/check_activation_code_request_model.dart
@@ -1,19 +1,24 @@
class CheckActivationCodeRequestModel {
- late String? mobileNumber;
- late String? zipCode;
- late int? doctorID;
- late String? iPAdress;
- late int? channel;
- late int? languageID;
- late int? projectID;
- late double? versionID;
- late String? generalid;
- late String? logInTokenID;
- late String? activationCode;
- late String? vidaAuthTokenID;
- late String? vidaRefreshTokenID;
- late int? oTPSendType;
-
+ String? mobileNumber;
+ String? zipCode;
+ int? doctorID;
+ int? memberID;
+ int? loginDoctorID;
+ String? password;
+ String? facilityId;
+ String? iPAdress;
+ int? channel;
+ int? languageID;
+ int? projectID;
+ double? versionID;
+ String? generalid;
+ String? logInTokenID;
+ String? activationCode;
+ String? vidaAuthTokenID;
+ String? vidaRefreshTokenID;
+ String? iMEI;
+ bool? isForSilentLogin;
+ int? oTPSendType;
CheckActivationCodeRequestModel(
{this.mobileNumber,
this.zipCode,
@@ -28,7 +33,7 @@ class CheckActivationCodeRequestModel {
this.activationCode,
this.vidaAuthTokenID,
this.vidaRefreshTokenID,
- this.oTPSendType});
+ this.oTPSendType,this.password,this.facilityId,this.memberID,this.isForSilentLogin=false,this.iMEI,this.loginDoctorID});
CheckActivationCodeRequestModel.fromJson(Map json) {
mobileNumber = json['MobileNumber'];
@@ -45,6 +50,7 @@ class CheckActivationCodeRequestModel {
vidaAuthTokenID = json['VidaAuthTokenID'];
vidaRefreshTokenID = json['VidaRefreshTokenID'];
oTPSendType = json['OTP_SendType'];
+ loginDoctorID = json['LoginDoctorID'];
}
Map toJson() {
@@ -63,6 +69,12 @@ class CheckActivationCodeRequestModel {
data['VidaAuthTokenID'] = this.vidaAuthTokenID;
data['VidaRefreshTokenID'] = this.vidaRefreshTokenID;
data['OTP_SendType'] = this.oTPSendType;
+ data['facilityId'] = this.facilityId;
+ data['MemberID'] = this.memberID;
+ data['Password'] = this.password;
+ data['IMEI'] = this.iMEI;
+ data['IsForSilentLogin'] = this.isForSilentLogin;
+ data['LoginDoctorID'] = this.loginDoctorID;
return data;
}
}
diff --git a/lib/core/model/diabetic_chart/DiabeticType.dart b/lib/core/model/diabetic_chart/DiabeticType.dart
new file mode 100644
index 00000000..26641e61
--- /dev/null
+++ b/lib/core/model/diabetic_chart/DiabeticType.dart
@@ -0,0 +1,21 @@
+class DiabeticType {
+ int value;
+ String nameEn;
+ String nameAr;
+
+ DiabeticType({this.value, this.nameEn, this.nameAr});
+
+ DiabeticType.fromJson(Map json) {
+ value = json['value'];
+ nameEn = json['nameEn'];
+ nameAr = json['nameAr'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['value'] = this.value;
+ data['nameEn'] = this.nameEn;
+ data['nameAr'] = this.nameAr;
+ return data;
+ }
+}
diff --git a/lib/core/model/diabetic_chart/GetDiabeticChartValuesRequestModel.dart b/lib/core/model/diabetic_chart/GetDiabeticChartValuesRequestModel.dart
new file mode 100644
index 00000000..7fad3106
--- /dev/null
+++ b/lib/core/model/diabetic_chart/GetDiabeticChartValuesRequestModel.dart
@@ -0,0 +1,44 @@
+class GetDiabeticChartValuesRequestModel {
+ int deviceTypeID;
+ int patientID;
+ int resultType;
+ int admissionNo;
+ String setupID;
+ bool patientOutSA;
+ int patientType;
+ int patientTypeID;
+
+ GetDiabeticChartValuesRequestModel(
+ {this.deviceTypeID,
+ this.patientID,
+ this.resultType,
+ this.admissionNo,
+ this.setupID,
+ this.patientOutSA,
+ this.patientType,
+ this.patientTypeID});
+
+ GetDiabeticChartValuesRequestModel.fromJson(Map json) {
+ deviceTypeID = json['DeviceTypeID'];
+ patientID = json['PatientID'];
+ resultType = json['ResultType'];
+ admissionNo = json['AdmissionNo'];
+ setupID = json['SetupID'];
+ patientOutSA = json['PatientOutSA'];
+ patientType = json['PatientType'];
+ patientTypeID = json['PatientTypeID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['DeviceTypeID'] = this.deviceTypeID;
+ data['PatientID'] = this.patientID;
+ data['ResultType'] = this.resultType;
+ data['AdmissionNo'] = this.admissionNo;
+ data['SetupID'] = this.setupID;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['PatientType'] = this.patientType;
+ data['PatientTypeID'] = this.patientTypeID;
+ return data;
+ }
+}
diff --git a/lib/core/model/diabetic_chart/GetDiabeticChartValuesResponseModel.dart b/lib/core/model/diabetic_chart/GetDiabeticChartValuesResponseModel.dart
new file mode 100644
index 00000000..fa2c1ca2
--- /dev/null
+++ b/lib/core/model/diabetic_chart/GetDiabeticChartValuesResponseModel.dart
@@ -0,0 +1,36 @@
+class GetDiabeticChartValuesResponseModel {
+ String resultType;
+ int admissionNo;
+ String dateChart;
+ int resultValue;
+ int createdBy;
+ String createdOn;
+
+ GetDiabeticChartValuesResponseModel(
+ {this.resultType,
+ this.admissionNo,
+ this.dateChart,
+ this.resultValue,
+ this.createdBy,
+ this.createdOn});
+
+ GetDiabeticChartValuesResponseModel.fromJson(Map json) {
+ resultType = json['ResultType'];
+ admissionNo = json['AdmissionNo'];
+ dateChart = json['DateChart'];
+ resultValue = json['ResultValue'];
+ createdBy = json['CreatedBy'];
+ createdOn = json['CreatedOn'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ResultType'] = this.resultType;
+ data['AdmissionNo'] = this.admissionNo;
+ data['DateChart'] = this.dateChart;
+ data['ResultValue'] = this.resultValue;
+ data['CreatedBy'] = this.createdBy;
+ data['CreatedOn'] = this.createdOn;
+ return data;
+ }
+}
diff --git a/lib/core/model/diagnosis/GetDiagnosisForInPatientRequestModel.dart b/lib/core/model/diagnosis/GetDiagnosisForInPatientRequestModel.dart
new file mode 100644
index 00000000..310cfb50
--- /dev/null
+++ b/lib/core/model/diagnosis/GetDiagnosisForInPatientRequestModel.dart
@@ -0,0 +1,32 @@
+class GetDiagnosisForInPatientRequestModel {
+ int patientID;
+ int admissionNo;
+ String setupID;
+ int patientType;
+ int patientTypeID;
+
+ GetDiagnosisForInPatientRequestModel(
+ {this.patientID,
+ this.admissionNo,
+ this.setupID,
+ this.patientType,
+ this.patientTypeID});
+
+ GetDiagnosisForInPatientRequestModel.fromJson(Map json) {
+ patientID = json['PatientID'];
+ admissionNo = json['AdmissionNo'];
+ setupID = json['SetupID'];
+ patientType = json['PatientType'];
+ patientTypeID = json['PatientTypeID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientID'] = this.patientID;
+ data['AdmissionNo'] = this.admissionNo;
+ data['SetupID'] = this.setupID;
+ data['PatientType'] = this.patientType;
+ data['PatientTypeID'] = this.patientTypeID;
+ return data;
+ }
+}
diff --git a/lib/core/model/diagnosis/GetDiagnosisForInPatientResponseModel.dart b/lib/core/model/diagnosis/GetDiagnosisForInPatientResponseModel.dart
new file mode 100644
index 00000000..1ec48964
--- /dev/null
+++ b/lib/core/model/diagnosis/GetDiagnosisForInPatientResponseModel.dart
@@ -0,0 +1,52 @@
+class GetDiagnosisForInPatientResponseModel {
+ String iCDCode10ID;
+ int diagnosisTypeID;
+ int conditionID;
+ bool complexDiagnosis;
+ String asciiDesc;
+ int createdBy;
+ String createdOn;
+ int editedBy;
+ String editedOn;
+ String createdByName;
+ String editedByName;
+
+ GetDiagnosisForInPatientResponseModel(
+ {this.iCDCode10ID,
+ this.diagnosisTypeID,
+ this.conditionID,
+ this.complexDiagnosis,
+ this.asciiDesc,
+ this.createdBy,
+ this.createdOn,
+ this.editedBy,
+ this.editedOn, this.createdByName});
+
+ GetDiagnosisForInPatientResponseModel.fromJson(Map json) {
+ iCDCode10ID = json['ICDCode10ID'];
+ diagnosisTypeID = json['DiagnosisTypeID'];
+ conditionID = json['ConditionID'];
+ complexDiagnosis = json['ComplexDiagnosis'];
+ asciiDesc = json['Ascii_Desc'];
+ createdBy = json['CreatedBy'];
+ createdOn = json['CreatedOn'];
+ editedBy = json['EditedBy'];
+ editedOn = json['EditedOn'];
+ createdByName = json['CreatedByName'];
+ editedByName = json['EditedByName'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ICDCode10ID'] = this.iCDCode10ID;
+ data['DiagnosisTypeID'] = this.diagnosisTypeID;
+ data['ConditionID'] = this.conditionID;
+ data['ComplexDiagnosis'] = this.complexDiagnosis;
+ data['Ascii_Desc'] = this.asciiDesc;
+ data['CreatedBy'] = this.createdBy;
+ data['CreatedOn'] = this.createdOn;
+ data['EditedBy'] = this.editedBy;
+ data['EditedOn'] = this.editedOn;
+ return data;
+ }
+}
diff --git a/lib/core/model/labs/LabResultHistory.dart b/lib/core/model/labs/LabResultHistory.dart
new file mode 100644
index 00000000..7c4221ca
--- /dev/null
+++ b/lib/core/model/labs/LabResultHistory.dart
@@ -0,0 +1,108 @@
+class LabResultHistory {
+ String description;
+ String femaleInterpretativeData;
+ int gender;
+ bool isCertificateAllowed;
+ int lineItemNo;
+ String maleInterpretativeData;
+ String notes;
+ int orderLineItemNo;
+ int orderNo;
+ String packageID;
+ int patientID;
+ String projectID;
+ String referanceRange;
+ String resultValue;
+ int resultValueBasedLineItemNo;
+ String resultValueFlag;
+ String sampleCollectedOn;
+ String sampleReceivedOn;
+ String setupID;
+ String superVerifiedOn;
+ String testCode;
+ String uOM;
+ String verifiedOn;
+ String verifiedOnDateTime;
+
+ LabResultHistory(
+ {this.description,
+ this.femaleInterpretativeData,
+ this.gender,
+ this.isCertificateAllowed,
+ this.lineItemNo,
+ this.maleInterpretativeData,
+ this.notes,
+ this.orderLineItemNo,
+ this.orderNo,
+ this.packageID,
+ this.patientID,
+ this.projectID,
+ this.referanceRange,
+ this.resultValue,
+ this.resultValueBasedLineItemNo,
+ this.resultValueFlag,
+ this.sampleCollectedOn,
+ this.sampleReceivedOn,
+ this.setupID,
+ this.superVerifiedOn,
+ this.testCode,
+ this.uOM,
+ this.verifiedOn,
+ this.verifiedOnDateTime});
+
+ LabResultHistory.fromJson(Map json) {
+ description = json['Description'];
+ femaleInterpretativeData = json['FemaleInterpretativeData'];
+ gender = json['Gender'];
+ isCertificateAllowed = json['IsCertificateAllowed'];
+ lineItemNo = json['LineItemNo'];
+ maleInterpretativeData = json['MaleInterpretativeData'];
+ notes = json['Notes'];
+ orderLineItemNo = json['OrderLineItemNo'];
+ orderNo = json['OrderNo'];
+ packageID = json['PackageID'];
+ patientID = json['PatientID'];
+ projectID = json['ProjectID'];
+ referanceRange = json['ReferanceRange'];
+ resultValue = json['ResultValue'];
+ resultValueBasedLineItemNo = json['ResultValueBasedLineItemNo'];
+ resultValueFlag = json['ResultValueFlag'];
+ 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['IsCertificateAllowed'] = this.isCertificateAllowed;
+ data['LineItemNo'] = this.lineItemNo;
+ data['MaleInterpretativeData'] = this.maleInterpretativeData;
+ data['Notes'] = this.notes;
+ data['OrderLineItemNo'] = this.orderLineItemNo;
+ data['OrderNo'] = this.orderNo;
+ data['PackageID'] = this.packageID;
+ data['PatientID'] = this.patientID;
+ data['ProjectID'] = this.projectID;
+ data['ReferanceRange'] = this.referanceRange;
+ data['ResultValue'] = this.resultValue;
+ data['ResultValueBasedLineItemNo'] = this.resultValueBasedLineItemNo;
+ data['ResultValueFlag'] = this.resultValueFlag;
+ 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;
+ }
+}
\ No newline at end of file
diff --git a/lib/core/model/labs/all_special_lab_result_model.dart b/lib/core/model/labs/all_special_lab_result_model.dart
new file mode 100644
index 00000000..ffdc5ee5
--- /dev/null
+++ b/lib/core/model/labs/all_special_lab_result_model.dart
@@ -0,0 +1,216 @@
+class AllSpecialLabResultModel {
+ dynamic actualDoctorRate;
+ dynamic admissionDate;
+ dynamic admissionNumber;
+ dynamic appointmentDate;
+ dynamic appointmentNo;
+ dynamic appointmentTime;
+ String clinicDescription;
+ String clinicDescriptionEnglish;
+ dynamic clinicDescriptionN;
+ dynamic clinicID;
+ dynamic createdOn;
+ double decimalDoctorRate;
+ dynamic doctorID;
+ String doctorImageURL;
+ String doctorName;
+ String doctorNameEnglish;
+ dynamic doctorNameN;
+ dynamic doctorRate;
+ dynamic doctorStarsRate;
+ String doctorTitle;
+ dynamic gender;
+ String genderDescription;
+ bool inOutPatient;
+ String invoiceNo;
+ bool isActiveDoctorProfile;
+ bool isDoctorAllowVedioCall;
+ bool isExecludeDoctor;
+ bool isInOutPatient;
+ dynamic isInOutPatientDescription;
+ dynamic isInOutPatientDescriptionN;
+ bool isLiveCareAppointment;
+ bool isRead;
+ bool isSendEmail;
+ String moduleID;
+ String nationalityFlagURL;
+ dynamic noOfPatientsRate;
+ dynamic orderDate;
+ String orderNo;
+ dynamic patientID;
+ String projectID;
+ String projectName;
+ dynamic projectNameN;
+ String qR;
+ String resultData;
+ String resultDataHTML;
+ dynamic resultDataTxt;
+ String setupID;
+ //List speciality;
+ dynamic status;
+ dynamic statusDesc;
+ String strOrderDate;
+
+ AllSpecialLabResultModel(
+ {this.actualDoctorRate,
+ this.admissionDate,
+ this.admissionNumber,
+ this.appointmentDate,
+ this.appointmentNo,
+ this.appointmentTime,
+ this.clinicDescription,
+ this.clinicDescriptionEnglish,
+ this.clinicDescriptionN,
+ this.clinicID,
+ this.createdOn,
+ this.decimalDoctorRate,
+ this.doctorID,
+ this.doctorImageURL,
+ this.doctorName,
+ this.doctorNameEnglish,
+ this.doctorNameN,
+ this.doctorRate,
+ this.doctorStarsRate,
+ this.doctorTitle,
+ this.gender,
+ this.genderDescription,
+ this.inOutPatient,
+ this.invoiceNo,
+ this.isActiveDoctorProfile,
+ this.isDoctorAllowVedioCall,
+ this.isExecludeDoctor,
+ this.isInOutPatient,
+ this.isInOutPatientDescription,
+ this.isInOutPatientDescriptionN,
+ this.isLiveCareAppointment,
+ this.isRead,
+ this.isSendEmail,
+ this.moduleID,
+ this.nationalityFlagURL,
+ this.noOfPatientsRate,
+ this.orderDate,
+ this.orderNo,
+ this.patientID,
+ this.projectID,
+ this.projectName,
+ this.projectNameN,
+ this.qR,
+ this.resultData,
+ this.resultDataHTML,
+ this.resultDataTxt,
+ this.setupID,
+ //this.speciality,
+ this.status,
+ this.statusDesc,
+ this.strOrderDate});
+
+ AllSpecialLabResultModel.fromJson(Map json) {
+ actualDoctorRate = json['ActualDoctorRate'];
+ admissionDate = json['AdmissionDate'];
+ admissionNumber = json['AdmissionNumber'];
+ appointmentDate = json['AppointmentDate'];
+ appointmentNo = json['AppointmentNo'];
+ appointmentTime = json['AppointmentTime'];
+ clinicDescription = json['ClinicDescription'];
+ clinicDescriptionEnglish = json['ClinicDescriptionEnglish'];
+ clinicDescriptionN = json['ClinicDescriptionN'];
+ clinicID = json['ClinicID'];
+ createdOn = json['CreatedOn'];
+ decimalDoctorRate = json['DecimalDoctorRate'];
+ doctorID = json['DoctorID'];
+ doctorImageURL = json['DoctorImageURL'];
+ doctorName = json['DoctorName'];
+ doctorNameEnglish = json['DoctorNameEnglish'];
+ doctorNameN = json['DoctorNameN'];
+ doctorRate = json['DoctorRate'];
+ doctorStarsRate = json['DoctorStarsRate'];
+ doctorTitle = json['DoctorTitle'];
+ gender = json['Gender'];
+ genderDescription = json['GenderDescription'];
+ inOutPatient = json['InOutPatient'];
+ invoiceNo = json['InvoiceNo'];
+ isActiveDoctorProfile = json['IsActiveDoctorProfile'];
+ isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
+ isExecludeDoctor = json['IsExecludeDoctor'];
+ isInOutPatient = json['IsInOutPatient'];
+ isInOutPatientDescription = json['IsInOutPatientDescription'];
+ isInOutPatientDescriptionN = json['IsInOutPatientDescriptionN'];
+ isLiveCareAppointment = json['IsLiveCareAppointment'];
+ isRead = json['IsRead'];
+ isSendEmail = json['IsSendEmail'];
+ moduleID = json['ModuleID'];
+ nationalityFlagURL = json['NationalityFlagURL'];
+ noOfPatientsRate = json['NoOfPatientsRate'];
+ orderDate = json['OrderDate'];
+ orderNo = json['OrderNo'];
+ patientID = json['PatientID'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ projectNameN = json['ProjectNameN'];
+ qR = json['QR'];
+ resultData = json['ResultData'];
+ resultDataHTML = json['ResultDataHTML'];
+ resultDataTxt = json['ResultDataTxt'];
+ setupID = json['SetupID'];
+ //speciality = json['Speciality'].cast();
+ status = json['Status'];
+ statusDesc = json['StatusDesc'];
+ strOrderDate = json['StrOrderDate'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ActualDoctorRate'] = this.actualDoctorRate;
+ data['AdmissionDate'] = this.admissionDate;
+ data['AdmissionNumber'] = this.admissionNumber;
+ data['AppointmentDate'] = this.appointmentDate;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['AppointmentTime'] = this.appointmentTime;
+ data['ClinicDescription'] = this.clinicDescription;
+ data['ClinicDescriptionEnglish'] = this.clinicDescriptionEnglish;
+ data['ClinicDescriptionN'] = this.clinicDescriptionN;
+ data['ClinicID'] = this.clinicID;
+ data['CreatedOn'] = this.createdOn;
+ data['DecimalDoctorRate'] = this.decimalDoctorRate;
+ 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['DoctorStarsRate'] = this.doctorStarsRate;
+ data['DoctorTitle'] = this.doctorTitle;
+ data['Gender'] = this.gender;
+ data['GenderDescription'] = this.genderDescription;
+ data['InOutPatient'] = this.inOutPatient;
+ 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['IsLiveCareAppointment'] = this.isLiveCareAppointment;
+ data['IsRead'] = this.isRead;
+ data['IsSendEmail'] = this.isSendEmail;
+ data['ModuleID'] = this.moduleID;
+ 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['ResultData'] = this.resultData;
+ data['ResultDataHTML'] = this.resultDataHTML;
+ data['ResultDataTxt'] = this.resultDataTxt;
+ data['SetupID'] = this.setupID;
+ //data['Speciality'] = this.speciality;
+ data['Status'] = this.status;
+ data['StatusDesc'] = this.statusDesc;
+ data['StrOrderDate'] = this.strOrderDate;
+ return data;
+ }
+}
diff --git a/lib/core/model/labs/all_special_lab_result_request.dart b/lib/core/model/labs/all_special_lab_result_request.dart
new file mode 100644
index 00000000..d5df1405
--- /dev/null
+++ b/lib/core/model/labs/all_special_lab_result_request.dart
@@ -0,0 +1,68 @@
+class AllSpecialLabResultRequestModel {
+ double versionID;
+ int channel;
+ int languageID;
+ String iPAdress;
+ String generalid;
+ int patientOutSA;
+ String sessionID;
+ bool isDentalAllowedBackend;
+ int deviceTypeID;
+ String tokenID;
+ int patientTypeID;
+ int patientType;
+ int patientID;
+ int projectID;
+
+ AllSpecialLabResultRequestModel(
+ {this.versionID,
+ this.channel,
+ this.languageID,
+ this.iPAdress,
+ this.generalid,
+ this.patientOutSA,
+ this.sessionID,
+ this.isDentalAllowedBackend,
+ this.deviceTypeID,
+ this.tokenID,
+ this.patientTypeID,
+ this.patientType,
+ this.patientID,
+ this.projectID});
+
+ AllSpecialLabResultRequestModel.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'];
+ tokenID = json['TokenID'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ patientID = json['PatientID'];
+ 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['TokenID'] = this.tokenID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ data['PatientID'] = this.patientID;
+ data['ProjectID'] = this.projectID;
+ return data;
+ }
+}
diff --git a/lib/core/model/labs/lab_result.dart b/lib/core/model/labs/lab_result.dart
index 9a8cfe82..53035721 100644
--- a/lib/core/model/labs/lab_result.dart
+++ b/lib/core/model/labs/lab_result.dart
@@ -13,6 +13,8 @@ class LabResult {
String? sampleCollectedOn;
String? sampleReceivedOn;
String? setupID;
+ String? maxValue;
+ String? minValue;
dynamic superVerifiedOn;
String? testCode;
String? uOM;
@@ -31,7 +33,8 @@ class LabResult {
this.projectID,
this.referanceRange,
this.resultValue,
- this.sampleCollectedOn,
+ this.maxValue,
+ this.minValue,this.sampleCollectedOn,
this.sampleReceivedOn,
this.setupID,
this.superVerifiedOn,
@@ -52,6 +55,8 @@ class LabResult {
projectID = json['ProjectID'].toString();
referanceRange = json['ReferenceRange'] ?? json['ReferanceRange'];
resultValue = json['ResultValue'];
+ maxValue = json['MaxValue'];
+ minValue = json['MinValue'];
sampleCollectedOn = json['SampleCollectedOn'];
sampleReceivedOn = json['SampleReceivedOn'];
setupID = json['SetupID'];
@@ -75,6 +80,8 @@ class LabResult {
data['ProjectID'] = this.projectID;
data['ReferanceRange'] = this.referanceRange;
data['ResultValue'] = this.resultValue;
+ data['MaxValue'] = this.maxValue;
+ data['MinValue'] = this.minValue;
data['SampleCollectedOn'] = this.sampleCollectedOn;
data['SampleReceivedOn'] = this.sampleReceivedOn;
data['SetupID'] = this.setupID;
@@ -85,6 +92,28 @@ class LabResult {
data['VerifiedOnDateTime'] = this.verifiedOnDateTime;
return data;
}
+
+ int checkResultStatus() {
+ try {
+ var max = double.tryParse(maxValue) ?? null;
+ var min = double.tryParse(minValue) ?? null;
+ var result = double.tryParse(resultValue) ?? null;
+ if (max != null && min != null && result != null) {
+ if (result > max) {
+ return 1;
+ } else if (result < min) {
+ return -1;
+ } else {
+ return 0;
+ }
+ } else {
+ return 0;
+ }
+ }catch (e){
+ return 0;
+ }
+
+ }
}
class LabResultList {
diff --git a/lib/core/model/live_care/add_patient_to_doctor_list_request_model.dart b/lib/core/model/live_care/add_patient_to_doctor_list_request_model.dart
new file mode 100644
index 00000000..1d63e885
--- /dev/null
+++ b/lib/core/model/live_care/add_patient_to_doctor_list_request_model.dart
@@ -0,0 +1,27 @@
+class AddPatientToDoctorListRequestModel {
+ int vCID;
+ String tokenID;
+ String generalid;
+ int doctorId;
+ bool isOutKsa;
+
+ AddPatientToDoctorListRequestModel({this.vCID, this.tokenID, this.generalid, this.doctorId, this.isOutKsa});
+
+ AddPatientToDoctorListRequestModel.fromJson(Map json) {
+ vCID = json['VC_ID'];
+ tokenID = json['TokenID'];
+ generalid = json['generalid'];
+ doctorId = json['DoctorId'];
+ isOutKsa = json['IsOutKsa'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['VC_ID'] = this.vCID;
+ data['TokenID'] = this.tokenID;
+ data['generalid'] = this.generalid;
+ data['DoctorId'] = this.doctorId;
+ data['IsOutKsa'] = this.isOutKsa;
+ return data;
+ }
+}
diff --git a/lib/core/model/note/GetNursingProgressNoteRequestModel.dart b/lib/core/model/note/GetNursingProgressNoteRequestModel.dart
new file mode 100644
index 00000000..4335053c
--- /dev/null
+++ b/lib/core/model/note/GetNursingProgressNoteRequestModel.dart
@@ -0,0 +1,30 @@
+import 'package:doctor_app_flutter/config/config.dart';
+
+class GetNursingProgressNoteRequestModel {
+ int patientID;
+ int admissionNo;
+ int patientTypeID;
+ int patientType;
+ String setupID;
+
+ GetNursingProgressNoteRequestModel(
+ {this.patientID, this.admissionNo, this.patientTypeID = 1, this.patientType = 1, this.setupID });
+
+ GetNursingProgressNoteRequestModel.fromJson(Map json) {
+ patientID = json['PatientID'];
+ admissionNo = json['AdmissionNo'];
+ patientTypeID = json['PatientTypeID'];
+ patientType = json['PatientType'];
+ setupID = json['SetupID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientID'] = this.patientID;
+ data['AdmissionNo'] = this.admissionNo;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['PatientType'] = this.patientType;
+ data['SetupID'] = this.setupID;
+ return data;
+ }
+}
diff --git a/lib/core/model/note/GetNursingProgressNoteResposeModel.dart b/lib/core/model/note/GetNursingProgressNoteResposeModel.dart
new file mode 100644
index 00000000..fb7fbcec
--- /dev/null
+++ b/lib/core/model/note/GetNursingProgressNoteResposeModel.dart
@@ -0,0 +1,44 @@
+class GetNursingProgressNoteResposeModel {
+ String notes;
+ dynamic conditionType;
+ int createdBy;
+ String createdOn;
+ dynamic editedBy;
+ dynamic editedOn;
+
+ String createdByName;
+
+ String editedByName;
+
+ GetNursingProgressNoteResposeModel(
+ {this.notes,
+ this.conditionType,
+ this.createdBy,
+ this.createdOn,
+ this.editedBy,
+ this.editedOn,
+ this.editedByName,
+ this.createdByName});
+
+ GetNursingProgressNoteResposeModel.fromJson(Map json) {
+ notes = json['Notes'];
+ conditionType = json['ConditionType'];
+ createdBy = json['CreatedBy'];
+ createdOn = json['CreatedOn'];
+ editedBy = json['EditedBy'];
+ editedOn = json['EditedOn'];
+ createdByName = json['CreatedByName'];
+ editedByName = json['EditedByName'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Notes'] = this.notes;
+ data['ConditionType'] = this.conditionType;
+ data['CreatedBy'] = this.createdBy;
+ data['CreatedOn'] = this.createdOn;
+ data['EditedBy'] = this.editedBy;
+ data['EditedOn'] = this.editedOn;
+ return data;
+ }
+}
diff --git a/lib/core/model/patient_muse/PatientSearchRequestModel.dart b/lib/core/model/patient_muse/PatientSearchRequestModel.dart
index d377916e..2839833a 100644
--- a/lib/core/model/patient_muse/PatientSearchRequestModel.dart
+++ b/lib/core/model/patient_muse/PatientSearchRequestModel.dart
@@ -9,13 +9,14 @@ class PatientSearchRequestModel {
String? from;
String ?to;
int ?searchType;
+ int projectID;
String? mobileNo;
String? identificationNo;
int? nursingStationID;
- int? clinicID=0;
+ int? clinicID = 0;
PatientSearchRequestModel(
- {this.doctorID = 0,
+ {this.doctorID,
this.firstName = "0",
this.middleName = "0",
this.lastName = "0",
@@ -28,7 +29,8 @@ class PatientSearchRequestModel {
this.from = "0",
this.to = "0",
this.clinicID,
- this.nursingStationID = 0});
+ this.nursingStationID = 0,
+ this.projectID});
PatientSearchRequestModel.fromJson(Map json) {
doctorID = json['DoctorID'];
@@ -45,6 +47,7 @@ class PatientSearchRequestModel {
identificationNo = json['IdentificationNo'];
nursingStationID = json['NursingStationID'];
clinicID = json['ClinicID'];
+ projectID = json['ProjectID'];
}
Map toJson() {
@@ -63,7 +66,7 @@ class PatientSearchRequestModel {
data['IdentificationNo'] = this.identificationNo;
data['NursingStationID'] = this.nursingStationID;
data['ClinicID'] = this.clinicID;
- data['ProjectID'] = 0;
+ data['ProjectID'] = this.projectID;
return data;
}
}
diff --git a/lib/core/model/procedure/get_ordered_procedure_request_model.dart b/lib/core/model/procedure/get_ordered_procedure_request_model.dart
index 64f1cb2b..02ffb44e 100644
--- a/lib/core/model/procedure/get_ordered_procedure_request_model.dart
+++ b/lib/core/model/procedure/get_ordered_procedure_request_model.dart
@@ -1,18 +1,22 @@
class GetOrderedProcedureRequestModel {
String? vidaAuthTokenID;
int? patientMRN;
+ int appointmentNo;
- GetOrderedProcedureRequestModel({this.vidaAuthTokenID, this.patientMRN});
+ GetOrderedProcedureRequestModel({this.vidaAuthTokenID, this.patientMRN, this.appointmentNo});
GetOrderedProcedureRequestModel.fromJson(Map json) {
vidaAuthTokenID = json['VidaAuthTokenID'];
patientMRN = json['PatientMRN'];
+ appointmentNo = json['AppointmentNo'];
}
Map toJson() {
final Map data = new Map();
data['VidaAuthTokenID'] = this.vidaAuthTokenID;
data['PatientMRN'] = this.patientMRN;
+ data['AppointmentNo'] = this.appointmentNo;
+
return data;
}
}
diff --git a/lib/core/model/referral/MyReferralPatientModel.dart b/lib/core/model/referral/MyReferralPatientModel.dart
index 86a0e9c7..17ee2f8f 100644
--- a/lib/core/model/referral/MyReferralPatientModel.dart
+++ b/lib/core/model/referral/MyReferralPatientModel.dart
@@ -62,6 +62,15 @@ class MyReferralPatientModel {
String? referringClinicDescription;
String? referringDoctorName;
int? referalStatus;
+ String sourceSetupID;
+ int sourceProjectId;
+ String targetSetupID;
+ int targetProjectId;
+ int targetClinicID;
+ int targetDoctorID;
+ int sourceAppointmentNo;
+ int targetAppointmentNo;
+ String remarksFromSource;
MyReferralPatientModel(
{this.rowID,
@@ -104,27 +113,27 @@ class MyReferralPatientModel {
this.referralResponseOn,
this.priority,
this.frequency,
- this.mAXResponseTime,
- this.episodeID,
- this.appointmentNo,
- this.appointmentDate,
- this.appointmentType,
- this.patientMRN,
- this.createdOn,
- this.clinicID,
- this.nationalityID,
- this.age,
- this.doctorImageURL,
- this.frequencyDescription,
- this.genderDescription,
- this.isDoctorLate,
- this.isDoctorResponse,
- this.nationalityFlagURL,
- this.nursingStationName,
- this.priorityDescription,
- this.referringClinicDescription,
- this.referringDoctorName,
- this.referalStatus});
+ this.mAXResponseTime,
+ this.episodeID,
+ this.appointmentNo,
+ this.appointmentDate,
+ this.appointmentType,
+ this.patientMRN,
+ this.createdOn,
+ this.clinicID,
+ this.nationalityID,
+ this.age,
+ this.doctorImageURL,
+ this.frequencyDescription,
+ this.genderDescription,
+ this.isDoctorLate,
+ this.isDoctorResponse,
+ this.nationalityFlagURL,
+ this.nursingStationName,
+ this.priorityDescription,
+ this.referringClinicDescription,
+ this.referringDoctorName,
+ this.referalStatus, this.sourceSetupID, this.sourceAppointmentNo, this.sourceProjectId, this.targetProjectId, this.targetAppointmentNo, this.targetClinicID, this.targetSetupID, this.targetDoctorID, this.remarksFromSource});
MyReferralPatientModel.fromJson(Map json) {
rowID = json['RowID'];
@@ -201,6 +210,16 @@ class MyReferralPatientModel {
priorityDescription = json['PriorityDescription'];
referringClinicDescription = json['ReferringClinicDescription'];
referringDoctorName = json['ReferringDoctorName'];
+ sourceSetupID = json['SourceSetupID'];
+ sourceProjectId = json['SourceProjectId'];
+ targetSetupID = json['TargetSetupID'];
+ targetProjectId = json['TargetProjectId'];
+ targetClinicID = json['TargetClinicID'];
+ targetDoctorID = json['TargetDoctorID'];
+ sourceAppointmentNo = json['SourceAppointmentNo'];
+ targetAppointmentNo = json['TargetAppointmentNo'];
+ remarksFromSource = json['RemarksFromSource'];
+
}
Map toJson() {
@@ -266,6 +285,15 @@ class MyReferralPatientModel {
data['PriorityDescription'] = this.priorityDescription;
data['ReferringClinicDescription'] = this.referringClinicDescription;
data['ReferringDoctorName'] = this.referringDoctorName;
+ data['SourceSetupID'] = this.sourceSetupID;
+ data['SourceProjectId'] = this.sourceProjectId;
+ data['TargetSetupID'] = this.targetSetupID;
+ data['TargetProjectId'] = this.targetProjectId;
+ data['TargetClinicID'] = this.targetClinicID;
+ data['TargetDoctorID'] = this.targetDoctorID;
+ data['SourceAppointmentNo'] = this.sourceAppointmentNo;
+ data['TargetAppointmentNo'] = this.targetAppointmentNo;
+ data['RemarksFromSource'] = this.remarksFromSource;
return data;
}
diff --git a/lib/core/model/sick_leave/sick_leave_doctor_request_model.dart b/lib/core/model/sick_leave/sick_leave_doctor_request_model.dart
new file mode 100644
index 00000000..26bb76bd
--- /dev/null
+++ b/lib/core/model/sick_leave/sick_leave_doctor_request_model.dart
@@ -0,0 +1,28 @@
+class GetSickLeaveDoctorRequestModel {
+ int patientMRN;
+ String appointmentNo;
+ int status;
+ String vidaAuthTokenID;
+ String vidaRefreshTokenID;
+
+ GetSickLeaveDoctorRequestModel(
+ {this.patientMRN, this.appointmentNo, this.status, this.vidaAuthTokenID, this.vidaRefreshTokenID});
+
+ GetSickLeaveDoctorRequestModel.fromJson(Map json) {
+ patientMRN = json['PatientMRN'];
+ appointmentNo = json['AppointmentNo'];
+ status = json['status'];
+ vidaAuthTokenID = json['VidaAuthTokenID'];
+ vidaRefreshTokenID = json['VidaRefreshTokenID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['PatientMRN'] = this.patientMRN;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['status'] = this.status;
+ data['VidaAuthTokenID'] = this.vidaAuthTokenID;
+ data['VidaRefreshTokenID'] = this.vidaRefreshTokenID;
+ return data;
+ }
+}
diff --git a/lib/core/model/sick_leave/sick_leave_patient_model.dart b/lib/core/model/sick_leave/sick_leave_patient_model.dart
index db701206..1caaa066 100644
--- a/lib/core/model/sick_leave/sick_leave_patient_model.dart
+++ b/lib/core/model/sick_leave/sick_leave_patient_model.dart
@@ -1,41 +1,46 @@
import 'package:doctor_app_flutter/widgets/shared/StarRating.dart';
class SickLeavePatientModel {
- String? setupID;
- int? projectID;
- int? patientID;
- int? patientType;
- int? clinicID;
- int? doctorID;
- int? requestNo;
- String? requestDate;
- int? sickLeaveDays;
- int? appointmentNo;
- int? admissionNo;
- int? actualDoctorRate;
- String? appointmentDate;
- String? clinicName;
- String? doctorImageURL;
- String? doctorName;
- int? doctorRate;
- String? doctorTitle;
- int? gender;
- String? genderDescription;
- bool? isActiveDoctorProfile;
- bool? isDoctorAllowVedioCall;
- bool? isExecludeDoctor;
- bool? isInOutPatient;
- String? isInOutPatientDescription;
- String? isInOutPatientDescriptionN;
- bool? isLiveCareAppointment;
- int? noOfPatientsRate;
+ dynamic setupID;
+ dynamic projectID;
+ dynamic patientID;
+ dynamic patientType;
+ dynamic clinicID;
+ dynamic doctorID;
+ dynamic requestNo;
+ dynamic requestDate;
+ dynamic sickLeaveDays;
+ dynamic appointmentNo;
+ dynamic admissionNo;
+ dynamic actualDoctorRate;
+ dynamic appointmentDate;
+ dynamic clinicName;
+ dynamic doctorImageURL;
+ dynamic doctorName;
+ dynamic doctorRate;
+ dynamic doctorTitle;
+ dynamic gender;
+ dynamic genderDescription;
+ bool isActiveDoctorProfile;
+ bool isDoctorAllowVedioCall;
+ bool isExecludeDoctor;
+ bool isInOutPatient;
+ dynamic isInOutPatientDescription;
+ dynamic isInOutPatientDescriptionN;
+ bool isLiveCareAppointment;
+ dynamic noOfPatientsRate;
dynamic patientName;
- String? projectName;
- String? qR;
- // List speciality;
- String? strRequestDate;
- String? startDate;
- String? endDate;
+ dynamic projectName;
+ dynamic qR;
+ // List speciality;
+ dynamic strRequestDate;
+ dynamic startDate;
+ dynamic endDate;
+ dynamic isExtendedLeave;
+ dynamic noOfDays;
+ dynamic patientMRN;
+ dynamic remarks;
+ dynamic status;
SickLeavePatientModel(
{this.setupID,
@@ -72,10 +77,19 @@ class SickLeavePatientModel {
// this.speciality,
this.strRequestDate,
this.startDate,
- this.endDate});
+ this.endDate,
+ this.isExtendedLeave,
+ this.noOfDays,
+ this.patientMRN,
+ this.remarks,
+ this.status});
SickLeavePatientModel.fromJson(Map json) {
setupID = json['SetupID'];
+ isExtendedLeave = json['isExtendedLeave'];
+ noOfDays = json['noOfDays'];
+ patientMRN = json['patientMRN'];
+ status = json['status'];
projectID = json['ProjectID'];
patientID = json['PatientID'];
@@ -109,13 +123,17 @@ class SickLeavePatientModel {
qR = json['QR'];
// speciality = json['Speciality'].cast();
strRequestDate = json['StrRequestDate'];
- startDate = json['StartDate'];
+ startDate = json['StartDate'] ?? json['startDate'];
endDate = json['EndDate'];
}
Map toJson() {
final Map data = new Map();
data['SetupID'] = this.setupID;
+ data['status'] = this.status;
+ data['isExtendedLeave'] = this.isExtendedLeave;
+ data['noOfDays'] = this.noOfDays;
+ data['patientMRN'] = this.patientMRN;
data['ProjectID'] = this.projectID;
data['PatientID'] = this.patientID;
diff --git a/lib/core/model/sick_leave/sick_leave_patient_request_model.dart b/lib/core/model/sick_leave/sick_leave_patient_request_model.dart
index 535836d8..0abe94fe 100644
--- a/lib/core/model/sick_leave/sick_leave_patient_request_model.dart
+++ b/lib/core/model/sick_leave/sick_leave_patient_request_model.dart
@@ -10,6 +10,7 @@ class SickLeavePatientRequestModel {
int? patientTypeID;
String? tokenID;
int? patientID;
+ int patientMRN;
String? sessionID;
SickLeavePatientRequestModel(
@@ -24,10 +25,12 @@ class SickLeavePatientRequestModel {
this.patientTypeID,
this.tokenID,
this.patientID,
- this.sessionID});
+ this.sessionID,
+ this.patientMRN});
SickLeavePatientRequestModel.fromJson(Map json) {
versionID = json['VersionID'];
+ patientMRN = json['PatientMRN'];
channel = json['Channel'];
languageID = json['LanguageID'];
iPAdress = json['IPAdress'];
@@ -44,6 +47,7 @@ class SickLeavePatientRequestModel {
Map toJson() {
final Map data = new Map();
data['VersionID'] = this.versionID;
+ data['PatientMRN'] = this.patientMRN;
data['Channel'] = this.channel;
data['LanguageID'] = this.languageID;
data['IPAdress'] = this.iPAdress;
diff --git a/lib/core/service/AnalyticsService.dart b/lib/core/service/AnalyticsService.dart
new file mode 100644
index 00000000..0ad669ab
--- /dev/null
+++ b/lib/core/service/AnalyticsService.dart
@@ -0,0 +1,16 @@
+import 'package:firebase_analytics/firebase_analytics.dart';
+import 'package:firebase_analytics/observer.dart';
+import 'package:flutter/cupertino.dart';
+
+class AnalyticsService {
+ final FirebaseAnalytics _analytics = FirebaseAnalytics();
+
+ FirebaseAnalyticsObserver getAnalyticsObserver() => FirebaseAnalyticsObserver(analytics: _analytics);
+
+ Future logEvent({@required String eventCategory, @required String eventAction}) async {
+ await _analytics.logEvent(name: 'event', parameters: {
+ "eventCategory": eventCategory,
+ "eventAction": eventAction,
+ });
+ }
+}
diff --git a/lib/core/service/NavigationService.dart b/lib/core/service/NavigationService.dart
index 11b12ec5..f32c2c0d 100644
--- a/lib/core/service/NavigationService.dart
+++ b/lib/core/service/NavigationService.dart
@@ -15,4 +15,12 @@ class NavigationService {
Future pushNamedAndRemoveUntil(String routeName) {
return navigatorKey.currentState!.pushNamedAndRemoveUntil(routeName,(asd)=>false);
}
+
+ Future pushAndRemoveUntil(Route newRoute) {
+ return navigatorKey.currentState.pushAndRemoveUntil(newRoute,(asd)=>false);
+ }
+
+ pop() {
+ return navigatorKey.currentState.pop();
+ }
}
\ No newline at end of file
diff --git a/lib/core/service/PatientRegistrationService.dart b/lib/core/service/PatientRegistrationService.dart
new file mode 100644
index 00000000..236bcd42
--- /dev/null
+++ b/lib/core/service/PatientRegistrationService.dart
@@ -0,0 +1,108 @@
+import 'package:doctor_app_flutter/config/config.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/CheckActivationCodeModel.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/CheckPatientForRegistrationModel.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/GetPatientInfoRequestModel.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/GetPatientInfoResponseModel.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/PatientRegistrationModel.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/SendActivationCodebyOTPNotificationTypeForRegistrationModel.dart';
+import 'package:doctor_app_flutter/core/service/base/base_service.dart';
+import 'package:doctor_app_flutter/core/viewModel/PatientRegistrationViewModel.dart';
+
+class PatientRegistrationService extends BaseService {
+ GetPatientInfoResponseModel getPatientInfoResponseModel;
+ String logInTokenID;
+
+ checkPatientForRegistration(
+ CheckPatientForRegistrationModel registrationModel) async {
+ hasError = false;
+ await baseAppClient.post(CHECK_PATIENT_FOR_REGISTRATION,
+ onSuccess: (dynamic response, int statusCode) {
+ //TODO Elham* fix it
+ logInTokenID = "OjEi/qgRekGICZm5/a4jbQ=="; //response["LogInTokenID"];
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: registrationModel.toJson());
+ }
+
+ getPatientInfo(GetPatientInfoRequestModel getPatientInfoRequestMode) async {
+ hasError = false;
+ await baseAppClient.post(GET_PATIENT_INFO,
+ onSuccess: (dynamic response, int statusCode) {
+ getPatientInfoResponseModel =
+ GetPatientInfoResponseModel.fromJson(response);
+ print("ddd");
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: getPatientInfoRequestMode.toJson());
+ }
+
+ sendActivationCodeByOTPNotificationType(
+ {SendActivationCodeByOTPNotificationTypeForRegistrationModel
+ registrationModel,
+ int otpType,
+ PatientRegistrationViewModel model,
+ CheckPatientForRegistrationModel
+ checkPatientForRegistrationModel}) async {
+ registrationModel =
+ SendActivationCodeByOTPNotificationTypeForRegistrationModel(
+ oTPSendType: otpType,
+ patientIdentificationID: checkPatientForRegistrationModel
+ .patientIdentificationID,
+ patientMobileNumber: checkPatientForRegistrationModel
+ .patientMobileNumber,
+ zipCode: checkPatientForRegistrationModel.zipCode,
+ patientOutSA: 0,
+ healthId: model.getPatientInfoResponseModel.healthId,
+ dOB: checkPatientForRegistrationModel.dOB,
+ isRegister: checkPatientForRegistrationModel.isRegister,
+ isHijri: checkPatientForRegistrationModel.isHijri,
+ sessionID: null,
+ generalid: GENERAL_ID,
+ isDentalAllowedBackend: false,
+ projectOutSA: 0,
+ searchType: 1,
+ versionID: 7.1,
+ channel: 3,
+ nationalID:
+ model.checkPatientForRegistrationModel.patientIdentificationID,
+ patientID: 0,
+ mobileNo: model.checkPatientForRegistrationModel.patientMobileNumber
+ .toString(),
+ loginType: otpType,
+ logInTokenID: logInTokenID);
+
+ hasError = false;
+ await baseAppClient.post(SEND_ACTIVATION_CODE_BY_OTP_NOT_TYPE_FOR_REGISTRATION,
+ onSuccess: (dynamic response, int statusCode) {
+ registrationModel =
+ SendActivationCodeByOTPNotificationTypeForRegistrationModel.fromJson(
+ response);
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: registrationModel.toJson());
+ }
+
+ checkActivationCode(CheckActivationCodeModel registrationModel) async {
+ hasError = false;
+ await baseAppClient.post(CHECK_ACTIVATION_CODE_FOR_PATIENT,
+ onSuccess: (dynamic response, int statusCode) {
+ registrationModel = CheckActivationCodeModel.fromJson(response);
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: registrationModel.toJson());
+ }
+
+ registrationPatient(PatientRegistrationModel registrationModel) async {
+ hasError = false;
+ await baseAppClient.post(PATIENT_REGISTRATION,
+ onSuccess: (dynamic response, int statusCode) {},
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: registrationModel.toJson());
+ }
+}
diff --git a/lib/core/service/VideoCallService.dart b/lib/core/service/VideoCallService.dart
index d07c640d..697b78e3 100644
--- a/lib/core/service/VideoCallService.dart
+++ b/lib/core/service/VideoCallService.dart
@@ -22,56 +22,78 @@ class VideoCallService extends BaseService{
late PatiantInformtion patient;
LiveCarePatientServices _liveCarePatientServices = locator();
- openVideo(StartCallRes startModel,PatiantInformtion patientModel,VoidCallback onCallConnected, VoidCallback onCallDisconnected)async{
+ openVideo(StartCallRes startModel, PatiantInformtion patientModel,
+ bool isRecording,VoidCallback onCallConnected, VoidCallback onCallDisconnected) async {
this.startCallRes = startModel;
this.patient = patientModel;
- DoctorProfileModel? doctorProfile = await getDoctorProfile(isGetProfile: true);
+ DoctorProfileModel? doctorProfile =
+ await getDoctorProfile(isGetProfile: true);
await VideoChannel.openVideoCallScreen(
- kToken: startCallRes.openTokenID,//"T1==cGFydG5lcl9pZD00NzI0Nzk1NCZzaWc9NGIyZDljOTY3YjFiNWU1YzUzNzFmMjIyNjJmNmEzY2Y5NzZjOTdlYzpzZXNzaW9uX2lkPTFfTVg0ME56STBOemsxTkg1LU1UWXlNekEyTlRRMU9EVXhObjVrVFRoMFlVdFJXaXRYTWpadFZGZHFhSGxZVGpOdE1UVi1mZyZjcmVhdGVfdGltZT0xNjIzMDY1NDk1Jm5vbmNlPTAuMjM2Mjk0NTIwMTkyOTA4OTcmcm9sZT1wdWJsaXNoZXImZXhwaXJlX3RpbWU9MTYyNTY1NzQ5NCZpbml0aWFsX2xheW91dF9jbGFzc19saXN0PQ==",
- kSessionId:startCallRes.openSessionID,//1_MX40NzI0Nzk1NH5-MTYyMzA2NTQ1ODUxNn5kTTh0YUtRWitXMjZtVFdqaHlYTjNtMTV-fg
- kApiKey: '46209962',//'47247954'
+ // TODO MOSA TEST
+ kToken: startCallRes.openTokenID,
+ kSessionId: startCallRes.openSessionID,
+ kApiKey:'46209962',
+ // kToken: "T1==cGFydG5lcl9pZD00NzI0Nzk1NCZzaWc9NGUyZjgxMjFlYTFkNzU5NjcxNDY2ZTM2ZjM3YTVhNTI2NGY0NTI2NzpzZXNzaW9uX2lkPTJfTVg0ME56STBOemsxTkg1LU1UWXlOVGN5TmpnMk5qZzNOMzQ1YUhCcGRtcDFXbVpDTDFkNE1qbDRkWFY2TTA4cmIySi1mZyZjcmVhdGVfdGltZT0xNjI1NzI2ODg5Jm5vbmNlPTAuNjc2Nzc4OTQxNjA1MTMxNSZyb2xlPXB1Ymxpc2hlciZleHBpcmVfdGltZT0xNjI4MzE4ODg4JmluaXRpYWxfbGF5b3V0X2NsYXNzX2xpc3Q9",
+ // kSessionId: "2_MX40NzI0Nzk1NH5-MTYyNTcyNjg2Njg3N345aHBpdmp1WmZCL1d4Mjl4dXV6M08rb2J-fg",
+ // kApiKey:'47247954',
vcId: patient.vcId,
- patientName: patient.fullName ?? (patient.firstName != null ? "${patient.firstName} ${patient.lastName}" : "-"),
+ isRecording: isRecording,
+ patientName: patient.fullName ??
+ (patient.firstName != null
+ ? "${patient.firstName} ${patient.lastName}"
+ : "-"),
tokenID: await sharedPref.getString(TOKEN),
generalId: GENERAL_ID,
doctorId: doctorProfile!.doctorID,
onFailure: (String error) {
DrAppToastMsg.showErrorToast(error);
- },onCallConnected: onCallConnected,
+ },
+ onCallConnected: onCallConnected,
+ onCallDisconnected: onCallDisconnected,
onCallEnd: () {
WidgetsBinding.instance!.addPostFrameCallback((_) async {
- GifLoaderDialogUtils.showMyDialog(locator().navigatorKey.currentContext!);
- endCall(patient.vcId!, false,).then((value) {
- GifLoaderDialogUtils.hideDialog(locator().navigatorKey.currentContext!);
- if (hasError) {
- DrAppToastMsg.showErrorToast(error);
- }else
- locator().navigateTo(PATIENTS_END_Call,arguments: {
- "patient": patient,
- });
+ GifLoaderDialogUtils.showMyDialog(
+ locator().navigatorKey.currentContext!);
+ endCall(
+ patient.vcId!,
+ false,
- });
+ ).then((value) {
+ GifLoaderDialogUtils.hideDialog(
+ locator().navigatorKey.currentContext!);
+ if (hasError) {
+ DrAppToastMsg.showErrorToast(error);
+ } else
+ locator()
+ .navigateTo(PATIENTS_END_Call, arguments: {
+ "patient": patient,
+ });
+ });
});
},
onCallNotRespond: (SessionStatusModel sessionStatusModel) {
WidgetsBinding.instance!.addPostFrameCallback((_) {
- GifLoaderDialogUtils.showMyDialog(locator().navigatorKey.currentContext!);
- endCall(patient.vcId!, sessionStatusModel.sessionStatus == 3,).then((value) {
- GifLoaderDialogUtils.hideDialog(locator().navigatorKey.currentContext!);
+ GifLoaderDialogUtils.showMyDialog(
+ locator().navigatorKey.currentContext!);
+ endCall(
+ patient.vcId!,
+ sessionStatusModel.sessionStatus == 3,
+ ).then((value) {
+ GifLoaderDialogUtils.hideDialog(
+ locator().navigatorKey.currentContext!);
if (hasError) {
DrAppToastMsg.showErrorToast(error);
} else {
- locator().navigateTo(PATIENTS_END_Call,arguments: {
+ locator()
+ .navigateTo(PATIENTS_END_Call, arguments: {
"patient": patient,
});
}
-
});
-
- });
+ });
});
-
}
+
Future endCall(int vCID, bool isPatient) async {
hasError = false;
await getDoctorProfile(isGetProfile: true);
@@ -85,5 +107,4 @@ class VideoCallService extends BaseService{
error = _liveCarePatientServices.error!;
}
}
-
-}
\ No newline at end of file
+}
diff --git a/lib/core/service/base/base_service.dart b/lib/core/service/base/base_service.dart
index ac069304..a8a87c8f 100644
--- a/lib/core/service/base/base_service.dart
+++ b/lib/core/service/base/base_service.dart
@@ -1,5 +1,4 @@
import 'package:doctor_app_flutter/client/base_app_client.dart';
-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/models/patient/patiant_info_model.dart';
@@ -14,7 +13,11 @@ class BaseService {
List patientArrivalList = [];
-//TODO add the user login model when we need it
+ BaseService(){
+ doctorProfile = null;
+ }
+
+ //TODO add the user login model when we need it
Future ? getDoctorProfile({bool isGetProfile = false}) async {
if(isGetProfile)
{
diff --git a/lib/core/service/home/doctor_reply_service.dart b/lib/core/service/home/doctor_reply_service.dart
index 2ffb3ee8..c3f4584d 100644
--- a/lib/core/service/home/doctor_reply_service.dart
+++ b/lib/core/service/home/doctor_reply_service.dart
@@ -1,57 +1,77 @@
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
import 'package:doctor_app_flutter/models/doctor/list_gt_my_patients_question_model.dart';
+import 'package:doctor_app_flutter/models/doctor/replay/request_create_doctor_response.dart';
import 'package:doctor_app_flutter/models/doctor/request_add_referred_doctor_remarks.dart';
-import 'package:doctor_app_flutter/models/doctor/request_doctor_reply.dart';
+import 'package:doctor_app_flutter/models/doctor/replay/request_doctor_reply.dart';
import 'package:doctor_app_flutter/models/patient/my_referral/my_referral_patient_model.dart';
import 'package:doctor_app_flutter/models/patient/request_my_referral_patient_model.dart';
class DoctorReplyService extends BaseService {
-
- List get listDoctorWorkingHoursTable => _listDoctorWorkingHoursTable;
+ List get listDoctorWorkingHoursTable =>
+ _listDoctorWorkingHoursTable;
+ List get listDoctorNotRepliedQuestions =>
+ _listDoctorNotRepliedQuestions;
List _listDoctorWorkingHoursTable = [];
-
-
- RequestDoctorReply _requestDoctorReply = RequestDoctorReply();
+ List _listDoctorNotRepliedQuestions = [];
List _listMyReferralPatientModel = [];
- List get listMyReferralPatientModel => _listMyReferralPatientModel;
- Future getDoctorReply() async {
+ List get listMyReferralPatientModel =>
+ _listMyReferralPatientModel;
+ int notRepliedCount = 0;
+
+ Future getDoctorReply(RequestDoctorReply _requestDoctorReply,
+ {bool clearData = false, bool isGettingNotReply = false}) async {
hasError = false;
- await baseAppClient.post(GT_MY_PATIENT_QUESTION,
- onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(
+ GT_MY_PATIENT_QUESTION,
+ onSuccess: (dynamic response, int statusCode) {
+ if (clearData) {
+ if(isGettingNotReply)
+ _listDoctorNotRepliedQuestions.clear();
+ else
_listDoctorWorkingHoursTable.clear();
- response['List_GtMyPatientsQuestions'].forEach((v) {
- _listDoctorWorkingHoursTable
- .add(ListGtMyPatientsQuestions.fromJson(v));
- });
- }, onFailure: (String error, int statusCode) {
- hasError = true;
- super.error = error;
- }, body: _requestDoctorReply.toJson(),);
+ }
+
+
+ response['List_GtMyPatientsQuestions'].forEach((v) {
+
+ if(isGettingNotReply)
+ _listDoctorNotRepliedQuestions.add(ListGtMyPatientsQuestions.fromJson(v));
+ else
+ _listDoctorWorkingHoursTable
+ .add(ListGtMyPatientsQuestions.fromJson(v));
+ });
+ },
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ },
+ body: _requestDoctorReply.toJson(),
+ );
+ }
+
+ Future createDoctorResponse(
+ CreateDoctorResponseModel createDoctorResponseModel) async {
+ hasError = false;
+ await baseAppClient.post(
+ CREATE_DOCTOR_RESPONSE,
+ body: createDoctorResponseModel.toJson(),
+ onSuccess: (dynamic body, int statusCode) {},
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ },
+ );
}
- Future replay(
- String referredDoctorRemarks, ListGtMyPatientsQuestions model) async {
- RequestMyReferralPatientModel _requestMyReferralPatient =
- RequestMyReferralPatientModel();
- RequestAddReferredDoctorRemarks _requestAddReferredDoctorRemarks =
- RequestAddReferredDoctorRemarks();
-
- _requestAddReferredDoctorRemarks.admissionNo = model.admissionNo.toString();
- _requestAddReferredDoctorRemarks.patientID = model.patientID;
- _requestAddReferredDoctorRemarks.referredDoctorRemarks =
- referredDoctorRemarks;
- _requestAddReferredDoctorRemarks.lineItemNo = model.lineItemNo;
- _requestAddReferredDoctorRemarks.referringDoctor = model.referringDoctor;
+ Future getNotRepliedCount() async {
+ hasError = false;
await baseAppClient.post(
- ADD_REFERRED_DOCTOR_REMARKS,
- body: _requestAddReferredDoctorRemarks.toJson(),
+ GET_DOCTOR_NOT_REPLIED_COUNTS,
+ body: {},
onSuccess: (dynamic body, int statusCode) {
- print("succsss");
- // model.referredDoctorRemarks = referredDoctorRemarks;
- // listMyReferralPatientModel[listMyReferralPatientModel.indexOf(model)] =
- // model;
+ notRepliedCount = body["DoctorNotRepliedCounts"];
},
onFailure: (String error, int statusCode) {
hasError = true;
diff --git a/lib/core/service/home/scan_qr_service.dart b/lib/core/service/home/scan_qr_service.dart
index 7a0033b9..a06a8974 100644
--- a/lib/core/service/home/scan_qr_service.dart
+++ b/lib/core/service/home/scan_qr_service.dart
@@ -11,11 +11,11 @@ class ScanQrService extends BaseService {
hasError = false;
await getDoctorProfile();
- if (isMyInpatient) {
- requestModel.doctorID = doctorProfile!.doctorID!;
- } else {
- requestModel.doctorID = 0;
- }
+ // if (isMyInpatient) {
+ // requestModel.doctorID = doctorProfile!.doctorID!;
+ // } else {
+ requestModel.doctorID = 0;
+ //}
await baseAppClient.post(
GET_PATIENT_IN_PATIENT_LIST,
diff --git a/lib/core/service/home/schedule_service.dart b/lib/core/service/home/schedule_service.dart
index 674facda..1776b470 100644
--- a/lib/core/service/home/schedule_service.dart
+++ b/lib/core/service/home/schedule_service.dart
@@ -21,6 +21,6 @@ class ScheduleService extends BaseService {
}, onFailure: (String error, int statusCode) {
hasError = true;
super.error = error;
- }, body: _requestSchedule.toJson(),);
+ }, body: _requestSchedule.toJson(),isFallLanguage: true);
}
}
diff --git a/lib/core/service/patient/LiveCarePatientServices.dart b/lib/core/service/patient/LiveCarePatientServices.dart
index 40968550..b0bf13e1 100644
--- a/lib/core/service/patient/LiveCarePatientServices.dart
+++ b/lib/core/service/patient/LiveCarePatientServices.dart
@@ -1,7 +1,7 @@
-
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/core/model/live_care/AlternativeServicesList.dart';
import 'package:doctor_app_flutter/core/model/live_care/PendingPatientERForDoctorAppRequestModel.dart';
+import 'package:doctor_app_flutter/core/model/live_care/add_patient_to_doctor_list_request_model.dart';
import 'package:doctor_app_flutter/core/model/live_care/live_care_login_reguest_model.dart';
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
import 'package:doctor_app_flutter/models/livecare/end_call_req.dart';
@@ -34,15 +34,34 @@ class LiveCarePatientServices extends BaseService {
StartCallRes get startCallRes => _startCallRes;
Future getPendingPatientERForDoctorApp(
- PendingPatientERForDoctorAppRequestModel
- pendingPatientERForDoctorAppRequestModel) async {
+ PendingPatientERForDoctorAppRequestModel pendingPatientERForDoctorAppRequestModel) async {
hasError = false;
await baseAppClient.post(
GET_PENDING_PATIENT_ER_FOR_DOCTOR_APP,
onSuccess: (dynamic response, int statusCode) {
- _patientList.clear();
+ List localPatientList = [];
+
response['List_PendingPatientList'].forEach((v) {
- _patientList.add(PatiantInformtion.fromJson(v));
+ localPatientList.add(PatiantInformtion.fromJson(v));
+ });
+
+ /// add new items.
+ localPatientList.forEach((element) {
+ if ((_patientList.singleWhere((it) => it.patientId == element.patientId, orElse: () => null)) == null) {
+ _patientList.add(element);
+ }
+ });
+
+ /// remove items.
+ List removedPatientList = [];
+ _patientList.forEach((element) {
+ if ((localPatientList.singleWhere((it) => it.patientId == element.patientId, orElse: () => null)) == null) {
+ removedPatientList.add(element);
+ }
+ });
+
+ removedPatientList.forEach((element) {
+ _patientList.remove(element);
});
},
onFailure: (String error, int statusCode) {
@@ -102,20 +121,17 @@ class LiveCarePatientServices extends BaseService {
Future sendSMSInstruction(int vcID) async {
hasError = false;
- await baseAppClient.post(SEND_SMS_INSTRUCTIONS,
- onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(SEND_SMS_INSTRUCTIONS, onSuccess: (dynamic response, int statusCode) {
transferToAdminResponse = response;
}, onFailure: (String error, int statusCode) {
hasError =true;
super.error = error;
- }, body: {
- "VC_ID": vcID, "generalid": GENERAL_ID
- }, isLiveCare: _isLive);
+ }, body: {"VC_ID": vcID, "generalid": GENERAL_ID}, isLiveCare: _isLive);
}
Future isLogin({LiveCareUserLoginRequestModel? isLoginRequestModel, int? loginStatus}) async {
hasError = false;
- await getDoctorProfile( );
+ await getDoctorProfile();
isLoginRequestModel!.doctorId = super.doctorProfile!.doctorID!;
await baseAppClient.post(LIVE_CARE_IS_LOGIN, onSuccess: (response, statusCode) async {
isLoginResponse = response;
@@ -129,17 +145,48 @@ class LiveCarePatientServices extends BaseService {
hasError = false;
alternativeServicesList.clear();
- await baseAppClient.post(GET_ALTERNATIVE_SERVICE,
- onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(GET_ALTERNATIVE_SERVICE, onSuccess: (dynamic response, int statusCode) {
response['AlternativeServicesList'].forEach((v) {
alternativeServicesList.add(AlternativeService.fromJson(v));
});
}, onFailure: (String error, int statusCode) {
hasError = true;
super.error = error;
- }, body: {
- "VC_ID": vcID,
- "generalid": GENERAL_ID
- }, isLiveCare: _isLive);
+ }, body: {"VC_ID": vcID, "generalid": GENERAL_ID}, isLiveCare: _isLive);
+ }
+
+ Future addPatientToDoctorList({int vcID}) async {
+ hasError = false;
+ await getDoctorProfile();
+ AddPatientToDoctorListRequestModel addPatientToDoctorListRequestModel = AddPatientToDoctorListRequestModel();
+
+ addPatientToDoctorListRequestModel.doctorId = super.doctorProfile.doctorID;
+ addPatientToDoctorListRequestModel.vCID = vcID;
+ addPatientToDoctorListRequestModel.isOutKsa = false;
+ addPatientToDoctorListRequestModel.generalid = GENERAL_ID;
+
+ await baseAppClient.post(ADD_PATIENT_TO_DOCTOR, onSuccess: (response, statusCode) async {
+ isLoginResponse = response;
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: addPatientToDoctorListRequestModel.toJson(), isLiveCare: _isLive);
+ }
+
+ Future removePatientFromDoctorList({int vcID}) async {
+ hasError = false;
+ AddPatientToDoctorListRequestModel addPatientToDoctorListRequestModel = AddPatientToDoctorListRequestModel();
+ await getDoctorProfile();
+ addPatientToDoctorListRequestModel.doctorId = super.doctorProfile.doctorID;
+ addPatientToDoctorListRequestModel.vCID = vcID;
+ addPatientToDoctorListRequestModel.isOutKsa = false;
+ addPatientToDoctorListRequestModel.generalid = GENERAL_ID;
+
+ await baseAppClient.post(REMOVE_PATIENT_FROM_DOCTOR, onSuccess: (response, statusCode) async {
+ isLoginResponse = response;
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: addPatientToDoctorListRequestModel.toJson(), isLiveCare: _isLive);
}
}
diff --git a/lib/core/service/patient/MyReferralPatientService.dart b/lib/core/service/patient/MyReferralPatientService.dart
index 946d631f..f1185786 100644
--- a/lib/core/service/patient/MyReferralPatientService.dart
+++ b/lib/core/service/patient/MyReferralPatientService.dart
@@ -100,20 +100,22 @@ class MyReferralInPatientService extends BaseService {
);
}
- Future replayReferred(String referredDoctorRemarks, MyReferralPatientModel referral, int referalStatus) async {
+ Future replayReferred(String referredDoctorRemarks, MyReferralPatientModel referral, int referralStatus) async {
hasError = false;
await getDoctorProfile();
AddReferredRemarksRequestModel _requestAddReferredDoctorRemarks = AddReferredRemarksRequestModel(
editedBy: doctorProfile!.doctorID!,
projectID: doctorProfile!.projectID!,
referredDoctorRemarks: referredDoctorRemarks,
- referalStatus: referalStatus);
+ referalStatus: referralStatus);
_requestAddReferredDoctorRemarks.projectID = referral.projectID!;
+
+ //TODO Check this in case out patient
_requestAddReferredDoctorRemarks.admissionNo = int.parse(referral.admissionNo!);
_requestAddReferredDoctorRemarks.lineItemNo = referral.lineItemNo!;
_requestAddReferredDoctorRemarks.referredDoctorRemarks = referredDoctorRemarks;
_requestAddReferredDoctorRemarks.editedBy = doctorProfile!.doctorID!;
- _requestAddReferredDoctorRemarks.referalStatus = referalStatus;
+ _requestAddReferredDoctorRemarks.referalStatus = referralStatus;
// _requestAddReferredDoctorRemarks.patientID = referral.patientID;
// _requestAddReferredDoctorRemarks.referringDoctor = referral.referringDoctor;
diff --git a/lib/core/service/patient/patient-doctor-referral-service.dart b/lib/core/service/patient/patient-doctor-referral-service.dart
index fd9e25b3..5d4caa50 100644
--- a/lib/core/service/patient/patient-doctor-referral-service.dart
+++ b/lib/core/service/patient/patient-doctor-referral-service.dart
@@ -1,4 +1,5 @@
import 'package:doctor_app_flutter/config/config.dart';
+import 'package:doctor_app_flutter/core/model/referral/MyReferralPatientModel.dart';
import 'package:doctor_app_flutter/lookups/hospital_lookup.dart';
import 'package:doctor_app_flutter/models/doctor/doctor_profile_model.dart';
import 'package:doctor_app_flutter/models/patient/get_clinic_by_project_id_request.dart';
@@ -233,18 +234,18 @@ class PatientReferralService extends LookupService {
);
}
- Future responseReferral(PendingReferral pendingReferral, bool isAccepted) async {
+ Future responseReferral(MyReferralPatientModel referralPatient, bool isAccepted) async {
hasError = false;
DoctorProfileModel? doctorProfile = await getDoctorProfile();
Map body = Map();
- body['PatientMRN'] = pendingReferral.patientID;
- body['AppointmentNo'] = pendingReferral.targetAppointmentNo;
- body['SetupID'] = pendingReferral.targetSetupID;
- body['ProjectID'] = pendingReferral.targetProjectId;
+ body['PatientMRN'] = referralPatient.patientID;
+ body['AppointmentNo'] = referralPatient.targetAppointmentNo;
+ body['SetupID'] = referralPatient.targetSetupID;
+ body['ProjectID'] = referralPatient.targetProjectId;
body['IsAccepted'] = isAccepted;
- body['PatientName'] = pendingReferral.patientName;
- body['ReferralResponse'] = pendingReferral.remarksFromSource;
+ body['PatientName'] = referralPatient.patientName;
+ body['ReferralResponse'] = referralPatient.remarksFromSource;
body['DoctorName'] = doctorProfile!.doctorName;
await baseAppClient.post(
diff --git a/lib/core/service/patient/patientInPatientService.dart b/lib/core/service/patient/patientInPatientService.dart
index 8648a0cc..32b27ae1 100644
--- a/lib/core/service/patient/patientInPatientService.dart
+++ b/lib/core/service/patient/patientInPatientService.dart
@@ -9,7 +9,7 @@ class PatientInPatientService extends BaseService {
Future getInPatientList(PatientSearchRequestModel requestModel, bool isMyInpatient) async {
hasError = false;
- await getDoctorProfile();
+ await getDoctorProfile(isGetProfile: true);
if (isMyInpatient) {
requestModel.doctorID = doctorProfile!.doctorID;
diff --git a/lib/core/service/patient/patient_service.dart b/lib/core/service/patient/patient_service.dart
index 3d97ae10..0e05c628 100644
--- a/lib/core/service/patient/patient_service.dart
+++ b/lib/core/service/patient/patient_service.dart
@@ -1,7 +1,13 @@
import 'package:doctor_app_flutter/client/base_app_client.dart';
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
+import 'package:doctor_app_flutter/core/model/diabetic_chart/GetDiabeticChartValuesRequestModel.dart';
+import 'package:doctor_app_flutter/core/model/diabetic_chart/GetDiabeticChartValuesResponseModel.dart';
+import 'package:doctor_app_flutter/core/model/diagnosis/GetDiagnosisForInPatientRequestModel.dart';
+import 'package:doctor_app_flutter/core/model/diagnosis/GetDiagnosisForInPatientResponseModel.dart';
import 'package:doctor_app_flutter/core/model/note/CreateNoteModel.dart';
+import 'package:doctor_app_flutter/core/model/note/GetNursingProgressNoteRequestModel.dart';
+import 'package:doctor_app_flutter/core/model/note/GetNursingProgressNoteResposeModel.dart';
import 'package:doctor_app_flutter/core/model/note/note_model.dart';
import 'package:doctor_app_flutter/core/model/note/update_note_model.dart';
import 'package:doctor_app_flutter/core/model/patient_muse/PatientSearchRequestModel.dart';
@@ -51,11 +57,21 @@ class PatientService extends BaseService {
List get labResultList => _labResultList;
- // TODO: replace var with model
List _patientProgressNoteList = [];
List get patientProgressNoteList => _patientProgressNoteList;
+ List _patientNursingProgressNoteList = [];
+
+ List get patientNursingProgressNoteList => _patientNursingProgressNoteList;
+
+ List _diagnosisForInPatientList = [];
+
+ List get diagnosisForInPatientList => _diagnosisForInPatientList;
+ List _diabeticChartValuesList = [];
+
+ List get diabeticChartValuesList => _diabeticChartValuesList;
+
// TODO: replace var with model
var _insuranceApporvalsList = [];
@@ -465,4 +481,63 @@ class PatientService extends BaseService {
body: _doctorsByClinicIdRequest.toJson(),
);
}
+
+
+ Future getNursingProgressNote(GetNursingProgressNoteRequestModel getNursingProgressNoteRequestModel) async {
+ hasError = false;
+
+ await baseAppClient.post(
+ NURSING_PROGRESS_NOTE,
+ onSuccess: (dynamic response, int statusCode) {
+ _patientNursingProgressNoteList = [];
+ response['List_NursingProgressNote'].forEach((v) {
+ _patientNursingProgressNoteList.add( GetNursingProgressNoteResposeModel.fromJson(v));
+ });
+ },
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ },
+ body: getNursingProgressNoteRequestModel.toJson(),
+ );
+ }
+
+ Future getDiagnosisForInPatient(GetDiagnosisForInPatientRequestModel getDiagnosisForInPatientRequestModel) async {
+ hasError = false;
+
+ await baseAppClient.post(
+ GET_DIAGNOSIS_FOR_IN_PATIENT,
+ onSuccess: (dynamic response, int statusCode) {
+ _diagnosisForInPatientList = [];
+ response['List_DiagnosisForInPatient'].forEach((v) {
+ _diagnosisForInPatientList.add( GetDiagnosisForInPatientResponseModel.fromJson(v));
+ });
+ },
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ },
+ body: getDiagnosisForInPatientRequestModel.toJson(),
+ );
+ }
+
+
+ Future getDiabeticChartValues(GetDiabeticChartValuesRequestModel getDiabeticChartValuesRequestModel) async {
+ hasError = false;
+
+ await baseAppClient.post(
+ GET_DIABETIC_CHART_VALUES,
+ onSuccess: (dynamic response, int statusCode) {
+ _diabeticChartValuesList = [];
+ response['List_DiabeticChartValues'].forEach((v) {
+ _diabeticChartValuesList.add( GetDiabeticChartValuesResponseModel.fromJson(v));
+ });
+ },
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ },
+ body: getDiabeticChartValuesRequestModel.toJson(),
+ );
+ }
}
diff --git a/lib/core/service/patient/profile/discharge_summary_servive.dart b/lib/core/service/patient/profile/discharge_summary_servive.dart
new file mode 100644
index 00000000..daea1b42
--- /dev/null
+++ b/lib/core/service/patient/profile/discharge_summary_servive.dart
@@ -0,0 +1,32 @@
+import 'package:doctor_app_flutter/config/config.dart';
+import 'package:doctor_app_flutter/core/service/base/base_service.dart';
+import 'package:doctor_app_flutter/models/discharge_summary/GetDischargeSummaryReqModel.dart';
+import 'package:doctor_app_flutter/models/discharge_summary/GetDischargeSummaryResModel.dart';
+import 'package:doctor_app_flutter/models/operation_report/create_update_operation_report_request_model.dart';
+import 'package:doctor_app_flutter/models/operation_report/get_operation_details_request_modle.dart';
+import 'package:doctor_app_flutter/models/operation_report/get_operation_details_response_modle.dart';
+import 'package:doctor_app_flutter/models/operation_report/get_reservations_response_model.dart';
+import 'package:doctor_app_flutter/models/operation_report/get_reservations_request_model.dart';
+
+class DischargeSummaryService extends BaseService {
+ List _pendingDischargeSummaryList = [];
+ List get pendingDischargeSummaryList => _pendingDischargeSummaryList;
+
+ Future getPendingDischargeSummary(
+ {GetDischargeSummaryReqModel getDischargeSummaryReqModel}) async {
+
+ hasError = false;
+ await baseAppClient.post(GET_PENDING_DISCHARGE_SUMMARY,
+ onSuccess: (dynamic response, int statusCode) {
+ _pendingDischargeSummaryList.clear();
+ response['List_PendingDischargeSummary'].forEach(
+ (v) {
+ _pendingDischargeSummaryList.add(GetDischargeSummaryResModel.fromJson(v));
+ },
+ );
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: getDischargeSummaryReqModel.toJson());
+ }
+}
diff --git a/lib/core/service/patient/profile/operation_report_servive.dart b/lib/core/service/patient/profile/operation_report_servive.dart
new file mode 100644
index 00000000..7ac4ade7
--- /dev/null
+++ b/lib/core/service/patient/profile/operation_report_servive.dart
@@ -0,0 +1,68 @@
+import 'package:doctor_app_flutter/config/config.dart';
+import 'package:doctor_app_flutter/core/service/base/base_service.dart';
+import 'package:doctor_app_flutter/models/operation_report/create_update_operation_report_request_model.dart';
+import 'package:doctor_app_flutter/models/operation_report/get_operation_details_request_modle.dart';
+import 'package:doctor_app_flutter/models/operation_report/get_operation_details_response_modle.dart';
+import 'package:doctor_app_flutter/models/operation_report/get_reservations_response_model.dart';
+import 'package:doctor_app_flutter/models/operation_report/get_reservations_request_model.dart';
+
+class OperationReportService extends BaseService {
+ List _reservationList = [];
+ List get reservationList => _reservationList;
+
+ List _operationDetailsList = [];
+ List get operationDetailsList => _operationDetailsList;
+
+ Future getReservations(
+ {GetReservationsRequestModel getReservationsRequestModel,
+ int patientId}) async {
+ getReservationsRequestModel =
+ GetReservationsRequestModel(patientID: patientId, doctorID: "");
+
+ hasError = false;
+ await baseAppClient.post(GET_RESERVATIONS,
+ onSuccess: (dynamic response, int statusCode) {
+ print("Success");
+ _reservationList.clear();
+ response['List_OTReservationDetails'].forEach(
+ (v) {
+ _reservationList.add(GetReservationsResponseModel.fromJson(v));
+ },
+ );
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: getReservationsRequestModel.toJson());
+ }
+
+ Future getOperationReportDetails(
+ {GetOperationDetailsRequestModel getOperationReportRequestModel,
+ }) async {
+
+ hasError = false;
+ await baseAppClient.post(GET_OPERATION_DETAILS,
+ onSuccess: (dynamic response, int statusCode) {
+ print("Success");
+ _operationDetailsList.clear();
+ response['List_OperationDetails'].forEach(
+ (v) {
+ _operationDetailsList.add(GetOperationDetailsResponseModel.fromJson(v));
+ },
+ );
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: getOperationReportRequestModel.toJson());
+ }
+
+ Future updateOperationReport(
+ CreateUpdateOperationReportRequestModel
+ createUpdateOperationReport) async {
+ await baseAppClient.post(UPDATE_OPERATION_REPORT,
+ onSuccess: (dynamic response, int statusCode) {},
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: createUpdateOperationReport.toJson(), isFallLanguage: true);
+ }
+}
diff --git a/lib/core/service/patient_medical_file/lab_order/labs_service.dart b/lib/core/service/patient_medical_file/lab_order/labs_service.dart
index 4b7a2459..1fe088c0 100644
--- a/lib/core/service/patient_medical_file/lab_order/labs_service.dart
+++ b/lib/core/service/patient_medical_file/lab_order/labs_service.dart
@@ -1,5 +1,8 @@
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/core/model/labs/LabOrderResult.dart';
+import 'package:doctor_app_flutter/core/model/labs/LabResultHistory.dart';
+import 'package:doctor_app_flutter/core/model/labs/all_special_lab_result_model.dart';
+import 'package:doctor_app_flutter/core/model/labs/all_special_lab_result_request.dart';
import 'package:doctor_app_flutter/core/model/labs/lab_result.dart';
import 'package:doctor_app_flutter/core/model/labs/patient_lab_orders.dart';
import 'package:doctor_app_flutter/core/model/labs/patient_lab_special_result.dart';
@@ -11,6 +14,10 @@ import '../../base/base_service.dart';
class LabsService extends BaseService {
List patientLabOrdersList = [];
+ List _allSpecialLab = [];
+ List get allSpecialLab => _allSpecialLab;
+
+ AllSpecialLabResultRequestModel _allSpecialLabResultRequestModel = AllSpecialLabResultRequestModel();
Future getPatientLabOrdersList(PatiantInformtion patient, bool isInpatient) async {
hasError = false;
@@ -49,6 +56,7 @@ class LabsService extends BaseService {
List patientLabSpecialResult = [];
List labResultList = [];
List labOrdersResultsList = [];
+ List labOrdersResultHistoryList = [];
Future getLaboratoryResult(
{String? projectID,
@@ -169,4 +177,46 @@ class LabsService extends BaseService {
// super.error = error;
// }, body: _requestSendLabReportEmail.toJson());
}
+
+ Future getPatientLabOrdersResultHistoryByDescription(
+ {PatientLabOrders patientLabOrder, String procedureDescription, PatiantInformtion patient}) async {
+ hasError = false;
+ Map body = Map();
+ if (patientLabOrder != null) {
+ body['SetupID'] = patientLabOrder.setupID;
+ body['ProjectID'] = 0;
+ body['ClinicID'] = 0;
+ }
+ body['isDentalAllowedBackend'] = false;
+ body['ProcedureDescription'] = procedureDescription;
+ await baseAppClient.postPatient(GET_PATIENT_LAB_ORDERS_RESULT_HISTORY_BY_DESCRIPTION, patient: patient,
+ onSuccess: (dynamic response, int statusCode) {
+ labOrdersResultHistoryList.clear();
+ response['ListGeneralResultHistory'].forEach((lab) {
+ labOrdersResultHistoryList.add(LabResultHistory.fromJson(lab));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
+ Future getAllSpecialLabResult({int mrn}) async {
+ _allSpecialLabResultRequestModel = AllSpecialLabResultRequestModel(
+ patientID: mrn,
+ patientType: 1,
+ patientTypeID: 1,
+ );
+ hasError = false;
+ _allSpecialLab.clear();
+ await baseAppClient.post(ALL_SPECIAL_LAB_RESULT, onSuccess: (dynamic response, int statusCode) {
+ response['ListPLSRALL'].forEach((lab) {
+ var labs = AllSpecialLabResultModel.fromJson(lab);
+ if (labs.invoiceNo != "0") _allSpecialLab.add(AllSpecialLabResultModel.fromJson(lab));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: _allSpecialLabResultRequestModel.toJson());
+ }
}
diff --git a/lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart b/lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart
index 14139715..98536476 100644
--- a/lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart
+++ b/lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart
@@ -15,14 +15,15 @@ class PatientMedicalReportService extends BaseService {
body['AdmissionNo'] = patient.admissionNo;
body['SetupID'] = doctorProfile!.setupID;
body['ProjectID'] = doctorProfile!.projectID;
-
+ medicalReportList = [];
await baseAppClient.postPatient(PATIENT_MEDICAL_REPORT_GET_LIST, onSuccess: (dynamic response, int statusCode) {
- medicalReportList.clear();
+
if (response['DAPP_ListMedicalReportList'] != null) {
response['DAPP_ListMedicalReportList'].forEach((v) {
medicalReportList.add(MedicalReportModel.fromJson(v));
});
}
+ medicalReportList = medicalReportList.reversed.toList();
}, onFailure: (String error, int statusCode) {
hasError = true;
super.error = error.toString();
@@ -72,6 +73,10 @@ class PatientMedicalReportService extends BaseService {
body['AdmissionNo'] = patient.admissionNo;
body['InvoiceNo'] = medicalReport.invoiceNo;
body['LineItemNo'] = medicalReport.lineItemNo;
+ if (body['ProjectID'] == null) {
+ body['ProjectID'] = doctorProfile?.projectID;
+ }
+ if (body['DoctorID'] == null) body['DoctorID'] = doctorProfile?.doctorID;
await baseAppClient.postPatient(PATIENT_MEDICAL_REPORT_VERIFIED, onSuccess: (dynamic response, int statusCode) {},
onFailure: (String error, int statusCode) {
@@ -79,4 +84,54 @@ class PatientMedicalReportService extends BaseService {
super.error = error.toString();
}, body: body, patient: patient);
}
+
+ Future addMedicalReport(PatiantInformtion patient, String htmlText) async {
+ hasError = false;
+ Map body = Map();
+ // body['TokenID'] = "@dm!n";
+ body['SetupID'] = body.containsKey('SetupID')
+ ? body['SetupID'] != null
+ ? body['SetupID']
+ : SETUP_ID
+ : SETUP_ID;
+ body['AdmissionNo'] = int.parse(patient.admissionNo);
+ body['MedicalReportHTML'] = htmlText;
+ if (body['ProjectID'] == null) {
+ body['ProjectID'] = doctorProfile?.projectID;
+ }
+ if (body['DoctorID'] == null) body['DoctorID'] = doctorProfile?.doctorID;
+
+ await baseAppClient.postPatient(INSERT_MEDICAL_REPORT, onSuccess: (dynamic response, int statusCode) {},
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error.toString();
+ }, body: body, patient: patient);
+ }
+
+ Future updateMedicalReport(PatiantInformtion patient, String htmlText, int limitNumber, String invoiceNumber) async {
+ hasError = false;
+ Map body = Map();
+ // body['TokenID'] = "@dm!n";
+
+ body['LineItemNo'] = limitNumber;
+ body['InvoiceNo'] = invoiceNumber;
+
+ body['SetupID'] = body.containsKey('SetupID')
+ ? body['SetupID'] != null
+ ? body['SetupID']
+ : SETUP_ID
+ : SETUP_ID;
+ //body['AdmissionNo'] = int.parse(patient.admissionNo);
+ body['MedicalReportHTML'] = htmlText;
+ if (body['ProjectID'] == null) {
+ body['ProjectID'] = doctorProfile?.projectID;
+ }
+ if (body['DoctorID'] == null) body['DoctorID'] = doctorProfile?.doctorID;
+
+ await baseAppClient.postPatient(UPDATE_MEDICAL_REPORT, onSuccess: (dynamic response, int statusCode) {},
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error.toString();
+ }, body: body, patient: patient);
+ }
}
diff --git a/lib/core/service/patient_medical_file/prescription/prescriptions_service.dart b/lib/core/service/patient_medical_file/prescription/prescriptions_service.dart
index 22e5044d..55ab7a89 100644
--- a/lib/core/service/patient_medical_file/prescription/prescriptions_service.dart
+++ b/lib/core/service/patient_medical_file/prescription/prescriptions_service.dart
@@ -1,5 +1,7 @@
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/core/model/Prescriptions/Prescriptions.dart';
+import 'package:doctor_app_flutter/core/model/Prescriptions/get_medication_for_inpatient_model.dart';
+import 'package:doctor_app_flutter/core/model/Prescriptions/get_medication_for_inpatient_request_model.dart';
import 'package:doctor_app_flutter/core/model/Prescriptions/in_patient_prescription_model.dart';
import 'package:doctor_app_flutter/core/model/Prescriptions/perscription_pharmacy.dart';
import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_in_patient.dart';
@@ -16,10 +18,13 @@ import '../../base/base_service.dart';
class PrescriptionsService extends BaseService {
List prescriptionsList = [];
+ List medicationForInPatient = [];
List prescriptionsOrderList = [];
List prescriptionInPatientList = [];
InPatientPrescriptionRequestModel _inPatientPrescriptionRequestModel = InPatientPrescriptionRequestModel();
+ GetMedicationForInPatientRequestModel _getMedicationForInPatientRequestModel =
+ GetMedicationForInPatientRequestModel();
Future getPrescriptionInPatient({int? mrn, String? adn}) async {
_inPatientPrescriptionRequestModel = InPatientPrescriptionRequestModel(
@@ -100,8 +105,7 @@ class PrescriptionsService extends BaseService {
Future getListPharmacyForPrescriptions({int? itemId, @required PatiantInformtion? patient}) async {
hasError = false;
requestGetListPharmacyForPrescriptions.itemID = itemId;
- await baseAppClient.postPatient(GET_PHARMACY_LIST, patient: patient!,
- onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.postPatient(GET_PHARMACY_LIST, patient: patient!, onSuccess: (dynamic response, int statusCode) {
pharmacyPrescriptionsList.clear();
response['PharmList'].forEach((prescriptions) {
pharmacyPrescriptionsList.add(PharmacyPrescriptions.fromJson(prescriptions));
@@ -118,8 +122,7 @@ class PrescriptionsService extends BaseService {
List prescriptionReportEnhList = [];
- Future getPrescriptionReportEnh(
- {PrescriptionsOrder? prescriptionsOrder, @required PatiantInformtion? patient}) async {
+ Future getPrescriptionReportEnh({PrescriptionsOrder? prescriptionsOrder, @required PatiantInformtion? patient}) async {
///This logic copy from the old app from class [order-history.component.ts] in line 45
bool isInPatient = false;
prescriptionsList.forEach((element) {
@@ -184,4 +187,24 @@ class PrescriptionsService extends BaseService {
super.error = error;
}, body: body);
}
+
+ Future getMedicationForInPatient(PatiantInformtion patient) async {
+ hasError = false;
+ _getMedicationForInPatientRequestModel = GetMedicationForInPatientRequestModel(
+ isDentalAllowedBackend: false,
+ admissionNo: int.parse(patient.admissionNo),
+ tokenID: "@dm!n",
+ projectID: patient.projectId,
+ );
+ await baseAppClient.postPatient(GET_MEDICATION_FOR_IN_PATIENT, patient: patient,
+ onSuccess: (dynamic response, int statusCode) {
+ medicationForInPatient.clear();
+ response['List_GetMedicationForInpatient'].forEach((prescriptions) {
+ medicationForInPatient.add(GetMedicationForInPatientModel.fromJson(prescriptions));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: _getMedicationForInPatientRequestModel.toJson());
+ }
}
diff --git a/lib/core/service/patient_medical_file/procedure/procedure_service.dart b/lib/core/service/patient_medical_file/procedure/procedure_service.dart
index 936eacd7..576c593d 100644
--- a/lib/core/service/patient_medical_file/procedure/procedure_service.dart
+++ b/lib/core/service/patient_medical_file/procedure/procedure_service.dart
@@ -104,8 +104,10 @@ class ProcedureService extends BaseService {
}, body: _procedureTempleteDetailsRequestModel.toJson());
}
- Future getProcedure({int? mrn}) async {
- _getOrderedProcedureRequestModel = GetOrderedProcedureRequestModel(patientMRN: mrn);
+ Future getProcedure({int? mrn, int appointmentNo}) async {
+ _getOrderedProcedureRequestModel = GetOrderedProcedureRequestModel(
+ patientMRN: mrn,
+ );
hasError = false;
_procedureList.clear();
await baseAppClient.post(GET_PROCEDURE_LIST, onSuccess: (dynamic response, int statusCode) {
diff --git a/lib/core/service/patient_medical_file/radiology/radiology_service.dart b/lib/core/service/patient_medical_file/radiology/radiology_service.dart
index 63dcd188..7ebbd348 100644
--- a/lib/core/service/patient_medical_file/radiology/radiology_service.dart
+++ b/lib/core/service/patient_medical_file/radiology/radiology_service.dart
@@ -16,8 +16,7 @@ class RadiologyService extends BaseService {
body['LineItemNo'] = lineItem;
body['ProjectID'] = projectId;
- await baseAppClient.postPatient(GET_RAD_IMAGE_URL, patient: patient!,
- onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.postPatient(GET_RAD_IMAGE_URL, patient: patient!, onSuccess: (dynamic response, int statusCode) {
url = response['Data'];
}, onFailure: (String error, int statusCode) {
hasError = true;
@@ -32,7 +31,7 @@ class RadiologyService extends BaseService {
url = GET_IN_PATIENT_ORDERS;
body['ProjectID'] = patient.projectId;
}
-
+ finalRadiologyList.clear();
hasError = false;
await baseAppClient.postPatient(url, patient: patient, onSuccess: (dynamic response, int statusCode) {
finalRadiologyList = [];
@@ -40,7 +39,7 @@ class RadiologyService extends BaseService {
if (isInPatient) {
label = "List_GetRadOreders";
}
- if(response[label] == null || response[label].length == 0){
+ if (response[label] == null || response[label].length == 0) {
label = "FinalRadiologyList";
}
response[label].forEach((radiology) {
diff --git a/lib/core/service/patient_medical_file/sick_leave/sickleave_service.dart b/lib/core/service/patient_medical_file/sick_leave/sickleave_service.dart
index 0294c3e7..6efeba18 100644
--- a/lib/core/service/patient_medical_file/sick_leave/sickleave_service.dart
+++ b/lib/core/service/patient_medical_file/sick_leave/sickleave_service.dart
@@ -1,4 +1,5 @@
import 'package:doctor_app_flutter/config/config.dart';
+import 'package:doctor_app_flutter/core/model/sick_leave/sick_leave_doctor_request_model.dart';
import 'package:doctor_app_flutter/core/model/sick_leave/sick_leave_patient_model.dart';
import 'package:doctor_app_flutter/core/model/sick_leave/sick_leave_patient_request_model.dart';
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
@@ -6,11 +7,12 @@ import 'package:doctor_app_flutter/core/viewModel/leave_rechdule_response.dart';
import 'package:doctor_app_flutter/models/sickleave/add_sickleave_request.dart';
import 'package:doctor_app_flutter/models/sickleave/extend_sick_leave_request.dart';
import 'package:doctor_app_flutter/models/sickleave/get_all_sickleave_response.dart';
+import 'package:doctor_app_flutter/models/sickleave/sick_leave_statisitics_model.dart';
import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart';
class SickLeaveService extends BaseService {
- Map get sickLeavestatisitics => _statistics;
- Map _statistics = {};
+ SickLeaveStatisticsModel get sickLeavestatisitics => _statistics;
+ SickLeaveStatisticsModel _statistics = SickLeaveStatisticsModel();
List get getOffTimeList => offTime;
List offTime = [];
List get getReasons => reasonse;
@@ -26,12 +28,12 @@ class SickLeaveService extends BaseService {
dynamic get postReschedule => _postReschedule;
dynamic _postReschedule;
- dynamic get sickLeaveResponse => _sickLeaveResponse;
- dynamic _sickLeaveResponse;
List getAllSickLeavePatient = [];
+ List getAllSickLeaveDoctor = [];
SickLeavePatientRequestModel _sickLeavePatientRequestModel = SickLeavePatientRequestModel();
+ GetSickLeaveDoctorRequestModel _sickLeaveDoctorRequestModel = GetSickLeaveDoctorRequestModel();
Future getStatistics(appoNo, patientMRN) async {
hasError = false;
@@ -39,8 +41,8 @@ class SickLeaveService extends BaseService {
GET_SICKLEAVE_STATISTIC,
onSuccess: (dynamic response, int statusCode) {
print(response);
- _statistics = {};
- _statistics = response['SickLeaveStatistics'];
+
+ _statistics = SickLeaveStatisticsModel.fromJson(response['SickLeaveStatistics']);
},
onFailure: (String error, int statusCode) {
hasError = true;
@@ -51,14 +53,10 @@ class SickLeaveService extends BaseService {
}
Future addSickLeave(AddSickLeaveRequest addSickLeaveRequest) async {
- // addSickLeaveRequest.appointmentNo = '2016054661';
- // addSickLeaveRequest.patientMRN = '3120746';
hasError = false;
await baseAppClient.post(
ADD_SICK_LEAVE,
onSuccess: (dynamic response, int statusCode) {
- _sickLeaveResponse = response;
- return Future.value(response);
},
onFailure: (String error, int statusCode) {
hasError = true;
@@ -78,7 +76,6 @@ class SickLeaveService extends BaseService {
await baseAppClient.post(
EXTEND_SICK_LEAVE,
onSuccess: (dynamic response, int statusCode) {
- _sickLeaveResponse = response;
return Future.value(response);
},
onFailure: (String error, int statusCode) {
@@ -132,6 +129,28 @@ class SickLeaveService extends BaseService {
);
}
+ Future getSickLeaveDoctor(patientMRN) async {
+ _sickLeaveDoctorRequestModel = GetSickLeaveDoctorRequestModel(patientMRN: patientMRN);
+ hasError = false;
+ getAllSickLeaveDoctor = [];
+ getAllSickLeaveDoctor.clear();
+ await baseAppClient.post(
+ GET_SICK_LEAVE_DOCTOR_APP,
+ onSuccess: (dynamic response, int statusCode) {
+ Future.value(response);
+ getAllSickLeaveDoctor.clear();
+ response['SickLeavesList']['entityList'].forEach((v) {
+ getAllSickLeaveDoctor.add(SickLeavePatientModel.fromJson(v));
+ });
+ },
+ onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ },
+ body: _sickLeaveDoctorRequestModel.toJson(),
+ );
+ }
+
Future getRescheduleLeave() async {
hasError = false;
await baseAppClient.post(
diff --git a/lib/core/service/patient_medical_file/soap/SOAP_service.dart b/lib/core/service/patient_medical_file/soap/SOAP_service.dart
index 588dd904..d206de77 100644
--- a/lib/core/service/patient_medical_file/soap/SOAP_service.dart
+++ b/lib/core/service/patient_medical_file/soap/SOAP_service.dart
@@ -14,6 +14,8 @@ import 'package:doctor_app_flutter/models/SOAP/GetPhysicalExamReqModel.dart';
import 'package:doctor_app_flutter/models/SOAP/PatchAssessmentReqModel.dart';
import 'package:doctor_app_flutter/models/SOAP/PostEpisodeReqModel.dart';
import 'package:doctor_app_flutter/models/SOAP/get_Allergies_request_model.dart';
+import 'package:doctor_app_flutter/models/SOAP/in_patient/GetEpisodeForInpatientReqModel.dart';
+import 'package:doctor_app_flutter/models/SOAP/in_patient/PostEpisodeForInpatientRequestModel.dart';
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
import 'package:doctor_app_flutter/models/SOAP/post_allergy_request_model.dart';
import 'package:doctor_app_flutter/models/SOAP/post_assessment_request_model.dart';
@@ -62,6 +64,18 @@ class SOAPService extends LookupService {
}, body: postEpisodeReqModel.toJson());
}
+ Future postEpisodeForInPatient(PostEpisodeForInpatientRequestModel postEpisodeForInpatientRequestModel) async {
+ hasError = false;
+
+ await baseAppClient.post(POST_EPISODE_FOR_IN_PATIENT,
+ onSuccess: (dynamic response, int statusCode) {
+ episodeID = response['EpisodeID'];
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: postEpisodeForInpatientRequestModel.toJson());
+ }
+
Future postAllergy(PostAllergyRequestModel postAllergyRequestModel) async {
hasError = false;
@@ -69,7 +83,7 @@ class SOAPService extends LookupService {
print("Success");
}, onFailure: (String error, int statusCode) {
hasError = true;
- super.error = error;
+ super.error = super.error+ "\n"+error;
}, body: postAllergyRequestModel.toJson());
}
@@ -79,12 +93,13 @@ class SOAPService extends LookupService {
print("Success");
}, onFailure: (String error, int statusCode) {
hasError = true;
- super.error = error;
+ super.error =super.error + "\n"+error;
}, body: postHistoriesRequestModel.toJson());
}
Future postChiefComplaint(PostChiefComplaintRequestModel postChiefComplaintRequestModel) async {
hasError = false;
+ super.error ="";
await baseAppClient.post(POST_CHIEF_COMPLAINT, onSuccess: (dynamic response, int statusCode) {
print("Success");
}, onFailure: (String error, int statusCode) {
@@ -130,7 +145,7 @@ class SOAPService extends LookupService {
print("Success");
}, onFailure: (String error, int statusCode) {
hasError = true;
- super.error = error;
+ super.error = "\n"+error;
}, body: patchAllergyRequestModel.toJson());
}
@@ -140,12 +155,13 @@ class SOAPService extends LookupService {
print("Success");
}, onFailure: (String error, int statusCode) {
hasError = true;
- super.error = error;
+ super.error = super.error +"\n"+error;
}, body: patchHistoriesRequestModel.toJson());
}
Future patchChiefComplaint(PostChiefComplaintRequestModel patchChiefComplaintRequestModel) async {
hasError = false;
+ super.error ="";
await baseAppClient.post(PATCH_CHIEF_COMPLAINT, onSuccess: (dynamic response, int statusCode) {
print("Success");
}, onFailure: (String error, int statusCode) {
@@ -268,4 +284,19 @@ class SOAPService extends LookupService {
super.error = error;
}, body: getAssessmentReqModel.toJson());
}
+
+ Future getEpisodeForInpatient(
+ GetEpisodeForInpatientReqModel getEpisodeForInpatientReqModel) async {
+ hasError = false;
+ await baseAppClient.post(GET_EPISODE_FOR_INPATIENT,
+ onSuccess: (dynamic response, int statusCode) {
+ print("Success");
+
+ episodeID = response["GetEpisodeNo"];
+
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: getEpisodeForInpatientReqModel.toJson());
+ }
}
diff --git a/lib/core/service/patient_medical_file/ucaf/patient-ucaf-service.dart b/lib/core/service/patient_medical_file/ucaf/patient-ucaf-service.dart
index 84162053..535a5b49 100644
--- a/lib/core/service/patient_medical_file/ucaf/patient-ucaf-service.dart
+++ b/lib/core/service/patient_medical_file/ucaf/patient-ucaf-service.dart
@@ -8,8 +8,8 @@ import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
import 'package:doctor_app_flutter/models/patient/vital_sign/patient-vital-sign-history.dart';
class UcafService extends LookupService {
- List patientChiefComplaintList = [];
- List patientVitalSignsHistory = [];
+ List patientChiefComplaintList;
+ List patientVitalSignsHistory;
List patientAssessmentList = [];
List orderProcedureList = [];
PrescriptionModel? prescriptionList;
@@ -22,9 +22,14 @@ class UcafService extends LookupService {
body['EpisodeID'] = patient.episodeNo;
body['DoctorID'] = "";
+ patientChiefComplaintList = null;
await baseAppClient.post(GET_CHIEF_COMPLAINT, onSuccess: (dynamic response, int statusCode) {
print("Success");
- patientChiefComplaintList.clear();
+ if (patientChiefComplaintList != null) {
+ patientChiefComplaintList.clear();
+ } else {
+ patientChiefComplaintList = new List();
+ }
response['List_ChiefComplaint']['entityList'].forEach((v) {
patientChiefComplaintList.add(GetChiefComplaintResModel.fromJson(v));
});
@@ -45,10 +50,15 @@ class UcafService extends LookupService {
body['InOutPatientType'] = 2;
}
+ patientVitalSignsHistory = null;
await baseAppClient.post(
GET_PATIENT_VITAL_SIGN,
onSuccess: (dynamic response, int statusCode) {
- patientVitalSignsHistory.clear();
+ if (patientVitalSignsHistory != null) {
+ patientVitalSignsHistory.clear();
+ } else {
+ patientVitalSignsHistory = new List();
+ }
if (response['List_DoctorPatientVitalSign'] != null) {
response['List_DoctorPatientVitalSign'].forEach((v) {
patientVitalSignsHistory.add(new VitalSignHistory.fromJson(v));
@@ -76,10 +86,15 @@ class UcafService extends LookupService {
body['From'] = fromDate;
body['To'] = toDate;
+ patientVitalSignsHistory = null;
await baseAppClient.post(
GET_PATIENT_VITAL_SIGN_DATA,
onSuccess: (dynamic response, int statusCode) {
- patientVitalSignsHistory.clear();
+ if (patientVitalSignsHistory != null) {
+ patientVitalSignsHistory.clear();
+ } else {
+ patientVitalSignsHistory = new List();
+ }
if (response['VitalSignsHistory'] != null) {
response['VitalSignsHistory'].forEach((v) {
patientVitalSignsHistory.add(new VitalSignHistory.fromJson(v));
diff --git a/lib/core/service/pending_order_service.dart b/lib/core/service/pending_order_service.dart
new file mode 100644
index 00000000..f0bcf5e9
--- /dev/null
+++ b/lib/core/service/pending_order_service.dart
@@ -0,0 +1,68 @@
+import 'package:doctor_app_flutter/config/config.dart';
+import 'package:doctor_app_flutter/core/service/base/base_service.dart';
+import 'package:doctor_app_flutter/models/admisson_orders/admission_orders_model.dart';
+import 'package:doctor_app_flutter/models/admisson_orders/admission_orders_request_model.dart';
+import 'package:doctor_app_flutter/models/pending_orders/pending_order_request_model.dart';
+import 'package:doctor_app_flutter/models/pending_orders/pending_orders_model.dart';
+
+class PendingOrderService extends BaseService {
+ List _pendingOrderList = [];
+ List get pendingOrderList => _pendingOrderList;
+
+ List _admissionOrderList = [];
+ List get admissionOrderList => _admissionOrderList;
+
+ Future getPendingOrders(
+ {PendingOrderRequestModel pendingOrderRequestModel,
+ int patientId,
+ int admissionNo}) async {
+ pendingOrderRequestModel = PendingOrderRequestModel(
+ patientID: patientId,
+ admissionNo: admissionNo,
+ patientTypeID: 1,
+ patientType: 1,
+ setupID: "010266");
+
+ hasError = false;
+ await baseAppClient.post(GET_PENDING_ORDERS,
+ onSuccess: (dynamic response, int statusCode) {
+ print("Success");
+ _pendingOrderList.clear();
+ response['List_PendingOrders'].forEach(
+ (v) {
+ _pendingOrderList.add(PendingOrderModel.fromJson(v));
+ },
+ );
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: pendingOrderRequestModel.toJson());
+ }
+
+ Future getAdmissionOrders(
+ {AdmissionOrdersRequestModel admissionOrdersRequestModel,
+ int patientId,
+ int admissionNo}) async {
+ admissionOrdersRequestModel = AdmissionOrdersRequestModel(
+ patientID: patientId,
+ admissionNo: admissionNo,
+ patientTypeID: 1,
+ patientType: 1,
+ setupID: "010266");
+
+ hasError = false;
+ await baseAppClient.post(GET_ADMISSION_ORDERS,
+ onSuccess: (dynamic response, int statusCode) {
+ print("Success");
+ //admissionOrderList.clear();
+ response['List_AdmissionOrders'].forEach(
+ (v) {
+ _admissionOrderList.add(AdmissionOrdersModel.fromJson(v));
+ },
+ );
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: admissionOrdersRequestModel.toJson());
+ }
+}
diff --git a/lib/core/viewModel/LiveCarePatientViewModel.dart b/lib/core/viewModel/LiveCarePatientViewModel.dart
index 356a3826..e7dc0a92 100644
--- a/lib/core/viewModel/LiveCarePatientViewModel.dart
+++ b/lib/core/viewModel/LiveCarePatientViewModel.dart
@@ -20,8 +20,7 @@ class LiveCarePatientViewModel extends BaseViewModel {
StartCallRes get startCallRes => _liveCarePatientServices.startCallRes;
- List get alternativeServicesList =>
- _liveCarePatientServices.alternativeServicesList;
+ List get alternativeServicesList => _liveCarePatientServices.alternativeServicesList;
DashboardService _dashboardService = locator();
@@ -106,8 +105,7 @@ class LiveCarePatientViewModel extends BaseViewModel {
selectedServices = getSelectedAlternativeServices();
}
- await _liveCarePatientServices.endCallWithCharge(
- vcID, selectedServices);
+ await _liveCarePatientServices.endCallWithCharge(vcID, selectedServices);
if (_liveCarePatientServices.hasError) {
error = _liveCarePatientServices.error!;
setState(ViewState.ErrorLocal);
@@ -209,8 +207,7 @@ class LiveCarePatientViewModel extends BaseViewModel {
AlternativeService(serviceID: 2, serviceName: "LABORATORY"),
);
alternativeServicesList.add(
- AlternativeService(
- serviceID: 3, serviceName: "RADIOLOGY(ULTRASOUND) For pregnant only"),
+ AlternativeService(serviceID: 3, serviceName: "RADIOLOGY(ULTRASOUND) For pregnant only"),
);
alternativeServicesList.add(
AlternativeService(serviceID: 4, serviceName: "VACCINATIONS"),
@@ -231,11 +228,46 @@ class LiveCarePatientViewModel extends BaseViewModel {
AlternativeService(serviceID: 9, serviceName: "FAMILY MEDICIN DR"),
);
alternativeServicesList.add(
- AlternativeService(
- serviceID: 10, serviceName: "FOLYS CATHETER INSERTION"),
+ AlternativeService(serviceID: 10, serviceName: "FOLYS CATHETER INSERTION"),
);
alternativeServicesList.add(
AlternativeService(serviceID: 11, serviceName: "GASTRIC TUBE CHANGE"),
);
}
+
+ updateInCallPatient({PatiantInformtion patient, appointmentNo}) {
+ _liveCarePatientServices.patientList.forEach((e) {
+ if (e.patientId == patient.patientId) {
+ e.episodeNo = 0;
+ e.appointmentNo = appointmentNo;
+ return;
+ }
+ });
+
+ setState(ViewState.Idle);
+ }
+
+ Future addPatientToDoctorList(int vcID) async {
+ await getDoctorProfile(isGetProfile: true);
+ setState(ViewState.BusyLocal);
+ await _liveCarePatientServices.addPatientToDoctorList(vcID: vcID);
+ if (_liveCarePatientServices.hasError) {
+ error = _liveCarePatientServices.error!;
+ setState(ViewState.ErrorLocal);
+ } else {
+ setState(ViewState.Idle);
+ }
+ }
+
+ Future removePatientFromDoctorList(int vcID) async {
+ await getDoctorProfile(isGetProfile: true);
+ setState(ViewState.BusyLocal);
+ await _liveCarePatientServices.removePatientFromDoctorList(vcID: vcID);
+ if (_liveCarePatientServices.hasError) {
+ error = _liveCarePatientServices.error!;
+ setState(ViewState.ErrorLocal);
+ } else {
+ setState(ViewState.Idle);
+ }
+ }
}
diff --git a/lib/core/viewModel/PatientMedicalReportViewModel.dart b/lib/core/viewModel/PatientMedicalReportViewModel.dart
index 31057317..59485e92 100644
--- a/lib/core/viewModel/PatientMedicalReportViewModel.dart
+++ b/lib/core/viewModel/PatientMedicalReportViewModel.dart
@@ -12,8 +12,7 @@ class PatientMedicalReportViewModel extends BaseViewModel {
List get medicalReportList => _service.medicalReportList;
- List get medicalReportTemplate =>
- _service.medicalReportTemplate;
+ List get medicalReportTemplate => _service.medicalReportTemplate;
Future getMedicalReportList(PatiantInformtion patient) async {
setState(ViewState.Busy);
@@ -25,20 +24,8 @@ class PatientMedicalReportViewModel extends BaseViewModel {
setState(ViewState.Idle);
}
- bool hasOnHold(){
- bool hasHold = false;
- medicalReportList.forEach((element) {
- if(element.status == 1){
- hasHold = true;
- }
- });
-
- return hasHold;
-
- }
-
Future getMedicalReportTemplate() async {
- setState(ViewState.BusyLocal);
+ setState(ViewState.Busy);
await _service.getMedicalReportTemplate();
if (_service.hasError) {
error = _service.error!;
@@ -57,14 +44,40 @@ class PatientMedicalReportViewModel extends BaseViewModel {
setState(ViewState.Idle);
}
- Future verifyMedicalReport(
- PatiantInformtion patient, MedicalReportModel medicalReport) async {
+ Future verifyMedicalReport(PatiantInformtion patient, MedicalReportModel medicalReport) async {
setState(ViewState.Busy);
await _service.verifyMedicalReport(patient, medicalReport);
if (_service.hasError) {
error = _service.error!;
setState(ViewState.ErrorLocal);
} else
- setState(ViewState.Idle);
+ await getMedicalReportList(patient);
+ setState(ViewState.Idle);
+ }
+
+ Future addMedicalReport(PatiantInformtion patient, String htmlText) async {
+ setState(ViewState.Busy);
+ await _service.addMedicalReport(patient, htmlText);
+ if (_service.hasError) {
+ error = _service.error!;
+ await getMedicalReportList(patient);
+ setState(ViewState.ErrorLocal);
+ } else
+ { await getMedicalReportList(patient);
+ setState(ViewState.Idle);
+ }
+ }
+
+ Future updateMedicalReport(PatiantInformtion patient, String htmlText, int limitNumber, String invoiceNumber) async {
+ setState(ViewState.Busy);
+ await _service.updateMedicalReport(patient, htmlText, limitNumber, invoiceNumber);
+ if (_service.hasError) {
+ error = _service.error!;
+ await getMedicalReportList(patient);
+ setState(ViewState.ErrorLocal);
+ } else
+ {
+ await getMedicalReportList(patient);
+ setState(ViewState.Idle);}
}
}
diff --git a/lib/core/viewModel/PatientRegistrationViewModel.dart b/lib/core/viewModel/PatientRegistrationViewModel.dart
new file mode 100644
index 00000000..64fdae18
--- /dev/null
+++ b/lib/core/viewModel/PatientRegistrationViewModel.dart
@@ -0,0 +1,209 @@
+import 'package:doctor_app_flutter/config/config.dart';
+import 'package:doctor_app_flutter/core/enum/viewstate.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/CheckActivationCodeModel.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/CheckPatientForRegistrationModel.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/GetPatientInfoRequestModel.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/GetPatientInfoResponseModel.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/PatientRegistrationModel.dart';
+import 'package:doctor_app_flutter/core/model/PatientRegistration/SendActivationCodebyOTPNotificationTypeForRegistrationModel.dart';
+import 'package:doctor_app_flutter/core/service/PatientRegistrationService.dart';
+import 'package:doctor_app_flutter/core/viewModel/base_view_model.dart';
+
+import '../../locator.dart';
+
+class PatientRegistrationViewModel extends BaseViewModel {
+ PatientRegistrationService _patientRegistrationService =
+ locator();
+
+ GetPatientInfoResponseModel get getPatientInfoResponseModel =>
+ _patientRegistrationService.getPatientInfoResponseModel;
+
+ CheckPatientForRegistrationModel checkPatientForRegistrationModel;
+
+ Future checkPatientForRegistration(
+ CheckPatientForRegistrationModel registrationModel) async {
+ checkPatientForRegistrationModel = registrationModel;
+
+ checkPatientForRegistrationModel =
+ CheckPatientForRegistrationModel.fromJson(registrationModel.toJson());
+ setState(ViewState.BusyLocal);
+ await _patientRegistrationService
+ .checkPatientForRegistration(registrationModel);
+ if (_patientRegistrationService.hasError) {
+ error = _patientRegistrationService.error!;
+ setState(ViewState.ErrorLocal);
+ } else
+ setState(ViewState.Idle);
+ }
+
+ Future getPatientInfo(
+ GetPatientInfoRequestModel getPatientInfoRequestModel) async {
+ setState(ViewState.BusyLocal);
+
+ /// TODO Elham* return call service when it working
+ _patientRegistrationService.getPatientInfoResponseModel =
+ GetPatientInfoResponseModel.fromJson({
+ "Date": null,
+ "LanguageID": 0,
+ "ServiceName": 0,
+ "Time": null,
+ "AndroidLink": null,
+ "AuthenticationTokenID": null,
+ "Data": null,
+ "Dataw": false,
+ "DietType": 0,
+ "ErrorCode": null,
+ "ErrorEndUserMessage": null,
+ "ErrorEndUserMessageN": null,
+ "ErrorMessage": null,
+ "ErrorType": 0,
+ "FoodCategory": 0,
+ "IOSLink": null,
+ "IsAuthenticated": false,
+ "MealOrderStatus": 0,
+ "MealType": 0,
+ "MessageStatus": 1,
+ "NumberOfResultRecords": 0,
+ "PatientBlodType": null,
+ "SuccessMsg": null,
+ "SuccessMsgN": null,
+ "VidaUpdatedResponse": null,
+ "AccessTokenObject": null,
+ "Age": 33,
+ "ClientIdentifierId": null,
+ "CreatedBy": 0,
+ "DateOfBirth": "07/31/1988",
+ "FirstNameAr": "سفيان",
+ "FirstNameEn": "SUFIAN",
+ "Gender": "M",
+ "GenderAr": null,
+ "GenderEn": null,
+ "HealthId": "30000018540264",
+ "IdNumber": "1062938285",
+ "IdType": "NationalId",
+ "IsHijri": false,
+ "IsInstertedOrUpdated": 0,
+ "IsNull": 0,
+ "IsPatientExistNHIC": 0,
+ "IsRecordLockedByCurrentUser": false,
+ "LastNameAr": "عثمان",
+ "LastNameEn": "OTHMAN",
+ "List_ActiveAccessToken": null,
+ "MaritalStatus": "غير معروف",
+ "MaritalStatusCode": "U",
+ "NationalDateOfBirth": "18/12/1408",
+ "Nationality": "السعودية",
+ "NationalityCode": "SAU",
+ "Occupation": "طالب",
+ "PCDTransactionDataResultList": null,
+ "PCD_GetVidaPatientForManualVerificationList": null,
+ "PCD_NHIC_HMG_PatientDetailsMatchCalulationList": null,
+ "PCD_ReturnValue": 0,
+ "PatientStatus": "-",
+ "PlaceofBirth": "فينا",
+ "PractitionerStatusCode": null,
+ "PractitionerStatusDescAr": null,
+ "PractitionerStatusDescEn": null,
+ "RowCount": 0,
+ "SecondNameAr": "عبدالهادي",
+ "SecondNameEn": "ABDULHADI",
+ "ThirdNameAr": "احمد",
+ "ThirdNameEn": "A",
+ "YakeenVidaPatientDataStatisticsByPatientIdList": null,
+ "YakeenVidaPatientDataStatisticsList": null,
+ "YakeenVidaPatientDataStatisticsPrefferedList": null,
+ "accessToken": null,
+ "categoryCode": 0,
+ "categoryNameAr": null,
+ "categoryNameEn": null,
+ "constraintCode": 0,
+ "constraintNameAr": null,
+ "constraintNameEn": null,
+ "content": null,
+ "errorList": null,
+ "licenseExpiryDate": null,
+ "licenseIssuedDate": null,
+ "licenseStatusCode": null,
+ "licenseStatusDescAr": null,
+ "licenseStatusDescEn": null,
+ "organizations": null,
+ "registrationNumber": null,
+ "specialtyCode": 0,
+ "specialtyNameAr": null,
+ "specialtyNameEn": null
+ });
+ // await _patientRegistrationService.
+ // getPatientInfo(getPatientInfoRequestModel);
+ // if (_patientRegistrationService.hasError) {
+ // error = _patientRegistrationService.error!;
+ // setState(ViewState.ErrorLocal);
+ // } else
+ setState(ViewState.Idle);
+ }
+
+ Future sendActivationCodeByOTPNotificationType(
+ {SendActivationCodeByOTPNotificationTypeForRegistrationModel
+ registrationModel,
+ int otpType,
+ PatientRegistrationViewModel user}) async {
+ setState(ViewState.BusyLocal);
+ print(checkPatientForRegistrationModel);
+ print(checkPatientForRegistrationModel);
+
+ await _patientRegistrationService.sendActivationCodeByOTPNotificationType(
+ otpType: otpType,
+ model: this,
+ checkPatientForRegistrationModel: checkPatientForRegistrationModel);
+ if (_patientRegistrationService.hasError) {
+ error = _patientRegistrationService.error!;
+ setState(ViewState.ErrorLocal);
+ } else
+ setState(ViewState.Idle);
+ }
+
+ Future checkActivationCode(String code) async {
+ CheckActivationCodeModel model = CheckActivationCodeModel(
+ activationCode: code,
+ patientIdentificationID:
+ checkPatientForRegistrationModel.patientIdentificationID,
+ patientMobileNumber: checkPatientForRegistrationModel.patientMobileNumber,
+ zipCode: checkPatientForRegistrationModel.zipCode,
+ patientOutSA: 0,
+ healthId: getPatientInfoResponseModel.healthId,
+ dOB: checkPatientForRegistrationModel.dOB,
+ isRegister: checkPatientForRegistrationModel.isRegister,
+ isHijri: checkPatientForRegistrationModel.isHijri,
+ sessionID: null,
+ generalid: GENERAL_ID,
+ forRegisteration: true,
+ isDentalAllowedBackend: false,
+ projectOutSA: 0,
+ searchType: 1,
+ versionID: 7.1,
+ channel: 3,
+ // TODO Elham* loginType
+ loginType: 4,
+ logInTokenID:_patientRegistrationService.logInTokenID ,
+ nationalID: checkPatientForRegistrationModel.patientIdentificationID,
+ patientID: 0,
+ mobileNo: checkPatientForRegistrationModel.patientMobileNumber.toString(),
+ );
+ setState(ViewState.BusyLocal);
+ await _patientRegistrationService.checkActivationCode(model);
+ if (_patientRegistrationService.hasError) {
+ error = _patientRegistrationService.error!;
+ setState(ViewState.ErrorLocal);
+ } else
+ setState(ViewState.Idle);
+ }
+
+ Future registrationPatient(PatientRegistrationModel registrationModel) async {
+ setState(ViewState.BusyLocal);
+ await _patientRegistrationService.registrationPatient(registrationModel);
+ if (_patientRegistrationService.hasError) {
+ error = _patientRegistrationService.error!;
+ setState(ViewState.ErrorLocal);
+ } else
+ setState(ViewState.Idle);
+ }
+}
diff --git a/lib/core/viewModel/PatientSearchViewModel.dart b/lib/core/viewModel/PatientSearchViewModel.dart
index 1e77f9e1..b9a9a323 100644
--- a/lib/core/viewModel/PatientSearchViewModel.dart
+++ b/lib/core/viewModel/PatientSearchViewModel.dart
@@ -14,16 +14,26 @@ import 'base_view_model.dart';
class PatientSearchViewModel extends BaseViewModel {
OutPatientService _outPatientService = locator();
- SpecialClinicsService _specialClinicsService = locator();
+ SpecialClinicsService _specialClinicsService =
+ locator();
List get patientList => _outPatientService.patientList;
- List get specialClinicalCareMappingList => _specialClinicsService.specialClinicalCareMappingList;
+
+ List
+ get specialClinicalCareMappingList =>
+ _specialClinicsService.specialClinicalCareMappingList;
List filterData = [];
DateTime? selectedFromDate;
DateTime? selectedToDate;
+ int firstSubsetIndex = 0;
+ int inPatientPageSize = 20;
+ int lastSubsetIndex = 20;
+
+ List InpatientClinicList = [];
+
searchData(String str) {
var strExist = str.length > 0 ? true : false;
if (strExist) {
@@ -70,6 +80,14 @@ class PatientSearchViewModel extends BaseViewModel {
}
}
+ sortOutPatient({bool isDes = false}) {
+ if (isDes)
+ filterData = filterData.reversed.toList();
+ else
+ filterData = filterData.reversed.toList();
+ setState(ViewState.Idle);
+ }
+
getPatientFileInformation(PatientSearchRequestModel patientSearchRequestModel, {bool isLocalBusy = false}) async {
setState(ViewState.Busy);
await _outPatientService.getPatientFileInformation(patientSearchRequestModel);
@@ -94,7 +112,8 @@ class PatientSearchViewModel extends BaseViewModel {
selectedFromDate = DateTime(DateTime.now().year, DateTime.now().month - 1, DateTime.now().day);
selectedToDate = DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day - 1);
dateTo = AppDateUtils.convertDateToFormat(selectedToDate!, 'yyyy-MM-dd');
- dateFrom = AppDateUtils.convertDateToFormat(selectedFromDate!, 'yyyy-MM-dd');
+ dateFrom =
+ AppDateUtils.convertDateToFormat(selectedFromDate!, 'yyyy-MM-dd');
} else if (OutPatientFilterType.NextWeek == outPatientFilterType) {
dateTo = AppDateUtils.convertDateToFormat(
DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day + 6), 'yyyy-MM-dd');
@@ -126,70 +145,238 @@ class PatientSearchViewModel extends BaseViewModel {
List get myIinPatientList => _inPatientService.myInPatientList;
List filteredInPatientItems = [];
+ List filteredMyInPatientItems = [];
Future getInPatientList(PatientSearchRequestModel requestModel, {bool isMyInpatient = false, bool isLocalBusy = false}) async {
await getDoctorProfile();
- if(isLocalBusy) {
+ if (isLocalBusy) {
setState(ViewState.BusyLocal);
- } else{
+ } else {
setState(ViewState.Busy);
}
if (inPatientList.length == 0) await _inPatientService.getInPatientList(requestModel, false);
if (_inPatientService.hasError) {
error = _inPatientService.error!;
- if(isLocalBusy) {
+ if (isLocalBusy) {
setState(ViewState.ErrorLocal);
- } else{
- setState(ViewState.Error);
+ } else {
+ setState(ViewState.Error);
}
} else {
- // setDefaultInPatientList();
+ setDefaultInPatientList();
+ generateInpatientClinicList();
setState(ViewState.Idle);
}
}
+ sortInPatient({bool isDes = false, bool isAllClinic, bool isMyInPatient}) {
+ if (isMyInPatient
+ ? myIinPatientList.length > 0
+ : isAllClinic
+ ? inPatientList.length > 0
+ : filteredInPatientItems.length > 0) {
+ List localInPatient = isMyInPatient
+ ? [...filteredMyInPatientItems]
+ : isAllClinic
+ ? [...inPatientList]
+ : [...filteredInPatientItems];
+ if (isDes)
+ localInPatient.sort((PatiantInformtion a, PatiantInformtion b) => b
+ .admissionDateWithDateTimeForm
+ .compareTo(a.admissionDateWithDateTimeForm));
+ else
+ localInPatient.sort((PatiantInformtion a, PatiantInformtion b) => a
+ .admissionDateWithDateTimeForm
+ .compareTo(b.admissionDateWithDateTimeForm));
+ if (isMyInPatient) {
+ filteredMyInPatientItems.clear();
+ filteredMyInPatientItems.addAll(localInPatient);
+ } else if (isAllClinic) {
+ resetInPatientPagination();
+ filteredInPatientItems
+ .addAll(localInPatient.sublist(firstSubsetIndex, lastSubsetIndex));
+ } else {
+ filteredInPatientItems.clear();
+ filteredInPatientItems.addAll(localInPatient);
+ }
+ }
+ setState(ViewState.Idle);
+ }
+
+ resetInPatientPagination() {
+ filteredInPatientItems.clear();
+ firstSubsetIndex = 0;
+ lastSubsetIndex = inPatientPageSize - 1;
+ }
+
Future setDefaultInPatientList() async {
setState(ViewState.BusyLocal);
await getDoctorProfile();
- filteredInPatientItems.clear();
- if (inPatientList.length > 0) filteredInPatientItems.addAll(inPatientList);
+ resetInPatientPagination();
+ if (inPatientList.length > 0) {
+ lastSubsetIndex = (inPatientList.length < inPatientPageSize - 1
+ ? inPatientList.length
+ : inPatientPageSize - 1);
+
+ filteredInPatientItems
+ .addAll(inPatientList.sublist(firstSubsetIndex, lastSubsetIndex));
+ }
+
+ if (myIinPatientList.length > 0) {
+ filteredMyInPatientItems.addAll(myIinPatientList);
+ }
setState(ViewState.Idle);
}
+ generateInpatientClinicList() {
+ InpatientClinicList.clear();
+ inPatientList.forEach((element) {
+ if (!InpatientClinicList.contains(element.clinicDescription)) {
+ InpatientClinicList.add(element.clinicDescription);
+ }
+ });
+ }
+ addOnFilteredList() {
+ if (lastSubsetIndex < inPatientList.length) {
+ firstSubsetIndex = firstSubsetIndex +
+ (inPatientList.length - lastSubsetIndex < inPatientPageSize - 1
+ ? inPatientList.length - lastSubsetIndex
+ : inPatientPageSize - 1);
+ lastSubsetIndex = lastSubsetIndex +
+ (inPatientList.length - lastSubsetIndex < inPatientPageSize - 1
+ ? inPatientList.length - lastSubsetIndex
+ : inPatientPageSize - 1);
+ filteredInPatientItems
+ .addAll(inPatientList.sublist(firstSubsetIndex, lastSubsetIndex));
+ setState(ViewState.Idle);
+ }
+ }
+
+ removeOnFilteredList() {
+ if (lastSubsetIndex - inPatientPageSize - 1 > 0) {
+ filteredInPatientItems.removeAt(lastSubsetIndex - inPatientPageSize - 1);
+ setState(ViewState.Idle);
+ }
+ }
+
+ filterByHospital({int hospitalId}) {
+ filteredInPatientItems = [];
+ for (var i = 0; i < inPatientList.length; i++) {
+ if (inPatientList[i].projectId == hospitalId) {
+ filteredInPatientItems.add(inPatientList[i]);
+ }
+ }
+ notifyListeners();
+ }
+ filterByClinic({String clinicName}) {
+ filteredInPatientItems = [];
+ for (var i = 0; i < inPatientList.length; i++) {
+ if (inPatientList[i].clinicDescription == clinicName) {
+ filteredInPatientItems.add(inPatientList[i]);
+ }
+ }
+ notifyListeners();
+ }
void clearPatientList() {
_inPatientService.inPatientList = [];
_inPatientService.myInPatientList = [];
}
- void filterSearchResults(String query) {
+ void filterSearchResults(String query,
+ {bool isAllClinic, bool isMyInPatient}) {
var strExist = query.length > 0 ? true : false;
- if (strExist) {
- filteredInPatientItems = [];
- for (var i = 0; i < inPatientList.length; i++) {
- String firstName = inPatientList[i].firstName!.toUpperCase();
- String lastName = inPatientList[i].lastName!.toUpperCase();
- String mobile = inPatientList[i].mobileNumber!.toUpperCase();
- String patientID = inPatientList[i].patientId.toString();
-
- if (firstName.contains(query.toUpperCase()) ||
- lastName.contains(query.toUpperCase()) ||
- mobile.contains(query) ||
- patientID.contains(query)) {
- filteredInPatientItems.add(inPatientList[i]);
+
+ if (isMyInPatient) {
+ List localFilteredMyInPatientItems = [
+ ...myIinPatientList
+ ];
+
+ if (strExist) {
+ filteredMyInPatientItems.clear();
+ for (var i = 0; i < localFilteredMyInPatientItems.length; i++) {
+ String firstName =
+ localFilteredMyInPatientItems[i].firstName.toUpperCase();
+ String lastName =
+ localFilteredMyInPatientItems[i].lastName.toUpperCase();
+ String mobile =
+ localFilteredMyInPatientItems[i].mobileNumber.toUpperCase();
+ String patientID =
+ localFilteredMyInPatientItems[i].patientId.toString();
+
+ if (firstName.contains(query.toUpperCase()) ||
+ lastName.contains(query.toUpperCase()) ||
+ mobile.contains(query) ||
+ patientID.contains(query)) {
+ filteredMyInPatientItems.add(localFilteredMyInPatientItems[i]);
+ }
}
+ notifyListeners();
+ } else {
+ if (myIinPatientList.length > 0) filteredMyInPatientItems.clear();
+ filteredMyInPatientItems.addAll(myIinPatientList);
+ notifyListeners();
}
- notifyListeners();
} else {
- if (inPatientList.length > 0) filteredInPatientItems.clear();
- filteredInPatientItems.addAll(inPatientList);
- notifyListeners();
+ if (isAllClinic) {
+ if (strExist) {
+ filteredInPatientItems = [];
+ for (var i = 0; i < inPatientList.length; i++) {
+ String firstName = inPatientList[i].firstName!.toUpperCase();
+ String lastName = inPatientList[i].lastName!.toUpperCase();
+ String mobile = inPatientList[i].mobileNumber!.toUpperCase();
+ String patientID = inPatientList[i].patientId.toString();
+
+ if (firstName.contains(query.toUpperCase()) ||
+ lastName.contains(query.toUpperCase()) ||
+ mobile.contains(query) ||
+ patientID.contains(query)) {
+ filteredInPatientItems.add(inPatientList[i]);
+ }
+ }
+ notifyListeners();
+ } else {
+ if (inPatientList.length > 0) filteredInPatientItems.clear();
+ filteredInPatientItems.addAll(inPatientList);
+ notifyListeners();
+ }
+ } else {
+ List localFilteredInPatientItems = [
+ ...filteredInPatientItems
+ ];
+
+ if (strExist) {
+ filteredInPatientItems.clear();
+ for (var i = 0; i < localFilteredInPatientItems.length; i++) {
+ String firstName =
+ localFilteredInPatientItems[i].firstName.toUpperCase();
+ String lastName =
+ localFilteredInPatientItems[i].lastName.toUpperCase();
+ String mobile =
+ localFilteredInPatientItems[i].mobileNumber.toUpperCase();
+ String patientID =
+ localFilteredInPatientItems[i].patientId.toString();
+
+ if (firstName.contains(query.toUpperCase()) ||
+ lastName.contains(query.toUpperCase()) ||
+ mobile.contains(query) ||
+ patientID.contains(query)) {
+ filteredInPatientItems.add(localFilteredInPatientItems[i]);
+ }
+ }
+ notifyListeners();
+ } else {
+ if (localFilteredInPatientItems.length > 0)
+ filteredInPatientItems.clear();
+ filteredInPatientItems.addAll(localFilteredInPatientItems);
+ notifyListeners();
+ }
+ }
}
}
-
getSpecialClinicalCareMappingList(clinicId,
{bool isLocalBusy = false}) async {
if (isLocalBusy) {
diff --git a/lib/core/viewModel/SOAP_view_model.dart b/lib/core/viewModel/SOAP_view_model.dart
index 9c3bf75a..09afc8be 100644
--- a/lib/core/viewModel/SOAP_view_model.dart
+++ b/lib/core/viewModel/SOAP_view_model.dart
@@ -19,6 +19,8 @@ import 'package:doctor_app_flutter/models/SOAP/GetPhysicalExamReqModel.dart';
import 'package:doctor_app_flutter/models/SOAP/PatchAssessmentReqModel.dart';
import 'package:doctor_app_flutter/models/SOAP/PostEpisodeReqModel.dart';
import 'package:doctor_app_flutter/models/SOAP/get_Allergies_request_model.dart';
+import 'package:doctor_app_flutter/models/SOAP/in_patient/GetEpisodeForInpatientReqModel.dart';
+import 'package:doctor_app_flutter/models/SOAP/in_patient/PostEpisodeForInpatientRequestModel.dart';
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
import 'package:doctor_app_flutter/models/SOAP/post_allergy_request_model.dart';
import 'package:doctor_app_flutter/models/SOAP/post_assessment_request_model.dart';
@@ -26,6 +28,14 @@ import 'package:doctor_app_flutter/models/SOAP/post_chief_complaint_request_mode
import 'package:doctor_app_flutter/models/SOAP/post_histories_request_model.dart';
import 'package:doctor_app_flutter/models/SOAP/post_physical_exam_request_model.dart';
import 'package:doctor_app_flutter/models/SOAP/post_progress_note_request_model.dart';
+import 'package:doctor_app_flutter/models/SOAP/selected_items/my_selected_allergy.dart';
+import 'package:doctor_app_flutter/models/SOAP/selected_items/my_selected_examination.dart';
+import 'package:doctor_app_flutter/models/SOAP/selected_items/my_selected_history.dart';
+import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
+import 'package:doctor_app_flutter/screens/patients/profile/soap_update/assessment/assessment_call_back.dart';
+import 'package:doctor_app_flutter/screens/patients/profile/soap_update/objective/objective_call_back.dart';
+import 'package:doctor_app_flutter/screens/patients/profile/soap_update/plan/plan_call_back.dart';
+import 'package:doctor_app_flutter/screens/patients/profile/soap_update/subjective/subjective_call_back.dart';
import 'package:flutter/material.dart';
import '../../locator.dart';
@@ -70,14 +80,66 @@ class SOAPViewModel extends BaseViewModel {
List get patientProgressNoteList => _SOAPService.patientProgressNoteList;
List get patientAssessmentList => _SOAPService.patientAssessmentList;
+
int? get episodeID => _SOAPService.episodeID;
+ bool isAddProgress = true;
+ bool isAddExamInProgress = true;
+ String progressNoteText = "";
+ String complaintsControllerError = '';
+ String medicationControllerError = '';
+ String illnessControllerError = '';
+
get medicationStrengthList => _SOAPService.medicationStrengthListWithModel;
+
get medicationDoseTimeList => _SOAPService.medicationDoseTimeListWithModel;
+
get medicationRouteList => _SOAPService.medicationRouteListWithModel;
+
get medicationFrequencyList => _SOAPService.medicationFrequencyListWithModel;
+
List get allMedicationList => _prescriptionService.allMedicationList;
+ SubjectiveCallBack subjectiveCallBack;
+
+ setSubjectiveCallBack(SubjectiveCallBack callBack) {
+ this.subjectiveCallBack = callBack;
+ }
+
+ nextOnSubjectPage(model) {
+ subjectiveCallBack.nextFunction(model);
+ }
+
+ ObjectiveCallBack objectiveCallBack;
+
+ setObjectiveCallBack(ObjectiveCallBack callBack) {
+ this.objectiveCallBack = callBack;
+ }
+
+ nextOnObjectivePage(model) {
+ objectiveCallBack.nextFunction(model);
+ }
+
+ AssessmentCallBack assessmentCallBack;
+
+ setAssessmentCallBack(AssessmentCallBack callBack) {
+ this.assessmentCallBack = callBack;
+ }
+
+ nextOnAssessmentPage(model) {
+ assessmentCallBack.nextFunction(model);
+ }
+
+ PlanCallBack planCallBack;
+
+ setPlanCallBack(PlanCallBack callBack) {
+ this.planCallBack = callBack;
+ }
+
+ nextOnPlanPage(model) {
+ planCallBack.nextFunction(model);
+ }
+
Future getAllergies(GetAllergiesRequestModel getAllergiesRequestModel) async {
setState(ViewState.Busy);
await _SOAPService.getAllergies(getAllergiesRequestModel);
@@ -114,31 +176,12 @@ class SOAPViewModel extends BaseViewModel {
setState(ViewState.Idle);
}
- Future postAllergy(PostAllergyRequestModel postAllergyRequestModel) async {
- setState(ViewState.BusyLocal);
- await _SOAPService.postAllergy(postAllergyRequestModel);
- if (_SOAPService.hasError) {
- error = _SOAPService.error!;
-
- setState(ViewState.ErrorLocal);
- } else
- setState(ViewState.Idle);
- }
-
- Future postHistories(PostHistoriesRequestModel postHistoriesRequestModel) async {
+ Future postEpisodeForInPatient(
+ PostEpisodeForInpatientRequestModel
+ postEpisodeForInpatientRequestModel) async {
setState(ViewState.BusyLocal);
- await _SOAPService.postHistories(postHistoriesRequestModel);
- if (_SOAPService.hasError) {
- error = _SOAPService.error!;
-
- setState(ViewState.ErrorLocal);
- } else
- setState(ViewState.Idle);
- }
-
- Future postChiefComplaint(PostChiefComplaintRequestModel postChiefComplaintRequestModel) async {
- setState(ViewState.BusyLocal);
- await _SOAPService.postChiefComplaint(postChiefComplaintRequestModel);
+ await _SOAPService.postEpisodeForInPatient(
+ postEpisodeForInpatientRequestModel);
if (_SOAPService.hasError) {
error = _SOAPService.error!;
@@ -180,40 +223,8 @@ class SOAPViewModel extends BaseViewModel {
setState(ViewState.Idle);
}
- Future patchAllergy(PostAllergyRequestModel patchAllergyRequestModel) async {
- setState(ViewState.BusyLocal);
- await _SOAPService.patchAllergy(patchAllergyRequestModel);
- if (_SOAPService.hasError) {
- error = _SOAPService.error!;
-
- setState(ViewState.ErrorLocal);
- } else
- setState(ViewState.Idle);
- }
-
- Future patchHistories(PostHistoriesRequestModel patchHistoriesRequestModel) async {
- setState(ViewState.BusyLocal);
- await _SOAPService.patchHistories(patchHistoriesRequestModel);
- if (_SOAPService.hasError) {
- error = _SOAPService.error!;
-
- setState(ViewState.ErrorLocal);
- } else
- setState(ViewState.Idle);
- }
-
- Future patchChiefComplaint(PostChiefComplaintRequestModel patchChiefComplaintRequestModel) async {
- setState(ViewState.BusyLocal);
- await _SOAPService.patchChiefComplaint(patchChiefComplaintRequestModel);
- if (_SOAPService.hasError) {
- error = _SOAPService.error!;
-
- setState(ViewState.ErrorLocal);
- } else
- setState(ViewState.Idle);
- }
-
- Future patchPhysicalExam(PostPhysicalExamRequestModel patchPhysicalExamRequestModel) async {
+ Future patchPhysicalExam(
+ PostPhysicalExamRequestModel patchPhysicalExamRequestModel) async {
setState(ViewState.BusyLocal);
await _SOAPService.patchPhysicalExam(patchPhysicalExamRequestModel);
if (_SOAPService.hasError) {
@@ -274,29 +285,24 @@ class SOAPViewModel extends BaseViewModel {
return allergiesString;
}
- Future getPatientHistories(GetHistoryReqModel getHistoryReqModel, {bool isFirst = false}) async {
- setState(ViewState.Busy);
- await _SOAPService.getPatientHistories(getHistoryReqModel, isFirst: isFirst);
- if (_SOAPService.hasError) {
- error = _SOAPService.error!;
-
- setState(ViewState.Error);
- } else
- setState(ViewState.Idle);
- }
-
- Future getPatientChiefComplaint(GetChiefComplaintReqModel getChiefComplaintReqModel) async {
- setState(ViewState.Busy);
- await _SOAPService.getPatientChiefComplaint(getChiefComplaintReqModel);
- if (_SOAPService.hasError) {
- error = _SOAPService.error!;
- setState(ViewState.Error);
- } else
- setState(ViewState.Idle);
- }
-
- Future getPatientPhysicalExam(GetPhysicalExamReqModel getPhysicalExamReqModel) async {
+ Future getPatientPhysicalExam(PatiantInformtion patientInfo,
+ ) async {
+ GetPhysicalExamReqModel getPhysicalExamReqModel = GetPhysicalExamReqModel(
+ patientMRN: patientInfo.patientMRN,
+ episodeID: patientInfo.episodeNo == null
+ ? "0"
+ : patientInfo.episodeNo.toString(),
+ appointmentNo: patientInfo.appointmentNo == null
+ ? 0
+ : int.parse(
+ patientInfo.appointmentNo.toString(),
+ ),
+ );
+ if (patientInfo.admissionNo != null && patientInfo.admissionNo.isNotEmpty)
+ getPhysicalExamReqModel.admissionNo = int.parse(patientInfo.admissionNo);
+ else
+ getPhysicalExamReqModel.admissionNo = 0;
setState(ViewState.Busy);
await _SOAPService.getPatientPhysicalExam(getPhysicalExamReqModel);
if (_SOAPService.hasError) {
@@ -339,6 +345,23 @@ class SOAPViewModel extends BaseViewModel {
setState(ViewState.Idle);
}
+ Future getEpisodeForInpatient(PatiantInformtion patient) async {
+ setState(ViewState.BusyLocal);
+ GetEpisodeForInpatientReqModel getEpisodeForInpatientReqModel =
+ GetEpisodeForInpatientReqModel(
+ patientID: patient.patientId,
+ admissionNo: int.parse(patient.admissionNo),
+ patientTypeID: 1);
+ await _SOAPService.getEpisodeForInpatient(getEpisodeForInpatientReqModel);
+ if (_SOAPService.hasError) {
+ error = _SOAPService.error!;
+ setState(ViewState.ErrorLocal);
+ } else {
+ patient.episodeNo = _SOAPService.episodeID;
+ setState(ViewState.Idle);
+ }
+ }
+
// ignore: missing_return
MasterKeyModel? getOneMasterKey({@required MasterKeysService? masterKeys, dynamic id, int? typeId}) {
switch (masterKeys) {
@@ -441,4 +464,382 @@ class SOAPViewModel extends BaseViewModel {
break;
}
}
+
+ int getFirstIndexForOldExamination(
+ List mySelectedExamination) {
+ Iterable examList =
+ mySelectedExamination.where((element) => !element.isLocal);
+
+ if (examList.length > 0) {
+ return mySelectedExamination.indexOf(examList.first);
+ } else
+ return -1;
+ }
+
+ onUpdateSubjectStepStart(PatiantInformtion patientInfo) async {
+ GetChiefComplaintReqModel getChiefComplaintReqModel =
+ GetChiefComplaintReqModel(
+ admissionNo:
+ patientInfo
+ .admissionNo !=
+ null
+ ? int.parse(patientInfo.admissionNo)
+ : null,
+ patientMRN: patientInfo.patientMRN,
+ appointmentNo: patientInfo.appointmentNo != null
+ ? int.parse(patientInfo.appointmentNo.toString())
+ : null,
+ episodeId: patientInfo.episodeNo,
+ episodeID: patientInfo.episodeNo,
+ doctorID: '');
+ var services = [
+ _SOAPService.getPatientChiefComplaint(getChiefComplaintReqModel)
+ ];
+
+ if (patientInfo.admissionNo == null) {
+ complaintsControllerError = '';
+ medicationControllerError = '';
+ illnessControllerError = '';
+ GetHistoryReqModel getHistoryReqModel = GetHistoryReqModel(
+ patientMRN: patientInfo.patientMRN,
+ episodeID: patientInfo.episodeNo.toString(),
+ appointmentNo: int.parse(patientInfo.appointmentNo.toString()),
+ doctorID: '',
+ editedBy: '');
+ services.add(
+ _SOAPService.getPatientHistories(getHistoryReqModel, isFirst: true));
+
+ GeneralGetReqForSOAP generalGetReqForSOAP = GeneralGetReqForSOAP(
+ patientMRN: patientInfo.patientMRN,
+ episodeId: patientInfo.episodeNo,
+ appointmentNo: int.parse(patientInfo.appointmentNo.toString()),
+ doctorID: '',
+ editedBy: '');
+
+ services.add(_SOAPService.getPatientAllergy(generalGetReqForSOAP));
+ }
+
+ final results = await Future.wait(services);
+ await callServicesAfterGetPatientInfoForUpdateSubject();
+ }
+
+ callServicesAfterGetPatientInfoForUpdateSubject() async {
+ var services;
+ if (patientHistoryList.isNotEmpty) {
+ if (historyFamilyList.isEmpty) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.HistoryFamily)
+ ];
+ } else {
+ services.add(
+ _SOAPService.getMasterLookup(MasterKeysService.HistoryFamily));
+ }
+ }
+ if (historyMedicalList.isEmpty) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.HistoryMedical)
+ ];
+ } else
+ services.add(
+ _SOAPService.getMasterLookup(MasterKeysService.HistoryMedical));
+ }
+ if (historySurgicalList.length == 0) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.HistorySurgical)
+ ];
+ } else
+ services.add(
+ _SOAPService.getMasterLookup(MasterKeysService.HistorySurgical));
+ }
+ if (historySportList.length == 0) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.HistorySports)
+ ];
+ } else
+ services.add(
+ _SOAPService.getMasterLookup(MasterKeysService.HistorySports));
+ }
+ }
+
+ if (patientAllergiesList.isNotEmpty) {
+ if (allergiesList.isEmpty) if (services == null) {
+ services = [_SOAPService.getMasterLookup(MasterKeysService.Allergies)];
+ } else
+ services.add(_SOAPService.getMasterLookup(MasterKeysService.Allergies));
+ if (allergySeverityList.isEmpty) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.AllergySeverity)
+ ];
+ } else
+ services.add(
+ _SOAPService.getMasterLookup(MasterKeysService.AllergySeverity));
+ }
+ }
+
+ final results = await Future.wait(services ?? []);
+
+ if (_SOAPService.hasError) {
+ error = _SOAPService.error!;
+ setState(ViewState.Error);
+ } else
+ setState(ViewState.Idle);
+ }
+
+ onAddMedicationStart() async {
+ setState(ViewState.Busy);
+ var services;
+ if (medicationStrengthList.length == 0) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.MedicationStrength)
+ ];
+ } else {
+ services.add(
+ _SOAPService.getMasterLookup(MasterKeysService.MedicationStrength));
+ }
+ }
+ if (medicationFrequencyList.length == 0) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.MedicationFrequency)
+ ];
+ } else {
+ services.add(_SOAPService.getMasterLookup(
+ MasterKeysService.MedicationFrequency));
+ }
+ }
+ if (medicationDoseTimeList.length == 0) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.MedicationDoseTime)
+ ];
+ } else {
+ services.add(
+ _SOAPService.getMasterLookup(MasterKeysService.MedicationDoseTime));
+ }
+ }
+ if (medicationRouteList.length == 0) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.MedicationRoute)
+ ];
+ } else {
+ services.add(
+ _SOAPService.getMasterLookup(MasterKeysService.MedicationRoute));
+ }
+ }
+ if (allMedicationList.length == 0) {
+ if (services == null) {
+ services = [_prescriptionService.getMedicationList()];
+ } else {
+ services.add(_prescriptionService.getMedicationList());
+ }
+ }
+
+ final results = await Future.wait(services ?? []);
+
+ if (_SOAPService.hasError || _prescriptionService.hasError) {
+ error = _SOAPService.error + _prescriptionService.error!;
+ setState(ViewState.ErrorLocal);
+ } else
+ setState(ViewState.Idle);
+ }
+
+ callAddAssessmentLookupsServices({bool allowSetState = true}) async {
+ if (allowSetState) setState(ViewState.Busy);
+ var services;
+ if (listOfDiagnosisCondition.length == 0) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.DiagnosisCondition)
+ ];
+ } else {
+ services.add(
+ _SOAPService.getMasterLookup(MasterKeysService.DiagnosisCondition));
+ }
+ }
+ if (listOfDiagnosisType.length == 0) {
+ if (services == null) {
+ services = [
+ _SOAPService.getMasterLookup(MasterKeysService.DiagnosisType)
+ ];
+ } else {
+ services
+ .add(_SOAPService.getMasterLookup(MasterKeysService.DiagnosisType));
+ }
+ }
+ if (listOfICD10.length == 0) {
+ if (services == null) {
+ services = [_SOAPService.getMasterLookup(MasterKeysService.ICD10)];
+ } else {
+ services.add(_SOAPService.getMasterLookup(MasterKeysService.ICD10));
+ }
+ }
+
+ final results = await Future.wait(services ?? []);
+ if (allowSetState) {
+ if (_SOAPService.hasError) {
+ error = _SOAPService.error!;
+ setState(ViewState.ErrorLocal);
+ } else
+ setState(ViewState.Idle);
+ }
+ }
+
+ onUpdateAssessmentStepStart(PatiantInformtion patientInfo) async {
+ GetAssessmentReqModel getAssessmentReqModel = GetAssessmentReqModel(
+ patientMRN: patientInfo.patientMRN,
+ episodeID: patientInfo.episodeNo.toString(),
+ editedBy: '',
+ doctorID: '',
+ appointmentNo: int.parse(patientInfo.appointmentNo.toString()));
+
+ var services = [_SOAPService.getPatientAssessment(getAssessmentReqModel)];
+
+ final results = await Future.wait(services);
+
+ if (patientAssessmentList.isNotEmpty) {
+ await callAddAssessmentLookupsServices(allowSetState: false);
+ }
+
+ if (_SOAPService.hasError) {
+ error = _SOAPService.error!;
+ setState(ViewState.ErrorLocal);
+ } else
+ setState(ViewState.Idle);
+ }
+
+ postSubjectServices(
+ {patientInfo,
+ String complaintsText,
+ String medicationText,
+ String illnessText,
+ List myHistoryList,
+ List myAllergiesList}) async {
+ var services;
+
+ PostChiefComplaintRequestModel postChiefComplaintRequestModel =
+ createPostChiefComplaintRequestModel(
+ patientInfo: patientInfo,
+ illnessText: illnessText,
+ medicationText: medicationText,
+ complaintsText: complaintsText);
+ if (patientChiefComplaintList.isEmpty) {
+ postChiefComplaintRequestModel.editedBy = '';
+ services = [
+ _SOAPService.postChiefComplaint(postChiefComplaintRequestModel)
+ ];
+ } else {
+ postChiefComplaintRequestModel.editedBy = '';
+ services = [
+ _SOAPService.patchChiefComplaint(postChiefComplaintRequestModel)
+ ];
+ }
+
+ if (myHistoryList.length != 0) {
+ PostHistoriesRequestModel postHistoriesRequestModel =
+ createPostHistoriesRequestModel(
+ patientInfo: patientInfo, myHistoryList: myHistoryList);
+
+ if (patientHistoryList.isEmpty) {
+ services.add(_SOAPService.postHistories(postHistoriesRequestModel));
+ } else {
+ services.add(_SOAPService.patchHistories(postHistoriesRequestModel));
+ }
+ }
+
+ if (myAllergiesList.length != 0) {
+ PostAllergyRequestModel postAllergyRequestModel =createPostAllergyRequestModel (myAllergiesList:myAllergiesList, patientInfo: patientInfo);
+ if (patientAllergiesList.isEmpty) {
+ services.add(_SOAPService.postAllergy(postAllergyRequestModel));
+ } else {
+ services.add(_SOAPService.patchAllergy(postAllergyRequestModel));
+ }
+
+ }
+
+ final results = await Future.wait(services);
+
+ if (_SOAPService.hasError) {
+ error = _SOAPService.error!;
+ setState(ViewState.ErrorLocal);
+ } else
+ setState(ViewState.Idle);
+ }
+
+ PostChiefComplaintRequestModel createPostChiefComplaintRequestModel(
+ {patientInfo,
+ String complaintsText,
+ String medicationText,
+ String illnessText}) {
+ return new PostChiefComplaintRequestModel(
+ admissionNo: patientInfo.admissionNo != null
+ ? int.parse(patientInfo.admissionNo)
+ : null,
+ patientMRN: patientInfo.patientMRN,
+ episodeID: patientInfo.episodeNo ?? 0,
+ appointmentNo: patientInfo.appointmentNo ?? 0,
+ chiefComplaint: complaintsText,
+ currentMedication: medicationText,
+ hopi: illnessText,
+ isLactation: false,
+ ispregnant: false,
+ doctorID: '',
+ numberOfWeeks: 0);
+ }
+
+ PostHistoriesRequestModel createPostHistoriesRequestModel(
+ {patientInfo, List myHistoryList}) {
+ PostHistoriesRequestModel postHistoriesRequestModel =
+ new PostHistoriesRequestModel(doctorID: '');
+ myHistoryList.forEach((history) {
+ if (postHistoriesRequestModel.listMedicalHistoryVM == null)
+ postHistoriesRequestModel.listMedicalHistoryVM = [];
+ postHistoriesRequestModel.listMedicalHistoryVM.add(ListMedicalHistoryVM(
+ patientMRN: patientInfo.patientMRN,
+ episodeId: patientInfo.episodeNo,
+ appointmentNo: patientInfo.appointmentNo,
+ remarks: "",
+ historyId: history.selectedHistory.id,
+ historyType: history.selectedHistory.typeId,
+ isChecked: history.isChecked,
+ ));
+ });
+
+ return postHistoriesRequestModel;
+ }
+
+
+ PostAllergyRequestModel createPostAllergyRequestModel({myAllergiesList, patientInfo}){
+ PostAllergyRequestModel postAllergyRequestModel =
+ new PostAllergyRequestModel();
+ myAllergiesList.forEach((allergy) {
+ if (postAllergyRequestModel.listHisProgNotePatientAllergyDiseaseVM ==
+ null)
+ postAllergyRequestModel.listHisProgNotePatientAllergyDiseaseVM = [];
+ postAllergyRequestModel.listHisProgNotePatientAllergyDiseaseVM.add(
+ ListHisProgNotePatientAllergyDiseaseVM(
+ allergyDiseaseId: allergy.selectedAllergy.id,
+ allergyDiseaseType: allergy.selectedAllergy.typeId,
+ patientMRN: patientInfo.patientMRN,
+ episodeId: patientInfo.episodeNo,
+ appointmentNo: patientInfo.appointmentNo,
+ severity: allergy.selectedAllergySeverity.id,
+ remarks: allergy.remark,
+ createdBy: allergy.createdBy ?? doctorProfile.doctorID,
+ createdOn: DateTime.now().toIso8601String(),
+ editedBy: doctorProfile.doctorID,
+ editedOn: DateTime.now().toIso8601String(),
+ isChecked: allergy.isChecked,
+ isUpdatedByNurse: false));
+ });
+
+
+ return postAllergyRequestModel;
+ }
}
diff --git a/lib/core/viewModel/authentication_view_model.dart b/lib/core/viewModel/authentication_view_model.dart
index a38cd0eb..697f5654 100644
--- a/lib/core/viewModel/authentication_view_model.dart
+++ b/lib/core/viewModel/authentication_view_model.dart
@@ -65,35 +65,25 @@ class AuthenticationViewModel extends BaseViewModel {
bool isLogin = false;
bool unverified = false;
bool isFromLogin = false;
- APP_STATUS app_status = APP_STATUS.LOADING;
-
+ APP_STATUS appStatus = APP_STATUS.LOADING;
+ String localToken ="";
AuthenticationViewModel() {
getDeviceInfoFromFirebase();
getDoctorProfile();
}
- /// select Device IMEI
- Future selectDeviceImei(imei) async {
- setState(ViewState.Busy);
- await _authService.selectDeviceImei(imei);
- if (_authService.hasError) {
- error = _authService.error!;
- setState(ViewState.Error);
- } else
- setState(ViewState.Idle);
- }
/// Insert Device IMEI
- Future insertDeviceImei() async {
+ Future insertDeviceImei(token) async {
var loggedIn = await sharedPref.getObj(LOGGED_IN_USER);
- var user = await sharedPref.getObj(LAST_LOGIN_USER);
- if (user != null) {
- user = GetIMEIDetailsModel.fromJson(user);
+ var data = await sharedPref.getObj(LAST_LOGIN_USER);
+ if (data != null) {
+ user = GetIMEIDetailsModel.fromJson(data);
}
var profileInfo = await sharedPref.getObj(DOCTOR_PROFILE);
- profileInfo['IMEI'] = DEVICE_TOKEN;
+ profileInfo['IMEI'] = token;
profileInfo['LogInTypeID'] = await sharedPref.getInt(OTP_TYPE);
profileInfo['BioMetricEnabled'] = true;
profileInfo['MobileNo'] = loggedIn != null ? loggedIn['MobileNumber'] : user.mobile;
@@ -109,7 +99,7 @@ class AuthenticationViewModel extends BaseViewModel {
insertIMEIDetailsModel.outSA = loggedIn != null ? loggedIn['PatientOutSA'] : user.outSA;
insertIMEIDetailsModel.vidaAuthTokenID = await sharedPref.getString(VIDA_AUTH_TOKEN_ID);
insertIMEIDetailsModel.vidaRefreshTokenID = await sharedPref.getString(VIDA_REFRESH_TOKEN_ID);
- insertIMEIDetailsModel.password = await sharedPref.getString(PASSWORD);
+ insertIMEIDetailsModel.password = userInfo.password;
await _authService.insertDeviceImei(insertIMEIDetailsModel);
if (_authService.hasError) {
@@ -143,6 +133,7 @@ class AuthenticationViewModel extends BaseViewModel {
iMEI: user!.iMEI,
facilityId: user!.projectID,
memberID: user!.doctorID,
+ loginDoctorID: int.parse(user.editedBy.toString()),
zipCode: user!.outSA == true ? '971' : '966',
mobileNumber: user!.mobile,
oTPSendType: authMethodType.getTypeIdService(),
@@ -163,35 +154,44 @@ class AuthenticationViewModel extends BaseViewModel {
int projectID = await sharedPref.getInt(PROJECT_ID);
ActivationCodeModel activationCodeModel = ActivationCodeModel(
facilityId: projectID,
- memberID: loggedUser!.listMemberInformation![0].memberID,
- zipCode: loggedUser!.zipCode,
- mobileNumber: loggedUser!.mobileNumber,
+ memberID: loggedUser.listMemberInformation[0].memberID,
+ loginDoctorID: loggedUser.listMemberInformation[0].employeeID,
otpSendType: authMethodType.getTypeIdService().toString(),
- password: password);
+ );
await _authService.sendActivationCodeForDoctorApp(activationCodeModel);
if (_authService.hasError) {
error = _authService.error!;
setState(ViewState.ErrorLocal);
- } else
+ } else {
+ await sharedPref.setString(TOKEN,
+ _authService.activationCodeForDoctorAppRes.logInTokenID);
setState(ViewState.Idle);
+ }
}
/// check activation code for sms and whats app
- Future checkActivationCodeForDoctorApp({required String activationCode}) async {
+ Future checkActivationCodeForDoctorApp({required String activationCode,bool isSilentLogin = false}) async {
setState(ViewState.BusyLocal);
CheckActivationCodeRequestModel checkActivationCodeForDoctorApp = new CheckActivationCodeRequestModel(
zipCode: loggedUser != null ? loggedUser!.zipCode : user!.zipCode,
mobileNumber: loggedUser != null ? loggedUser!.mobileNumber : user!.mobile,
projectID: await sharedPref.getInt(PROJECT_ID) != null ? await sharedPref.getInt(PROJECT_ID) : user!.projectID,
- logInTokenID: await sharedPref.getString(LOGIN_TOKEN_ID),
+ logInTokenID: await sharedPref.getString(TOKEN),
activationCode: activationCode,
+ memberID:userInfo.userID!=null? int.parse(userInfo.userID):user.doctorID ,
+ password: userInfo.password,
+ facilityId:userInfo.projectID!=null? userInfo.projectID.toString():user.projectID.toString(),
oTPSendType: await sharedPref.getInt(OTP_TYPE),
+ iMEI: localToken,
+ loginDoctorID:userInfo.userID!=null? int.parse(userInfo.userID):user.editedBy,// loggedUser.listMemberInformation[0].employeeID,
+ isForSilentLogin:isSilentLogin,
generalid: "Cs2020@2016\$2958");
await _authService.checkActivationCodeForDoctorApp(checkActivationCodeForDoctorApp);
if (_authService.hasError) {
error = _authService.error!;
setState(ViewState.ErrorLocal);
} else {
+ await setDataAfterSendActivationSuccess(checkActivationCodeForDoctorAppRes);
setState(ViewState.Idle);
}
}
@@ -230,13 +230,14 @@ class AuthenticationViewModel extends BaseViewModel {
}
/// add token to shared preferences in case of send activation code is success
- setDataAfterSendActivationSuccess(
- SendActivationCodeForDoctorAppResponseModel sendActivationCodeForDoctorAppResponseModel) {
- print("VerificationCode : " + sendActivationCodeForDoctorAppResponseModel.verificationCode!);
- // DrAppToastMsg.showSuccesToast("VerificationCode : " + sendActivationCodeForDoctorAppResponseModel.verificationCode!);
- sharedPref.setString(VIDA_AUTH_TOKEN_ID, sendActivationCodeForDoctorAppResponseModel.vidaAuthTokenID!);
- sharedPref.setString(VIDA_REFRESH_TOKEN_ID, sendActivationCodeForDoctorAppResponseModel.vidaRefreshTokenID!);
- sharedPref.setString(LOGIN_TOKEN_ID, sendActivationCodeForDoctorAppResponseModel.logInTokenID!);
+ setDataAfterSendActivationSuccess(CheckActivationCodeForDoctorAppResponseModel sendActivationCodeForDoctorAppResponseModel)async {
+ // print("VerificationCode : " + sendActivationCodeForDoctorAppResponseModel.verificationCode);
+ await sharedPref.setString(VIDA_AUTH_TOKEN_ID,
+ sendActivationCodeForDoctorAppResponseModel.vidaAuthTokenID);
+ await sharedPref.setString(VIDA_REFRESH_TOKEN_ID,
+ sendActivationCodeForDoctorAppResponseModel.vidaRefreshTokenID);
+ await sharedPref.setString(TOKEN,
+ sendActivationCodeForDoctorAppResponseModel.authenticationTokenID);
}
saveObjToString(String key, value) async {
@@ -270,12 +271,11 @@ class AuthenticationViewModel extends BaseViewModel {
/// get doctor profile based on clinic model
Future getDoctorProfileBasedOnClinic(ClinicModel clinicInfo) async {
ProfileReqModel docInfo = new ProfileReqModel(
- doctorID: clinicInfo.doctorID,
- clinicID: clinicInfo.clinicID,
- license: true,
- projectID: clinicInfo.projectID,
- tokenID: '',
- ); //TODO change the lan
+ doctorID: clinicInfo.doctorID,
+ clinicID: clinicInfo.clinicID,
+ license: true,
+ projectID: clinicInfo.projectID,
+ languageID: 2);///TODO change the lan
await _authService.getDoctorProfileBasedOnClinic(docInfo);
if (_authService.hasError) {
error = _authService.error!;
@@ -287,7 +287,7 @@ class AuthenticationViewModel extends BaseViewModel {
}
/// add some logic in case of check activation code is success
- onCheckActivationCodeSuccess() async {
+ onCheckActivationCodeSuccess({bool isSilentLogin = false}) async {
sharedPref.setString(TOKEN, checkActivationCodeForDoctorAppRes.authenticationTokenID!);
if (checkActivationCodeForDoctorAppRes.listDoctorProfile != null &&
checkActivationCodeForDoctorAppRes.listDoctorProfile!.isNotEmpty) {
@@ -318,30 +318,31 @@ class AuthenticationViewModel extends BaseViewModel {
}
}
+ /// call firebase service to check if the user already login in before or not
/// call firebase service to check if the user already login in before or not
getDeviceInfoFromFirebase() async {
_firebaseMessaging.setAutoInitEnabled(true);
if (Platform.isIOS) {
- await _firebaseMessaging.requestPermission(sound: true, badge: true, alert: true, provisional: true);
- }
-
- try {
- setState(ViewState.Busy);
- } catch (e) {
- Helpers.showErrorToast("fdfdfdfdf" + e.toString());
+ _firebaseMessaging.requestNotificationPermissions();
}
+ setState(ViewState.Busy);
var token = await _firebaseMessaging.getToken();
- if (DEVICE_TOKEN == "") {
- DEVICE_TOKEN = token!;
+ if (localToken == "") {
+ localToken = token;
- await _authService.selectDeviceImei(DEVICE_TOKEN);
+ await _authService.selectDeviceImei(localToken);
if (_authService.hasError) {
error = _authService.error!;
setState(ViewState.ErrorLocal);
} else {
if (_authService.dashboardItemsList.length > 0) {
- user = _authService.dashboardItemsList[0];
- sharedPref.setObj(LAST_LOGIN_USER, _authService.dashboardItemsList[0]);
+ user =_authService.dashboardItemsList[0];
+ sharedPref.setObj(
+ LAST_LOGIN_USER, _authService.dashboardItemsList[0]);
+ await sharedPref.setString(VIDA_REFRESH_TOKEN_ID,
+ user.vidaRefreshTokenID);
+ await sharedPref.setString(VIDA_AUTH_TOKEN_ID,
+ user.vidaAuthTokenID);
this.unverified = true;
}
setState(ViewState.Idle);
@@ -351,26 +352,27 @@ class AuthenticationViewModel extends BaseViewModel {
}
}
+
/// determine the status of the app
APP_STATUS get status {
if (state == ViewState.Busy) {
- app_status = APP_STATUS.LOADING;
+ appStatus = APP_STATUS.LOADING;
} else {
if (this.doctorProfile != null)
- app_status = APP_STATUS.AUTHENTICATED;
+ appStatus = APP_STATUS.AUTHENTICATED;
else if (this.unverified) {
- app_status = APP_STATUS.UNVERIFIED;
+ appStatus = APP_STATUS.UNVERIFIED;
} else if (this.isLogin) {
- app_status = APP_STATUS.AUTHENTICATED;
+ appStatus = APP_STATUS.AUTHENTICATED;
} else {
- app_status = APP_STATUS.UNAUTHENTICATED;
+ appStatus = APP_STATUS.UNAUTHENTICATED;
}
}
- return app_status;
+ return appStatus;
}
setAppStatus(APP_STATUS status) {
- this.app_status = status;
+ this.appStatus = status;
notifyListeners();
}
@@ -382,7 +384,7 @@ class AuthenticationViewModel extends BaseViewModel {
/// logout function
logout({bool isFromLogin = false}) async {
- DEVICE_TOKEN = "";
+ localToken = "";
String lang = await sharedPref.getString(APP_Language);
await Helpers.clearSharedPref();
doctorProfile = null;
@@ -390,7 +392,7 @@ class AuthenticationViewModel extends BaseViewModel {
deleteUser();
await getDeviceInfoFromFirebase();
this.isFromLogin = isFromLogin;
- app_status = APP_STATUS.UNAUTHENTICATED;
+ appStatus = APP_STATUS.UNAUTHENTICATED;
setState(ViewState.Idle);
}
diff --git a/lib/core/viewModel/base_view_model.dart b/lib/core/viewModel/base_view_model.dart
index cdc0f3d9..f4d052cf 100644
--- a/lib/core/viewModel/base_view_model.dart
+++ b/lib/core/viewModel/base_view_model.dart
@@ -1,3 +1,5 @@
+import 'dart:isolate';
+
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
import 'package:doctor_app_flutter/models/doctor/doctor_profile_model.dart';
@@ -19,12 +21,12 @@ class BaseViewModel extends ChangeNotifier {
void setState(ViewState viewState) {
_state = viewState;
- notifyListeners();
+
+ notifyListeners();
}
Future ?getDoctorProfile({bool isGetProfile = false}) async {
- if(isGetProfile)
- {
+ if (isGetProfile) {
Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
doctorProfile = DoctorProfileModel.fromJson(profile);
if (doctorProfile != null) {
@@ -42,10 +44,25 @@ class BaseViewModel extends ChangeNotifier {
return doctorProfile;
}
}
-
- setDoctorProfile(DoctorProfileModel doctorProfile)async {
- await sharedPref.setObj(DOCTOR_PROFILE, doctorProfile);
- this.doctorProfile = doctorProfile;
- notifyListeners();
+
+ void getIsolateDoctorProfile(bool isGetProfile) async {
+ if (isGetProfile) {
+ Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
+ if (profile != null) {
+ doctorProfile = DoctorProfileModel.fromJson(profile);
+ }
+ }
+ if (doctorProfile == null) {
+ Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
+ if (profile != null) {
+ doctorProfile = DoctorProfileModel.fromJson(profile);
+ }
+ }
+ }
+
+ setDoctorProfile(DoctorProfileModel doctorProfile) async {
+ await sharedPref.setObj(DOCTOR_PROFILE, doctorProfile);
+ this.doctorProfile = doctorProfile;
+ notifyListeners();
}
}
diff --git a/lib/core/viewModel/dashboard_view_model.dart b/lib/core/viewModel/dashboard_view_model.dart
index 409fc935..38bf85e6 100644
--- a/lib/core/viewModel/dashboard_view_model.dart
+++ b/lib/core/viewModel/dashboard_view_model.dart
@@ -1,22 +1,23 @@
-import 'package:doctor_app_flutter/config/config.dart';
-import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
import 'package:doctor_app_flutter/core/service/home/dasboard_service.dart';
+import 'package:doctor_app_flutter/core/service/home/doctor_reply_service.dart';
import 'package:doctor_app_flutter/core/service/special_clinics/special_clinic_service.dart';
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
import 'package:doctor_app_flutter/models/dashboard/dashboard_model.dart';
import 'package:doctor_app_flutter/models/dashboard/get_special_clinical_care_List_Respose_Model.dart';
import 'package:doctor_app_flutter/models/doctor/clinic_model.dart';
-import 'package:doctor_app_flutter/models/doctor/profile_req_Model.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
import '../../locator.dart';
import 'authentication_view_model.dart';
import 'base_view_model.dart';
+
class DashboardViewModel extends BaseViewModel {
final FirebaseMessaging _firebaseMessaging = FirebaseMessaging.instance;
DashboardService _dashboardService = locator();
- SpecialClinicsService _specialClinicsService = locator();
+ SpecialClinicsService _specialClinicsService =
+ locator();
+ DoctorReplyService _doctorReplyService = locator();
List get dashboardItemsList => _dashboardService.dashboardItemsList;
@@ -24,20 +25,38 @@ class DashboardViewModel extends BaseViewModel {
String? get sServiceID => _dashboardService.sServiceID;
- List get specialClinicalCareList =>
+ int get notRepliedCount => _doctorReplyService.notRepliedCount;
+
+List get specialClinicalCareList =>
_specialClinicsService.specialClinicalCareList;
- Future setFirebaseNotification(ProjectViewModel projectsProvider, AuthenticationViewModel authProvider) async {
+ Future startHomeScreenServices(ProjectViewModel projectsProvider, AuthenticationViewModel authProvider) async {
setState(ViewState.Busy);
- await projectsProvider.getDoctorClinicsList();
+ await getDoctorProfile(isGetProfile: true);
- // _firebaseMessaging.setAutoInitEnabled(true);
+ final results = await Future.wait([
+ projectsProvider.getDoctorClinicsList(),
+ _dashboardService.getDashboard(),
+ _dashboardService.checkDoctorHasLiveCare(),
+ _specialClinicsService.getSpecialClinicalCareList(),
+ ]);
+
+ if (_dashboardService.hasError) {
+ error = _dashboardService.error!;
+ setState(ViewState.ErrorLocal);
+ } else
+ setState(ViewState.Idle);
+
+ setFirebaseNotification(authProvider);
+ }
+
+ Future setFirebaseNotification(AuthenticationViewModel authProvider) async {
_firebaseMessaging.requestPermission(sound: true, badge: true, alert: true, provisional: true);
_firebaseMessaging.getToken().then((String? token) async {
if (token != '') {
- DEVICE_TOKEN = token!;
- authProvider.insertDeviceImei();
+ // DEVICE_TOKEN = token!;
+ authProvider.insertDeviceImei(token);
}
});
}
@@ -45,31 +64,21 @@ class DashboardViewModel extends BaseViewModel {
Future getDashboard() async {
setState(ViewState.Busy);
await _dashboardService.getDashboard();
- if (_dashboardService.hasError) {
- error = _dashboardService.error!;
- setState(ViewState.Error);
- } else
- setState(ViewState.Idle);
}
Future checkDoctorHasLiveCare() async {
setState(ViewState.Busy);
await _dashboardService.checkDoctorHasLiveCare();
- if (_dashboardService.hasError) {
- error = _dashboardService.error!;
- setState(ViewState.Error);
- } else
- setState(ViewState.Idle);
}
Future getSpecialClinicalCareList() async {
setState(ViewState.Busy);
await _specialClinicsService.getSpecialClinicalCareList();
- if (_specialClinicsService.hasError) {
- error = _specialClinicsService.error!;
- setState(ViewState.Error);
- } else
- setState(ViewState.Idle);
+ // if (_specialClinicsService.hasError) {
+ // error = _specialClinicsService.error!;
+ // setState(ViewState.Error);
+ // } else
+ // setState(ViewState.Idle);
}
Future changeClinic(int clinicId, AuthenticationViewModel authProvider) async {
@@ -82,7 +91,7 @@ class DashboardViewModel extends BaseViewModel {
);
await authProvider.getDoctorProfileBasedOnClinic(clinicModel);
if (authProvider.state == ViewState.ErrorLocal) {
- error = authProvider.error;
+ error = authProvider.error!;
}
}
@@ -96,11 +105,24 @@ class DashboardViewModel extends BaseViewModel {
GetSpecialClinicalCareListResponseModel? getSpecialClinic(clinicId) {
GetSpecialClinicalCareListResponseModel? special;
specialClinicalCareList.forEach((element) {
- if (element.clinicID == 1) {
+ if (element.clinicID == clinicId) {
special = element;
}
});
return special;
}
+
+ Future getNotRepliedCount() async {
+ setState(ViewState.BusyLocal);
+ await getDoctorProfile();
+ await _doctorReplyService.getNotRepliedCount();
+ if (_doctorReplyService.hasError) {
+ error = _doctorReplyService.error!;
+ setState(ViewState.ErrorLocal);
+ } else {
+ notifyListeners();
+ setState(ViewState.Idle);
+ }
+ }
}
diff --git a/lib/core/viewModel/doctor_replay_view_model.dart b/lib/core/viewModel/doctor_replay_view_model.dart
index 37a61afe..bb7dd336 100644
--- a/lib/core/viewModel/doctor_replay_view_model.dart
+++ b/lib/core/viewModel/doctor_replay_view_model.dart
@@ -1,6 +1,8 @@
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
import 'package:doctor_app_flutter/core/service/home/doctor_reply_service.dart';
import 'package:doctor_app_flutter/models/doctor/list_gt_my_patients_question_model.dart';
+import 'package:doctor_app_flutter/models/doctor/replay/request_create_doctor_response.dart';
+import 'package:doctor_app_flutter/models/doctor/replay/request_doctor_reply.dart';
import '../../locator.dart';
import 'base_view_model.dart';
@@ -10,25 +12,57 @@ class DoctorReplayViewModel extends BaseViewModel {
List get listDoctorWorkingHoursTable =>
_doctorReplyService.listDoctorWorkingHoursTable;
+ List get listDoctorNotRepliedQuestions =>
+ _doctorReplyService.listDoctorNotRepliedQuestions;
- Future getDoctorReply() async {
- setState(ViewState.Busy);
- await _doctorReplyService.getDoctorReply();
+ Future getDoctorReply(
+ {int pageSize = 10,
+ int pageIndex = 1,
+ bool isLocalBusy = true,
+ bool isGettingNotReply = false}) async {
+ if (isLocalBusy) {
+ setState(ViewState.BusyLocal);
+ } else {
+ setState(ViewState.Busy);
+ }
+ await getDoctorProfile();
+ RequestDoctorReply _requestDoctorReply =
+ RequestDoctorReply(pageIndex: pageIndex, pageSize: pageSize);
+ if (isGettingNotReply)
+ _requestDoctorReply.infoStatus = 99; //to get the not replied only
+
+ await _doctorReplyService.getDoctorReply(_requestDoctorReply,
+ clearData: !isLocalBusy, isGettingNotReply: isGettingNotReply);
if (_doctorReplyService.hasError) {
error = _doctorReplyService.error!;
- setState(ViewState.Error);
+ if (isLocalBusy) {
+ setState(ViewState.ErrorLocal);
+ } else {
+ setState(ViewState.Error);
+ }
} else
setState(ViewState.Idle);
}
- Future replay(
- String referredDoctorRemarks, ListGtMyPatientsQuestions model) async {
+ Future createDoctorResponse(
+ String response, ListGtMyPatientsQuestions model) async {
+ await getDoctorProfile();
+ CreateDoctorResponseModel createDoctorResponseModel =
+ CreateDoctorResponseModel(
+ transactionNo: model.transactionNo.toString(),
+ doctorResponse: response,
+ infoStatus: 6,
+ createdBy: this.doctorProfile.doctorID,
+ infoEnteredBy: this.doctorProfile.doctorID,
+ setupID: "010266");
setState(ViewState.BusyLocal);
- await _doctorReplyService.replay(referredDoctorRemarks, model);
+ await _doctorReplyService.createDoctorResponse(createDoctorResponseModel);
if (_doctorReplyService.hasError) {
error = _doctorReplyService.error!;
setState(ViewState.ErrorLocal);
- } else
+ } else {
setState(ViewState.Idle);
+ _doctorReplyService.getNotRepliedCount();
+ }
}
}
diff --git a/lib/core/viewModel/labs_view_model.dart b/lib/core/viewModel/labs_view_model.dart
index 674dddd5..aca7c9e0 100644
--- a/lib/core/viewModel/labs_view_model.dart
+++ b/lib/core/viewModel/labs_view_model.dart
@@ -1,6 +1,8 @@
import 'package:doctor_app_flutter/core/enum/filter_type.dart';
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
import 'package:doctor_app_flutter/core/model/labs/LabOrderResult.dart';
+import 'package:doctor_app_flutter/core/model/labs/LabResultHistory.dart';
+import 'package:doctor_app_flutter/core/model/labs/all_special_lab_result_model.dart';
import 'package:doctor_app_flutter/core/model/labs/lab_result.dart';
import 'package:doctor_app_flutter/core/model/labs/patient_lab_orders.dart';
import 'package:doctor_app_flutter/core/model/labs/patient_lab_special_result.dart';
@@ -15,16 +17,16 @@ class LabsViewModel extends BaseViewModel {
FilterType filterType = FilterType.Clinic;
LabsService _labsService = locator();
- List get labOrdersResultsList =>
- _labsService.labOrdersResultsList;
+ List get labOrdersResultsList => _labsService.labOrdersResultsList;
+ List get allSpecialLabList => _labsService.allSpecialLab;
List _patientLabOrdersListClinic = [];
List _patientLabOrdersListHospital = [];
List get patientLabOrdersList =>
- filterType == FilterType.Clinic
- ? _patientLabOrdersListClinic
- : _patientLabOrdersListHospital;
+ filterType == FilterType.Clinic ? _patientLabOrdersListClinic : _patientLabOrdersListHospital;
+
+ List get labOrdersResultHistoryList => _labsService.labOrdersResultHistoryList;
void getLabs(PatiantInformtion patient) async {
setState(ViewState.Busy);
@@ -34,41 +36,33 @@ class LabsViewModel extends BaseViewModel {
setState(ViewState.Error);
} else {
_labsService.patientLabOrdersList.forEach((element) {
- List patientLabOrdersClinic =
- _patientLabOrdersListClinic
- .where((elementClinic) =>
- elementClinic.filterName == element.clinicDescription)
- .toList();
+ List patientLabOrdersClinic = _patientLabOrdersListClinic
+ .where((elementClinic) => elementClinic.filterName == element.clinicDescription)
+ .toList();
if (patientLabOrdersClinic.length != 0) {
- _patientLabOrdersListClinic[_patientLabOrdersListClinic
- .indexOf(patientLabOrdersClinic[0])]
+ _patientLabOrdersListClinic[_patientLabOrdersListClinic.indexOf(patientLabOrdersClinic[0])]
.patientLabOrdersList
.add(element);
} else {
- _patientLabOrdersListClinic.add(PatientLabOrdersList(
- filterName: element.clinicDescription!,
- patientDoctorAppointment: element));
+ _patientLabOrdersListClinic
+ .add(PatientLabOrdersList(filterName: element.clinicDescription!, patientDoctorAppointment: element));
}
// doctor list sort via project
- List patientLabOrdersHospital =
- _patientLabOrdersListHospital
- .where(
- (elementClinic) =>
- elementClinic.filterName == element.projectName,
- )
- .toList();
+ List