diff --git a/.vscode/settings.json b/.vscode/settings.json
index e592e48b..045932f0 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,7 +1,7 @@
{
"commentBox.styles": {
"defaultStyle": {
- "commentStartToken": "/* \n *@author: Amjad Amireh \n *@Date:27/4/2020 \n *@param: \n *@return:\n *@desc: ",
+ "commentStartToken": "/* \n *@author: Ibrahim Albitar \n *@Date:03/06/2020 \n *@param: \n *@return:\n *@desc: ",
"commentEndToken": "\n */",
"leftEdgeToken": " * ",
"rightEdgeToken": "",
diff --git a/assets/images/dashboard_icon/discharge_patient.svg b/assets/images/dashboard_icon/discharge_patient.svg
deleted file mode 100644
index 68186c51..00000000
--- a/assets/images/dashboard_icon/discharge_patient.svg
+++ /dev/null
@@ -1,37 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/home_icon.svg b/assets/images/dashboard_icon/home_icon.svg
deleted file mode 100644
index 32597a47..00000000
--- a/assets/images/dashboard_icon/home_icon.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/home_icon_active.svg b/assets/images/dashboard_icon/home_icon_active.svg
deleted file mode 100644
index 31b47d99..00000000
--- a/assets/images/dashboard_icon/home_icon_active.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/in_patient_white.svg b/assets/images/dashboard_icon/in_patient_white.svg
deleted file mode 100644
index d648f62c..00000000
--- a/assets/images/dashboard_icon/in_patient_white.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/lab_results.svg b/assets/images/dashboard_icon/lab_results.svg
deleted file mode 100644
index 353c6a19..00000000
--- a/assets/images/dashboard_icon/lab_results.svg
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/menu_icon.svg b/assets/images/dashboard_icon/menu_icon.svg
deleted file mode 100644
index 0a62759b..00000000
--- a/assets/images/dashboard_icon/menu_icon.svg
+++ /dev/null
@@ -1,22 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/menu_icon_active.svg b/assets/images/dashboard_icon/menu_icon_active.svg
deleted file mode 100644
index b565b40a..00000000
--- a/assets/images/dashboard_icon/menu_icon_active.svg
+++ /dev/null
@@ -1,22 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/message_icon.svg b/assets/images/dashboard_icon/message_icon.svg
deleted file mode 100644
index d200320b..00000000
--- a/assets/images/dashboard_icon/message_icon.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/message_icon_active.svg b/assets/images/dashboard_icon/message_icon_active.svg
deleted file mode 100644
index 87759ec7..00000000
--- a/assets/images/dashboard_icon/message_icon_active.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/operations.svg b/assets/images/dashboard_icon/operations.svg
deleted file mode 100644
index 1dc283cc..00000000
--- a/assets/images/dashboard_icon/operations.svg
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/out_patient.svg b/assets/images/dashboard_icon/out_patient.svg
deleted file mode 100644
index bc0a7a9b..00000000
--- a/assets/images/dashboard_icon/out_patient.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/patient.svg b/assets/images/dashboard_icon/patient.svg
deleted file mode 100644
index 40082dcc..00000000
--- a/assets/images/dashboard_icon/patient.svg
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/qr-code.svg b/assets/images/dashboard_icon/qr-code.svg
deleted file mode 100644
index a85e6e63..00000000
--- a/assets/images/dashboard_icon/qr-code.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/assets/images/dashboard_icon/radiology.svg b/assets/images/dashboard_icon/radiology.svg
deleted file mode 100644
index e8e45723..00000000
--- a/assets/images/dashboard_icon/radiology.svg
+++ /dev/null
@@ -1,27 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/referral.svg b/assets/images/dashboard_icon/referral.svg
deleted file mode 100644
index bdf4d096..00000000
--- a/assets/images/dashboard_icon/referral.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/scdedule_icon_active.svg b/assets/images/dashboard_icon/scdedule_icon_active.svg
deleted file mode 100644
index 5c3fc7ae..00000000
--- a/assets/images/dashboard_icon/scdedule_icon_active.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/schedule_icon.svg b/assets/images/dashboard_icon/schedule_icon.svg
deleted file mode 100644
index 10b78b14..00000000
--- a/assets/images/dashboard_icon/schedule_icon.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/assets/images/dashboard_icon/search_patient.svg b/assets/images/dashboard_icon/search_patient.svg
deleted file mode 100644
index 92c1ca4b..00000000
--- a/assets/images/dashboard_icon/search_patient.svg
+++ /dev/null
@@ -1,32 +0,0 @@
-
diff --git a/icons_app/config.json b/icons_app/config.json
index 1acbf629..0e33e54a 100644
--- a/icons_app/config.json
+++ b/icons_app/config.json
@@ -34,20 +34,6 @@
"male"
]
},
- {
- "uid": "0bbb324cc39e62b3a4e05639a4f4008f",
- "css": "home_icon",
- "code": 59394,
- "src": "custom_icons",
- "selected": true,
- "svg": {
- "path": "M973.1 435L973.1 435 565 27A92 92 0 0 0 434.9 27L27.2 434.7 26.8 435.1A92 92 0 0 0 88 591.9C88.9 591.9 89.9 591.9 90.8 591.9H107.1V892.1A107.9 107.9 0 0 0 214.8 999.9H374.4A29.3 29.3 0 0 0 403.7 970.6V735.3A49.2 49.2 0 0 1 452.9 686.2H547A49.2 49.2 0 0 1 596.2 735.3V970.7A29.3 29.3 0 0 0 625.5 1000H785.1A107.9 107.9 0 0 0 892.8 892.3V592H907.8A92.1 92.1 0 0 0 973 434.9ZM931.6 523.7A33.4 33.4 0 0 1 907.9 533.5H863.5A29.3 29.3 0 0 0 834.2 562.8V892.3A49.2 49.2 0 0 1 785.1 941.4H654.9V735.3A107.9 107.9 0 0 0 547 627.5H452.9A107.9 107.9 0 0 0 345.1 735.2V941.3H215A49.2 49.2 0 0 1 165.8 892.1V562.8A29.3 29.3 0 0 0 136.5 533.5H92.8L91.4 533.5A33.4 33.4 0 0 1 68.4 476.4H68.4L476.3 68.4A33.4 33.4 0 0 1 523.6 68.4L931.4 476.2 931.6 476.4A33.4 33.4 0 0 1 931.6 523.7ZM931.6 523.7",
- "width": 1000
- },
- "search": [
- "home_icon"
- ]
- },
{
"uid": "06d6838cdcf6af812f2eb51e0269afc0",
"css": "home_icon_active",
@@ -383,6 +369,62 @@
"search": [
"scdedule_icon_active"
]
+ },
+ {
+ "uid": "5a324eddf382f5a1167d7d40325f82c8",
+ "css": "reject_icon",
+ "code": 59402,
+ "src": "custom_icons",
+ "selected": true,
+ "svg": {
+ "path": "M681 626.7L554.3 500 681 373.3A38.5 38.5 0 0 0 626.7 318.9L500 445.7 373.3 319A38.5 38.5 0 1 0 318.9 373.3L445.7 500 318.9 626.8A37.2 37.2 0 0 0 318.9 681.1 38.2 38.2 0 0 0 373.3 681.1L500 554.4 626.7 681.1A38.5 38.5 0 0 0 681.1 681.1 38.2 38.2 0 0 0 681 626.7ZM500 67.3A432.5 432.5 0 1 1 194 194 429.8 429.8 0 0 1 500 67.3M500 0A500 500 0 1 0 1000 500 500 500 0 0 0 500 0Z",
+ "width": 1000
+ },
+ "search": [
+ "reject_icon"
+ ]
+ },
+ {
+ "uid": "2742f64b5e69cc4f39a2dcc5a081ad03",
+ "css": "approved_icon",
+ "code": 59403,
+ "src": "custom_icons",
+ "selected": true,
+ "svg": {
+ "path": "M756.3 348.3L714 304.8A9.1 9.1 0 0 0 707.2 302H707.2A8.7 8.7 0 0 0 700.5 304.8L407.2 600.3 300.5 493.5A9.3 9.3 0 0 0 287.1 493.5L244.2 536.3A9.6 9.6 0 0 0 244.2 550L378.8 684.5A42.6 42.6 0 0 0 406.9 698.2 44.6 44.6 0 0 0 434.8 685H435L756.5 362A10.3 10.3 0 0 0 756.3 348.3ZM500 67.3A432.5 432.5 0 1 1 194 194 429.8 429.8 0 0 1 500 67.3M500 0A499.9 499.9 0 1 0 999.9 500 499.9 499.9 0 0 0 500 0Z",
+ "width": 1000
+ },
+ "search": [
+ "approved_icon"
+ ]
+ },
+ {
+ "uid": "148de09f7fd22c378cdfdbaacaa8e205",
+ "css": "pending_icon",
+ "code": 59404,
+ "src": "custom_icons",
+ "selected": true,
+ "svg": {
+ "path": "M809.8 932H797.3C781.5 932 768.2 929.8 766.5 914V913.7C731 583.9 523.3 577.6 523.3 499.9S731.1 415.9 766.5 86V85.9C768.2 70.1 781.5 68 797.3 68H809.8A34.8 34.8 0 0 0 844.7 35.7 34 34 0 0 0 810.7 0H35A34.8 34.8 0 0 0 0 32.3 34 34 0 0 0 34 68H47.2C63 68 76.3 70.2 78.1 85.9V86.2C113.7 416 321.5 422.3 321.5 500S113.7 584 78.3 913.8V914C76.6 929.8 63.3 932 47.5 932H35A34.8 34.8 0 0 0 0.1 964.3 34 34 0 0 0 34.1 1000H810.7A33.9 33.9 0 0 0 844.7 964.3 34.8 34.8 0 0 0 809.8 932ZM197.4 848.9C267 655.2 390.6 678.7 390.6 602.3V467.5C390.6 420.4 301.2 387.6 245.4 311.1A19 19 0 0 1 261.2 281H583.8A18.9 18.9 0 0 1 600 310.6C545.2 387.3 454.2 420.4 454.2 467.4V602.4C454.2 678.1 572.9 657.5 647.8 849 654.7 866.3 649.5 887.8 631.2 887.8H214.1C195.4 887.8 191.1 866.5 197.4 849Z",
+ "width": 845
+ },
+ "search": [
+ "pending_icon"
+ ]
+ },
+ {
+ "uid": "0bbb324cc39e62b3a4e05639a4f4008f",
+ "css": "home_icon",
+ "code": 59394,
+ "src": "custom_icons",
+ "selected": true,
+ "svg": {
+ "path": "M973.1 435L973.1 435 565 27A92 92 0 0 0 434.9 27L27.2 434.7 26.8 435.1A92 92 0 0 0 88 591.9C88.9 591.9 89.9 591.9 90.8 591.9H107.1V892.1A107.9 107.9 0 0 0 214.8 999.9H374.4A29.3 29.3 0 0 0 403.7 970.6V735.3A49.2 49.2 0 0 1 452.9 686.2H547A49.2 49.2 0 0 1 596.2 735.3V970.7A29.3 29.3 0 0 0 625.5 1000H785.1A107.9 107.9 0 0 0 892.8 892.3V592H907.8A92.1 92.1 0 0 0 973 434.9ZM931.6 523.7A33.4 33.4 0 0 1 907.9 533.5H863.5A29.3 29.3 0 0 0 834.2 562.8V892.3A49.2 49.2 0 0 1 785.1 941.4H654.9V735.3A107.9 107.9 0 0 0 547 627.5H452.9A107.9 107.9 0 0 0 345.1 735.2V941.3H215A49.2 49.2 0 0 1 165.8 892.1V562.8A29.3 29.3 0 0 0 136.5 533.5H92.8L91.4 533.5A33.4 33.4 0 0 1 68.4 476.4H68.4L476.3 68.4A33.4 33.4 0 0 1 523.6 68.4L931.4 476.2 931.6 476.4A33.4 33.4 0 0 1 931.6 523.7ZM931.6 523.7",
+ "width": 1000
+ },
+ "search": [
+ "home_icon"
+ ]
}
]
}
\ No newline at end of file
diff --git a/lib/client/base_app_client.dart b/lib/client/base_app_client.dart
index 0d57b9dd..27fcb103 100644
--- a/lib/client/base_app_client.dart
+++ b/lib/client/base_app_client.dart
@@ -2,10 +2,13 @@ import 'dart:convert';
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
-import 'package:doctor_app_flutter/interceptor/http_interceptor.dart';
import 'package:doctor_app_flutter/models/doctor_profile_model.dart';
+import 'package:doctor_app_flutter/util/dr_app_shared_pref.dart';
import 'package:doctor_app_flutter/util/helpers.dart';
-import 'package:http/http.dart';
+import 'package:http/http.dart' as http;
+
+DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
+Helpers helpers = new Helpers();
/*
*@author: Mohammad Aljammal
@@ -14,6 +17,7 @@ import 'package:http/http.dart';
*@return:
*@desc:
*/
+
///Example
/*
await BaseAppClient.post('',
@@ -22,8 +26,6 @@ import 'package:http/http.dart';
body: null);
* */
class BaseAppClient {
- static Client client = HttpInterceptor().getClient();
-
static post(
String endPoint, {
Map body,
@@ -34,12 +36,15 @@ class BaseAppClient {
try {
Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
String token = await sharedPref.getString(TOKEN);
- DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
- body['DoctorID'] = doctorProfile.doctorID;
- body['EditedBy'] = doctorProfile.doctorID;
- body['ProjectID'] = doctorProfile.projectID;
- body['ClinicID'] = doctorProfile.clinicID;
- body['TokenID'] = token;
+ if (profile != null) {
+ DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
+ body['DoctorID'] = doctorProfile?.doctorID;
+ body['EditedBy'] = doctorProfile?.doctorID;
+ body['ProjectID'] = doctorProfile?.projectID;
+ // if (!body.containsKey('ClinicID'))
+ body['ClinicID'] = doctorProfile?.clinicID;
+ }
+ body['TokenID'] = token ?? '';
body['LanguageID'] = LANGUAGE_ID;
body['stamp'] = STAMP;
body['IPAdress'] = IP_ADDRESS;
@@ -48,15 +53,26 @@ class BaseAppClient {
body['SessionID'] = SESSION_ID;
body['IsLoginForDoctorApp'] = IS_LOGIN_FOR_DOCTOR_APP;
body['PatientOutSA'] = PATIENT_OUT_SA;
+ print("URL : $url");
+ print("Body : ${json.encode(body)}");
if (await Helpers.checkConnection()) {
- final response = await client.post(url, body: json.encode(body));
+ final response = await http.post(url,
+ body: json.encode(body),
+ headers: {
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+ });
final int statusCode = response.statusCode;
if (statusCode < 200 || statusCode >= 400 || json == null) {
onFailure('Error While Fetching data', statusCode);
} else {
var parsed = json.decode(response.body.toString());
- if (parsed['MessageStatus'] == 1) {
+ if (!parsed['IsAuthenticated']) {
+ await helpers.logout();
+
+ helpers.showErrorToast('Your session expired Please login agian');
+ } else if (parsed['MessageStatus'] == 1) {
onSuccess(parsed, statusCode);
} else {
onFailure(parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'],
diff --git a/lib/config/config.dart b/lib/config/config.dart
index 4eeb0ad4..af7633f3 100644
--- a/lib/config/config.dart
+++ b/lib/config/config.dart
@@ -1,6 +1,6 @@
const MAX_SMALL_SCREEN = 660;
const ONLY_NUMBERS = "[0-9]";
-const ONLY_LETTERS = "[a-zA-Z]";
+const ONLY_LETTERS = "[a-zA-Z &'\"]";
const ONLY_DATE = "[0-9/]";
//const BASE_URL = 'https://hmgwebservices.com/Services/';
const BASE_URL = 'https://uat.hmgwebservices.com/Services/';
@@ -12,6 +12,13 @@ const PATIENT_INSURANCE_APPROVALS_URL =
"DoctorApplication.svc/REST/GetApprovalStatusForInpatient";
const PATIENT_ORDERS_URL =
"DoctorApplication.svc/REST/GetProgressNoteForInPatient";
+const PATIENT_REFER_TO_DOCTOR_URL = "DoctorApplication.svc/REST/ReferToDoctor";
+const PATIENT_GET_DOCTOR_BY_CLINIC_URL =
+ "DoctorApplication.svc/REST/GetDoctorsByClinicID";
+const PATIENT_GET_LIST_REFERAL_URL =
+ "Lists.svc/REST/GetList_STPReferralFrequency";
+const PATIENT_GET_CLINIC_BY_PROJECT_URL =
+ "DoctorApplication.svc/REST/GetClinicsByProjectID";
const GET_PROJECTS = 'Lists.svc/REST/GetProjectForDoctorAPP';
const GET_PATIENT_VITAL_SIGN = 'Doctors.svc/REST/Doctor_GetPatientVitalSign';
@@ -20,7 +27,7 @@ const GET_PATIENT_LAB_OREDERS =
const GET_PRESCRIPTION = 'Patients.svc/REST/GetPrescriptionApptList';
const GET_RADIOLOGY = 'DoctorApplication.svc/REST/GetPatientRadResult';
-var selectedPatientType = 0;
+var selectedPatientType = 1;
//*********change value to decode json from Dropdown ************
var SERVICES_PATIANT = [
@@ -67,3 +74,7 @@ const PATIENT_OUT_SA = false;
/// Timer Info
const TIMER_MIN = 10;
+
+class AppGlobal {
+ static var CONTEX;
+}
diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart
index 675d846f..33f184d2 100644
--- a/lib/config/localized_values.dart
+++ b/lib/config/localized_values.dart
@@ -41,5 +41,19 @@ const Map> localizedValues = {
'inPatient': {'en': 'In-Patient', 'ar': 'االمريض الداخلي'},
'operations': {'en': 'Operations', 'ar': 'عمليات'},
'patientServices': {'en': 'Patient Services', 'ar': 'خدمات المرضى'},
- 'familyMedicine': {'en': 'Family Medicine Clinic', 'ar': 'عيادة طب الأسرة'}
+ 'searchMedicine': {'en': 'Search Medicine', 'ar': 'بحث عن الدواء'},
+ 'myReferralPatient': {'en': 'My Referral Patient', 'ar': 'مرضى الاحالة'},
+ 'myReferredPatient': {'en': 'My Referred Patient', 'ar': 'مرضاي المحالين'},
+ 'firstName': {'en': 'First Name', 'ar': 'الاسم الاول'},
+ 'middleName': {'en': 'Middle Name', 'ar': 'اسم الاب'},
+ 'lastName': {'en': 'Last Name', 'ar': 'اسم العائلة'},
+ 'phoneNumber': {'en': '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': 'المريض الذي حضر للموعد'
+ },
};
diff --git a/lib/landing_page.dart b/lib/landing_page.dart
index a9f844f8..174a38ab 100644
--- a/lib/landing_page.dart
+++ b/lib/landing_page.dart
@@ -51,14 +51,7 @@ class _LandingPageState extends State {
},
),
centerTitle: true,
- actions: [
- ProfileImageWidget(
- height: 50,
- width: 50,
- url:
- "https://hmgwebservices.com/Images/MobileImages/DUBAI/unkown_female.png",
- )
- ],
+
),
drawer: Theme(
data: Theme.of(context).copyWith(
diff --git a/lib/main.dart b/lib/main.dart
index 470c5d52..d5f65406 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -11,6 +11,7 @@ import './providers/auth_provider.dart';
import './providers/patients_provider.dart';
import './providers/hospital_provider.dart';
import './routes.dart';
+import 'config/config.dart';
void main() => runApp(MyApp());
@@ -18,6 +19,7 @@ class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
+ AppGlobal.CONTEX = context;
return LayoutBuilder(
builder: (context, constraints) {
return OrientationBuilder(builder: (context, orientation) {
diff --git a/lib/models/patient/get_clinic_by_project_id_request.dart b/lib/models/patient/get_clinic_by_project_id_request.dart
new file mode 100644
index 00000000..862fbab4
--- /dev/null
+++ b/lib/models/patient/get_clinic_by_project_id_request.dart
@@ -0,0 +1,80 @@
+class ClinicByProjectIdRequest {
+
+ /*
+ *@author: Ibrahim Albitar
+ *@Date:03/06/2020
+ *@param:
+ *@return:
+ *@desc: ClinicByProjectIdRequest
+ */
+
+ int projectID;
+ int languageID;
+ String stamp;
+ String iPAdress;
+ double versionID;
+ int channel;
+ String tokenID;
+ String sessionID;
+ bool isLoginForDoctorApp;
+ bool patientOutSA;
+ int patientTypeID;
+ /*
+ {
+ "ProjectID": 21,
+ "LanguageID": 2,
+ "stamp": "2020-06-03T11:18:19.979Z",
+ "IPAdress": "11.11.11.11",
+ "VersionID": 1.2,
+ "Channel": 9,
+ "TokenID": "gyIQFH4WWEm2Tq7xjYMjsg==",
+ "SessionID": "JBXRsDl37L",
+ "IsLoginForDoctorApp": true,
+ "PatientOutSA": false,
+ "PatientTypeID": 1
+}
+ */
+
+ ClinicByProjectIdRequest(
+ {this.projectID,
+ this.languageID = 2,
+ this.stamp = "2020-06-03T11:18:19.979Z",
+ this.iPAdress = "11.11.11.11",
+ this.versionID = 1.2,
+ this.channel = 9,
+ this.tokenID,
+ this.sessionID = "JBXRsDl37L",
+ this.isLoginForDoctorApp = true,
+ this.patientOutSA = false,
+ this.patientTypeID = 1});
+
+ ClinicByProjectIdRequest.fromJson(Map json) {
+ projectID = json['ProjectID'];
+ languageID = json['LanguageID'];
+ stamp = json['stamp'];
+ iPAdress = json['IPAdress'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ tokenID = json['TokenID'];
+ sessionID = json['SessionID'];
+ isLoginForDoctorApp = json['IsLoginForDoctorApp'];
+ patientOutSA = json['PatientOutSA'];
+ patientTypeID = json['PatientTypeID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ProjectID'] = this.projectID;
+ data['LanguageID'] = this.languageID;
+ data['stamp'] = this.stamp;
+ data['IPAdress'] = this.iPAdress;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['TokenID'] = this.tokenID;
+ data['SessionID'] = this.sessionID;
+ data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['PatientTypeID'] = this.patientTypeID;
+ return data;
+ }
+}
diff --git a/lib/models/patient/get_doctor_by_clinic_id_request.dart b/lib/models/patient/get_doctor_by_clinic_id_request.dart
new file mode 100644
index 00000000..a2b33e29
--- /dev/null
+++ b/lib/models/patient/get_doctor_by_clinic_id_request.dart
@@ -0,0 +1,86 @@
+class DoctorsByClinicIdRequest {
+
+/*
+ *@author: Ibrahim Albitar
+ *@Date:03/06/2020
+ *@param:
+ *@return:
+ *@desc: DoctorsByClinicIdRequest
+ */
+
+ int projectID;
+ String clinicID;
+ int languageID;
+ String stamp;
+ String iPAdress;
+ double versionID;
+ int channel;
+ String tokenID;
+ String sessionID;
+ bool isLoginForDoctorApp;
+ bool patientOutSA;
+ int patientTypeID;
+
+ /*
+ {
+ "ProjectID": 21,
+ "ClinicID": "0",
+ "LanguageID": 2,
+ "stamp": "2020-06-03T11:22:04.702Z",
+ "IPAdress": "11.11.11.11",
+ "VersionID": 1.2,
+ "Channel": 9,
+ "TokenID": "gyIQFH4WWEm2Tq7xjYMjsg==",
+ "SessionID": "JBXRsDl37L",
+ "IsLoginForDoctorApp": true,
+ "PatientOutSA": false,
+ "PatientTypeID": 1
+}
+ */
+
+ DoctorsByClinicIdRequest(
+ {this.projectID,
+ this.clinicID,
+ this.languageID = 2,
+ this.stamp = "2020-06-03T11:22:04.702Z",
+ this.iPAdress = "11.11.11.11",
+ this.versionID = 1.2,
+ this.channel = 9,
+ this.tokenID,
+ this.sessionID = "JBXRsDl37L",
+ this.isLoginForDoctorApp = true,
+ this.patientOutSA = false,
+ this.patientTypeID = 1});
+
+ DoctorsByClinicIdRequest.fromJson(Map json) {
+ projectID = json['ProjectID'];
+ clinicID = json['ClinicID'];
+ languageID = json['LanguageID'];
+ stamp = json['stamp'];
+ iPAdress = json['IPAdress'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ tokenID = json['TokenID'];
+ sessionID = json['SessionID'];
+ isLoginForDoctorApp = json['IsLoginForDoctorApp'];
+ patientOutSA = json['PatientOutSA'];
+ patientTypeID = json['PatientTypeID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ProjectID'] = this.projectID;
+ data['ClinicID'] = this.clinicID;
+ data['LanguageID'] = this.languageID;
+ data['stamp'] = this.stamp;
+ data['IPAdress'] = this.iPAdress;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['TokenID'] = this.tokenID;
+ data['SessionID'] = this.sessionID;
+ data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['PatientTypeID'] = this.patientTypeID;
+ return data;
+ }
+}
diff --git a/lib/models/patient/get_list_stp_referral_frequency_request.dart b/lib/models/patient/get_list_stp_referral_frequency_request.dart
new file mode 100644
index 00000000..3b3c2655
--- /dev/null
+++ b/lib/models/patient/get_list_stp_referral_frequency_request.dart
@@ -0,0 +1,75 @@
+class STPReferralFrequencyRequest {
+
+/*
+ *@author: Ibrahim Albitar
+ *@Date:03/06/2020
+ *@param:
+ *@return:
+ *@desc:
+ */
+
+ int languageID;
+ String stamp;
+ String iPAdress;
+ double versionID;
+ int channel;
+ String tokenID;
+ String sessionID;
+ bool isLoginForDoctorApp;
+ bool patientOutSA;
+ int patientTypeID;
+ /*
+{
+ "LanguageID": 2,
+ "stamp": "2020-06-03T11:18:19.986Z",
+ "IPAdress": "11.11.11.11",
+ "VersionID": 1.2,
+ "Channel": 9,
+ "TokenID": "gyIQFH4WWEm2Tq7xjYMjsg==",
+ "SessionID": "JBXRsDl37L",
+ "IsLoginForDoctorApp": true,
+ "PatientOutSA": false,
+ "PatientTypeID": 1
+}
+ */
+
+ STPReferralFrequencyRequest(
+ {this.languageID = 2,
+ this.stamp = "2020-06-03T11:18:19.986Z",
+ this.iPAdress = "11.11.11.11",
+ this.versionID = 1.2,
+ this.channel = 9,
+ this.tokenID,
+ this.sessionID = "JBXRsDl37L",
+ this.isLoginForDoctorApp = true,
+ this.patientOutSA = false,
+ this.patientTypeID = 1});
+
+ STPReferralFrequencyRequest.fromJson(Map json) {
+ languageID = json['LanguageID'];
+ stamp = json['stamp'];
+ iPAdress = json['IPAdress'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ tokenID = json['TokenID'];
+ sessionID = json['SessionID'];
+ isLoginForDoctorApp = json['IsLoginForDoctorApp'];
+ patientOutSA = json['PatientOutSA'];
+ patientTypeID = json['PatientTypeID'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['LanguageID'] = this.languageID;
+ data['stamp'] = this.stamp;
+ data['IPAdress'] = this.iPAdress;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['TokenID'] = this.tokenID;
+ data['SessionID'] = this.sessionID;
+ data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
+ data['PatientOutSA'] = this.patientOutSA;
+ data['PatientTypeID'] = this.patientTypeID;
+ return data;
+ }
+}
diff --git a/lib/models/patient/prescription_report_for_in_patient.dart b/lib/models/patient/prescription_report_for_in_patient.dart
index d4452e32..9b88279e 100644
--- a/lib/models/patient/prescription_report_for_in_patient.dart
+++ b/lib/models/patient/prescription_report_for_in_patient.dart
@@ -1,3 +1,5 @@
+import 'package:doctor_app_flutter/util/helpers.dart';
+
class PrescriptionReportForInPatient {
int admissionNo;
int authorizedBy;
@@ -25,7 +27,7 @@ class PrescriptionReportForInPatient {
int orderNo;
int patientID;
String pharmacyRemarks;
- String prescriptionDatetime;
+ DateTime prescriptionDatetime;
int prescriptionNo;
String processedBy;
int projectID;
@@ -38,11 +40,11 @@ class PrescriptionReportForInPatient {
int routeId;
Null routeN;
Null setupID;
- String startDatetime;
+ DateTime startDatetime;
int status;
String statusDescription;
Null statusDescriptionN;
- String stopDatetime;
+ DateTime stopDatetime;
int unitofMeasurement;
String unitofMeasurementDescription;
Null unitofMeasurementDescriptionN;
@@ -123,7 +125,7 @@ class PrescriptionReportForInPatient {
orderNo = json['OrderNo'];
patientID = json['PatientID'];
pharmacyRemarks = json['PharmacyRemarks'];
- prescriptionDatetime = json['PrescriptionDatetime'];
+ prescriptionDatetime = Helpers.convertStringToDate(json['PrescriptionDatetime']);
prescriptionNo = json['PrescriptionNo'];
processedBy = json['ProcessedBy'];
projectID = json['ProjectID'];
@@ -136,11 +138,11 @@ class PrescriptionReportForInPatient {
routeId = json['RouteId'];
routeN = json['RouteN'];
setupID = json['SetupID'];
- startDatetime = json['StartDatetime'];
+ startDatetime = Helpers.convertStringToDate(json['StartDatetime']) ;
status = json['Status'];
statusDescription = json['StatusDescription'];
statusDescriptionN = json['StatusDescriptionN'];
- stopDatetime = json['StopDatetime'];
+ stopDatetime = Helpers.convertStringToDate(json['StopDatetime']);
unitofMeasurement = json['UnitofMeasurement'];
unitofMeasurementDescription = json['UnitofMeasurementDescription'];
unitofMeasurementDescriptionN = json['UnitofMeasurementDescriptionN'];
diff --git a/lib/models/patient/refer_to_doctor_request.dart b/lib/models/patient/refer_to_doctor_request.dart
new file mode 100644
index 00000000..28eb488b
--- /dev/null
+++ b/lib/models/patient/refer_to_doctor_request.dart
@@ -0,0 +1,149 @@
+import 'package:flutter/cupertino.dart';
+
+class ReferToDoctorRequest {
+
+/*
+ *@author: Ibrahim Albitar
+ *@Date:03/06/2020
+ *@param:
+ *@return:
+ *@desc: ReferToDoctor
+ */
+
+ int projectID;
+ int admissionNo;
+ String roomID;
+ String referralClinic;
+ String referralDoctor;
+ int createdBy;
+ int editedBy;
+ int patientID;
+ int patientTypeID;
+ int referringClinic;
+ int referringDoctor;
+ String referringDoctorRemarks;
+ String priority;
+ String frequency;
+ String extension;
+ int languageID;
+ String stamp;
+ String iPAdress;
+ double versionID;
+ int channel;
+ String tokenID;
+ String sessionID;
+ bool isLoginForDoctorApp;
+ bool patientOutSA;
+
+
+ /*
+{
+ "ProjectID": 21,
+ "AdmissionNo": 2020005477,
+ "RoomID": "ISO-6",
+ "ReferralClinic": "36",
+ "ReferralDoctor": "230893",
+ "CreatedBy": 121814,
+ "EditedBy": 121814,
+ "PatientID": 3349491,
+ "PatientTypeID": 1,
+ "ReferringClinic": 14,
+ "ReferringDoctor": 121814,
+ "ReferringDoctorRemarks": "dfcdfdfdf",
+ "Priority": "1",
+ "Frequency": "1",
+ "Extension": "eeee",
+ "LanguageID": 2,
+ "stamp": "2020-06-03T11:26:42.358Z",
+ "IPAdress": "11.11.11.11",
+ "VersionID": 1.2,
+ "Channel": 9,
+ "TokenID": "gyIQFH4WWEm2Tq7xjYMjsg==",
+ "SessionID": "JBXRsDl37L",
+ "IsLoginForDoctorApp": true,
+ "PatientOutSA": false
+}
+ */
+
+ ReferToDoctorRequest(
+ {@required this.projectID,
+ @required this.admissionNo,
+ @required this.roomID ,
+ @required this.referralClinic,
+ @required this.referralDoctor ,
+ @required this.createdBy,
+ @required this.editedBy ,
+ @required this.patientID,
+ @required this.patientTypeID,
+ @required this.referringClinic,
+ @required this.referringDoctor,
+ @required this.referringDoctorRemarks,
+ @required this.priority ,
+ @required this.frequency,
+ @required this.extension,
+ this.languageID = 2,
+ this.stamp = "2020-06-03T11:26:42.358Z",
+ this.iPAdress = "11.11.11.11",
+ this.versionID = 1.2,
+ this.channel = 9,
+ @required this.tokenID,
+ this.sessionID = "JBXRsDl37L",
+ this.isLoginForDoctorApp = true,
+ this.patientOutSA = false});
+
+ ReferToDoctorRequest.fromJson(Map json) {
+ projectID = json['ProjectID'];
+ admissionNo = json['AdmissionNo'];
+ roomID = json['RoomID'];
+ referralClinic = json['ReferralClinic'];
+ referralDoctor = json['ReferralDoctor'];
+ createdBy = json['CreatedBy'];
+ editedBy = json['EditedBy'];
+ patientID = json['PatientID'];
+ patientTypeID = json['PatientTypeID'];
+ referringClinic = json['ReferringClinic'];
+ referringDoctor = json['ReferringDoctor'];
+ referringDoctorRemarks = json['ReferringDoctorRemarks'];
+ priority = json['Priority'];
+ frequency = json['Frequency'];
+ extension = json['Extension'];
+ languageID = json['LanguageID'];
+ stamp = json['stamp'];
+ iPAdress = json['IPAdress'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ tokenID = json['TokenID'];
+ sessionID = json['SessionID'];
+ isLoginForDoctorApp = json['IsLoginForDoctorApp'];
+ patientOutSA = json['PatientOutSA'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ProjectID'] = this.projectID;
+ data['AdmissionNo'] = this.admissionNo;
+ data['RoomID'] = this.roomID;
+ data['ReferralClinic'] = this.referralClinic;
+ data['ReferralDoctor'] = this.referralDoctor;
+ data['CreatedBy'] = this.createdBy;
+ data['EditedBy'] = this.editedBy;
+ data['PatientID'] = this.patientID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['ReferringClinic'] = this.referringClinic;
+ data['ReferringDoctor'] = this.referringDoctor;
+ data['ReferringDoctorRemarks'] = this.referringDoctorRemarks;
+ data['Priority'] = this.priority;
+ data['Frequency'] = this.frequency;
+ data['Extension'] = this.extension;
+ data['LanguageID'] = this.languageID;
+ data['stamp'] = this.stamp;
+ data['IPAdress'] = this.iPAdress;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['TokenID'] = this.tokenID;
+ data['SessionID'] = this.sessionID;
+ data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
+ data['PatientOutSA'] = this.patientOutSA;
+ return data;
+ }
+}
diff --git a/lib/models/pharmacies_items_request_model.dart b/lib/models/pharmacies_items_request_model.dart
index f9531e63..96df6da8 100644
--- a/lib/models/pharmacies_items_request_model.dart
+++ b/lib/models/pharmacies_items_request_model.dart
@@ -5,55 +5,65 @@
*@return:
*@desc:
*/
+
+
class PharmaciesItemsRequestModel {
- String phrItemName;
- int languageID;
- String stamp;
- String ipAdress;
- double versionID;
- String tokenID;
- String sessionID;
- bool isLoginForDoctorApp;
- bool patientOutSA;
- int patientTypeID;
+ String pHRItemName;
+ int pageIndex = 0;
+ int pageSize = 20;
+ double versionID = 5.2;
+ int channel = 3;
+ int languageID = 2;
+ String iPAdress = "10.20.10.20";
+ String generalid = "Cs2020@2016\$2958";
+ int patientOutSA = 0;
+ String sessionID = "KvFJENeAUCxyVdIfEkHw";
+ bool isDentalAllowedBackend = false;
+ int deviceTypeID = 2;
PharmaciesItemsRequestModel(
- {this.phrItemName = '',
- this.patientTypeID = 1,
- this.languageID = 2,
- this.stamp = '2020-04-23T21:01:21.492Z',
- this.ipAdress = '10.20.10.20',
+ {this.pHRItemName,
+ this.pageIndex = 0,
+ this.pageSize = 20,
this.versionID = 5.2,
- this.tokenID ,
+ this.channel = 3,
+ this.languageID = 2,
+ this.iPAdress = "10.20.10.20",
+ this.generalid = "Cs2020@2016\$2958",
+ this.patientOutSA = 0,
this.sessionID = "KvFJENeAUCxyVdIfEkHw",
- this.isLoginForDoctorApp = true,
- this.patientOutSA = false});
+ this.isDentalAllowedBackend = false,
+ this.deviceTypeID = 2});
PharmaciesItemsRequestModel.fromJson(Map json) {
- phrItemName = json['PHR_itemName'];
- patientTypeID = json['PatientTypeID'];
- languageID = json['LanguageID'];
- stamp = json['stamp'];
- ipAdress = json['IPAdress'];
+ pHRItemName = json['PHR_itemName'];
+ pageIndex = json['PageIndex'];
+ pageSize = json['PageSize'];
versionID = json['VersionID'];
- tokenID = json['TokenID'];
- sessionID = json['SessionID'];
- isLoginForDoctorApp = json['IsLoginForDoctorApp'];
+ 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['PHR_itemName'] = this.phrItemName;
- data['PatientTypeID'] = this.patientTypeID;
- data['LanguageID'] = this.languageID;
- data['stamp'] = this.stamp;
- data['IPAdress'] = this.ipAdress;
+ data['PHR_itemName'] = this.pHRItemName;
+ data['PageIndex'] = this.pageIndex;
+ data['PageSize'] = this.pageSize;
data['VersionID'] = this.versionID;
- data['TokenID'] = this.tokenID;
- data['SessionID'] = this.sessionID;
- data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
+ 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;
}
-}
+}
\ No newline at end of file
diff --git a/lib/models/prescription_report.dart b/lib/models/prescription_report.dart
new file mode 100644
index 00000000..05d28bdc
--- /dev/null
+++ b/lib/models/prescription_report.dart
@@ -0,0 +1,140 @@
+class PrescriptionReport {
+ String address;
+ int appointmentNo;
+ String clinic;
+ String companyName;
+ int days;
+ String doctorName;
+ int doseDailyQuantity;
+ String frequency;
+ int frequencyNumber;
+ Null imageExtension;
+ Null imageSRCUrl;
+ Null imageString;
+ Null imageThumbUrl;
+ String isCovered;
+ String itemDescription;
+ int itemID;
+ String orderDate;
+ int patientID;
+ String patientName;
+ String phoneOffice1;
+ Null prescriptionQR;
+ int prescriptionTimes;
+ Null productImage;
+ String productImageBase64;
+ String productImageString;
+ int projectID;
+ String projectName;
+ String remarks;
+ String route;
+ String sKU;
+ int scaleOffset;
+ String startDate;
+
+ PrescriptionReport(
+ {this.address,
+ this.appointmentNo,
+ this.clinic,
+ this.companyName,
+ this.days,
+ this.doctorName,
+ this.doseDailyQuantity,
+ this.frequency,
+ this.frequencyNumber,
+ this.imageExtension,
+ this.imageSRCUrl,
+ this.imageString,
+ this.imageThumbUrl,
+ this.isCovered,
+ this.itemDescription,
+ this.itemID,
+ this.orderDate,
+ this.patientID,
+ this.patientName,
+ this.phoneOffice1,
+ this.prescriptionQR,
+ this.prescriptionTimes,
+ this.productImage,
+ this.productImageBase64,
+ this.productImageString,
+ this.projectID,
+ this.projectName,
+ this.remarks,
+ this.route,
+ this.sKU,
+ this.scaleOffset,
+ this.startDate});
+
+ PrescriptionReport.fromJson(Map json) {
+ address = json['Address'];
+ appointmentNo = json['AppointmentNo'];
+ clinic = json['Clinic'];
+ companyName = json['CompanyName'];
+ days = json['Days'];
+ doctorName = json['DoctorName'];
+ doseDailyQuantity = json['DoseDailyQuantity'];
+ frequency = json['Frequency'];
+ frequencyNumber = json['FrequencyNumber'];
+ imageExtension = json['ImageExtension'];
+ imageSRCUrl = json['ImageSRCUrl'];
+ imageString = json['ImageString'];
+ imageThumbUrl = json['ImageThumbUrl'];
+ isCovered = json['IsCovered'];
+ itemDescription = json['ItemDescription'];
+ itemID = json['ItemID'];
+ orderDate = json['OrderDate'];
+ patientID = json['PatientID'];
+ patientName = json['PatientName'];
+ phoneOffice1 = json['PhoneOffice1'];
+ prescriptionQR = json['PrescriptionQR'];
+ prescriptionTimes = json['PrescriptionTimes'];
+ productImage = json['ProductImage'];
+ productImageBase64 = json['ProductImageBase64'];
+ productImageString = json['ProductImageString'];
+ projectID = json['ProjectID'];
+ projectName = json['ProjectName'];
+ remarks = json['Remarks'];
+ route = json['Route'];
+ sKU = json['SKU'];
+ scaleOffset = json['ScaleOffset'];
+ startDate = json['StartDate'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['Address'] = this.address;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['Clinic'] = this.clinic;
+ data['CompanyName'] = this.companyName;
+ data['Days'] = this.days;
+ data['DoctorName'] = this.doctorName;
+ data['DoseDailyQuantity'] = this.doseDailyQuantity;
+ data['Frequency'] = this.frequency;
+ data['FrequencyNumber'] = this.frequencyNumber;
+ data['ImageExtension'] = this.imageExtension;
+ data['ImageSRCUrl'] = this.imageSRCUrl;
+ data['ImageString'] = this.imageString;
+ data['ImageThumbUrl'] = this.imageThumbUrl;
+ data['IsCovered'] = this.isCovered;
+ data['ItemDescription'] = this.itemDescription;
+ data['ItemID'] = this.itemID;
+ data['OrderDate'] = this.orderDate;
+ data['PatientID'] = this.patientID;
+ data['PatientName'] = this.patientName;
+ data['PhoneOffice1'] = this.phoneOffice1;
+ data['PrescriptionQR'] = this.prescriptionQR;
+ data['PrescriptionTimes'] = this.prescriptionTimes;
+ data['ProductImage'] = this.productImage;
+ data['ProductImageBase64'] = this.productImageBase64;
+ data['ProductImageString'] = this.productImageString;
+ data['ProjectID'] = this.projectID;
+ data['ProjectName'] = this.projectName;
+ data['Remarks'] = this.remarks;
+ data['Route'] = this.route;
+ data['SKU'] = this.sKU;
+ data['ScaleOffset'] = this.scaleOffset;
+ data['StartDate'] = this.startDate;
+ return data;
+ }
+}
diff --git a/lib/models/request_prescription_report.dart b/lib/models/request_prescription_report.dart
new file mode 100644
index 00000000..0581692e
--- /dev/null
+++ b/lib/models/request_prescription_report.dart
@@ -0,0 +1,68 @@
+class RequestPrescriptionReport {
+ int projectID;
+ int appointmentNo;
+ int episodeID;
+ String setupID;
+ int patientTypeID;
+ int languageID;
+ String stamp;
+ String iPAdress;
+ double versionID;
+ int channel;
+ String tokenID;
+ String sessionID;
+ bool isLoginForDoctorApp;
+ bool patientOutSA;
+
+ RequestPrescriptionReport(
+ {this.projectID,
+ this.appointmentNo,
+ this.episodeID,
+ this.setupID,
+ this.patientTypeID,
+ this.languageID,
+ this.stamp,
+ this.iPAdress,
+ this.versionID,
+ this.channel,
+ this.tokenID,
+ this.sessionID,
+ this.isLoginForDoctorApp,
+ this.patientOutSA});
+
+ RequestPrescriptionReport.fromJson(Map json) {
+ projectID = json['ProjectID'];
+ appointmentNo = json['AppointmentNo'];
+ episodeID = json['EpisodeID'];
+ setupID = json['SetupID'];
+ patientTypeID = json['PatientTypeID'];
+ languageID = json['LanguageID'];
+ stamp = json['stamp'];
+ iPAdress = json['IPAdress'];
+ versionID = json['VersionID'];
+ channel = json['Channel'];
+ tokenID = json['TokenID'];
+ sessionID = json['SessionID'];
+ isLoginForDoctorApp = json['IsLoginForDoctorApp'];
+ patientOutSA = json['PatientOutSA'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ProjectID'] = this.projectID;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['EpisodeID'] = this.episodeID;
+ data['SetupID'] = this.setupID;
+ data['PatientTypeID'] = this.patientTypeID;
+ data['LanguageID'] = this.languageID;
+ data['stamp'] = this.stamp;
+ data['IPAdress'] = this.iPAdress;
+ data['VersionID'] = this.versionID;
+ data['Channel'] = this.channel;
+ data['TokenID'] = this.tokenID;
+ data['SessionID'] = this.sessionID;
+ data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
+ data['PatientOutSA'] = this.patientOutSA;
+ return data;
+ }
+}
diff --git a/lib/presentation/doctor_app_icons.dart b/lib/presentation/doctor_app_icons.dart
index 6c8064b8..272f3539 100644
--- a/lib/presentation/doctor_app_icons.dart
+++ b/lib/presentation/doctor_app_icons.dart
@@ -11,7 +11,7 @@
/// fonts:
/// - asset: fonts/DoctorApp.ttf
///
-///
+///
///
import 'package:flutter/widgets.dart';
@@ -21,24 +21,50 @@ class DoctorApp {
static const _kFontFam = 'DoctorApp';
static const _kFontPkg = null;
- static const IconData femaleicon = IconData(0xe800, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData male = IconData(0xe801, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData home_icon = IconData(0xe802, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData home_icon_active = IconData(0xe803, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData menu_icon = IconData(0xe804, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData menu_icon_active = IconData(0xe805, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData message_icon = IconData(0xe806, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData message_icon_active = IconData(0xe807, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData scdedule_icon_active = IconData(0xe808, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData schedule_icon = IconData(0xe809, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData discharge_patient = IconData(0xe80a, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData in_patient_white = IconData(0xe80d, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData lab_results = IconData(0xe80e, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData operations = IconData(0xe813, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData out_patient = IconData(0xe814, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData patient = IconData(0xe815, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData qr_code = IconData(0xe816, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData radiology = IconData(0xe817, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData referral = IconData(0xe818, fontFamily: _kFontFam, fontPackage: _kFontPkg);
- static const IconData search_patient = IconData(0xe81a, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData femaleicon =
+ IconData(0xe800, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData male =
+ IconData(0xe801, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData home_icon =
+ IconData(0xe802, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData home_icon_active =
+ IconData(0xe803, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData menu_icon =
+ IconData(0xe804, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData menu_icon_active =
+ IconData(0xe805, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData message_icon =
+ IconData(0xe806, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData message_icon_active =
+ IconData(0xe807, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData scdedule_icon_active =
+ IconData(0xe808, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData schedule_icon =
+ IconData(0xe809, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData discharge_patient =
+ IconData(0xe80a, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData in_patient_white =
+ IconData(0xe80d, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData lab_results =
+ IconData(0xe80e, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData operations =
+ IconData(0xe813, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData out_patient =
+ IconData(0xe814, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData patient =
+ IconData(0xe815, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData qr_code =
+ IconData(0xe816, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData radiology =
+ IconData(0xe817, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData referral =
+ IconData(0xe818, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData search_patient =
+ IconData(0xe81a, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData reject_icon =
+ IconData(0xe80a, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData approved_icon =
+ IconData(0xe80b, fontFamily: _kFontFam, fontPackage: _kFontPkg);
+ static const IconData pending_icon =
+ IconData(0xe80c, fontFamily: _kFontFam, fontPackage: _kFontPkg);
}
diff --git a/lib/providers/auth_provider.dart b/lib/providers/auth_provider.dart
index af93c837..415b8d39 100644
--- a/lib/providers/auth_provider.dart
+++ b/lib/providers/auth_provider.dart
@@ -1,27 +1,66 @@
-import 'dart:convert';
-import 'package:doctor_app_flutter/client/app_client.dart';
+import 'package:doctor_app_flutter/client/base_app_client.dart';
+import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
+import 'package:doctor_app_flutter/util/dr_app_shared_pref.dart';
import 'package:flutter/cupertino.dart';
+
import '../models/user_model.dart';
-const LOGIN_URL =
- 'Sentry.svc/REST/MemberLogIN_New';
-const INSERT_DEVICE_IMEI =
- 'Sentry.svc/REST/DoctorApplication_INSERTDeviceIMEI';
+const LOGIN_URL = 'Sentry.svc/REST/MemberLogIN_New';
+const INSERT_DEVICE_IMEI = 'Sentry.svc/REST/DoctorApplication_INSERTDeviceIMEI';
const SELECT_DEVICE_IMEI =
'Sentry.svc/REST/DoctorApplication_SELECTDeviceIMEIbyIMEI';
const SEND_ACTIVATION_CODE_BY_OTP_NOTIFICATION_TYPE =
'Sentry.svc/REST/DoctorApplication_SendActivationCodebyOTPNotificationType';
-const MEMBER_CHECK_ACTIVATION_CODE_NEW ='Sentry.svc/REST/MemberCheckActivationCode_New';
+const MEMBER_CHECK_ACTIVATION_CODE_NEW =
+ 'Sentry.svc/REST/MemberCheckActivationCode_New';
const GET_DOC_PROFILES = 'Doctors.svc/REST/GetDocProfiles';
+DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
+enum APP_STATUS { LOADING, UNAUTHENTICATED, AUTHENTICATED }
+
+
class AuthProvider with ChangeNotifier {
- Future