Merge branch 'revert-8a1d88c1' into 'development'

Revert "Merge branch 'hussam_flutter_2' into 'development'"

See merge request Cloud_Solution/doctor_app_flutter!894
merge-requests/901/merge
Elham Ali 5 years ago
commit 189864f4ba

@ -6,7 +6,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:4.0.0' classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.3' classpath 'com.google.gms:google-services:4.3.3'
} }

@ -1,6 +1,6 @@
#Sun Jun 13 08:51:58 EEST 2021 #Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip

@ -260,78 +260,9 @@
files = ( files = (
); );
inputPaths = ( inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework",
"${BUILT_PRODUCTS_DIR}/DKImagePickerController/DKImagePickerController.framework",
"${BUILT_PRODUCTS_DIR}/DKPhotoGallery/DKPhotoGallery.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseCore/FirebaseCore.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseInstallations/FirebaseInstallations.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseMessaging/FirebaseMessaging.framework",
"${BUILT_PRODUCTS_DIR}/GoogleDataTransport/GoogleDataTransport.framework",
"${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework",
"${BUILT_PRODUCTS_DIR}/MTBBarcodeScanner/MTBBarcodeScanner.framework",
"${BUILT_PRODUCTS_DIR}/OrderedSet/OrderedSet.framework",
"${BUILT_PRODUCTS_DIR}/PromisesObjC/FBLPromises.framework",
"${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework",
"${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework",
"${BUILT_PRODUCTS_DIR}/SwiftyGif/SwiftyGif.framework",
"${BUILT_PRODUCTS_DIR}/Try/Try.framework",
"${BUILT_PRODUCTS_DIR}/barcode_scan_fix/barcode_scan_fix.framework",
"${BUILT_PRODUCTS_DIR}/connectivity/connectivity.framework",
"${BUILT_PRODUCTS_DIR}/device_info/device_info.framework",
"${BUILT_PRODUCTS_DIR}/file_picker/file_picker.framework",
"${BUILT_PRODUCTS_DIR}/flutter_flexible_toast/flutter_flexible_toast.framework",
"${BUILT_PRODUCTS_DIR}/flutter_inappwebview/flutter_inappwebview.framework",
"${BUILT_PRODUCTS_DIR}/flutter_keyboard_visibility/flutter_keyboard_visibility.framework",
"${BUILT_PRODUCTS_DIR}/hexcolor/hexcolor.framework",
"${BUILT_PRODUCTS_DIR}/imei_plugin/imei_plugin.framework",
"${BUILT_PRODUCTS_DIR}/local_auth/local_auth.framework",
"${BUILT_PRODUCTS_DIR}/maps_launcher/maps_launcher.framework",
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
"${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
"${BUILT_PRODUCTS_DIR}/speech_to_text/speech_to_text.framework",
"${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
"${BUILT_PRODUCTS_DIR}/video_player/video_player.framework",
"${BUILT_PRODUCTS_DIR}/wakelock/wakelock.framework",
"${BUILT_PRODUCTS_DIR}/webview_flutter/webview_flutter.framework",
); );
name = "[CP] Embed Pods Frameworks"; name = "[CP] Embed Pods Frameworks";
outputPaths = ( outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Alamofire.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DKImagePickerController.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DKPhotoGallery.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCore.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCoreDiagnostics.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseInstallations.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseMessaging.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleDataTransport.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MTBBarcodeScanner.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OrderedSet.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBLPromises.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reachability.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftyGif.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Try.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/barcode_scan_fix.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/connectivity.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/device_info.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/file_picker.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_flexible_toast.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_inappwebview.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_keyboard_visibility.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hexcolor.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/imei_plugin.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/local_auth.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/maps_launcher.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/speech_to_text.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/video_player.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/wakelock.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/webview_flutter.framework",
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh; shellPath = /bin/sh;

@ -2,6 +2,6 @@
<Workspace <Workspace
version = "1.0"> version = "1.0">
<FileRef <FileRef
location = "self:"> location = "group:Runner.xcodeproj">
</FileRef> </FileRef>
</Workspace> </Workspace>

@ -10,11 +10,12 @@ import 'package:url_launcher/url_launcher.dart';
import 'widgets/shared/buttons/secondary_button.dart'; import 'widgets/shared/buttons/secondary_button.dart';
class UpdatePage extends StatelessWidget { class UpdatePage extends StatelessWidget {
final String? message; final String message;
final String? androidLink; final String androidLink;
final String? iosLink; final String iosLink;
const UpdatePage({Key? key, this.message, this.androidLink, this.iosLink}) : super(key: key); const UpdatePage({Key key, this.message, this.androidLink, this.iosLink})
: super(key: key);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -29,27 +30,18 @@ class UpdatePage extends StatelessWidget {
children: [ children: [
Image.asset( Image.asset(
'assets/images/update_rocket_image.png', 'assets/images/update_rocket_image.png',
width: double.maxFinite, width: double.maxFinite,fit: BoxFit.fill,
fit: BoxFit.fill,
), ),
Image.asset('assets/images/HMG_logo.png'), Image.asset('assets/images/HMG_logo.png'),
SizedBox( SizedBox(height: 8,),
height: 8,
),
AppText( AppText(
TranslationBase.of(context).updateTheApp!.toUpperCase(), TranslationBase.of(context).updateTheApp.toUpperCase(),fontSize: 17,
fontSize: 17,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
SizedBox( SizedBox(height: 12,),
height: 12,
),
Padding( Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: AppText( child: AppText(message??"Update the app",fontSize: 12,),
message ?? "Update the app",
fontSize: 12,
),
) )
], ],
), ),
@ -60,14 +52,14 @@ class UpdatePage extends StatelessWidget {
// padding: const EdgeInsets.all(8.0), // padding: const EdgeInsets.all(8.0),
margin: EdgeInsets.all(15), margin: EdgeInsets.all(15),
child: SecondaryButton( child: SecondaryButton(
color: Colors.red[800]!, color: Colors.red[800],
onTap: () { onTap: () {
if (Platform.isIOS) if (Platform.isIOS)
launch(iosLink!); launch(iosLink);
else else
launch(androidLink!); launch(androidLink);
}, },
label: TranslationBase.of(context).updateNow!.toUpperCase(), label: TranslationBase.of(context).updateNow.toUpperCase(),
), ),
), ),
), ),

@ -22,9 +22,9 @@ Helpers helpers = new Helpers();
class BaseAppClient { class BaseAppClient {
//TODO change the post fun to nun static when you change all service //TODO change the post fun to nun static when you change all service
post(String endPoint, post(String endPoint,
{required Map<String, dynamic> body, {Map<String, dynamic> body,
required Function(dynamic response, int statusCode) onSuccess, Function(dynamic response, int statusCode) onSuccess,
required Function(String error, int statusCode) onFailure, Function(String error, int statusCode) onFailure,
bool isAllowAny = false, bool isAllowAny = false,
bool isLiveCare = false, bool isLiveCare = false,
bool isFallLanguage = false}) async { bool isFallLanguage = false}) async {
@ -36,28 +36,30 @@ class BaseAppClient {
bool callLog = true; bool callLog = true;
try { try {
Map<String, dynamic>? profile = await sharedPref.getObj(DOCTOR_PROFILE); Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
String token = await sharedPref.getString(TOKEN); String token = await sharedPref.getString(TOKEN);
DoctorProfileModel? doctorProfile;
if (profile != null) { if (profile != null) {
doctorProfile = DoctorProfileModel.fromJson(profile); DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
if (body['DoctorID'] == null) body['DoctorID'] = doctorProfile.doctorID; if (body['DoctorID'] == null)
body['DoctorID'] = doctorProfile?.doctorID;
if (body['DoctorID'] == "") body['DoctorID'] = null; if (body['DoctorID'] == "") body['DoctorID'] = null;
if (body['EditedBy'] == null) body['EditedBy'] = doctorProfile.doctorID; if (body['EditedBy'] == null)
body['EditedBy'] = doctorProfile?.doctorID;
if (body['ProjectID'] == null) { if (body['ProjectID'] == null) {
body['ProjectID'] = doctorProfile.projectID; body['ProjectID'] = doctorProfile?.projectID;
} }
if (body['ClinicID'] == null) body['ClinicID'] = doctorProfile.clinicID; if (body['ClinicID'] == null)
body['ClinicID'] = doctorProfile?.clinicID;
}
if (body['DoctorID'] == '') { if (body['DoctorID'] == '') {
body['DoctorID'] = null; body['DoctorID'] = null;
} }
if (body['EditedBy'] == '') { if (body['EditedBy'] == '') {
body.remove("EditedBy"); body.remove("EditedBy");
} }
}
if (body['TokenID'] == null) { if (body['TokenID'] == null) {
body['TokenID'] = token; body['TokenID'] = token ?? '';
} }
// body['TokenID'] = "@dm!n" ?? ''; // body['TokenID'] = "@dm!n" ?? '';
if (!isFallLanguage) { if (!isFallLanguage) {
@ -80,10 +82,12 @@ class BaseAppClient {
body['IsLoginForDoctorApp'] = IS_LOGIN_FOR_DOCTOR_APP; body['IsLoginForDoctorApp'] = IS_LOGIN_FOR_DOCTOR_APP;
body['PatientOutSA'] = body['PatientOutSA'] ?? 0; // PATIENT_OUT_SA; body['PatientOutSA'] = body['PatientOutSA'] ?? 0; // PATIENT_OUT_SA;
if (body['VidaAuthTokenID'] == null) { if (body['VidaAuthTokenID'] == null) {
body['VidaAuthTokenID'] = await sharedPref.getString(VIDA_AUTH_TOKEN_ID); body['VidaAuthTokenID'] =
await sharedPref.getString(VIDA_AUTH_TOKEN_ID);
} }
if (body['VidaRefreshTokenID'] == null) { if (body['VidaRefreshTokenID'] == null) {
body['VidaRefreshTokenID'] = await sharedPref.getString(VIDA_REFRESH_TOKEN_ID); body['VidaRefreshTokenID'] =
await sharedPref.getString(VIDA_REFRESH_TOKEN_ID);
} }
int projectID = await sharedPref.getInt(PROJECT_ID); int projectID = await sharedPref.getInt(PROJECT_ID);
@ -103,22 +107,30 @@ class BaseAppClient {
var asd = json.encode(body); var asd = json.encode(body);
var asd2; var asd2;
if (await Helpers.checkConnection()) { if (await Helpers.checkConnection()) {
final response = await http.post(Uri.parse(url), final response = await http.post(url,
body: json.encode(body), headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}); body: json.encode(body),
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
});
final int statusCode = response.statusCode; final int statusCode = response.statusCode;
if (statusCode < 200 || statusCode >= 400) { if (statusCode < 200 || statusCode >= 400) {
onFailure(Helpers.generateContactAdminMsg(), statusCode); onFailure(Helpers.generateContactAdminMsg(), statusCode);
} else { } else {
var parsed = json.decode(response.body.toString()); var parsed = json.decode(response.body.toString());
if (parsed['ErrorType'] == 4) { if (parsed['ErrorType'] == 4) {
helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'], parsed['AndroidLink'], parsed['IOSLink']); helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'],
parsed['AndroidLink'], parsed['IOSLink']);
} }
if (parsed['IsAuthenticated'] != null && !parsed['IsAuthenticated']) { if (parsed['IsAuthenticated'] != null && !parsed['IsAuthenticated']) {
if (body['OTP_SendType'] != null) { if (body['OTP_SendType'] != null) {
onFailure(getError(parsed), statusCode); onFailure(getError(parsed), statusCode);
} else if (!isAllowAny) { } else if (!isAllowAny) {
await Provider.of<AuthenticationViewModel>(AppGlobal.CONTEX, listen: false).logout(); await Provider.of<AuthenticationViewModel>(AppGlobal.CONTEX,
listen: false)
.logout();
Helpers.showErrorToast('Your session expired Please login again'); Helpers.showErrorToast('Your session expired Please login again');
locator<NavigationService>().pushNamedAndRemoveUntil(ROOT); locator<NavigationService>().pushNamedAndRemoveUntil(ROOT);
} }
@ -144,18 +156,22 @@ class BaseAppClient {
} }
postPatient(String endPoint, postPatient(String endPoint,
{required Map<String, dynamic> body, {Map<String, dynamic> body,
required Function(dynamic response, int statusCode) onSuccess, Function(dynamic response, int statusCode) onSuccess,
required Function(String error, int statusCode) onFailure, Function(String error, int statusCode) onFailure,
PatiantInformtion? patient, @required PatiantInformtion patient,
bool isExternal = false}) async { bool isExternal = false}) async {
String url = BASE_URL + endPoint; String url = BASE_URL + endPoint;
try { try {
Map<String, String> headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}; Map<String, String> headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
};
String token = await sharedPref.getString(TOKEN); String token = await sharedPref.getString(TOKEN);
var languageID = await sharedPref.getStringWithDefaultValue(APP_Language, 'en'); var languageID =
await sharedPref.getStringWithDefaultValue(APP_Language, 'en');
body['SetupID'] = body.containsKey('SetupID') body['SetupID'] = body.containsKey('SetupID')
? body['SetupID'] != null ? body['SetupID'] != null
? body['SetupID'] ? body['SetupID']
@ -175,7 +191,8 @@ class BaseAppClient {
: PATIENT_OUT_SA_PATIENT_REQ; : PATIENT_OUT_SA_PATIENT_REQ;
if (body.containsKey('isDentalAllowedBackend')) { if (body.containsKey('isDentalAllowedBackend')) {
body['isDentalAllowedBackend'] = body.containsKey('isDentalAllowedBackend') body['isDentalAllowedBackend'] =
body.containsKey('isDentalAllowedBackend')
? body['isDentalAllowedBackend'] != null ? body['isDentalAllowedBackend'] != null
? body['isDentalAllowedBackend'] ? body['isDentalAllowedBackend']
: IS_DENTAL_ALLOWED_BACKEND : IS_DENTAL_ALLOWED_BACKEND
@ -187,7 +204,7 @@ class BaseAppClient {
body['PatientType'] = body.containsKey('PatientType') body['PatientType'] = body.containsKey('PatientType')
? body['PatientType'] != null ? body['PatientType'] != null
? body['PatientType'] ? body['PatientType']
: patient!.patientType != null : patient.patientType != null
? patient.patientType ? patient.patientType
: PATIENT_TYPE : PATIENT_TYPE
: PATIENT_TYPE; : PATIENT_TYPE;
@ -195,13 +212,15 @@ class BaseAppClient {
body['PatientTypeID'] = body.containsKey('PatientTypeID') body['PatientTypeID'] = body.containsKey('PatientTypeID')
? body['PatientTypeID'] != null ? body['PatientTypeID'] != null
? body['PatientTypeID'] ? body['PatientTypeID']
: patient!.patientType != null : patient.patientType != null
? patient.patientType ? patient.patientType
: PATIENT_TYPE_ID : PATIENT_TYPE_ID
: PATIENT_TYPE_ID; : PATIENT_TYPE_ID;
body['TokenID'] = body.containsKey('TokenID') ? body['TokenID'] : token; body['TokenID'] = body.containsKey('TokenID') ? body['TokenID'] : token;
body['PatientID'] = body['PatientID'] != null ? body['PatientID'] : patient!.patientId ?? patient.patientMRN; body['PatientID'] = body['PatientID'] != null
? body['PatientID']
: patient.patientId ?? patient.patientMRN;
body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it
body['SessionID'] = SESSION_ID; //getSe body['SessionID'] = SESSION_ID; //getSe
@ -217,7 +236,8 @@ class BaseAppClient {
var asd = json.encode(body); var asd = json.encode(body);
var asd2; var asd2;
if (await Helpers.checkConnection()) { if (await Helpers.checkConnection()) {
final response = await http.post(Uri.parse(url.trim()), body: json.encode(body), headers: headers); final response = await http.post(url.trim(),
body: json.encode(body), headers: headers);
final int statusCode = response.statusCode; final int statusCode = response.statusCode;
print("statusCode :$statusCode"); print("statusCode :$statusCode");
if (statusCode < 200 || statusCode >= 400 || json == null) { if (statusCode < 200 || statusCode >= 400 || json == null) {
@ -229,7 +249,8 @@ class BaseAppClient {
onSuccess(parsed, statusCode); onSuccess(parsed, statusCode);
} else { } else {
if (parsed['ErrorType'] == 4) { if (parsed['ErrorType'] == 4) {
helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'], parsed['AndroidLink'], parsed['IOSLink']); helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'],
parsed['AndroidLink'], parsed['IOSLink']);
} }
if (parsed['IsAuthenticated'] == null) { if (parsed['IsAuthenticated'] == null) {
if (parsed['isSMSSent'] == true) { if (parsed['isSMSSent'] == true) {
@ -245,20 +266,28 @@ class BaseAppClient {
onFailure(getError(parsed), statusCode); onFailure(getError(parsed), statusCode);
} }
} }
} else if (parsed['MessageStatus'] == 1 || parsed['SMSLoginRequired'] == true) { } else if (parsed['MessageStatus'] == 1 ||
parsed['SMSLoginRequired'] == true) {
onSuccess(parsed, statusCode); onSuccess(parsed, statusCode);
} else if (parsed['MessageStatus'] == 2 && parsed['IsAuthenticated']) { } else if (parsed['MessageStatus'] == 2 &&
parsed['IsAuthenticated']) {
if (parsed['SameClinicApptList'] != null) { if (parsed['SameClinicApptList'] != null) {
onSuccess(parsed, statusCode); onSuccess(parsed, statusCode);
} else { } else {
if (parsed['message'] == null && parsed['ErrorEndUserMessage'] == null) { if (parsed['message'] == null &&
parsed['ErrorEndUserMessage'] == null) {
if (parsed['ErrorSearchMsg'] == null) { if (parsed['ErrorSearchMsg'] == null) {
onFailure("Server Error found with no available message", statusCode); onFailure("Server Error found with no available message",
statusCode);
} else { } else {
onFailure(parsed['ErrorSearchMsg'], statusCode); onFailure(parsed['ErrorSearchMsg'], statusCode);
} }
} else { } else {
onFailure(parsed['message'] ?? parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'], statusCode); onFailure(
parsed['message'] ??
parsed['ErrorEndUserMessage'] ??
parsed['ErrorMessage'],
statusCode);
} }
} }
} else { } else {
@ -268,7 +297,9 @@ class BaseAppClient {
if (parsed['message'] != null) { if (parsed['message'] != null) {
onFailure(parsed['message'] ?? parsed['message'], statusCode); onFailure(parsed['message'] ?? parsed['message'], statusCode);
} else { } else {
onFailure(parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'], statusCode); onFailure(
parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'],
statusCode);
} }
} }
} }
@ -291,8 +322,12 @@ class BaseAppClient {
if (parsed["ValidationErrors"]["ValidationErrors"] != null && if (parsed["ValidationErrors"]["ValidationErrors"] != null &&
parsed["ValidationErrors"]["ValidationErrors"].length != 0) { parsed["ValidationErrors"]["ValidationErrors"].length != 0) {
for (var i = 0; i < parsed["ValidationErrors"]["ValidationErrors"].length; i++) { for (var i = 0;
error = error + parsed["ValidationErrors"]["ValidationErrors"][i]["Messages"][0] + "\n"; i < parsed["ValidationErrors"]["ValidationErrors"].length;
i++) {
error = error +
parsed["ValidationErrors"]["ValidationErrors"][i]["Messages"][0] +
"\n";
} }
} }
} }

@ -5,8 +5,8 @@ const ONLY_NUMBERS = "[0-9]";
const ONLY_LETTERS = "[a-zA-Z &'\"]"; const ONLY_LETTERS = "[a-zA-Z &'\"]";
const ONLY_DATE = "[0-9/]"; const ONLY_DATE = "[0-9/]";
const BASE_URL_LIVE_CARE = 'https://livecare.hmg.com/'; const BASE_URL_LIVE_CARE = 'https://livecare.hmg.com/';
const BASE_URL = 'https://hmgwebservices.com/'; // const BASE_URL = 'https://hmgwebservices.com/';
// const BASE_URL = 'https://uat.hmgwebservices.com/'; const BASE_URL = 'https://uat.hmgwebservices.com/';
const PHARMACY_ITEMS_URL = "Services/Lists.svc/REST/GetPharmcyItems_Region_enh"; const PHARMACY_ITEMS_URL = "Services/Lists.svc/REST/GetPharmcyItems_Region_enh";
const PHARMACY_LIST_URL = "Services/Patients.svc/REST/GetPharmcyList"; const PHARMACY_LIST_URL = "Services/Patients.svc/REST/GetPharmcyList";
const PATIENT_PROGRESS_NOTE_URL = const PATIENT_PROGRESS_NOTE_URL =

@ -5,14 +5,14 @@ class SizeConfig {
static double _blockWidth = 0; static double _blockWidth = 0;
static double _blockHeight = 0; static double _blockHeight = 0;
static late double realScreenWidth; static double realScreenWidth;
static late double realScreenHeight; static double realScreenHeight;
static late double screenWidth; static double screenWidth;
static late double screenHeight; static double screenHeight;
static late double textMultiplier; static double textMultiplier;
static late double imageSizeMultiplier; static double imageSizeMultiplier;
static late double heightMultiplier; static double heightMultiplier;
static late double widthMultiplier; static double widthMultiplier;
static bool isPortrait = true; static bool isPortrait = true;
static bool isMobilePortrait = false; static bool isMobilePortrait = false;
@ -25,7 +25,6 @@ class SizeConfig {
void init(BoxConstraints constraints, Orientation orientation) { void init(BoxConstraints constraints, Orientation orientation) {
realScreenHeight = constraints.maxHeight; realScreenHeight = constraints.maxHeight;
realScreenWidth = constraints.maxWidth; realScreenWidth = constraints.maxWidth;
if (constraints.maxWidth <= MAX_SMALL_SCREEN) { if (constraints.maxWidth <= MAX_SMALL_SCREEN) {
isMobile = true; isMobile = true;
} }
@ -48,16 +47,20 @@ class SizeConfig {
if (realScreenWidth < 450) { if (realScreenWidth < 450) {
isMobilePortrait = true; isMobilePortrait = true;
} }
// textMultiplier = _blockHeight;
// imageSizeMultiplier = _blockWidth;
screenHeight = realScreenHeight; screenHeight = realScreenHeight;
screenWidth = realScreenWidth; screenWidth = realScreenWidth;
} else { } else {
isPortrait = false; isPortrait = false;
isMobilePortrait = false; isMobilePortrait = false;
// textMultiplier = _blockWidth;
// imageSizeMultiplier = _blockHeight;
screenHeight = realScreenWidth; screenHeight = realScreenWidth;
screenWidth = realScreenHeight; screenWidth = realScreenHeight;
} }
_blockWidth = (screenWidth / 100); _blockWidth = screenWidth / 100;
_blockHeight = (screenHeight / 100); _blockHeight = screenHeight / 100;
textMultiplier = _blockHeight; textMultiplier = _blockHeight;
imageSizeMultiplier = _blockWidth; imageSizeMultiplier = _blockWidth;
@ -76,7 +79,7 @@ class SizeConfig {
} }
static getTextMultiplierBasedOnWidth({double? width}) { static getTextMultiplierBasedOnWidth({double width}) {
// TODO handel LandScape case // TODO handel LandScape case
if (width != null) { if (width != null) {
return width / 100; return width / 100;
@ -84,7 +87,7 @@ class SizeConfig {
return widthMultiplier; return widthMultiplier;
} }
static getWidthMultiplier({double? width}) { static getWidthMultiplier({double width}) {
// TODO handel LandScape case // TODO handel LandScape case
if (width != null) { if (width != null) {
return width / 100; return width / 100;
@ -92,11 +95,12 @@ static getWidthMultiplier({double? width}) {
return widthMultiplier; return widthMultiplier;
} }
static getHeightMultiplier({double? height}) { static getHeightMultiplier({double height}) {
// TODO handel LandScape case // TODO handel LandScape case
if (height != null) { if (height != null) {
return height / 100; return height / 100;
} }
return heightMultiplier; return heightMultiplier;
} }
} }

@ -1,17 +1,17 @@
class InsuranceApprovalInPatientRequestModel { class InsuranceApprovalInPatientRequestModel {
int? patientID; int patientID;
int? patientTypeID; int patientTypeID;
int? eXuldAPPNO; int eXuldAPPNO;
int? projectID; int projectID;
int? languageID; int languageID;
String? stamp; String stamp;
String? iPAdress; String iPAdress;
double? versionID; double versionID;
int? channel; int channel;
String? tokenID; String tokenID;
String? sessionID; String sessionID;
bool? isLoginForDoctorApp; bool isLoginForDoctorApp;
bool? patientOutSA; bool patientOutSA;
InsuranceApprovalInPatientRequestModel( InsuranceApprovalInPatientRequestModel(
{this.patientID, {this.patientID,

@ -1,29 +1,29 @@
class CheckActivationCodeModel { class CheckActivationCodeModel {
int? patientMobileNumber; int patientMobileNumber;
String? mobileNo; String mobileNo;
int? projectOutSA; int projectOutSA;
int? loginType; int loginType;
String? zipCode; String zipCode;
bool? isRegister; bool isRegister;
String? logInTokenID; String logInTokenID;
int? searchType; int searchType;
int? patientID; int patientID;
int? nationalID; int nationalID;
int? patientIdentificationID; int patientIdentificationID;
bool? forRegisteration; bool forRegisteration;
String? activationCode; String activationCode;
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
Null sessionID; Null sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
String? dOB; String dOB;
int? isHijri; int isHijri;
String? healthId; String healthId;
CheckActivationCodeModel( CheckActivationCodeModel(
{this.patientMobileNumber, {this.patientMobileNumber,

@ -1,21 +1,21 @@
class CheckPatientForRegistrationModel { class CheckPatientForRegistrationModel {
int? patientIdentificationID; int patientIdentificationID;
int? patientMobileNumber; int patientMobileNumber;
String? zipCode; String zipCode;
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
Null sessionID; Null sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
String? tokenID; String tokenID;
int? patientID; int patientID;
bool? isRegister; bool isRegister;
String? dOB; String dOB;
int? isHijri; int isHijri;
CheckPatientForRegistrationModel( CheckPatientForRegistrationModel(
{this.patientIdentificationID, {this.patientIdentificationID,

@ -1,16 +1,16 @@
class GetPatientInfoRequestModel { class GetPatientInfoRequestModel {
String? patientIdentificationID; String patientIdentificationID;
String? dOB; String dOB;
int? isHijri; int isHijri;
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
Null sessionID; Null sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
GetPatientInfoRequestModel( GetPatientInfoRequestModel(
{this.patientIdentificationID, {this.patientIdentificationID,

@ -1,78 +1,78 @@
class GetPatientInfoResponseModel { class GetPatientInfoResponseModel {
dynamic date; dynamic date;
int? languageID; int languageID;
int? serviceName; int serviceName;
dynamic time; dynamic time;
dynamic androidLink; dynamic androidLink;
dynamic authenticationTokenID; dynamic authenticationTokenID;
dynamic data; dynamic data;
bool? dataw; bool dataw;
int? dietType; int dietType;
dynamic errorCode; dynamic errorCode;
dynamic errorEndUserMessage; dynamic errorEndUserMessage;
dynamic errorEndUserMessageN; dynamic errorEndUserMessageN;
dynamic errorMessage; dynamic errorMessage;
int? errorType; int errorType;
int? foodCategory; int foodCategory;
dynamic iOSLink; dynamic iOSLink;
bool? isAuthenticated; bool isAuthenticated;
int? mealOrderStatus; int mealOrderStatus;
int? mealType; int mealType;
int? messageStatus; int messageStatus;
int? numberOfResultRecords; int numberOfResultRecords;
dynamic patientBlodType; dynamic patientBlodType;
dynamic successMsg; dynamic successMsg;
dynamic successMsgN; dynamic successMsgN;
dynamic vidaUpdatedResponse; dynamic vidaUpdatedResponse;
dynamic accessTokenObject; dynamic accessTokenObject;
int? age; int age;
dynamic clientIdentifierId; dynamic clientIdentifierId;
int? createdBy; int createdBy;
String? dateOfBirth; String dateOfBirth;
String? firstNameAr; String firstNameAr;
String? firstNameEn; String firstNameEn;
String? gender; String gender;
dynamic genderAr; dynamic genderAr;
dynamic genderEn; dynamic genderEn;
String? healthId; String healthId;
String? idNumber; String idNumber;
String? idType; String idType;
bool? isHijri; bool isHijri;
int? isInstertedOrUpdated; int isInstertedOrUpdated;
int? isNull; int isNull;
int? isPatientExistNHIC; int isPatientExistNHIC;
bool? isRecordLockedByCurrentUser; bool isRecordLockedByCurrentUser;
String? lastNameAr; String lastNameAr;
String? lastNameEn; String lastNameEn;
dynamic listActiveAccessToken; dynamic listActiveAccessToken;
String? maritalStatus; String maritalStatus;
String? maritalStatusCode; String maritalStatusCode;
String? nationalDateOfBirth; String nationalDateOfBirth;
String? nationality; String nationality;
String? nationalityCode; String nationalityCode;
String? occupation; String occupation;
dynamic pCDTransactionDataResultList; dynamic pCDTransactionDataResultList;
dynamic pCDGetVidaPatientForManualVerificationList; dynamic pCDGetVidaPatientForManualVerificationList;
dynamic pCDNHICHMGPatientDetailsMatchCalulationList; dynamic pCDNHICHMGPatientDetailsMatchCalulationList;
int? pCDReturnValue; int pCDReturnValue;
String? patientStatus; String patientStatus;
String? placeofBirth; String placeofBirth;
dynamic practitionerStatusCode; dynamic practitionerStatusCode;
dynamic practitionerStatusDescAr; dynamic practitionerStatusDescAr;
dynamic practitionerStatusDescEn; dynamic practitionerStatusDescEn;
int? rowCount; int rowCount;
String? secondNameAr; String secondNameAr;
String? secondNameEn; String secondNameEn;
String? thirdNameAr; String thirdNameAr;
String? thirdNameEn; String thirdNameEn;
dynamic yakeenVidaPatientDataStatisticsByPatientIdList; dynamic yakeenVidaPatientDataStatisticsByPatientIdList;
dynamic yakeenVidaPatientDataStatisticsList; dynamic yakeenVidaPatientDataStatisticsList;
dynamic yakeenVidaPatientDataStatisticsPrefferedList; dynamic yakeenVidaPatientDataStatisticsPrefferedList;
dynamic accessToken; dynamic accessToken;
int? categoryCode; int categoryCode;
dynamic categoryNameAr; dynamic categoryNameAr;
dynamic categoryNameEn; dynamic categoryNameEn;
int? constraintCode; int constraintCode;
dynamic constraintNameAr; dynamic constraintNameAr;
dynamic constraintNameEn; dynamic constraintNameEn;
dynamic content; dynamic content;
@ -84,7 +84,7 @@ class GetPatientInfoResponseModel {
dynamic licenseStatusDescEn; dynamic licenseStatusDescEn;
dynamic organizations; dynamic organizations;
dynamic registrationNumber; dynamic registrationNumber;
int? specialtyCode; int specialtyCode;
dynamic specialtyNameAr; dynamic specialtyNameAr;
dynamic specialtyNameEn; dynamic specialtyNameEn;

@ -1,22 +1,22 @@
class PatientRegistrationModel { class PatientRegistrationModel {
Patientobject? patientobject; Patientobject patientobject;
String? patientIdentificationID; String patientIdentificationID;
String? patientMobileNumber; String patientMobileNumber;
String? logInTokenID; String logInTokenID;
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
Null sessionID; Null sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
String? tokenID; String tokenID;
String? dOB; String dOB;
int? isHijri; int isHijri;
String? healthId; String healthId;
String? zipCode; String zipCode;
PatientRegistrationModel( PatientRegistrationModel(
{this.patientobject, {this.patientobject,
@ -64,7 +64,7 @@ class PatientRegistrationModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.patientobject != null) { if (this.patientobject != null) {
data['Patientobject'] = this.patientobject!.toJson(); data['Patientobject'] = this.patientobject.toJson();
} }
data['PatientIdentificationID'] = this.patientIdentificationID; data['PatientIdentificationID'] = this.patientIdentificationID;
data['PatientMobileNumber'] = this.patientMobileNumber; data['PatientMobileNumber'] = this.patientMobileNumber;
@ -88,27 +88,27 @@ class PatientRegistrationModel {
} }
class Patientobject { class Patientobject {
bool? tempValue; bool tempValue;
int? patientIdentificationType; int patientIdentificationType;
String? patientIdentificationNo; String patientIdentificationNo;
int? mobileNumber; int mobileNumber;
int? patientOutSA; int patientOutSA;
String? firstNameN; String firstNameN;
String? middleNameN; String middleNameN;
String? lastNameN; String lastNameN;
String? firstName; String firstName;
String? middleName; String middleName;
String? lastName; String lastName;
String? strDateofBirth; String strDateofBirth;
String? dateofBirth; String dateofBirth;
int? gender; int gender;
String? nationalityID; String nationalityID;
String? dateofBirthN; String dateofBirthN;
String? emailAddress; String emailAddress;
String? sourceType; String sourceType;
String? preferredLanguage; String preferredLanguage;
String? marital; String marital;
String? eHealthIDField; String eHealthIDField;
Patientobject( Patientobject(
{this.tempValue, {this.tempValue,

@ -1,28 +1,28 @@
class SendActivationCodeByOTPNotificationTypeForRegistrationModel { class SendActivationCodeByOTPNotificationTypeForRegistrationModel {
int? patientMobileNumber; int patientMobileNumber;
String? mobileNo; String mobileNo;
int? projectOutSA; int projectOutSA;
int? loginType; int loginType;
String? zipCode; String zipCode;
bool? isRegister; bool isRegister;
String? logInTokenID; String logInTokenID;
int? searchType; int searchType;
int? patientID; int patientID;
int? nationalID; int nationalID;
int? patientIdentificationID; int patientIdentificationID;
int? oTPSendType; int oTPSendType;
int? languageID; int languageID;
double? versionID; double versionID;
int? channel; int channel;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
Null sessionID; Null sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
String? dOB; String dOB;
int? isHijri; int isHijri;
String? healthId; String healthId;
SendActivationCodeByOTPNotificationTypeForRegistrationModel( SendActivationCodeByOTPNotificationTypeForRegistrationModel(
{this.patientMobileNumber, {this.patientMobileNumber,

@ -1,40 +1,40 @@
import 'package:doctor_app_flutter/util/date-utils.dart'; import 'package:doctor_app_flutter/util/date-utils.dart';
class Prescriptions { class Prescriptions {
String? setupID; String setupID;
int? projectID; int projectID;
int? patientID; int patientID;
int? appointmentNo; int appointmentNo;
String? appointmentDate; String appointmentDate;
String? doctorName; String doctorName;
String? clinicDescription; String clinicDescription;
String? name; String name;
int? episodeID; int episodeID;
int? actualDoctorRate; int actualDoctorRate;
int? admission; int admission;
int? clinicID; int clinicID;
String? companyName; String companyName;
String? despensedStatus; String despensedStatus;
DateTime? dischargeDate; DateTime dischargeDate;
int? dischargeNo; int dischargeNo;
int? doctorID; int doctorID;
String? doctorImageURL; String doctorImageURL;
int? doctorRate; int doctorRate;
String? doctorTitle; String doctorTitle;
int? gender; int gender;
String? genderDescription; String genderDescription;
bool? isActiveDoctorProfile; bool isActiveDoctorProfile;
bool? isDoctorAllowVedioCall; bool isDoctorAllowVedioCall;
bool? isExecludeDoctor; bool isExecludeDoctor;
bool? isInOutPatient; bool isInOutPatient;
bool? isLiveCareAppointment; bool isLiveCareAppointment;
String? isInOutPatientDescription; String isInOutPatientDescription;
String? isInOutPatientDescriptionN; String isInOutPatientDescriptionN;
bool? isInsurancePatient; bool isInsurancePatient;
String? nationalityFlagURL; String nationalityFlagURL;
int? noOfPatientsRate; int noOfPatientsRate;
String? qR; String qR;
List<String?>? speciality; List<String> speciality;
Prescriptions( Prescriptions(
{this.setupID, {this.setupID,
@ -69,10 +69,9 @@ class Prescriptions {
this.nationalityFlagURL, this.nationalityFlagURL,
this.noOfPatientsRate, this.noOfPatientsRate,
this.qR, this.qR,
this.speciality, this.speciality,this.isLiveCareAppointment});
this.isLiveCareAppointment});
Prescriptions.fromJson(Map<String?, dynamic> json) { Prescriptions.fromJson(Map<String, dynamic> json) {
setupID = json['SetupID']; setupID = json['SetupID'];
projectID = json['ProjectID']; projectID = json['ProjectID'];
patientID = json['PatientID']; patientID = json['PatientID'];
@ -106,11 +105,11 @@ class Prescriptions {
noOfPatientsRate = json['NoOfPatientsRate']; noOfPatientsRate = json['NoOfPatientsRate'];
qR = json['QR']; qR = json['QR'];
isLiveCareAppointment = json['IsLiveCareAppointment']; isLiveCareAppointment = json['IsLiveCareAppointment'];
// speciality = json['Speciality'].cast<String ?>(); // speciality = json['Speciality'].cast<String>();
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['PatientID'] = this.patientID; data['PatientID'] = this.patientID;
@ -150,10 +149,10 @@ class Prescriptions {
} }
class PrescriptionsList { class PrescriptionsList {
String? filterName = ""; String filterName = "";
List<Prescriptions> prescriptionsList =[]; List<Prescriptions> prescriptionsList = List();
PrescriptionsList({this.filterName, required Prescriptions prescriptions}) { PrescriptionsList({this.filterName, Prescriptions prescriptions}) {
prescriptionsList.add(prescriptions); prescriptionsList.add(prescriptions);
} }
} }

@ -1,40 +1,40 @@
class GetMedicationForInPatientModel { class GetMedicationForInPatientModel {
String? setupID; String setupID;
int? projectID; int projectID;
int? admissionNo; int admissionNo;
int? patientID; int patientID;
int? orderNo; int orderNo;
int? prescriptionNo; int prescriptionNo;
int? lineItemNo; int lineItemNo;
String? prescriptionDatetime; String prescriptionDatetime;
int? itemID; int itemID;
int? directionID; int directionID;
int? refillID; int refillID;
String? dose; String dose;
int? unitofMeasurement; int unitofMeasurement;
String? startDatetime; String startDatetime;
String? stopDatetime; String stopDatetime;
int? noOfDoses; int noOfDoses;
int? routeId; int routeId;
String? comments; String comments;
int? reviewedPharmacist; int reviewedPharmacist;
dynamic reviewedPharmacistDatetime; dynamic reviewedPharmacistDatetime;
dynamic discountinueDatetime; dynamic discountinueDatetime;
dynamic rescheduleDatetime; dynamic rescheduleDatetime;
int? status; int status;
String? statusDescription; String statusDescription;
int? createdBy; int createdBy;
String? createdOn; String createdOn;
dynamic editedBy; dynamic editedBy;
dynamic editedOn; dynamic editedOn;
dynamic strength; dynamic strength;
String? pHRItemDescription; String pHRItemDescription;
String? pHRItemDescriptionN; String pHRItemDescriptionN;
String? doctorName; String doctorName;
String? uomDescription; String uomDescription;
String? routeDescription; String routeDescription;
String? directionDescription; String directionDescription;
String? refillDescription; String refillDescription;
GetMedicationForInPatientModel( GetMedicationForInPatientModel(
{this.setupID, {this.setupID,

@ -1,16 +1,16 @@
class GetMedicationForInPatientRequestModel { class GetMedicationForInPatientRequestModel {
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? deviceTypeID; int deviceTypeID;
String? tokenID; String tokenID;
int? patientID; int patientID;
int? admissionNo; int admissionNo;
String? sessionID; String sessionID;
int? projectID; int projectID;
GetMedicationForInPatientRequestModel( GetMedicationForInPatientRequestModel(
{this.isDentalAllowedBackend, {this.isDentalAllowedBackend,

@ -1,5 +1,5 @@
class InPatientPrescriptionRequestModel { class InPatientPrescriptionRequestModel {
String? vidaAuthTokenID; String vidaAuthTokenID;
dynamic patientMRN; dynamic patientMRN;
dynamic appNo; dynamic appNo;
dynamic admissionNo; dynamic admissionNo;

@ -1,28 +1,28 @@
class PharmacyPrescriptions { class PharmacyPrescriptions {
String? expiryDate; String expiryDate;
dynamic sellingPrice; dynamic sellingPrice;
int?quantity; int quantity;
int?itemID; int itemID;
int?locationID; int locationID;
int?projectID; int projectID;
String ?setupID; String setupID;
String ?locationDescription; String locationDescription;
dynamic locationDescriptionN; Null locationDescriptionN;
String ? itemDescription; String itemDescription;
dynamic itemDescriptionN; Null itemDescriptionN;
String ? alias; String alias;
int ? locationTypeID; int locationTypeID;
int ? barcode; int barcode;
dynamic companybarcode; Null companybarcode;
int ? cityID; int cityID;
String? cityName; String cityName;
int ? distanceInKilometers; int distanceInKilometers;
String? latitude; String latitude;
int ?locationType; int locationType;
String? longitude; String longitude;
String ?phoneNumber; String phoneNumber;
String ? projectImageURL; String projectImageURL;
dynamic sortOrder; Null sortOrder;
PharmacyPrescriptions( PharmacyPrescriptions(
{this.expiryDate, {this.expiryDate,

@ -1,10 +1,10 @@
class PostPrescriptionReqModel { class PostPrescriptionReqModel {
String ?vidaAuthTokenID; String vidaAuthTokenID;
int? clinicID; int clinicID;
int? episodeID; int episodeID;
int? appointmentNo; int appointmentNo;
int? patientMRN; int patientMRN;
List<PrescriptionRequestModel> ?prescriptionRequestModel; List<PrescriptionRequestModel> prescriptionRequestModel;
PostPrescriptionReqModel( PostPrescriptionReqModel(
{this.vidaAuthTokenID, {this.vidaAuthTokenID,
@ -21,9 +21,9 @@ class PostPrescriptionReqModel {
appointmentNo = json['AppointmentNo']; appointmentNo = json['AppointmentNo'];
patientMRN = json['PatientMRN']; patientMRN = json['PatientMRN'];
if (json['prescriptionRequestModel'] != null) { if (json['prescriptionRequestModel'] != null) {
prescriptionRequestModel =[]; prescriptionRequestModel = new List<PrescriptionRequestModel>();
json['prescriptionRequestModel'].forEach((v) { json['prescriptionRequestModel'].forEach((v) {
prescriptionRequestModel!.add(new PrescriptionRequestModel.fromJson(v)); prescriptionRequestModel.add(new PrescriptionRequestModel.fromJson(v));
}); });
} }
} }
@ -37,25 +37,25 @@ class PostPrescriptionReqModel {
data['PatientMRN'] = this.patientMRN; data['PatientMRN'] = this.patientMRN;
if (this.prescriptionRequestModel != null) { if (this.prescriptionRequestModel != null) {
data['prescriptionRequestModel'] = data['prescriptionRequestModel'] =
this.prescriptionRequestModel!.map((v) => v.toJson()).toList(); this.prescriptionRequestModel.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class PrescriptionRequestModel { class PrescriptionRequestModel {
int ? itemId; int itemId;
String? doseStartDate; String doseStartDate;
int ?duration; int duration;
double? dose; double dose;
int ?doseUnitId; int doseUnitId;
int ?route; int route;
int ?frequency; int frequency;
int ?doseTime; int doseTime;
bool ?covered; bool covered;
bool ?approvalRequired; bool approvalRequired;
String ?remarks; String remarks;
String ?icdcode10Id; String icdcode10Id;
PrescriptionRequestModel({ PrescriptionRequestModel({
this.itemId, this.itemId,

@ -1,50 +1,50 @@
class PrescriotionInPatient { class PrescriotionInPatient {
int ?admissionNo; int admissionNo;
int ?authorizedBy; int authorizedBy;
dynamic bedNo; dynamic bedNo;
String? comments; String comments;
int ?createdBy; int createdBy;
String ?createdByName; String createdByName;
dynamic createdByNameN; dynamic createdByNameN;
String ?createdOn; String createdOn;
String ?direction; String direction;
int ?directionID; int directionID;
dynamic directionN; dynamic directionN;
String ?dose; String dose;
int ?editedBy; int editedBy;
dynamic iVDiluentLine; dynamic iVDiluentLine;
int ?iVDiluentType; int iVDiluentType;
dynamic iVDiluentVolume; dynamic iVDiluentVolume;
dynamic iVRate; dynamic iVRate;
dynamic iVStability; dynamic iVStability;
String? itemDescription; String itemDescription;
int? itemID; int itemID;
int? lineItemNo; int lineItemNo;
int? locationId; int locationId;
int? noOfDoses; int noOfDoses;
int? orderNo; int orderNo;
int? patientID; int patientID;
String ?pharmacyRemarks; String pharmacyRemarks;
String ?prescriptionDatetime; String prescriptionDatetime;
int ?prescriptionNo; int prescriptionNo;
String? processedBy; String processedBy;
int ?projectID; int projectID;
int ?refillID; int refillID;
String ?refillType; String refillType;
dynamic refillTypeN; dynamic refillTypeN;
int ?reviewedPharmacist; int reviewedPharmacist;
dynamic roomId; dynamic roomId;
String ?route; String route;
int ?routeId; int routeId;
dynamic routeN; dynamic routeN;
dynamic setupID; dynamic setupID;
String ?startDatetime; String startDatetime;
int ?status; int status;
String ?statusDescription; String statusDescription;
dynamic statusDescriptionN; dynamic statusDescriptionN;
String ?stopDatetime; String stopDatetime;
int ?unitofMeasurement; int unitofMeasurement;
String? unitofMeasurementDescription; String unitofMeasurementDescription;
dynamic unitofMeasurementDescriptionN; dynamic unitofMeasurementDescriptionN;
PrescriotionInPatient( PrescriotionInPatient(

@ -1,5 +1,5 @@
class PrescriptionModel { class PrescriptionModel {
List<EntityList>? entityList; List<EntityList> entityList;
dynamic rowcount; dynamic rowcount;
dynamic statusMessage; dynamic statusMessage;
@ -7,9 +7,9 @@ class PrescriptionModel {
PrescriptionModel.fromJson(Map<String, dynamic> json) { PrescriptionModel.fromJson(Map<String, dynamic> json) {
if (json['entityList'] != null) { if (json['entityList'] != null) {
entityList = []; entityList = new List<EntityList>();
json['entityList'].forEach((v) { json['entityList'].forEach((v) {
entityList!.add(new EntityList.fromJson(v)); entityList.add(new EntityList.fromJson(v));
}); });
} }
rowcount = json['rowcount']; rowcount = json['rowcount'];
@ -19,7 +19,7 @@ class PrescriptionModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.entityList != null) { if (this.entityList != null) {
data['entityList'] = this.entityList!.map((v) => v.toJson()).toList(); data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
} }
data['rowcount'] = this.rowcount; data['rowcount'] = this.rowcount;
data['statusMessage'] = this.statusMessage; data['statusMessage'] = this.statusMessage;

@ -1,48 +1,48 @@
class PrescriptionReport { class PrescriptionReport {
String? address; String address;
dynamic? appodynamicmentNo; dynamic appodynamicmentNo;
String? clinic; String clinic;
String? companyName; String companyName;
dynamic? days; dynamic days;
String? doctorName; String doctorName;
var doseDailyQuantity; var doseDailyQuantity;
String? frequency; String frequency;
dynamic? frequencyNumber; dynamic frequencyNumber;
String? image; String image;
String? imageExtension; String imageExtension;
String? imageSRCUrl; String imageSRCUrl;
String? imageString; String imageString;
String? imageThumbUrl; String imageThumbUrl;
String? isCovered; String isCovered;
String? itemDescription; String itemDescription;
dynamic? itemID; dynamic itemID;
String? orderDate; String orderDate;
dynamic? patientID; dynamic patientID;
String? patientName; String patientName;
String? phoneOffice1; String phoneOffice1;
String? prescriptionQR; String prescriptionQR;
dynamic? prescriptionTimes; dynamic prescriptionTimes;
String? productImage; String productImage;
String? productImageBase64; String productImageBase64;
String? productImageString; String productImageString;
dynamic? projectID; dynamic projectID;
String? projectName; String projectName;
String? remarks; String remarks;
String? route; String route;
String? sKU; String sKU;
dynamic? scaleOffset; dynamic scaleOffset;
String? startDate; String startDate;
String? patientAge; String patientAge;
String? patientGender; String patientGender;
String? phoneOffice; String phoneOffice;
dynamic? doseTimingID; dynamic doseTimingID;
dynamic? frequencyID; dynamic frequencyID;
dynamic? routeID; dynamic routeID;
String? name; String name;
String? itemDescriptionN; String itemDescriptionN;
String? routeN; String routeN;
String? frequencyN; String frequencyN;
PrescriptionReport({ PrescriptionReport({
this.address, this.address,

@ -1,38 +1,37 @@
class PrescriptionReportEnh { class PrescriptionReportEnh {
String ? address; String address;
dynamic appodynamicmentNo; dynamic appodynamicmentNo;
int ? appointmentNo; String clinic;
String ? clinic;
dynamic companyName; dynamic companyName;
int ? days; dynamic days;
String ? doctorName; String doctorName;
int ? doseDailyQuantity; dynamic doseDailyQuantity;
String ? frequency; String frequency;
int ? frequencyNumber; dynamic frequencyNumber;
dynamic image; dynamic image;
dynamic imageExtension; dynamic imageExtension;
String ? imageSRCUrl; String imageSRCUrl;
dynamic imageString ; dynamic imageString;
String ? imageThumbUrl; String imageThumbUrl;
String ? isCovered; String isCovered;
String ? itemDescription; String itemDescription;
dynamic ? itemID; dynamic itemID;
String ? orderDate; String orderDate;
dynamic ? patientID; dynamic patientID;
String ? patientName; String patientName;
String ? phoneOffice1; String phoneOffice1;
dynamic prescriptionQR; dynamic prescriptionQR;
dynamic ? prescriptionTimes; dynamic prescriptionTimes;
dynamic productImage; dynamic productImage;
dynamic productImageBase64; dynamic productImageBase64;
String ? productImageString; String productImageString;
dynamic ? projectID; dynamic projectID;
String ? projectName; String projectName;
String ? remarks; String remarks;
String ? route; String route;
String ? sKU; String sKU;
dynamic ? scaleOffset; dynamic scaleOffset;
String ? startDate; String startDate;
PrescriptionReportEnh( PrescriptionReportEnh(
{this.address, {this.address,

@ -1,5 +1,5 @@
class PrescriptionReqModel { class PrescriptionReqModel {
String ?vidaAuthTokenID; String vidaAuthTokenID;
dynamic patientMRN; dynamic patientMRN;
dynamic appNo; dynamic appNo;
dynamic admissionNo; dynamic admissionNo;

@ -1,32 +1,32 @@
import 'package:doctor_app_flutter/util/date-utils.dart'; import 'package:doctor_app_flutter/util/date-utils.dart';
class PrescriptionsOrder { class PrescriptionsOrder {
int? iD; int iD;
dynamic patientID; dynamic patientID;
bool? patientOutSA; bool patientOutSA;
bool? isOutPatient; bool isOutPatient;
int? projectID; int projectID;
int? nearestProjectID; int nearestProjectID;
double? longitude; double longitude;
double? latitude; double latitude;
dynamic appointmentNo; dynamic appointmentNo;
dynamic dischargeID; dynamic dischargeID;
int? lineItemNo; int lineItemNo;
int? status; int status;
dynamic description; dynamic description;
dynamic descriptionN; dynamic descriptionN;
DateTime? createdOn; DateTime createdOn;
int? serviceID; int serviceID;
int? createdBy; int createdBy;
DateTime? editedOn; DateTime editedOn;
int? editedBy; int editedBy;
int? channel; int channel;
dynamic clientRequestID; dynamic clientRequestID;
bool? returnedToQueue; bool returnedToQueue;
dynamic pickupDateTime; dynamic pickupDateTime;
dynamic pickupLocationName; dynamic pickupLocationName;
dynamic dropoffLocationName; dynamic dropoffLocationName;
int? realRRTHaveTransactions; int realRRTHaveTransactions;
dynamic nearestProjectDescription; dynamic nearestProjectDescription;
dynamic nearestProjectDescriptionN; dynamic nearestProjectDescriptionN;
dynamic projectDescription; dynamic projectDescription;

@ -1,16 +1,16 @@
class RequestGetListPharmacyForPrescriptions { class RequestGetListPharmacyForPrescriptions {
int? latitude; int latitude;
int? longitude; int longitude;
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
String? sessionID; String sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
int? itemID; int itemID;
RequestGetListPharmacyForPrescriptions( RequestGetListPharmacyForPrescriptions(
{this.latitude, {this.latitude,
@ -26,7 +26,7 @@ class RequestGetListPharmacyForPrescriptions {
this.deviceTypeID, this.deviceTypeID,
this.itemID}); this.itemID});
RequestGetListPharmacyForPrescriptions.fromJson(Map<String?, dynamic> json) { RequestGetListPharmacyForPrescriptions.fromJson(Map<String, dynamic> json) {
latitude = json['Latitude']; latitude = json['Latitude'];
longitude = json['Longitude']; longitude = json['Longitude'];
versionID = json['VersionID']; versionID = json['VersionID'];

@ -1,23 +1,23 @@
class RequestPrescriptionReport { class RequestPrescriptionReport {
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
String? sessionID; String sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
int? patientID; int patientID;
String? tokenID; String tokenID;
int? patientTypeID; int patientTypeID;
int? patientType; int patientType;
int? appointmentNo; int appointmentNo;
String? setupID; String setupID;
int? episodeID; int episodeID;
int? clinicID; int clinicID;
int? projectID; int projectID;
int? dischargeNo; int dischargeNo;
RequestPrescriptionReport( RequestPrescriptionReport(
{this.versionID, {this.versionID,
@ -40,7 +40,7 @@ class RequestPrescriptionReport {
this.projectID, this.projectID,
this.dischargeNo}); this.dischargeNo});
RequestPrescriptionReport.fromJson(Map<String?, dynamic> json) { RequestPrescriptionReport.fromJson(Map<String, dynamic> json) {
versionID = json['VersionID']; versionID = json['VersionID'];
channel = json['Channel']; channel = json['Channel'];
languageID = json['LanguageID']; languageID = json['LanguageID'];

@ -1,23 +1,23 @@
class RequestPrescriptionReportEnh { class RequestPrescriptionReportEnh {
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
String? sessionID; String sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
int? patientID; int patientID;
String? tokenID; String tokenID;
int? patientTypeID; int patientTypeID;
int? patientType; int patientType;
int? appointmentNo; int appointmentNo;
String? setupID; String setupID;
int? dischargeNo; int dischargeNo;
int? episodeID; int episodeID;
int? clinicID; int clinicID;
int? projectID; int projectID;
RequestPrescriptionReportEnh( RequestPrescriptionReportEnh(
{this.versionID, {this.versionID,
@ -37,10 +37,9 @@ class RequestPrescriptionReportEnh {
this.setupID, this.setupID,
this.episodeID, this.episodeID,
this.clinicID, this.clinicID,
this.projectID, this.projectID,this.dischargeNo});
this.dischargeNo});
RequestPrescriptionReportEnh.fromJson(Map<String?, dynamic> json) { RequestPrescriptionReportEnh.fromJson(Map<String, dynamic> json) {
versionID = json['VersionID']; versionID = json['VersionID'];
channel = json['Channel']; channel = json['Channel'];
languageID = json['LanguageID']; languageID = json['LanguageID'];

@ -1,45 +1,45 @@
class AdmissionRequest { class AdmissionRequest {
late int? patientMRN; int patientMRN;
late int? admitToClinic; int admitToClinic;
late bool? isPregnant; bool isPregnant;
late int pregnancyWeeks; int pregnancyWeeks;
late int pregnancyType; int pregnancyType;
late int noOfBabies; int noOfBabies;
late int? mrpDoctorID; int mrpDoctorID;
late String? admissionDate; String admissionDate;
late int? expectedDays; int expectedDays;
late int? admissionType; int admissionType;
late int admissionLocationID; int admissionLocationID;
late int roomCategoryID; int roomCategoryID;
late int? wardID; int wardID;
late bool? isSickLeaveRequired; bool isSickLeaveRequired;
late String sickLeaveComments; String sickLeaveComments;
late bool isTransport; bool isTransport;
late String transportComments; String transportComments;
late bool isPhysioAppointmentNeeded; bool isPhysioAppointmentNeeded;
late String physioAppointmentComments; String physioAppointmentComments;
late bool isOPDFollowupAppointmentNeeded; bool isOPDFollowupAppointmentNeeded;
late String opdFollowUpComments; String opdFollowUpComments;
late bool? isDietType; bool isDietType;
late int? dietType; int dietType;
late String? dietRemarks; String dietRemarks;
late bool isPhysicalActivityModification; bool isPhysicalActivityModification;
late String physicalActivityModificationComments; String physicalActivityModificationComments;
late int orStatus; int orStatus;
late String? mainLineOfTreatment; String mainLineOfTreatment;
late int? estimatedCost; int estimatedCost;
late String? elementsForImprovement; String elementsForImprovement;
late bool isPackagePatient; bool isPackagePatient;
late String complications; String complications;
late String otherDepartmentInterventions; String otherDepartmentInterventions;
late String otherProcedures; String otherProcedures;
late String pastMedicalHistory; String pastMedicalHistory;
late String pastSurgicalHistory; String pastSurgicalHistory;
late List<dynamic>? admissionRequestDiagnoses; List<dynamic> admissionRequestDiagnoses;
late List<dynamic>? admissionRequestProcedures; List<dynamic> admissionRequestProcedures;
late int? appointmentNo; int appointmentNo;
late int? episodeID; int episodeID;
late int? admissionRequestNo; int admissionRequestNo;
AdmissionRequest( AdmissionRequest(
{this.patientMRN, {this.patientMRN,
@ -110,7 +110,8 @@ class AdmissionRequest {
dietType = json['dietType']; dietType = json['dietType'];
dietRemarks = json['dietRemarks']; dietRemarks = json['dietRemarks'];
isPhysicalActivityModification = json['isPhysicalActivityModification']; isPhysicalActivityModification = json['isPhysicalActivityModification'];
physicalActivityModificationComments = json['physicalActivityModificationComments']; physicalActivityModificationComments =
json['physicalActivityModificationComments'];
orStatus = json['orStatus']; orStatus = json['orStatus'];
mainLineOfTreatment = json['mainLineOfTreatment']; mainLineOfTreatment = json['mainLineOfTreatment'];
estimatedCost = json['estimatedCost']; estimatedCost = json['estimatedCost'];
@ -122,17 +123,17 @@ class AdmissionRequest {
pastMedicalHistory = json['pastMedicalHistory']; pastMedicalHistory = json['pastMedicalHistory'];
pastSurgicalHistory = json['pastSurgicalHistory']; pastSurgicalHistory = json['pastSurgicalHistory'];
if (json['admissionRequestDiagnoses'] != null) { if (json['admissionRequestDiagnoses'] != null) {
admissionRequestDiagnoses = []; admissionRequestDiagnoses = new List<dynamic>();
json['admissionRequestDiagnoses'].forEach((v) { json['admissionRequestDiagnoses'].forEach((v) {
admissionRequestDiagnoses!.add(v); admissionRequestDiagnoses.add(v);
// admissionRequestDiagnoses // admissionRequestDiagnoses
// .add(new AdmissionRequestDiagnoses.fromJson(v)); // .add(new AdmissionRequestDiagnoses.fromJson(v));
}); });
} }
if (json['admissionRequestProcedures'] != null) { if (json['admissionRequestProcedures'] != null) {
admissionRequestProcedures = []; admissionRequestProcedures = new List<dynamic>();
json['admissionRequestProcedures'].forEach((v) { json['admissionRequestProcedures'].forEach((v) {
admissionRequestProcedures!.add(v); admissionRequestProcedures.add(v);
// admissionRequestProcedures // admissionRequestProcedures
// .add(new AdmissionRequestProcedures.fromJson(v)); // .add(new AdmissionRequestProcedures.fromJson(v));
}); });
@ -163,13 +164,16 @@ class AdmissionRequest {
data['transportComments'] = this.transportComments; data['transportComments'] = this.transportComments;
data['isPhysioAppointmentNeeded'] = this.isPhysioAppointmentNeeded; data['isPhysioAppointmentNeeded'] = this.isPhysioAppointmentNeeded;
data['physioAppointmentComments'] = this.physioAppointmentComments; data['physioAppointmentComments'] = this.physioAppointmentComments;
data['isOPDFollowupAppointmentNeeded'] = this.isOPDFollowupAppointmentNeeded; data['isOPDFollowupAppointmentNeeded'] =
this.isOPDFollowupAppointmentNeeded;
data['opdFollowUpComments'] = this.opdFollowUpComments; data['opdFollowUpComments'] = this.opdFollowUpComments;
data['isDietType'] = this.isDietType; data['isDietType'] = this.isDietType;
data['dietType'] = this.dietType; data['dietType'] = this.dietType;
data['dietRemarks'] = this.dietRemarks; data['dietRemarks'] = this.dietRemarks;
data['isPhysicalActivityModification'] = this.isPhysicalActivityModification; data['isPhysicalActivityModification'] =
data['physicalActivityModificationComments'] = this.physicalActivityModificationComments; this.isPhysicalActivityModification;
data['physicalActivityModificationComments'] =
this.physicalActivityModificationComments;
data['orStatus'] = this.orStatus; data['orStatus'] = this.orStatus;
data['mainLineOfTreatment'] = this.mainLineOfTreatment; data['mainLineOfTreatment'] = this.mainLineOfTreatment;
data['estimatedCost'] = this.estimatedCost; data['estimatedCost'] = this.estimatedCost;
@ -185,7 +189,8 @@ class AdmissionRequest {
// this.admissionRequestDiagnoses.map((v) => v.toJson()).toList(); // this.admissionRequestDiagnoses.map((v) => v.toJson()).toList();
} }
if (this.admissionRequestProcedures != null) { if (this.admissionRequestProcedures != null) {
data['admissionRequestProcedures'] = this.admissionRequestProcedures!.map((v) => v.toJson()).toList(); data['admissionRequestProcedures'] =
this.admissionRequestProcedures.map((v) => v.toJson()).toList();
} }
data['appointmentNo'] = this.appointmentNo; data['appointmentNo'] = this.appointmentNo;
data['episodeID'] = this.episodeID; data['episodeID'] = this.episodeID;

@ -1,9 +1,9 @@
class Clinic { class Clinic {
late int? clinicGroupID; int clinicGroupID;
late String? clinicGroupName; String clinicGroupName;
late int? clinicID; int clinicID;
late String? clinicNameArabic; String clinicNameArabic;
late String? clinicNameEnglish; String clinicNameEnglish;
Clinic( Clinic(
{this.clinicGroupID, {this.clinicGroupID,
@ -29,4 +29,5 @@ class Clinic {
data['clinicNameEnglish'] = this.clinicNameEnglish; data['clinicNameEnglish'] = this.clinicNameEnglish;
return data; return data;
} }
} }

@ -1,9 +1,9 @@
class WardModel{ class WardModel{
late String ? description; String description;
late String ? descriptionN; String descriptionN;
late int ? floorID; int floorID;
late bool ? isActive; bool isActive;
WardModel( WardModel(
{this.description, this.descriptionN, this.floorID, this.isActive}); {this.description, this.descriptionN, this.floorID, this.isActive});

@ -1,12 +1,12 @@
class ActivationCodeModel { class ActivationCodeModel {
late int? channel; int channel;
late int? loginDoctorID; int languageID;
late int? languageID; int loginDoctorID;
late double? versionID; double versionID;
late int? memberID; int memberID;
late int? facilityId; int facilityId;
late String? generalid; String generalid;
late String? otpSendType; String otpSendType;
ActivationCodeModel( ActivationCodeModel(
{this.channel, {this.channel,

@ -1,19 +1,18 @@
class ActivationCodeForVerificationScreenModel { class ActivationCodeForVerificationScreenModel {
late int? oTPSendType; int oTPSendType;
late String? mobileNumber; String mobileNumber;
late String? zipCode; String zipCode;
late int? channel; int channel;
late int? loginDoctorID; int loginDoctorID;
late int? languageID; int languageID;
late double? versionID; double versionID;
late int? memberID; int memberID;
late int? facilityId; int facilityId;
late String? generalid; String generalid;
late int? isMobileFingerPrint; int isMobileFingerPrint;
late String? vidaAuthTokenID; String vidaAuthTokenID;
late String? vidaRefreshTokenID; String vidaRefreshTokenID;
late String? iMEI; String iMEI;
ActivationCodeForVerificationScreenModel( ActivationCodeForVerificationScreenModel(
{this.oTPSendType, {this.oTPSendType,
this.mobileNumber, this.mobileNumber,

@ -1,12 +1,12 @@
import 'package:doctor_app_flutter/models/doctor/doctor_profile_model.dart'; import 'package:doctor_app_flutter/models/doctor/doctor_profile_model.dart';
class CheckActivationCodeForDoctorAppResponseModel { class CheckActivationCodeForDoctorAppResponseModel {
late String? authenticationTokenID; String authenticationTokenID;
late List<ListDoctorsClinic>? listDoctorsClinic; List<ListDoctorsClinic> listDoctorsClinic;
List<DoctorProfileModel>? listDoctorProfile; List<DoctorProfileModel> listDoctorProfile;
late MemberInformation? memberInformation; MemberInformation memberInformation;
String? vidaAuthTokenID; String vidaAuthTokenID;
String? vidaRefreshTokenID; String vidaRefreshTokenID;
CheckActivationCodeForDoctorAppResponseModel( CheckActivationCodeForDoctorAppResponseModel(
{this.authenticationTokenID, {this.authenticationTokenID,
@ -20,16 +20,16 @@ class CheckActivationCodeForDoctorAppResponseModel {
Map<String, dynamic> json) { Map<String, dynamic> json) {
authenticationTokenID = json['AuthenticationTokenID']; authenticationTokenID = json['AuthenticationTokenID'];
if (json['List_DoctorsClinic'] != null) { if (json['List_DoctorsClinic'] != null) {
listDoctorsClinic = []; listDoctorsClinic = new List<ListDoctorsClinic>();
json['List_DoctorsClinic'].forEach((v) { json['List_DoctorsClinic'].forEach((v) {
listDoctorsClinic!.add(new ListDoctorsClinic.fromJson(v)); listDoctorsClinic.add(new ListDoctorsClinic.fromJson(v));
}); });
} }
if (json['List_DoctorProfile'] != null) { if (json['List_DoctorProfile'] != null) {
listDoctorProfile = []; listDoctorProfile = new List<DoctorProfileModel>();
json['List_DoctorProfile'].forEach((v) { json['List_DoctorProfile'].forEach((v) {
listDoctorProfile!.add(new DoctorProfileModel.fromJson(v)); listDoctorProfile.add(new DoctorProfileModel.fromJson(v));
}); });
} }
vidaAuthTokenID = json['VidaAuthTokenID']; vidaAuthTokenID = json['VidaAuthTokenID'];
@ -45,27 +45,27 @@ class CheckActivationCodeForDoctorAppResponseModel {
data['AuthenticationTokenID'] = this.authenticationTokenID; data['AuthenticationTokenID'] = this.authenticationTokenID;
if (this.listDoctorsClinic != null) { if (this.listDoctorsClinic != null) {
data['List_DoctorsClinic'] = data['List_DoctorsClinic'] =
this.listDoctorsClinic!.map((v) => v.toJson()).toList(); this.listDoctorsClinic.map((v) => v.toJson()).toList();
} }
if (this.listDoctorProfile != null) { if (this.listDoctorProfile != null) {
data['List_DoctorProfile'] = data['List_DoctorProfile'] =
this.listDoctorProfile!.map((v) => v.toJson()).toList(); this.listDoctorProfile.map((v) => v.toJson()).toList();
} }
if (this.memberInformation != null) { if (this.memberInformation != null) {
data['memberInformation'] = this.memberInformation!.toJson(); data['memberInformation'] = this.memberInformation.toJson();
} }
return data; return data;
} }
} }
class ListDoctorsClinic { class ListDoctorsClinic {
late dynamic setupID; Null setupID;
late int? projectID; int projectID;
late int? doctorID; int doctorID;
late int? clinicID; int clinicID;
late bool? isActive; bool isActive;
late String? clinicName; String clinicName;
ListDoctorsClinic( ListDoctorsClinic(
{this.setupID, {this.setupID,
@ -97,15 +97,15 @@ class ListDoctorsClinic {
} }
class MemberInformation { class MemberInformation {
late List<Clinics>? clinics; List<Clinics> clinics;
late int? doctorId; int doctorId;
late String? email; String email;
late int? employeeId; int employeeId;
late int? memberId; int memberId;
late dynamic memberName; Null memberName;
late dynamic memberNameArabic; Null memberNameArabic;
late String? preferredLanguage; String preferredLanguage;
late List<Roles>? roles; List<Roles> roles;
MemberInformation( MemberInformation(
{this.clinics, {this.clinics,
@ -120,9 +120,9 @@ class MemberInformation {
MemberInformation.fromJson(Map<String, dynamic> json) { MemberInformation.fromJson(Map<String, dynamic> json) {
if (json['clinics'] != null) { if (json['clinics'] != null) {
clinics = []; clinics = new List<Clinics>();
json['clinics'].forEach((v) { json['clinics'].forEach((v) {
clinics!.add(new Clinics.fromJson(v)); clinics.add(new Clinics.fromJson(v));
}); });
} }
doctorId = json['doctorId']; doctorId = json['doctorId'];
@ -133,9 +133,9 @@ class MemberInformation {
memberNameArabic = json['memberNameArabic']; memberNameArabic = json['memberNameArabic'];
preferredLanguage = json['preferredLanguage']; preferredLanguage = json['preferredLanguage'];
if (json['roles'] != null) { if (json['roles'] != null) {
roles = []; roles = new List<Roles>();
json['roles'].forEach((v) { json['roles'].forEach((v) {
roles!.add(new Roles.fromJson(v)); roles.add(new Roles.fromJson(v));
}); });
} }
} }
@ -143,7 +143,7 @@ class MemberInformation {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.clinics != null) { if (this.clinics != null) {
data['clinics'] = this.clinics!.map((v) => v.toJson()).toList(); data['clinics'] = this.clinics.map((v) => v.toJson()).toList();
} }
data['doctorId'] = this.doctorId; data['doctorId'] = this.doctorId;
data['email'] = this.email; data['email'] = this.email;
@ -153,16 +153,16 @@ class MemberInformation {
data['memberNameArabic'] = this.memberNameArabic; data['memberNameArabic'] = this.memberNameArabic;
data['preferredLanguage'] = this.preferredLanguage; data['preferredLanguage'] = this.preferredLanguage;
if (this.roles != null) { if (this.roles != null) {
data['roles'] = this.roles!.map((v) => v.toJson()).toList(); data['roles'] = this.roles.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class Clinics { class Clinics {
late bool? defaultClinic; bool defaultClinic;
late int? id; int id;
late String? name; String name;
Clinics({this.defaultClinic, this.id, this.name}); Clinics({this.defaultClinic, this.id, this.name});
@ -182,8 +182,8 @@ class Clinics {
} }
class Roles { class Roles {
late String? name; String name;
late int? roleId; int roleId;
Roles({this.name, this.roleId}); Roles({this.name, this.roleId});

@ -1,24 +1,24 @@
class CheckActivationCodeRequestModel { class CheckActivationCodeRequestModel {
String? mobileNumber; String mobileNumber;
String? zipCode; String zipCode;
int? doctorID; int doctorID;
int? memberID; int memberID;
int? loginDoctorID; int loginDoctorID;
String? password; String password;
String? facilityId; String facilityId;
String? iPAdress; String iPAdress;
int? channel; int channel;
int? languageID; int languageID;
int? projectID; int projectID;
double? versionID; double versionID;
String? generalid; String generalid;
String? logInTokenID; String logInTokenID;
String? activationCode; String activationCode;
String? vidaAuthTokenID; String vidaAuthTokenID;
String? vidaRefreshTokenID; String vidaRefreshTokenID;
String? iMEI; String iMEI;
bool? isForSilentLogin; bool isForSilentLogin;
int? oTPSendType; int oTPSendType;
CheckActivationCodeRequestModel( CheckActivationCodeRequestModel(
{this.mobileNumber, {this.mobileNumber,
this.zipCode, this.zipCode,

@ -1,34 +1,33 @@
class GetIMEIDetailsModel { class GetIMEIDetailsModel {
late int? iD; int iD;
late String? iMEI; String iMEI;
late int? logInTypeID; int logInTypeID;
late bool? outSA; bool outSA;
late String? mobile; String mobile;
late dynamic identificationNo; dynamic identificationNo;
late int? doctorID; int doctorID;
late String? doctorName; String doctorName;
late String? doctorNameN; String doctorNameN;
late int? clinicID; int clinicID;
late String? clinicDescription; String clinicDescription;
late dynamic clinicDescriptionN; dynamic clinicDescriptionN;
late int? projectID; int projectID;
late String? projectName; String projectName;
late String? genderDescription; String genderDescription;
late dynamic genderDescriptionN; dynamic genderDescriptionN;
late String? titleDescription; String titleDescription;
late dynamic titleDescriptionN; dynamic titleDescriptionN;
late dynamic zipCode; dynamic zipCode;
late String? createdOn; String createdOn;
late dynamic createdBy; dynamic createdBy;
late String? editedOn; String editedOn;
late dynamic editedBy; dynamic editedBy;
late bool? biometricEnabled; bool biometricEnabled;
late dynamic preferredLanguage; dynamic preferredLanguage;
late bool? isActive; bool isActive;
late String? vidaAuthTokenID; String vidaAuthTokenID;
late String? vidaRefreshTokenID; String vidaRefreshTokenID;
late String? password; String password;
GetIMEIDetailsModel( GetIMEIDetailsModel(
{this.iD, {this.iD,
this.iMEI, this.iMEI,

@ -1,37 +1,37 @@
class InsertIMEIDetailsModel { class InsertIMEIDetailsModel {
late String? iMEI; String iMEI;
late int ?logInTypeID; int logInTypeID;
late dynamic outSA; dynamic outSA;
late String? mobile; String mobile;
late dynamic identificationNo; dynamic identificationNo;
late int ?doctorID; int doctorID;
late String? doctorName; String doctorName;
late String ?doctorNameN; String doctorNameN;
late int ?clinicID; int clinicID;
late String ?clinicDescription; String clinicDescription;
late dynamic clinicDescriptionN; Null clinicDescriptionN;
late String ?projectName; String projectName;
late String ?genderDescription; String genderDescription;
late dynamic genderDescriptionN; Null genderDescriptionN;
late String ?titleDescription; String titleDescription;
late dynamic titleDescriptionN; Null titleDescriptionN;
late bool ?bioMetricEnabled; bool bioMetricEnabled;
late dynamic preferredLanguage; Null preferredLanguage;
late bool ?isActive; bool isActive;
late int ?editedBy; int editedBy;
late int ?projectID; int projectID;
late String ?tokenID; String tokenID;
late int ?languageID; int languageID;
late String ?stamp; String stamp;
late String ?iPAdress; String iPAdress;
late double ?versionID; double versionID;
late int ?channel; int channel;
late String ?sessionID; String sessionID;
late bool ?isLoginForDoctorApp; bool isLoginForDoctorApp;
late int ?patientOutSA; int patientOutSA;
late String ?vidaAuthTokenID; String vidaAuthTokenID;
late String ?vidaRefreshTokenID; String vidaRefreshTokenID;
late dynamic password; dynamic password;
InsertIMEIDetailsModel( InsertIMEIDetailsModel(
{this.iMEI, {this.iMEI,
this.logInTypeID, this.logInTypeID,

@ -1,13 +1,13 @@
class NewLoginInformationModel { class NewLoginInformationModel {
late int? doctorID; int doctorID;
late List<ListMemberInformation>? listMemberInformation; List<ListMemberInformation> listMemberInformation;
late String ?logInTokenID; String logInTokenID;
late String ?mobileNumber; String mobileNumber;
late dynamic sELECTDeviceIMEIbyIMEIList; Null sELECTDeviceIMEIbyIMEIList;
late int ?userID; int userID;
late String ?zipCode; String zipCode;
late bool ?isActiveCode; bool isActiveCode;
late bool ?isSMSSent; bool isSMSSent;
NewLoginInformationModel( NewLoginInformationModel(
{this.doctorID, {this.doctorID,
@ -23,9 +23,9 @@ class NewLoginInformationModel {
NewLoginInformationModel.fromJson(Map<String, dynamic> json) { NewLoginInformationModel.fromJson(Map<String, dynamic> json) {
doctorID = json['DoctorID']; doctorID = json['DoctorID'];
if (json['List_MemberInformation'] != null) { if (json['List_MemberInformation'] != null) {
listMemberInformation = []; listMemberInformation = new List<ListMemberInformation>();
json['List_MemberInformation'].forEach((v) { json['List_MemberInformation'].forEach((v) {
listMemberInformation!.add(new ListMemberInformation.fromJson(v)); listMemberInformation.add(new ListMemberInformation.fromJson(v));
}); });
} }
logInTokenID = json['LogInTokenID']; logInTokenID = json['LogInTokenID'];
@ -42,7 +42,7 @@ class NewLoginInformationModel {
data['DoctorID'] = this.doctorID; data['DoctorID'] = this.doctorID;
if (this.listMemberInformation != null) { if (this.listMemberInformation != null) {
data['List_MemberInformation'] = data['List_MemberInformation'] =
this.listMemberInformation!.map((v) => v.toJson()).toList(); this.listMemberInformation.map((v) => v.toJson()).toList();
} }
data['LogInTokenID'] = this.logInTokenID; data['LogInTokenID'] = this.logInTokenID;
data['MobileNumber'] = this.mobileNumber; data['MobileNumber'] = this.mobileNumber;
@ -56,17 +56,17 @@ class NewLoginInformationModel {
} }
class ListMemberInformation { class ListMemberInformation {
late dynamic setupID; Null setupID;
late int ? memberID; int memberID;
late String ? memberName; String memberName;
late dynamic memberNameN; Null memberNameN;
late String ? preferredLang; String preferredLang;
late String ? pIN; String pIN;
late String ? saltHash; String saltHash;
late int ? referenceID; int referenceID;
late int ? employeeID; int employeeID;
late int ? roleID; int roleID;
late int ? projectid; int projectid;
ListMemberInformation( ListMemberInformation(
{this.setupID, {this.setupID,

@ -1,8 +1,8 @@
class SendActivationCodeForDoctorAppResponseModel { class SendActivationCodeForDoctorAppResponseModel {
String? logInTokenID; String logInTokenID;
String? verificationCode; String verificationCode;
String? vidaAuthTokenID; String vidaAuthTokenID;
String? vidaRefreshTokenID; String vidaRefreshTokenID;
SendActivationCodeForDoctorAppResponseModel( SendActivationCodeForDoctorAppResponseModel(
{this.logInTokenID, {this.logInTokenID,

@ -1,9 +1,9 @@
class CalculateBoxQuantityRequestModel { class CalculateBoxQuantityRequestModel {
int? itemCode; int itemCode;
double? strength; double strength;
int? frequency; int frequency;
int? duration; int duration;
String? vidaAuthTokenID; String vidaAuthTokenID;
CalculateBoxQuantityRequestModel( CalculateBoxQuantityRequestModel(
{this.itemCode, {this.itemCode,

@ -1,7 +1,7 @@
class DiabeticType { class DiabeticType {
int? value; int value;
String? nameEn; String nameEn;
String? nameAr; String nameAr;
DiabeticType({this.value, this.nameEn, this.nameAr}); DiabeticType({this.value, this.nameEn, this.nameAr});

@ -1,12 +1,12 @@
class GetDiabeticChartValuesRequestModel { class GetDiabeticChartValuesRequestModel {
int? deviceTypeID; int deviceTypeID;
int? patientID; int patientID;
int? resultType; int resultType;
int? admissionNo; int admissionNo;
String? setupID; String setupID;
bool? patientOutSA; bool patientOutSA;
int? patientType; int patientType;
int? patientTypeID; int patientTypeID;
GetDiabeticChartValuesRequestModel( GetDiabeticChartValuesRequestModel(
{this.deviceTypeID, {this.deviceTypeID,

@ -1,10 +1,10 @@
class GetDiabeticChartValuesResponseModel { class GetDiabeticChartValuesResponseModel {
String? resultType; String resultType;
int? admissionNo; int admissionNo;
String? dateChart; String dateChart;
int? resultValue; int resultValue;
int? createdBy; int createdBy;
String? createdOn; String createdOn;
GetDiabeticChartValuesResponseModel( GetDiabeticChartValuesResponseModel(
{this.resultType, {this.resultType,

@ -1,9 +1,9 @@
class GetDiagnosisForInPatientRequestModel { class GetDiagnosisForInPatientRequestModel {
int? patientID; int patientID;
int? admissionNo; int admissionNo;
String? setupID; String setupID;
int? patientType; int patientType;
int? patientTypeID; int patientTypeID;
GetDiagnosisForInPatientRequestModel( GetDiagnosisForInPatientRequestModel(
{this.patientID, {this.patientID,

@ -1,15 +1,15 @@
class GetDiagnosisForInPatientResponseModel { class GetDiagnosisForInPatientResponseModel {
String? iCDCode10ID; String iCDCode10ID;
int? diagnosisTypeID; int diagnosisTypeID;
int? conditionID; int conditionID;
bool? complexDiagnosis; bool complexDiagnosis;
String? asciiDesc; String asciiDesc;
int? createdBy; int createdBy;
String? createdOn; String createdOn;
int? editedBy; int editedBy;
String? editedOn; String editedOn;
String? createdByName; String createdByName;
String? editedByName; String editedByName;
GetDiagnosisForInPatientResponseModel( GetDiagnosisForInPatientResponseModel(
{this.iCDCode10ID, {this.iCDCode10ID,
@ -20,8 +20,7 @@ class GetDiagnosisForInPatientResponseModel {
this.createdBy, this.createdBy,
this.createdOn, this.createdOn,
this.editedBy, this.editedBy,
this.editedOn, this.editedOn, this.createdByName});
this.createdByName});
GetDiagnosisForInPatientResponseModel.fromJson(Map<String, dynamic> json) { GetDiagnosisForInPatientResponseModel.fromJson(Map<String, dynamic> json) {
iCDCode10ID = json['ICDCode10ID']; iCDCode10ID = json['ICDCode10ID'];

@ -1,13 +1,13 @@
class GetHospitalsRequestModel { class GetHospitalsRequestModel {
int ?languageID; int languageID;
String? stamp; String stamp;
String? iPAdress; String iPAdress;
double? versionID; double versionID;
int ?channel; int channel;
String? tokenID; String tokenID;
String? sessionID; String sessionID;
bool ?isLoginForDoctorApp; bool isLoginForDoctorApp;
String ?memberID; String memberID;
GetHospitalsRequestModel( GetHospitalsRequestModel(
{this.languageID, {this.languageID,

@ -1,7 +1,7 @@
class GetHospitalsResponseModel { class GetHospitalsResponseModel {
String? facilityGroupId; String facilityGroupId;
int ?facilityId; int facilityId;
String ?facilityName; String facilityName;
GetHospitalsResponseModel( GetHospitalsResponseModel(
{this.facilityGroupId, this.facilityId, this.facilityName}); {this.facilityGroupId, this.facilityId, this.facilityName});

@ -1,20 +1,20 @@
class HospitalsModel { class HospitalsModel {
String? desciption; String desciption;
dynamic desciptionN; dynamic desciptionN;
int? iD; int iD;
String? legalName; String legalName;
String? legalNameN; String legalNameN;
String? name; String name;
dynamic nameN; dynamic nameN;
String? phoneNumber; String phoneNumber;
String? setupID; String setupID;
int? distanceInKilometers; int distanceInKilometers;
bool ?isActive; bool isActive;
String? latitude; String latitude;
String? longitude; String longitude;
int? mainProjectID; int mainProjectID;
dynamic projectOutSA; dynamic projectOutSA;
bool ?usingInDoctorApp; bool usingInDoctorApp;
HospitalsModel({this.desciption, HospitalsModel({this.desciption,
this.desciptionN, this.desciptionN,
@ -33,7 +33,7 @@ class HospitalsModel {
this.projectOutSA, this.projectOutSA,
this.usingInDoctorApp}); this.usingInDoctorApp});
HospitalsModel.fromJson(Map<String?, dynamic> json) { HospitalsModel.fromJson(Map<String, dynamic> json) {
desciption = json['Desciption']; desciption = json['Desciption'];
desciptionN = json['DesciptionN']; desciptionN = json['DesciptionN'];
iD = json['ID']; iD = json['ID'];
@ -52,8 +52,8 @@ class HospitalsModel {
usingInDoctorApp = json['UsingInDoctorApp']; usingInDoctorApp = json['UsingInDoctorApp'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['Desciption'] = this.desciption; data['Desciption'] = this.desciption;
data['DesciptionN'] = this.desciptionN; data['DesciptionN'] = this.desciptionN;
data['ID'] = this.iD; data['ID'] = this.iD;

@ -1,11 +1,11 @@
class ApporvalDetails { class ApporvalDetails {
int? approvalNo; int approvalNo;
String? procedureName; String procedureName;
//String procedureNameN; //String procedureNameN;
String ?status; String status;
String ?isInvoicedDesc; String isInvoicedDesc;
ApporvalDetails( ApporvalDetails(
{this.approvalNo, this.procedureName, this.status, this.isInvoicedDesc}); {this.approvalNo, this.procedureName, this.status, this.isInvoicedDesc});
@ -35,35 +35,35 @@ class ApporvalDetails {
} }
class InsuranceApprovalModel { class InsuranceApprovalModel {
List<ApporvalDetails> ?apporvalDetails; List<ApporvalDetails> apporvalDetails;
double ?versionID; double versionID;
int ? channel; int channel;
int ? languageID; int languageID;
String ? iPAdress; String iPAdress;
String ? generalid; String generalid;
int ? patientOutSA; int patientOutSA;
String ? sessionID; String sessionID;
bool ? isDentalAllowedBackend; bool isDentalAllowedBackend;
int ? deviceTypeID; int deviceTypeID;
int ? patientID; int patientID;
String ? tokenID; String tokenID;
int ? patientTypeID; int patientTypeID;
int ? patientType; int patientType;
int ? eXuldAPPNO; int eXuldAPPNO;
int ? projectID; int projectID;
String ? doctorName; String doctorName;
String ? clinicName; String clinicName;
String ? patientDescription; String patientDescription;
int ? approvalNo; int approvalNo;
String ?approvalStatusDescption; String approvalStatusDescption;
int ? unUsedCount; int unUsedCount;
String ? doctorImage; String doctorImage;
String ? projectName; String projectName;
//String companyName; //String companyName;
String ? expiryDate; String expiryDate;
String ? rceiptOn; String rceiptOn;
int ?appointmentNo; int appointmentNo;
InsuranceApprovalModel( InsuranceApprovalModel(
{this.versionID, {this.versionID,
@ -126,9 +126,9 @@ class InsuranceApprovalModel {
doctorImage = json['DoctorImageURL']; doctorImage = json['DoctorImageURL'];
clinicName = json['ClinicName']; clinicName = json['ClinicName'];
if (json['ApporvalDetails'] != null) { if (json['ApporvalDetails'] != null) {
apporvalDetails =[]; apporvalDetails = new List<ApporvalDetails>();
json['ApporvalDetails'].forEach((v) { json['ApporvalDetails'].forEach((v) {
apporvalDetails!.add(new ApporvalDetails.fromJson(v)); apporvalDetails.add(new ApporvalDetails.fromJson(v));
}); });
} }
appointmentNo = json['AppointmentNo']; appointmentNo = json['AppointmentNo'];

@ -1,36 +1,36 @@
class InsuranceApprovalInPatientModel { class InsuranceApprovalInPatientModel {
String? setupID; String setupID;
int? projectID; int projectID;
int? approvalNo; int approvalNo;
int? status; int status;
String? approvalDate; String approvalDate;
int? patientType; int patientType;
int? patientID; int patientID;
int? companyID; int companyID;
bool? subCategoryID; bool subCategoryID;
int? doctorID; int doctorID;
int? clinicID; int clinicID;
int? approvalType; int approvalType;
int? inpatientApprovalSubType; int inpatientApprovalSubType;
dynamic isApprovalOnGross; dynamic isApprovalOnGross;
String? companyApprovalNo; String companyApprovalNo;
dynamic progNoteOrderNo; dynamic progNoteOrderNo;
String? submitOn; String submitOn;
String? receiptOn; String receiptOn;
String? expiryDate; String expiryDate;
int? admissionNo; int admissionNo;
int? admissionRequestNo; int admissionRequestNo;
String? approvalStatusDescption; String approvalStatusDescption;
dynamic approvalStatusDescptionN; dynamic approvalStatusDescptionN;
dynamic remarks; dynamic remarks;
List<ApporvalDetails>? apporvalDetails; List<ApporvalDetails> apporvalDetails;
String? clinicName; String clinicName;
dynamic companyName; dynamic companyName;
String? doctorName; String doctorName;
String? projectName; String projectName;
int? totaUnUsedCount; int totaUnUsedCount;
int? unUsedCount; int unUsedCount;
String? doctorImage; String doctorImage;
InsuranceApprovalInPatientModel( InsuranceApprovalInPatientModel(
{this.setupID, {this.setupID,
@ -93,9 +93,9 @@ class InsuranceApprovalInPatientModel {
approvalStatusDescptionN = json['ApprovalStatusDescptionN']; approvalStatusDescptionN = json['ApprovalStatusDescptionN'];
remarks = json['Remarks']; remarks = json['Remarks'];
if (json['ApporvalDetails'] != null) { if (json['ApporvalDetails'] != null) {
apporvalDetails = []; apporvalDetails = new List<ApporvalDetails>();
json['ApporvalDetails'].forEach((v) { json['ApporvalDetails'].forEach((v) {
apporvalDetails!.add(new ApporvalDetails.fromJson(v)); apporvalDetails.add(new ApporvalDetails.fromJson(v));
}); });
} }
clinicName = json['ClinicName']; clinicName = json['ClinicName'];
@ -135,7 +135,7 @@ class InsuranceApprovalInPatientModel {
data['Remarks'] = this.remarks; data['Remarks'] = this.remarks;
if (this.apporvalDetails != null) { if (this.apporvalDetails != null) {
data['ApporvalDetails'] = data['ApporvalDetails'] =
this.apporvalDetails!.map((v) => v.toJson()).toList(); this.apporvalDetails.map((v) => v.toJson()).toList();
} }
data['ClinicName'] = this.clinicName; data['ClinicName'] = this.clinicName;
data['CompanyName'] = this.companyName; data['CompanyName'] = this.companyName;
@ -148,35 +148,35 @@ class InsuranceApprovalInPatientModel {
} }
class ApporvalDetails { class ApporvalDetails {
dynamic setupID; Null setupID;
dynamic projectID; Null projectID;
int? approvalNo; int approvalNo;
dynamic lineItemNo; Null lineItemNo;
dynamic orderType; Null orderType;
dynamic procedureID; Null procedureID;
dynamic toothNo; Null toothNo;
dynamic price; Null price;
dynamic approvedAmount; Null approvedAmount;
dynamic unapprovedPatientShare; Null unapprovedPatientShare;
dynamic waivedAmount; Null waivedAmount;
dynamic discountType; Null discountType;
dynamic discountValue; Null discountValue;
dynamic shareType; Null shareType;
dynamic patientShareTypeValue; Null patientShareTypeValue;
dynamic companyShareTypeValue; Null companyShareTypeValue;
dynamic patientShare; Null patientShare;
dynamic companyShare; Null companyShare;
dynamic deductableAmount; Null deductableAmount;
String? disapprovedRemarks; String disapprovedRemarks;
dynamic progNoteOrderNo; Null progNoteOrderNo;
dynamic progNoteLineItemNo; Null progNoteLineItemNo;
dynamic invoiceTransactionType; Null invoiceTransactionType;
dynamic invoiceNo; Null invoiceNo;
String? procedureName; String procedureName;
String? procedureNameN; String procedureNameN;
String? status; String status;
dynamic isInvoiced; Null isInvoiced;
String? isInvoicedDesc; String isInvoicedDesc;
ApporvalDetails( ApporvalDetails(
{this.setupID, {this.setupID,

@ -1,23 +1,23 @@
class LabOrderResult { class LabOrderResult {
String? description; String description;
dynamic femaleInterpretativeData; dynamic femaleInterpretativeData;
int ?gender; int gender;
int? lineItemNo; int lineItemNo;
dynamic maleInterpretativeData; dynamic maleInterpretativeData;
dynamic notes; dynamic notes;
String ?packageID; String packageID;
int ?patientID; int patientID;
String ? projectID; String projectID;
String ? referanceRange; String referanceRange;
String ? resultValue; String resultValue;
String ? sampleCollectedOn; String sampleCollectedOn;
String ? sampleReceivedOn; String sampleReceivedOn;
String ? setupID; String setupID;
dynamic superVerifiedOn; dynamic superVerifiedOn;
String? testCode; String testCode;
String? uOM; String uOM;
String? verifiedOn; String verifiedOn;
String? verifiedOnDateTime; String verifiedOnDateTime;
LabOrderResult( LabOrderResult(
{this.description, {this.description,

@ -1,28 +1,28 @@
class LabResultHistory { class LabResultHistory {
String? description; String description;
String? femaleInterpretativeData; String femaleInterpretativeData;
int? gender; int gender;
bool? isCertificateAllowed; bool isCertificateAllowed;
int? lineItemNo; int lineItemNo;
String? maleInterpretativeData; String maleInterpretativeData;
String? notes; String notes;
int? orderLineItemNo; int orderLineItemNo;
int? orderNo; int orderNo;
String? packageID; String packageID;
int? patientID; int patientID;
String? projectID; String projectID;
String? referanceRange; String referanceRange;
String? resultValue; String resultValue;
int? resultValueBasedLineItemNo; int resultValueBasedLineItemNo;
String? resultValueFlag; String resultValueFlag;
String? sampleCollectedOn; String sampleCollectedOn;
String? sampleReceivedOn; String sampleReceivedOn;
String? setupID; String setupID;
String? superVerifiedOn; String superVerifiedOn;
String? testCode; String testCode;
String? uOM; String uOM;
String? verifiedOn; String verifiedOn;
String? verifiedOnDateTime; String verifiedOnDateTime;
LabResultHistory( LabResultHistory(
{this.description, {this.description,

@ -5,51 +5,51 @@ class AllSpecialLabResultModel {
dynamic appointmentDate; dynamic appointmentDate;
dynamic appointmentNo; dynamic appointmentNo;
dynamic appointmentTime; dynamic appointmentTime;
String? clinicDescription; String clinicDescription;
String? clinicDescriptionEnglish; String clinicDescriptionEnglish;
dynamic clinicDescriptionN; dynamic clinicDescriptionN;
dynamic clinicID; dynamic clinicID;
dynamic createdOn; dynamic createdOn;
double? decimalDoctorRate; double decimalDoctorRate;
dynamic doctorID; dynamic doctorID;
String? doctorImageURL; String doctorImageURL;
String? doctorName; String doctorName;
String? doctorNameEnglish; String doctorNameEnglish;
dynamic doctorNameN; dynamic doctorNameN;
dynamic doctorRate; dynamic doctorRate;
dynamic doctorStarsRate; dynamic doctorStarsRate;
String? doctorTitle; String doctorTitle;
dynamic gender; dynamic gender;
String? genderDescription; String genderDescription;
bool? inOutPatient; bool inOutPatient;
String? invoiceNo; String invoiceNo;
bool? isActiveDoctorProfile; bool isActiveDoctorProfile;
bool? isDoctorAllowVedioCall; bool isDoctorAllowVedioCall;
bool? isExecludeDoctor; bool isExecludeDoctor;
bool? isInOutPatient; bool isInOutPatient;
dynamic isInOutPatientDescription; dynamic isInOutPatientDescription;
dynamic isInOutPatientDescriptionN; dynamic isInOutPatientDescriptionN;
bool? isLiveCareAppointment; bool isLiveCareAppointment;
bool? isRead; bool isRead;
bool? isSendEmail; bool isSendEmail;
String? moduleID; String moduleID;
String? nationalityFlagURL; String nationalityFlagURL;
dynamic noOfPatientsRate; dynamic noOfPatientsRate;
dynamic orderDate; dynamic orderDate;
String? orderNo; String orderNo;
dynamic patientID; dynamic patientID;
String? projectID; String projectID;
String? projectName; String projectName;
dynamic projectNameN; dynamic projectNameN;
String? qR; String qR;
String? resultData; String resultData;
String? resultDataHTML; String resultDataHTML;
dynamic resultDataTxt; dynamic resultDataTxt;
String? setupID; String setupID;
//List<String> speciality; //List<String> speciality;
dynamic status; dynamic status;
dynamic statusDesc; dynamic statusDesc;
String? strOrderDate; String strOrderDate;
AllSpecialLabResultModel( AllSpecialLabResultModel(
{this.actualDoctorRate, {this.actualDoctorRate,

@ -1,18 +1,18 @@
class AllSpecialLabResultRequestModel { class AllSpecialLabResultRequestModel {
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
String? sessionID; String sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
String? tokenID; String tokenID;
int? patientTypeID; int patientTypeID;
int? patientType; int patientType;
int? patientID; int patientID;
int? projectID; int projectID;
AllSpecialLabResultRequestModel( AllSpecialLabResultRequestModel(
{this.versionID, {this.versionID,

@ -1,24 +1,24 @@
class LabResult { class LabResult {
String? description; String description;
dynamic femaleInterpretativeData; dynamic femaleInterpretativeData;
int? gender; int gender;
int? lineItemNo; int lineItemNo;
dynamic maleInterpretativeData; dynamic maleInterpretativeData;
String? notes; String notes;
String? packageID; String packageID;
int? patientID; int patientID;
String? projectID; String projectID;
String? referanceRange; String referanceRange;
String? resultValue; String resultValue;
String? sampleCollectedOn; String maxValue;
String? sampleReceivedOn; String minValue;
String? setupID; String sampleCollectedOn;
String? maxValue; String sampleReceivedOn;
String? minValue; String setupID;
dynamic superVerifiedOn; dynamic superVerifiedOn;
String? testCode; String testCode;
String? uOM; String uOM;
String? verifiedOn; String verifiedOn;
dynamic verifiedOnDateTime; dynamic verifiedOnDateTime;
LabResult( LabResult(
@ -96,9 +96,9 @@ class LabResult {
int checkResultStatus() { int checkResultStatus() {
try { try {
var max = double.tryParse(maxValue!) ?? null; var max = double.tryParse(maxValue) ?? null;
var min = double.tryParse(minValue!) ?? null; var min = double.tryParse(minValue) ?? null;
var result = double.tryParse(resultValue!) ?? null; var result = double.tryParse(resultValue) ?? null;
if (max != null && min != null && result != null) { if (max != null && min != null && result != null) {
if (result > max) { if (result > max) {
return 1; return 1;
@ -110,17 +110,18 @@ class LabResult {
} else { } else {
return 0; return 0;
} }
} catch (e) { }catch (e){
return 0; return 0;
} }
} }
} }
class LabResultList { class LabResultList {
String filterName = ""; String filterName = "";
List<LabResult> patientLabResultList = []; List<LabResult> patientLabResultList = List();
LabResultList({required this.filterName, required LabResult lab}) { LabResultList({this.filterName, LabResult lab}) {
patientLabResultList.add(lab); patientLabResultList.add(lab);
} }
} }

@ -1,40 +1,40 @@
import 'package:doctor_app_flutter/util/date-utils.dart'; import 'package:doctor_app_flutter/util/date-utils.dart';
class PatientLabOrders { class PatientLabOrders {
int ?actualDoctorRate; int actualDoctorRate;
String ?clinicDescription; String clinicDescription;
String ?clinicDescriptionEnglish; String clinicDescriptionEnglish;
dynamic clinicDescriptionN; Null clinicDescriptionN;
int ?clinicID; int clinicID;
int ?doctorID; int doctorID;
String? doctorImageURL; String doctorImageURL;
String ?doctorName; String doctorName;
String ?doctorNameEnglish; String doctorNameEnglish;
dynamic doctorNameN; Null doctorNameN;
int ?doctorRate; int doctorRate;
String ?doctorTitle; String doctorTitle;
int ?gender; int gender;
String ?genderDescription; String genderDescription;
String ?invoiceNo; String invoiceNo;
bool ?isActiveDoctorProfile; bool isActiveDoctorProfile;
bool ?isDoctorAllowVedioCall; bool isDoctorAllowVedioCall;
bool ?isExecludeDoctor; bool isExecludeDoctor;
bool ?isInOutPatient; bool isInOutPatient;
String ?isInOutPatientDescription; String isInOutPatientDescription;
String ?isInOutPatientDescriptionN; String isInOutPatientDescriptionN;
bool ?isRead; bool isRead;
String ?nationalityFlagURL; String nationalityFlagURL;
int ?noOfPatientsRate; int noOfPatientsRate;
DateTime? orderDate; DateTime orderDate;
String ?orderNo; String orderNo;
String ?patientID; String patientID;
String ?projectID; String projectID;
String ?projectName; String projectName;
dynamic projectNameN; Null projectNameN;
String ?qR; String qR;
String ?setupID; String setupID;
List<String> ?speciality; List<String> speciality;
bool ?isLiveCareAppointment; bool isLiveCareAppointment;
PatientLabOrders( PatientLabOrders(
{this.actualDoctorRate, {this.actualDoctorRate,
this.clinicDescription, this.clinicDescription,
@ -149,10 +149,10 @@ class PatientLabOrders {
class PatientLabOrdersList { class PatientLabOrdersList {
String filterName = ""; String filterName = "";
List<PatientLabOrders> patientLabOrdersList = []; List<PatientLabOrders> patientLabOrdersList = List();
PatientLabOrdersList( PatientLabOrdersList(
{required this.filterName, required PatientLabOrders patientDoctorAppointment}) { {this.filterName, PatientLabOrders patientDoctorAppointment}) {
patientLabOrdersList.add(patientDoctorAppointment); patientLabOrdersList.add(patientDoctorAppointment);
} }
} }

@ -1,9 +1,9 @@
class PatientLabSpecialResult { class PatientLabSpecialResult {
String ?invoiceNo; String invoiceNo;
String ?moduleID; String moduleID;
String ? resultData; String resultData;
String ? resultDataHTML; String resultDataHTML;
dynamic resultDataTxt; Null resultDataTxt;
PatientLabSpecialResult( PatientLabSpecialResult(
{this.invoiceNo, {this.invoiceNo,

@ -1,17 +1,17 @@
class RequestPatientLabOrders { class RequestPatientLabOrders {
double? versionID; double versionID;
int ?channel; int channel;
int ?languageID; int languageID;
String? iPAdress; String iPAdress;
String ?generalid; String generalid;
int? patientOutSA; int patientOutSA;
String? sessionID; String sessionID;
bool ?isDentalAllowedBackend; bool isDentalAllowedBackend;
int ?deviceTypeID; int deviceTypeID;
int ?patientID; int patientID;
String ?tokenID; String tokenID;
int ?patientTypeID; int patientTypeID;
int ?patientType; int patientType;
RequestPatientLabOrders( RequestPatientLabOrders(
{this.versionID, {this.versionID,

@ -1,22 +1,22 @@
class RequestPatientLabSpecialResult { class RequestPatientLabSpecialResult {
String? invoiceNo; String invoiceNo;
String? orderNo; String orderNo;
String? setupID; String setupID;
String? projectID; String projectID;
int ?clinicID; int clinicID;
double? versionID; double versionID;
int ?channel; int channel;
int ?languageID; int languageID;
String? iPAdress; String iPAdress;
String ?generalid; String generalid;
int ?patientOutSA; int patientOutSA;
String ?sessionID; String sessionID;
bool ?isDentalAllowedBackend; bool isDentalAllowedBackend;
int ?deviceTypeID; int deviceTypeID;
int ?patientID; int patientID;
String? tokenID; String tokenID;
int ?patientTypeID; int patientTypeID;
int ?patientType; int patientType;
RequestPatientLabSpecialResult( RequestPatientLabSpecialResult(
{this.invoiceNo, {this.invoiceNo,

@ -1,29 +1,29 @@
class RequestSendLabReportEmail { class RequestSendLabReportEmail {
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
String? sessionID; String sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
int? patientID; int patientID;
String? tokenID; String tokenID;
int? patientTypeID; int patientTypeID;
int? patientType; int patientType;
String? to; String to;
String? dateofBirth; String dateofBirth;
String? patientIditificationNum; String patientIditificationNum;
String? patientMobileNumber; String patientMobileNumber;
String? patientName; String patientName;
String? setupID; String setupID;
String? projectName; String projectName;
String? clinicName; String clinicName;
String? doctorName; String doctorName;
String? projectID; String projectID;
String? invoiceNo; String invoiceNo;
String? orderDate; String orderDate;
RequestSendLabReportEmail( RequestSendLabReportEmail(
{this.versionID, {this.versionID,

@ -1,9 +1,9 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class AlternativeService { class AlternativeService {
int? serviceID; int serviceID;
String? serviceName; String serviceName;
bool? isSelected; bool isSelected;
AlternativeService( AlternativeService(
{this.serviceID, this.serviceName, this.isSelected = false}); {this.serviceID, this.serviceName, this.isSelected = false});
@ -23,7 +23,7 @@ class AlternativeService {
} }
class AlternativeServicesList with ChangeNotifier { class AlternativeServicesList with ChangeNotifier {
late List<AlternativeService> _alternativeServicesList; List<AlternativeService> _alternativeServicesList;
getServicesList(){ getServicesList(){
return _alternativeServicesList; return _alternativeServicesList;

@ -1,7 +1,7 @@
class PendingPatientERForDoctorAppRequestModel { class PendingPatientERForDoctorAppRequestModel {
bool ? outSA; bool outSA;
int ? doctorID; int doctorID;
String ? sErServiceID; String sErServiceID;
PendingPatientERForDoctorAppRequestModel( PendingPatientERForDoctorAppRequestModel(
{this.outSA, this.doctorID, this.sErServiceID}); {this.outSA, this.doctorID, this.sErServiceID});

@ -1,12 +1,11 @@
class AddPatientToDoctorListRequestModel { class AddPatientToDoctorListRequestModel {
int? vCID; int vCID;
String? tokenID; String tokenID;
String? generalid; String generalid;
int? doctorId; int doctorId;
bool? isOutKsa; bool isOutKsa;
AddPatientToDoctorListRequestModel( AddPatientToDoctorListRequestModel({this.vCID, this.tokenID, this.generalid, this.doctorId, this.isOutKsa});
{this.vCID, this.tokenID, this.generalid, this.doctorId, this.isOutKsa});
AddPatientToDoctorListRequestModel.fromJson(Map<String, dynamic> json) { AddPatientToDoctorListRequestModel.fromJson(Map<String, dynamic> json) {
vCID = json['VC_ID']; vCID = json['VC_ID'];

@ -1,9 +1,9 @@
class LiveCareUserLoginRequestModel { class LiveCareUserLoginRequestModel {
String? tokenID; String tokenID;
String? generalid; String generalid;
int? doctorId; int doctorId;
int? isOutKsa; int isOutKsa;
int? isLogin; int isLogin;
LiveCareUserLoginRequestModel({this.tokenID, this.generalid, this.doctorId, this.isOutKsa, this.isLogin}); LiveCareUserLoginRequestModel({this.tokenID, this.generalid, this.doctorId, this.isOutKsa, this.isLogin});

@ -1,14 +1,14 @@
class MedicalFileModel { class MedicalFileModel {
List<EntityList>? entityList; List<EntityList> entityList;
dynamic statusMessage; dynamic statusMessage;
MedicalFileModel({this.entityList, this.statusMessage}); MedicalFileModel({this.entityList, this.statusMessage});
MedicalFileModel.fromJson(Map<String, dynamic> json) { MedicalFileModel.fromJson(Map<String, dynamic> json) {
if (json['entityList'] != null) { if (json['entityList'] != null) {
entityList = []; entityList = new List<EntityList>();
json['entityList'].forEach((v) { json['entityList'].forEach((v) {
entityList!.add(new EntityList.fromJson(v)); entityList.add(new EntityList.fromJson(v));
}); });
} }
statusMessage = json['statusMessage']; statusMessage = json['statusMessage'];
@ -17,7 +17,7 @@ class MedicalFileModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.entityList != null) { if (this.entityList != null) {
data['entityList'] = this.entityList!.map((v) => v.toJson()).toList(); data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
} }
data['statusMessage'] = this.statusMessage; data['statusMessage'] = this.statusMessage;
return data; return data;
@ -25,15 +25,15 @@ class MedicalFileModel {
} }
class EntityList { class EntityList {
List<Timelines>? timelines; List<Timelines> timelines;
EntityList({this.timelines}); EntityList({this.timelines});
EntityList.fromJson(Map<String, dynamic> json) { EntityList.fromJson(Map<String, dynamic> json) {
if (json['Timelines'] != null) { if (json['Timelines'] != null) {
timelines = []; timelines = new List<Timelines>();
json['Timelines'].forEach((v) { json['Timelines'].forEach((v) {
timelines!.add(new Timelines.fromJson(v)); timelines.add(new Timelines.fromJson(v));
}); });
} }
} }
@ -41,25 +41,25 @@ class EntityList {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.timelines != null) { if (this.timelines != null) {
data['Timelines'] = this.timelines!.map((v) => v.toJson()).toList(); data['Timelines'] = this.timelines.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class Timelines { class Timelines {
int? clinicId; int clinicId;
String? clinicName; String clinicName;
String? date; String date;
int? doctorId; int doctorId;
String? doctorImage; String doctorImage;
String? doctorName; String doctorName;
int? encounterNumber; int encounterNumber;
String? encounterType; String encounterType;
int? projectID; int projectID;
String? projectName; String projectName;
String? setupID; String setupID;
List<TimeLineEvents>? timeLineEvents; List<TimeLineEvents> timeLineEvents;
Timelines( Timelines(
{this.clinicId, {this.clinicId,
@ -88,9 +88,9 @@ class Timelines {
projectName = json['ProjectName']; projectName = json['ProjectName'];
setupID = json['SetupID']; setupID = json['SetupID'];
if (json['TimeLineEvents'] != null) { if (json['TimeLineEvents'] != null) {
timeLineEvents = []; timeLineEvents = new List<TimeLineEvents>();
json['TimeLineEvents'].forEach((v) { json['TimeLineEvents'].forEach((v) {
timeLineEvents!.add(new TimeLineEvents.fromJson(v)); timeLineEvents.add(new TimeLineEvents.fromJson(v));
}); });
} }
} }
@ -110,25 +110,25 @@ class Timelines {
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
if (this.timeLineEvents != null) { if (this.timeLineEvents != null) {
data['TimeLineEvents'] = data['TimeLineEvents'] =
this.timeLineEvents!.map((v) => v.toJson()).toList(); this.timeLineEvents.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class TimeLineEvents { class TimeLineEvents {
List<dynamic>? admissions; List<Null> admissions;
String? colorClass; String colorClass;
List<Consulations>? consulations; List<Consulations> consulations;
TimeLineEvents({this.admissions, this.colorClass, this.consulations}); TimeLineEvents({this.admissions, this.colorClass, this.consulations});
TimeLineEvents.fromJson(Map<String, dynamic> json) { TimeLineEvents.fromJson(Map<String, dynamic> json) {
colorClass = json['ColorClass']; colorClass = json['ColorClass'];
if (json['Consulations'] != null) { if (json['Consulations'] != null) {
consulations = []; consulations = new List<Consulations>();
json['Consulations'].forEach((v) { json['Consulations'].forEach((v) {
consulations!.add(new Consulations.fromJson(v)); consulations.add(new Consulations.fromJson(v));
}); });
} }
} }
@ -138,38 +138,38 @@ class TimeLineEvents {
data['ColorClass'] = this.colorClass; data['ColorClass'] = this.colorClass;
if (this.consulations != null) { if (this.consulations != null) {
data['Consulations'] = this.consulations!.map((v) => v.toJson()).toList(); data['Consulations'] = this.consulations.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class Consulations { class Consulations {
int? admissionNo; int admissionNo;
String? appointmentDate; String appointmentDate;
int? appointmentNo; int appointmentNo;
String? appointmentType; String appointmentType;
String? clinicID; String clinicID;
String? clinicName; String clinicName;
int? doctorID; int doctorID;
String? doctorName; String doctorName;
String? endTime; String endTime;
String? episodeDate; String episodeDate;
int? episodeID; int episodeID;
int? patientID; int patientID;
int? projectID; int projectID;
String? projectName; String projectName;
String? remarks; String remarks;
String? setupID; String setupID;
String? startTime; String startTime;
String? visitFor; String visitFor;
String? visitType; String visitType;
String? dispalyName; String dispalyName;
List<LstAssessments>? lstAssessments; List<LstAssessments> lstAssessments;
List<LstPhysicalExam>? lstPhysicalExam; List<LstPhysicalExam> lstPhysicalExam;
List<LstProcedure>? lstProcedure; List<LstProcedure> lstProcedure;
List<LstMedicalHistory>? lstMedicalHistory; List<LstMedicalHistory> lstMedicalHistory;
List<LstCheifComplaint>? lstCheifComplaint; List<LstCheifComplaint> lstCheifComplaint;
Consulations( Consulations(
{this.admissionNo, {this.admissionNo,
@ -220,33 +220,33 @@ class Consulations {
visitType = json['VisitType']; visitType = json['VisitType'];
dispalyName = json['dispalyName']; dispalyName = json['dispalyName'];
if (json['lstAssessments'] != null) { if (json['lstAssessments'] != null) {
lstAssessments = []; lstAssessments = new List<LstAssessments>();
json['lstAssessments'].forEach((v) { json['lstAssessments'].forEach((v) {
lstAssessments!.add(new LstAssessments.fromJson(v)); lstAssessments.add(new LstAssessments.fromJson(v));
}); });
} }
if (json['lstCheifComplaint'] != null) { if (json['lstCheifComplaint'] != null) {
lstCheifComplaint = []; lstCheifComplaint = new List<LstCheifComplaint>();
json['lstCheifComplaint'].forEach((v) { json['lstCheifComplaint'].forEach((v) {
lstCheifComplaint!.add(new LstCheifComplaint.fromJson(v)); lstCheifComplaint.add(new LstCheifComplaint.fromJson(v));
}); });
} }
if (json['lstPhysicalExam'] != null) { if (json['lstPhysicalExam'] != null) {
lstPhysicalExam = []; lstPhysicalExam = new List<LstPhysicalExam>();
json['lstPhysicalExam'].forEach((v) { json['lstPhysicalExam'].forEach((v) {
lstPhysicalExam!.add(new LstPhysicalExam.fromJson(v)); lstPhysicalExam.add(new LstPhysicalExam.fromJson(v));
}); });
} }
if (json['lstProcedure'] != null) { if (json['lstProcedure'] != null) {
lstProcedure = []; lstProcedure = new List<LstProcedure>();
json['lstProcedure'].forEach((v) { json['lstProcedure'].forEach((v) {
lstProcedure!.add(new LstProcedure.fromJson(v)); lstProcedure.add(new LstProcedure.fromJson(v));
}); });
} }
if (json['lstMedicalHistory'] != null) { if (json['lstMedicalHistory'] != null) {
lstMedicalHistory = []; lstMedicalHistory = new List<LstMedicalHistory>();
json['lstMedicalHistory'].forEach((v) { json['lstMedicalHistory'].forEach((v) {
lstMedicalHistory!.add(new LstMedicalHistory.fromJson(v)); lstMedicalHistory.add(new LstMedicalHistory.fromJson(v));
}); });
} }
} }
@ -275,40 +275,40 @@ class Consulations {
data['dispalyName'] = this.dispalyName; data['dispalyName'] = this.dispalyName;
if (this.lstAssessments != null) { if (this.lstAssessments != null) {
data['lstAssessments'] = data['lstAssessments'] =
this.lstAssessments!.map((v) => v.toJson()).toList(); this.lstAssessments.map((v) => v.toJson()).toList();
} }
if (this.lstCheifComplaint != null) { if (this.lstCheifComplaint != null) {
data['lstCheifComplaint'] = data['lstCheifComplaint'] =
this.lstCheifComplaint!.map((v) => v.toJson()).toList(); this.lstCheifComplaint.map((v) => v.toJson()).toList();
} }
if (this.lstPhysicalExam != null) { if (this.lstPhysicalExam != null) {
data['lstPhysicalExam'] = data['lstPhysicalExam'] =
this.lstPhysicalExam!.map((v) => v.toJson()).toList(); this.lstPhysicalExam.map((v) => v.toJson()).toList();
} }
if (this.lstProcedure != null) { if (this.lstProcedure != null) {
data['lstProcedure'] = this.lstProcedure!.map((v) => v.toJson()).toList(); data['lstProcedure'] = this.lstProcedure.map((v) => v.toJson()).toList();
} }
if (this.lstMedicalHistory != null) { if (this.lstMedicalHistory != null) {
data['lstMedicalHistory'] = data['lstMedicalHistory'] =
this.lstMedicalHistory!.map((v) => v.toJson()).toList(); this.lstMedicalHistory.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class LstCheifComplaint { class LstCheifComplaint {
int? appointmentNo; int appointmentNo;
String? cCDate; String cCDate;
String? chiefComplaint; String chiefComplaint;
String? currentMedication; String currentMedication;
int? episodeID; int episodeID;
String? hOPI; String hOPI;
int? patientID; int patientID;
String? patientType; String patientType;
int? projectID; int projectID;
String? projectName; String projectName;
String? setupID; String setupID;
String? dispalyName; String dispalyName;
LstCheifComplaint( LstCheifComplaint(
{this.appointmentNo, {this.appointmentNo,
@ -358,19 +358,19 @@ class LstCheifComplaint {
} }
class LstAssessments { class LstAssessments {
int? appointmentNo; int appointmentNo;
String? condition; String condition;
String? description; String description;
int? episodeID; int episodeID;
String? iCD10; String iCD10;
int? patientID; int patientID;
String? patientType; String patientType;
int? projectID; int projectID;
String? projectName; String projectName;
String? remarks; String remarks;
String? setupID; String setupID;
String? type; String type;
String? dispalyName; String dispalyName;
LstAssessments( LstAssessments(
{this.appointmentNo, {this.appointmentNo,
@ -423,19 +423,19 @@ class LstAssessments {
} }
class LstPhysicalExam { class LstPhysicalExam {
String? abnormal; String abnormal;
int? appointmentNo; int appointmentNo;
int? episodeID; int episodeID;
String? examDesc; String examDesc;
String? examID; String examID;
String? examType; String examType;
int? patientID; int patientID;
String? patientType; String patientType;
int? projectID; int projectID;
String? projectName; String projectName;
String? remarks; String remarks;
String? setupID; String setupID;
String? dispalyName; String dispalyName;
LstPhysicalExam( LstPhysicalExam(
{this.abnormal, {this.abnormal,
@ -488,17 +488,17 @@ class LstPhysicalExam {
} }
class LstProcedure { class LstProcedure {
int? appointmentNo; int appointmentNo;
int? episodeID; int episodeID;
String? orderDate; String orderDate;
int? patientID; int patientID;
String? patientType; String patientType;
String? procName; String procName;
String? procedureId; String procedureId;
int? projectID; int projectID;
String? projectName; String projectName;
String? setupID; String setupID;
String? dispalyName; String dispalyName;
LstProcedure( LstProcedure(
{this.appointmentNo, {this.appointmentNo,
@ -545,17 +545,17 @@ class LstProcedure {
} }
class LstMedicalHistory { class LstMedicalHistory {
int? appointmentNo; int appointmentNo;
String? checked; String checked;
int? episodeID; int episodeID;
String? history; String history;
int? patientID; int patientID;
String? patientType; String patientType;
int? projectID; int projectID;
String? projectName; String projectName;
String? remarks; String remarks;
String? setupID; String setupID;
String? dispalyName; String dispalyName;
LstMedicalHistory( LstMedicalHistory(
{this.appointmentNo, {this.appointmentNo,

@ -1,7 +1,7 @@
class MedicalFileRequestModel { class MedicalFileRequestModel {
int ?patientMRN; int patientMRN;
String ?vidaAuthTokenID; String vidaAuthTokenID;
String ?iPAdress; String iPAdress;
MedicalFileRequestModel({this.patientMRN, this.vidaAuthTokenID,this.iPAdress}); MedicalFileRequestModel({this.patientMRN, this.vidaAuthTokenID,this.iPAdress});

@ -1,23 +1,23 @@
class CreateNoteModel { class CreateNoteModel {
int? visitType; int visitType;
int? admissionNo; int admissionNo;
int? projectID; int projectID;
int? patientTypeID; int patientTypeID;
int? patientID; int patientID;
int? clinicID; int clinicID;
String? notes; String notes;
int ?createdBy; int createdBy;
int ?editedBy; int editedBy;
String ?nursingRemarks; String nursingRemarks;
int ?languageID; int languageID;
String? stamp; String stamp;
String ?iPAdress; String iPAdress;
double ?versionID; double versionID;
int ?channel; int channel;
String ?tokenID; String tokenID;
String? sessionID; String sessionID;
bool ?isLoginForDoctorApp; bool isLoginForDoctorApp;
bool ?patientOutSA; bool patientOutSA;
CreateNoteModel( CreateNoteModel(
{this.visitType, {this.visitType,

@ -1,18 +1,14 @@
import 'package:doctor_app_flutter/config/config.dart'; import 'package:doctor_app_flutter/config/config.dart';
class GetNursingProgressNoteRequestModel { class GetNursingProgressNoteRequestModel {
int? patientID; int patientID;
int? admissionNo; int admissionNo;
int? patientTypeID; int patientTypeID;
int? patientType; int patientType;
String? setupID; String setupID;
GetNursingProgressNoteRequestModel( GetNursingProgressNoteRequestModel(
{this.patientID, {this.patientID, this.admissionNo, this.patientTypeID = 1, this.patientType = 1, this.setupID });
this.admissionNo,
this.patientTypeID = 1,
this.patientType = 1,
this.setupID});
GetNursingProgressNoteRequestModel.fromJson(Map<String, dynamic> json) { GetNursingProgressNoteRequestModel.fromJson(Map<String, dynamic> json) {
patientID = json['PatientID']; patientID = json['PatientID'];

@ -1,14 +1,14 @@
class GetNursingProgressNoteResposeModel { class GetNursingProgressNoteResposeModel {
String? notes; String notes;
dynamic conditionType; dynamic conditionType;
int? createdBy; int createdBy;
String? createdOn; String createdOn;
dynamic editedBy; dynamic editedBy;
dynamic editedOn; dynamic editedOn;
String? createdByName; String createdByName;
String? editedByName; String editedByName;
GetNursingProgressNoteResposeModel( GetNursingProgressNoteResposeModel(
{this.notes, {this.notes,

@ -1,24 +1,24 @@
class NoteModel { class NoteModel {
String? setupID; String setupID;
int ?projectID; int projectID;
int ?patientID; int patientID;
int ?patientType; int patientType;
String ?admissionNo; String admissionNo;
int ?lineItemNo; int lineItemNo;
int ?visitType; int visitType;
String ?notes; String notes;
String ?assessmentDate; String assessmentDate;
String ?visitTime; String visitTime;
int ?status; int status;
String ?nursingRemarks; String nursingRemarks;
String ?createdOn; String createdOn;
String ?editedOn; String editedOn;
int ?createdBy; int createdBy;
int ?admissionClinicID; int admissionClinicID;
String ?admissionClinicName; String admissionClinicName;
dynamic doctorClinicName; Null doctorClinicName;
String ?doctorName; String doctorName;
String ?visitTypeDesc; String visitTypeDesc;
NoteModel( NoteModel(
{this.setupID, {this.setupID,

@ -1,21 +1,21 @@
class UpdateNoteReqModel { class UpdateNoteReqModel {
int? projectID; int projectID;
int? createdBy; int createdBy;
int? admissionNo; int admissionNo;
int? lineItemNo; int lineItemNo;
String? notes; String notes;
bool? verifiedNote; bool verifiedNote;
bool? cancelledNote; bool cancelledNote;
int? languageID; int languageID;
String? stamp; String stamp;
String? iPAdress; String iPAdress;
double? versionID; double versionID;
int? channel; int channel;
String? tokenID; String tokenID;
String? sessionID; String sessionID;
bool? isLoginForDoctorApp; bool isLoginForDoctorApp;
bool? patientOutSA; bool patientOutSA;
int? patientTypeID; int patientTypeID;
UpdateNoteReqModel( UpdateNoteReqModel(
{this.projectID, {this.projectID,

@ -1,19 +1,19 @@
import 'package:doctor_app_flutter/util/date-utils.dart'; import 'package:doctor_app_flutter/util/date-utils.dart';
class PatientMuseResultsModel { class PatientMuseResultsModel {
int ?rowID; int rowID;
String? setupID; String setupID;
int ?projectID; int projectID;
String? orderNo; String orderNo;
int? lineItemNo; int lineItemNo;
int? patientType; int patientType;
int? patientID; int patientID;
String ?procedureID; String procedureID;
dynamic reportData; dynamic reportData;
String? imageURL; String imageURL;
String? createdBy; String createdBy;
String? createdOn; String createdOn;
DateTime? createdOnDateTime; DateTime createdOnDateTime;
PatientMuseResultsModel( PatientMuseResultsModel(
{this.rowID, {this.rowID,

@ -1,19 +1,19 @@
class PatientSearchRequestModel { class PatientSearchRequestModel {
int? doctorID; int doctorID;
String? firstName; String firstName;
String? middleName; String middleName;
String? lastName; String lastName;
String? patientMobileNumber; String patientMobileNumber;
String? patientIdentificationID; String patientIdentificationID;
int? patientID; int patientID;
String? from; String from;
String? to; String to;
int? searchType; int searchType;
int? projectID; int projectID;
String? mobileNo; String mobileNo;
String? identificationNo; String identificationNo;
int? nursingStationID; int nursingStationID;
int? clinicID = 0; int clinicID = 0;
PatientSearchRequestModel( PatientSearchRequestModel(
{this.doctorID, {this.doctorID,

@ -1,6 +1,6 @@
class Controls { class Controls {
String ?code; String code;
String ?controlValue; String controlValue;
Controls({this.code, this.controlValue}); Controls({this.code, this.controlValue});

@ -1,31 +1,31 @@
class ProcedureTempleteRequestModel { class ProcedureTempleteRequestModel {
int? doctorID; int doctorID;
String? firstName; String firstName;
String? middleName; String middleName;
String? lastName; String lastName;
String? patientMobileNumber; String patientMobileNumber;
String? patientIdentificationID; String patientIdentificationID;
int? patientID; int patientID;
String? from; String from;
String? to; String to;
int? searchType; int searchType;
String? mobileNo; String mobileNo;
String? identificationNo; String identificationNo;
int? editedBy; int editedBy;
int? projectID; int projectID;
int? clinicID; int clinicID;
String? tokenID; String tokenID;
int? languageID; int languageID;
String? stamp; String stamp;
String? iPAdress; String iPAdress;
double? versionID; double versionID;
int? channel; int channel;
String? sessionID; String sessionID;
bool? isLoginForDoctorApp; bool isLoginForDoctorApp;
bool? patientOutSA; bool patientOutSA;
String? vidaAuthTokenID; String vidaAuthTokenID;
String? vidaRefreshTokenID; String vidaRefreshTokenID;
int? deviceTypeID; int deviceTypeID;
ProcedureTempleteRequestModel( ProcedureTempleteRequestModel(
{this.doctorID, {this.doctorID,
@ -56,7 +56,7 @@ class ProcedureTempleteRequestModel {
this.vidaRefreshTokenID, this.vidaRefreshTokenID,
this.deviceTypeID}); this.deviceTypeID});
ProcedureTempleteRequestModel.fromJson(Map<String?, dynamic> json) { ProcedureTempleteRequestModel.fromJson(Map<String, dynamic> json) {
doctorID = json['DoctorID']; doctorID = json['DoctorID'];
firstName = json['FirstName']; firstName = json['FirstName'];
middleName = json['MiddleName']; middleName = json['MiddleName'];

@ -1,26 +1,26 @@
class CategoriseProcedureModel { class CategoriseProcedureModel {
List<EntityList> ?entityList; List<EntityList> entityList;
int ?rowcount; int rowcount;
dynamic statusMessage; dynamic statusMessage;
CategoriseProcedureModel( CategoriseProcedureModel(
{this.entityList, this.rowcount, this.statusMessage}); {this.entityList, this.rowcount, this.statusMessage});
CategoriseProcedureModel.fromJson(Map<String , dynamic> json) { CategoriseProcedureModel.fromJson(Map<String, dynamic> json) {
if (json['entityList'] != null) { if (json['entityList'] != null) {
entityList = []; entityList = new List<EntityList>();
json['entityList'].forEach((v) { json['entityList'].forEach((v) {
entityList!.add(new EntityList.fromJson(v)); entityList.add(new EntityList.fromJson(v));
}); });
} }
rowcount = json['rowcount']; rowcount = json['rowcount'];
statusMessage = json['statusMessage']; statusMessage = json['statusMessage'];
} }
Map<String ?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String ?, dynamic> data = new Map<String ?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.entityList != null) { if (this.entityList != null) {
data['entityList'] = this.entityList!.map((v) => v.toJson()).toList(); data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
} }
data['rowcount'] = this.rowcount; data['rowcount'] = this.rowcount;
data['statusMessage'] = this.statusMessage; data['statusMessage'] = this.statusMessage;
@ -29,20 +29,20 @@ class CategoriseProcedureModel {
} }
class EntityList { class EntityList {
bool ?allowedClinic; bool allowedClinic;
String ? category; String category;
String ? categoryID; String categoryID;
String ? genderValidation; String genderValidation;
String ? group; String group;
String ? orderedValidation; String orderedValidation;
dynamic price; dynamic price;
String ? procedureId; String procedureId;
String ? procedureName; String procedureName;
String ? specialPermission; String specialPermission;
String ? subGroup; String subGroup;
String ? template; String template;
String ? remarks; String remarks;
String ? type; String type;
EntityList( EntityList(
{this.allowedClinic, {this.allowedClinic,
@ -60,7 +60,7 @@ class EntityList {
this.remarks, this.remarks,
this.type}); this.type});
EntityList.fromJson(Map<String ?, dynamic> json) { EntityList.fromJson(Map<String, dynamic> json) {
allowedClinic = json['allowedClinic']; allowedClinic = json['allowedClinic'];
category = json['category']; category = json['category'];
categoryID = json['categoryID']; categoryID = json['categoryID'];
@ -75,8 +75,8 @@ class EntityList {
template = json['template']; template = json['template'];
} }
Map<String ?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String ?, dynamic> data = new Map<String ?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['allowedClinic'] = this.allowedClinic; data['allowedClinic'] = this.allowedClinic;
data['category'] = this.category; data['category'] = this.category;
data['categoryID'] = this.categoryID; data['categoryID'] = this.categoryID;

@ -1,26 +1,26 @@
class GetOrderedProcedureModel { class GetOrderedProcedureModel {
List<EntityList>? entityList; List<EntityList> entityList;
int? rowcount; int rowcount;
dynamic statusMessage; dynamic statusMessage;
GetOrderedProcedureModel( GetOrderedProcedureModel(
{this.entityList, this.rowcount, this.statusMessage}); {this.entityList, this.rowcount, this.statusMessage});
GetOrderedProcedureModel.fromJson(Map<String?, dynamic> json) { GetOrderedProcedureModel.fromJson(Map<String, dynamic> json) {
if (json['entityList'] != null) { if (json['entityList'] != null) {
entityList = []; entityList = new List<EntityList>();
json['entityList'].forEach((v) { json['entityList'].forEach((v) {
entityList!.add(new EntityList.fromJson(v)); entityList.add(new EntityList.fromJson(v));
}); });
} }
rowcount = json['rowcount']; rowcount = json['rowcount'];
statusMessage = json['statusMessage']; statusMessage = json['statusMessage'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.entityList != null) { if (this.entityList != null) {
data['entityList'] = this.entityList!.map((v) => v.toJson()).toList(); data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
} }
data['rowcount'] = this.rowcount; data['rowcount'] = this.rowcount;
data['statusMessage'] = this.statusMessage; data['statusMessage'] = this.statusMessage;
@ -29,31 +29,31 @@ class GetOrderedProcedureModel {
} }
class EntityList { class EntityList {
String? achiCode; String achiCode;
String? appointmentDate; String appointmentDate;
int? appointmentNo; int appointmentNo;
int? categoryID; int categoryID;
String? clinicDescription; String clinicDescription;
String? cptCode; String cptCode;
int? createdBy; int createdBy;
String? createdOn; String createdOn;
String? doctorName; String doctorName;
bool? isApprovalCreated; bool isApprovalCreated;
bool? isApprovalRequired; bool isApprovalRequired;
bool? isCovered; bool isCovered;
bool? isInvoiced; bool isInvoiced;
bool? isReferralInvoiced; bool isReferralInvoiced;
bool? isUncoveredByDoctor; bool isUncoveredByDoctor;
int? lineItemNo; int lineItemNo;
String? orderDate; String orderDate;
int? orderNo; int orderNo;
int? orderType; int orderType;
String? procedureId; String procedureId;
String? procedureName; String procedureName;
String? remarks; String remarks;
String? status; String status;
String? template; String template;
int? doctorID; int doctorID;
EntityList( EntityList(
{this.achiCode, {this.achiCode,
@ -82,7 +82,7 @@ class EntityList {
this.template, this.template,
this.doctorID}); this.doctorID});
EntityList.fromJson(Map<String?, dynamic> json) { EntityList.fromJson(Map<String, dynamic> json) {
achiCode = json['achiCode']; achiCode = json['achiCode'];
doctorID = json['doctorID']; doctorID = json['doctorID'];
appointmentDate = json['appointmentDate']; appointmentDate = json['appointmentDate'];
@ -110,8 +110,8 @@ class EntityList {
template = json['template']; template = json['template'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['achiCode'] = this.achiCode; data['achiCode'] = this.achiCode;
data['doctorID'] = this.doctorID; data['doctorID'] = this.doctorID;
data['appointmentDate'] = this.appointmentDate; data['appointmentDate'] = this.appointmentDate;

@ -1,10 +1,9 @@
class GetOrderedProcedureRequestModel { class GetOrderedProcedureRequestModel {
String? vidaAuthTokenID; String vidaAuthTokenID;
int? patientMRN; int patientMRN;
int? appointmentNo; int appointmentNo;
GetOrderedProcedureRequestModel( GetOrderedProcedureRequestModel({this.vidaAuthTokenID, this.patientMRN, this.appointmentNo});
{this.vidaAuthTokenID, this.patientMRN, this.appointmentNo});
GetOrderedProcedureRequestModel.fromJson(Map<String, dynamic> json) { GetOrderedProcedureRequestModel.fromJson(Map<String, dynamic> json) {
vidaAuthTokenID = json['VidaAuthTokenID']; vidaAuthTokenID = json['VidaAuthTokenID'];

@ -1,25 +1,25 @@
class GetProcedureModel { class GetProcedureModel {
List<EntityList>? entityList; List<EntityList> entityList;
int? rowcount; int rowcount;
dynamic statusMessage; dynamic statusMessage;
GetProcedureModel({this.entityList, this.rowcount, this.statusMessage}); GetProcedureModel({this.entityList, this.rowcount, this.statusMessage});
GetProcedureModel.fromJson(Map<String?, dynamic> json) { GetProcedureModel.fromJson(Map<String, dynamic> json) {
if (json['entityList'] != null) { if (json['entityList'] != null) {
entityList = []; entityList = new List<EntityList>();
json['entityList'].forEach((v) { json['entityList'].forEach((v) {
entityList!.add(new EntityList.fromJson(v)); entityList.add(new EntityList.fromJson(v));
}); });
} }
rowcount = json['rowcount']; rowcount = json['rowcount'];
statusMessage = json['statusMessage']; statusMessage = json['statusMessage'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.entityList != null) { if (this.entityList != null) {
data['entityList'] = this.entityList!.map((v) => v.toJson()).toList(); data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
} }
data['rowcount'] = this.rowcount; data['rowcount'] = this.rowcount;
data['statusMessage'] = this.statusMessage; data['statusMessage'] = this.statusMessage;
@ -28,18 +28,18 @@ class GetProcedureModel {
} }
class EntityList { class EntityList {
bool? allowedClinic; bool allowedClinic;
String? category; String category;
String? categoryID; String categoryID;
String? genderValidation; String genderValidation;
String? group; String group;
String? orderedValidation; String orderedValidation;
dynamic price; dynamic price;
String? procedureId; String procedureId;
String? procedureName; String procedureName;
String? specialPermission; String specialPermission;
String? subGroup; String subGroup;
String? template; String template;
EntityList( EntityList(
{this.allowedClinic, {this.allowedClinic,
@ -55,7 +55,7 @@ class EntityList {
this.subGroup, this.subGroup,
this.template}); this.template});
EntityList.fromJson(Map<String?, dynamic> json) { EntityList.fromJson(Map<String, dynamic> json) {
allowedClinic = json['allowedClinic']; allowedClinic = json['allowedClinic'];
category = json['category']; category = json['category'];
categoryID = json['categoryID']; categoryID = json['categoryID'];
@ -70,8 +70,8 @@ class EntityList {
template = json['template']; template = json['template'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['allowedClinic'] = this.allowedClinic; data['allowedClinic'] = this.allowedClinic;
data['category'] = this.category; data['category'] = this.category;
data['categoryID'] = this.categoryID; data['categoryID'] = this.categoryID;

@ -1,11 +1,11 @@
class GetProcedureReqModel { class GetProcedureReqModel {
int? clinicId; int clinicId;
int? patientMRN; int patientMRN;
int? pageSize; int pageSize;
int? pageIndex; int pageIndex;
List<String> ?search; List<String> search;
dynamic category; dynamic category;
String ?vidaAuthTokenID; String vidaAuthTokenID;
GetProcedureReqModel( GetProcedureReqModel(
{this.clinicId, {this.clinicId,

@ -1,11 +1,11 @@
import 'ControlsModel.dart'; import 'ControlsModel.dart';
class PostProcedureReqModel { class PostProcedureReqModel {
int? patientMRN; int patientMRN;
int? appointmentNo; int appointmentNo;
int? episodeID; int episodeID;
List<Procedures> ?procedures; List<Procedures> procedures;
String ?vidaAuthTokenID; String vidaAuthTokenID;
PostProcedureReqModel( PostProcedureReqModel(
{this.patientMRN, {this.patientMRN,
@ -19,9 +19,9 @@ class PostProcedureReqModel {
appointmentNo = json['AppointmentNo']; appointmentNo = json['AppointmentNo'];
episodeID = json['EpisodeID']; episodeID = json['EpisodeID'];
if (json['Procedures'] != null) { if (json['Procedures'] != null) {
procedures = []; procedures = new List<Procedures>();
json['Procedures'].forEach((v) { json['Procedures'].forEach((v) {
procedures!.add(new Procedures.fromJson(v)); procedures.add(new Procedures.fromJson(v));
}); });
} }
vidaAuthTokenID = json['VidaAuthTokenID']; vidaAuthTokenID = json['VidaAuthTokenID'];
@ -33,7 +33,7 @@ class PostProcedureReqModel {
data['AppointmentNo'] = this.appointmentNo; data['AppointmentNo'] = this.appointmentNo;
data['EpisodeID'] = this.episodeID; data['EpisodeID'] = this.episodeID;
if (this.procedures != null) { if (this.procedures != null) {
data['Procedures'] = this.procedures!.map((v) => v.toJson()).toList(); data['Procedures'] = this.procedures.map((v) => v.toJson()).toList();
} }
data['VidaAuthTokenID'] = this.vidaAuthTokenID; data['VidaAuthTokenID'] = this.vidaAuthTokenID;
return data; return data;
@ -41,9 +41,9 @@ class PostProcedureReqModel {
} }
class Procedures { class Procedures {
String ?procedure; String procedure;
String ?category; String category;
List<Controls> ?controls; List<Controls> controls;
Procedures({this.procedure, this.category, this.controls}); Procedures({this.procedure, this.category, this.controls});
@ -51,9 +51,9 @@ class Procedures {
procedure = json['Procedure']; procedure = json['Procedure'];
category = json['Category']; category = json['Category'];
if (json['Controls'] != null) { if (json['Controls'] != null) {
controls = []; controls = new List<Controls>();
json['Controls'].forEach((v) { json['Controls'].forEach((v) {
controls!.add(new Controls.fromJson(v)); controls.add(new Controls.fromJson(v));
}); });
} }
} }
@ -63,7 +63,7 @@ class Procedures {
data['Procedure'] = this.procedure; data['Procedure'] = this.procedure;
data['Category'] = this.category; data['Category'] = this.category;
if (this.controls != null) { if (this.controls != null) {
data['Controls'] = this.controls!.map((v) => v.toJson()).toList(); data['Controls'] = this.controls.map((v) => v.toJson()).toList();
} }
return data; return data;
} }

@ -1,6 +1,6 @@
class ProcedureCategoryListModel { class ProcedureCategoryListModel {
List<EntityList>? entityList; List<EntityList> entityList;
int? rowcount; int rowcount;
dynamic statusMessage; dynamic statusMessage;
ProcedureCategoryListModel( ProcedureCategoryListModel(
@ -8,9 +8,9 @@ class ProcedureCategoryListModel {
ProcedureCategoryListModel.fromJson(Map<String, dynamic> json) { ProcedureCategoryListModel.fromJson(Map<String, dynamic> json) {
if (json['entityList'] != null) { if (json['entityList'] != null) {
entityList = []; entityList = new List<EntityList>();
json['entityList'].forEach((v) { json['entityList'].forEach((v) {
entityList!.add(new EntityList.fromJson(v)); entityList.add(new EntityList.fromJson(v));
}); });
} }
rowcount = json['rowcount']; rowcount = json['rowcount'];
@ -20,7 +20,7 @@ class ProcedureCategoryListModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.entityList != null) { if (this.entityList != null) {
data['entityList'] = this.entityList!.map((v) => v.toJson()).toList(); data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
} }
data['rowcount'] = this.rowcount; data['rowcount'] = this.rowcount;
data['statusMessage'] = this.statusMessage; data['statusMessage'] = this.statusMessage;
@ -29,8 +29,8 @@ class ProcedureCategoryListModel {
} }
class EntityList { class EntityList {
int? categoryId; int categoryId;
String? categoryName; String categoryName;
EntityList({this.categoryId, this.categoryName}); EntityList({this.categoryId, this.categoryName});

@ -1,13 +1,13 @@
class ProcedureTempleteModel { class ProcedureTempleteModel {
String? setupID; String setupID;
int? projectID; int projectID;
int? clinicID; int clinicID;
int? doctorID; int doctorID;
int? templateID; int templateID;
String? templateName; String templateName;
bool? isActive; bool isActive;
int? createdBy; int createdBy;
String? createdOn; String createdOn;
dynamic editedBy; dynamic editedBy;
dynamic editedOn; dynamic editedOn;

@ -1,29 +1,29 @@
class ProcedureTempleteDetailsModel { class ProcedureTempleteDetailsModel {
String? setupID; String setupID;
int? projectID; int projectID;
int? clinicID; int clinicID;
int? doctorID; int doctorID;
int? templateID; int templateID;
String? templateName; String templateName;
String? procedureID; String procedureID;
bool ?isActive; bool isActive;
int? createdBy; int createdBy;
String? createdOn; String createdOn;
dynamic editedBy; dynamic editedBy;
dynamic editedOn; dynamic editedOn;
String? procedureName; String procedureName;
String? procedureNameN; String procedureNameN;
String? alias; String alias;
String? aliasN; String aliasN;
String? categoryID; String categoryID;
String? subGroupID; String subGroupID;
String? categoryDescription; String categoryDescription;
String? categoryDescriptionN; String categoryDescriptionN;
String? categoryAlias; String categoryAlias;
dynamic riskCategoryID; dynamic riskCategoryID;
String? type = "1"; String type = "1";
String? remarks; String remarks;
int? selectedType = 0; int selectedType = 0;
ProcedureTempleteDetailsModel( ProcedureTempleteDetailsModel(
{this.setupID, {this.setupID,
@ -52,7 +52,7 @@ class ProcedureTempleteDetailsModel {
this.type = "1", this.type = "1",
this.selectedType = 0}); this.selectedType = 0});
ProcedureTempleteDetailsModel.fromJson(Map<String?, dynamic> json) { ProcedureTempleteDetailsModel.fromJson(Map<String, dynamic> json) {
setupID = json['SetupID']; setupID = json['SetupID'];
projectID = json['ProjectID']; projectID = json['ProjectID'];
clinicID = json['ClinicID']; clinicID = json['ClinicID'];
@ -77,8 +77,8 @@ class ProcedureTempleteDetailsModel {
categoryAlias = json['CategoryAlias']; categoryAlias = json['CategoryAlias'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['ClinicID'] = this.clinicID; data['ClinicID'] = this.clinicID;
@ -105,12 +105,12 @@ class ProcedureTempleteDetailsModel {
} }
} }
class ProcedureTempleteDetailsModelList { class ProcedureTempleteDetailsModelList {
List<ProcedureTempleteDetailsModel> procedureTemplate =[]; List<ProcedureTempleteDetailsModel> procedureTemplate = List();
String? templateName; String templateName;
int? templateId; int templateId;
ProcedureTempleteDetailsModelList( ProcedureTempleteDetailsModelList(
{this.templateName, this.templateId, required ProcedureTempleteDetailsModel template}) { {this.templateName, this.templateId, ProcedureTempleteDetailsModel template}) {
procedureTemplate.add(template); procedureTemplate.add(template);
} }
} }

@ -1,32 +1,32 @@
class ProcedureTempleteDetailsRequestModel { class ProcedureTempleteDetailsRequestModel {
int? doctorID; int doctorID;
String? firstName; String firstName;
int? templateID; int templateID;
String? middleName; String middleName;
String? lastName; String lastName;
String? patientMobileNumber; String patientMobileNumber;
String? patientIdentificationID; String patientIdentificationID;
int? patientID; int patientID;
String? from; String from;
String? to; String to;
int? searchType; int searchType;
String? mobileNo; String mobileNo;
String? identificationNo; String identificationNo;
int? editedBy; int editedBy;
int? projectID; int projectID;
int? clinicID; int clinicID;
String? tokenID; String tokenID;
int? languageID; int languageID;
String? stamp; String stamp;
String? iPAdress; String iPAdress;
double? versionID; double versionID;
int? channel; int channel;
String? sessionID; String sessionID;
bool? isLoginForDoctorApp; bool isLoginForDoctorApp;
bool? patientOutSA; bool patientOutSA;
String? vidaAuthTokenID; String vidaAuthTokenID;
String? vidaRefreshTokenID; String vidaRefreshTokenID;
int? deviceTypeID; int deviceTypeID;
ProcedureTempleteDetailsRequestModel( ProcedureTempleteDetailsRequestModel(
{this.doctorID, {this.doctorID,
@ -58,7 +58,7 @@ class ProcedureTempleteDetailsRequestModel {
this.vidaRefreshTokenID, this.vidaRefreshTokenID,
this.deviceTypeID}); this.deviceTypeID});
ProcedureTempleteDetailsRequestModel.fromJson(Map<String?, dynamic> json) { ProcedureTempleteDetailsRequestModel.fromJson(Map<String, dynamic> json) {
doctorID = json['DoctorID']; doctorID = json['DoctorID'];
firstName = json['FirstName']; firstName = json['FirstName'];
templateID = json['TemplateID']; templateID = json['TemplateID'];

@ -1,6 +1,6 @@
class ProcedureValadteModel { class ProcedureValadteModel {
List<EntityList>? entityList; List<EntityList> entityList;
int? rowcount; int rowcount;
dynamic statusMessage; dynamic statusMessage;
dynamic success; dynamic success;
@ -9,9 +9,9 @@ class ProcedureValadteModel {
ProcedureValadteModel.fromJson(Map<String, dynamic> json) { ProcedureValadteModel.fromJson(Map<String, dynamic> json) {
if (json['entityList'] != null) { if (json['entityList'] != null) {
entityList = []; entityList = new List<EntityList>();
json['entityList'].forEach((v) { json['entityList'].forEach((v) {
entityList!.add(new EntityList.fromJson(v)); entityList.add(new EntityList.fromJson(v));
}); });
} }
rowcount = json['rowcount']; rowcount = json['rowcount'];
@ -22,7 +22,7 @@ class ProcedureValadteModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.entityList != null) { if (this.entityList != null) {
data['entityList'] = this.entityList!.map((v) => v.toJson()).toList(); data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
} }
data['rowcount'] = this.rowcount; data['rowcount'] = this.rowcount;
data['statusMessage'] = this.statusMessage; data['statusMessage'] = this.statusMessage;
@ -32,8 +32,8 @@ class ProcedureValadteModel {
} }
class EntityList { class EntityList {
String? procedureId; String procedureId;
List<String>? warringMessages; List<String> warringMessages;
EntityList({this.procedureId, this.warringMessages}); EntityList({this.procedureId, this.warringMessages});

@ -1,9 +1,9 @@
class ProcedureValadteRequestModel { class ProcedureValadteRequestModel {
String? vidaAuthTokenID; String vidaAuthTokenID;
int? patientMRN; int patientMRN;
int? appointmentNo; int appointmentNo;
int? episodeID; int episodeID;
List<String>? procedure; List<String> procedure;
ProcedureValadteRequestModel( ProcedureValadteRequestModel(
{this.vidaAuthTokenID, {this.vidaAuthTokenID,

@ -1,13 +1,13 @@
import 'ControlsModel.dart'; import 'ControlsModel.dart';
class UpdateProcedureRequestModel { class UpdateProcedureRequestModel {
int? orderNo; int orderNo;
int? patientMRN; int patientMRN;
int? appointmentNo; int appointmentNo;
int? episodeID; int episodeID;
int? lineItemNo; int lineItemNo;
ProcedureDetail? procedureDetail; ProcedureDetail procedureDetail;
String? vidaAuthTokenID; String vidaAuthTokenID;
UpdateProcedureRequestModel( UpdateProcedureRequestModel(
{this.orderNo, {this.orderNo,
@ -38,7 +38,7 @@ class UpdateProcedureRequestModel {
data['EpisodeID'] = this.episodeID; data['EpisodeID'] = this.episodeID;
data['LineItemNo'] = this.lineItemNo; data['LineItemNo'] = this.lineItemNo;
if (this.procedureDetail != null) { if (this.procedureDetail != null) {
data['procedureDetail'] = this.procedureDetail!.toJson(); data['procedureDetail'] = this.procedureDetail.toJson();
} }
data['VidaAuthTokenID'] = this.vidaAuthTokenID; data['VidaAuthTokenID'] = this.vidaAuthTokenID;
return data; return data;
@ -46,9 +46,9 @@ class UpdateProcedureRequestModel {
} }
class ProcedureDetail { class ProcedureDetail {
String? procedure; String procedure;
String? category; String category;
List<Controls>? controls; List<Controls> controls;
ProcedureDetail({this.procedure, this.category, this.controls}); ProcedureDetail({this.procedure, this.category, this.controls});
@ -56,9 +56,9 @@ class ProcedureDetail {
procedure = json['Procedure']; procedure = json['Procedure'];
category = json['Category']; category = json['Category'];
if (json['Controls'] != null) { if (json['Controls'] != null) {
controls = []; controls = new List<Controls>();
json['Controls'].forEach((v) { json['Controls'].forEach((v) {
controls!.add(new Controls.fromJson(v)); controls.add(new Controls.fromJson(v));
}); });
} }
} }
@ -68,7 +68,7 @@ class ProcedureDetail {
data['Procedure'] = this.procedure; data['Procedure'] = this.procedure;
data['Category'] = this.category; data['Category'] = this.category;
if (this.controls != null) { if (this.controls != null) {
data['Controls'] = this.controls!.map((v) => v.toJson()).toList(); data['Controls'] = this.controls.map((v) => v.toJson()).toList();
} }
return data; return data;
} }

@ -8,17 +8,17 @@ class FinalRadiology {
dynamic invoiceNo; dynamic invoiceNo;
dynamic doctorID; dynamic doctorID;
dynamic clinicID; dynamic clinicID;
DateTime? orderDate; DateTime orderDate;
DateTime ?reportDate; DateTime reportDate;
dynamic reportData; dynamic reportData;
dynamic imageURL; dynamic imageURL;
dynamic procedureID; dynamic procedureID;
dynamic appodynamicmentNo; dynamic appodynamicmentNo;
dynamic dIAPacsURL; dynamic dIAPacsURL;
bool? isRead; bool isRead;
dynamic readOn; dynamic readOn;
var admissionNo; var admissionNo;
bool ?isInOutPatient; bool isInOutPatient;
dynamic actualDoctorRate; dynamic actualDoctorRate;
dynamic clinicDescription; dynamic clinicDescription;
dynamic dIAPACSURL; dynamic dIAPACSURL;
@ -28,8 +28,8 @@ class FinalRadiology {
dynamic doctorTitle; dynamic doctorTitle;
dynamic gender; dynamic gender;
dynamic genderDescription; dynamic genderDescription;
bool? isActiveDoctorProfile; bool isActiveDoctorProfile;
bool ?isExecludeDoctor; bool isExecludeDoctor;
dynamic isInOutPatientDescription; dynamic isInOutPatientDescription;
dynamic isInOutPatientDescriptionN; dynamic isInOutPatientDescriptionN;
dynamic nationalityFlagURL; dynamic nationalityFlagURL;
@ -39,10 +39,10 @@ class FinalRadiology {
dynamic qR; dynamic qR;
dynamic reportDataHTML; dynamic reportDataHTML;
dynamic reportDataTextdynamic; dynamic reportDataTextdynamic;
List<dynamic>? speciality; List<dynamic> speciality;
bool ?isCVI; bool isCVI;
bool ?isRadMedicalReport; bool isRadMedicalReport;
bool ?isLiveCareAppodynamicment; bool isLiveCareAppodynamicment;
FinalRadiology( FinalRadiology(
{this.setupID, {this.setupID,
@ -186,9 +186,9 @@ class FinalRadiology {
class FinalRadiologyList { class FinalRadiologyList {
dynamic filterName = ""; dynamic filterName = "";
List<FinalRadiology> finalRadiologyList = []; List<FinalRadiology> finalRadiologyList = List();
FinalRadiologyList({this.filterName, required FinalRadiology finalRadiology}) { FinalRadiologyList({this.filterName, FinalRadiology finalRadiology}) {
finalRadiologyList.add(finalRadiology); finalRadiologyList.add(finalRadiology);
} }
} }

@ -1,24 +1,24 @@
class RequestPatientRadOrdersDetails { class RequestPatientRadOrdersDetails {
int? projectID; int projectID;
int? orderNo; int orderNo;
int? invoiceNo; int invoiceNo;
String? setupID; String setupID;
String? procedureID; String procedureID;
bool? isMedicalReport; bool isMedicalReport;
bool? isCVI; bool isCVI;
double? versionID; double versionID;
int? channel; int channel;
int? languageID; int languageID;
String? iPAdress; String iPAdress;
String? generalid; String generalid;
int? patientOutSA; int patientOutSA;
String? sessionID; String sessionID;
bool? isDentalAllowedBackend; bool isDentalAllowedBackend;
int? deviceTypeID; int deviceTypeID;
int? patientID; int patientID;
String? tokenID; String tokenID;
int? patientTypeID; int patientTypeID;
int? patientType; int patientType;
RequestPatientRadOrdersDetails( RequestPatientRadOrdersDetails(
{this.projectID, {this.projectID,
@ -42,7 +42,7 @@ class RequestPatientRadOrdersDetails {
this.patientTypeID, this.patientTypeID,
this.patientType}); this.patientType});
RequestPatientRadOrdersDetails.fromJson(Map<String?, dynamic> json) { RequestPatientRadOrdersDetails.fromJson(Map<String, dynamic> json) {
projectID = json['ProjectID']; projectID = json['ProjectID'];
orderNo = json['OrderNo']; orderNo = json['OrderNo'];
invoiceNo = json['InvoiceNo']; invoiceNo = json['InvoiceNo'];
@ -65,8 +65,8 @@ class RequestPatientRadOrdersDetails {
patientType = json['PatientType']; patientType = json['PatientType'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['OrderNo'] = this.orderNo; data['OrderNo'] = this.orderNo;
data['InvoiceNo'] = this.invoiceNo; data['InvoiceNo'] = this.invoiceNo;

@ -1,30 +1,30 @@
class RequestSendRadReportEmail { class RequestSendRadReportEmail {
int? channel; int channel;
String? clinicName; String clinicName;
String? dateofBirth; String dateofBirth;
int? deviceTypeID; int deviceTypeID;
String? doctorName; String doctorName;
String? generalid; String generalid;
int? invoiceNo; int invoiceNo;
String? iPAdress; String iPAdress;
bool ?isDentalAllowedBackend; bool isDentalAllowedBackend;
int? languageID; int languageID;
String? orderDate; String orderDate;
int? patientID; int patientID;
String? patientIditificationNum; String patientIditificationNum;
String? patientMobileNumber; String patientMobileNumber;
String? patientName; String patientName;
int? patientOutSA; int patientOutSA;
int? patientType; int patientType;
int? patientTypeID; int patientTypeID;
int? projectID; int projectID;
String? projectName; String projectName;
String? radResult; String radResult;
String? sessionID; String sessionID;
String? setupID; String setupID;
String? to; String to;
String? tokenID; String tokenID;
double? versionID; double versionID;
RequestSendRadReportEmail( RequestSendRadReportEmail(
{this.channel, {this.channel,
@ -54,7 +54,7 @@ class RequestSendRadReportEmail {
this.tokenID, this.tokenID,
this.versionID}); this.versionID});
RequestSendRadReportEmail.fromJson(Map<String?, dynamic> json) { RequestSendRadReportEmail.fromJson(Map<String, dynamic> json) {
channel = json['Channel']; channel = json['Channel'];
clinicName = json['ClinicName']; clinicName = json['ClinicName'];
dateofBirth = json['DateofBirth']; dateofBirth = json['DateofBirth'];
@ -83,8 +83,8 @@ class RequestSendRadReportEmail {
versionID = json['VersionID']; versionID = json['VersionID'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['Channel'] = this.channel; data['Channel'] = this.channel;
data['ClinicName'] = this.clinicName; data['ClinicName'] = this.clinicName;
data['DateofBirth'] = this.dateofBirth; data['DateofBirth'] = this.dateofBirth;

@ -2,56 +2,56 @@ import 'package:doctor_app_flutter/util/date-utils.dart';
class DischargeReferralPatient { class DischargeReferralPatient {
dynamic rowID; dynamic rowID;
int? projectID; int projectID;
int? lineItemNo; int lineItemNo;
int? doctorID; int doctorID;
int? patientID; int patientID;
String? doctorName; String doctorName;
dynamic doctorNameN; dynamic doctorNameN;
String? firstName; String firstName;
String? middleName; String middleName;
String? lastName; String lastName;
dynamic firstNameN; dynamic firstNameN;
dynamic middleNameN; dynamic middleNameN;
dynamic lastNameN; dynamic lastNameN;
int? gender; int gender;
String? dateofBirth; String dateofBirth;
String? mobileNumber; String mobileNumber;
String? emailAddress; String emailAddress;
String? patientIdentificationNo; String patientIdentificationNo;
int? patientType; int patientType;
String? admissionNo; String admissionNo;
String? admissionDate; String admissionDate;
String? roomID; String roomID;
String? bedID; String bedID;
dynamic nursingStationID; dynamic nursingStationID;
dynamic description; dynamic description;
String? nationalityName; String nationalityName;
dynamic nationalityNameN; dynamic nationalityNameN;
int? referralDoctor; int referralDoctor;
int? referringDoctor; int referringDoctor;
int? referralClinic; int referralClinic;
int? referringClinic; int referringClinic;
int? referralStatus; int referralStatus;
DateTime ?referralDate; DateTime referralDate;
String? referringDoctorRemarks; String referringDoctorRemarks;
String? referredDoctorRemarks; String referredDoctorRemarks;
String? referralResponseOn; String referralResponseOn;
int? priority; int priority;
int? frequency; int frequency;
String? mAXResponseTime; String mAXResponseTime;
String? dischargeDate; String dischargeDate;
dynamic clinicID; dynamic clinicID;
String? age; String age;
String? clinicDescription; String clinicDescription;
String? frequencyDescription; String frequencyDescription;
String? genderDescription; String genderDescription;
bool?isDoctorLate; bool isDoctorLate;
bool? isDoctorResponse; bool isDoctorResponse;
String? nursingStationName; String nursingStationName;
String? priorityDescription; String priorityDescription;
String? referringClinicDescription; String referringClinicDescription;
String? referringDoctorName; String referringDoctorName;
DischargeReferralPatient( DischargeReferralPatient(
{this.rowID, {this.rowID,
@ -106,7 +106,7 @@ class DischargeReferralPatient {
this.referringClinicDescription, this.referringClinicDescription,
this.referringDoctorName}); this.referringDoctorName});
DischargeReferralPatient.fromJson(Map<String?, dynamic> json) { DischargeReferralPatient.fromJson(Map<String, dynamic> json) {
rowID = json['RowID']; rowID = json['RowID'];
projectID = json['ProjectID']; projectID = json['ProjectID'];
lineItemNo = json['LineItemNo']; lineItemNo = json['LineItemNo'];
@ -160,8 +160,8 @@ class DischargeReferralPatient {
referringDoctorName = json['ReferringDoctorName']; referringDoctorName = json['ReferringDoctorName'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['RowID'] = this.rowID; data['RowID'] = this.rowID;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['LineItemNo'] = this.lineItemNo; data['LineItemNo'] = this.lineItemNo;

@ -2,75 +2,75 @@ import 'package:doctor_app_flutter/util/date-utils.dart';
class MyReferralPatientModel { class MyReferralPatientModel {
dynamic rowID; dynamic rowID;
int? projectID; int projectID;
int? lineItemNo; int lineItemNo;
int? doctorID; int doctorID;
int? patientID; int patientID;
String? doctorName; String doctorName;
dynamic doctorNameN; dynamic doctorNameN;
String? firstName; String firstName;
String? middleName; String middleName;
String? lastName; String lastName;
dynamic firstNameN; dynamic firstNameN;
dynamic middleNameN; dynamic middleNameN;
dynamic lastNameN; dynamic lastNameN;
int? gender; int gender;
String? dateofBirth; String dateofBirth;
String? mobileNumber; String mobileNumber;
String? emailAddress; String emailAddress;
String? patientIdentificationNo; String patientIdentificationNo;
int? patientType; int patientType;
String? admissionNo; String admissionNo;
String? admissionDate; String admissionDate;
String? roomID; String roomID;
String? bedID; String bedID;
dynamic nursingStationID; dynamic nursingStationID;
dynamic description; dynamic description;
String? nationalityName; String nationalityName;
dynamic nationalityNameN; dynamic nationalityNameN;
String? clinicDescription; String clinicDescription;
String? clinicDescriptionN; String clinicDescriptionN;
int? referralDoctor; int referralDoctor;
int? referringDoctor; int referringDoctor;
int? referralClinic; int referralClinic;
int? referringClinic; int referringClinic;
int? referralStatus; int referralStatus;
DateTime? referralDate; DateTime referralDate;
String? referringDoctorRemarks; String referringDoctorRemarks;
String? referredDoctorRemarks; String referredDoctorRemarks;
String? referralResponseOn; String referralResponseOn;
int? priority; int priority;
int? frequency; int frequency;
String? mAXResponseTime; String mAXResponseTime;
int? episodeID; int episodeID;
int? appointmentNo; int appointmentNo;
String? appointmentDate; String appointmentDate;
int? appointmentType; int appointmentType;
int? patientMRN; int patientMRN;
String? createdOn; String createdOn;
int? clinicID; int clinicID;
String? nationalityID; String nationalityID;
String? age; String age;
String? doctorImageURL; String doctorImageURL;
String? frequencyDescription; String frequencyDescription;
String? genderDescription; String genderDescription;
bool? isDoctorLate; bool isDoctorLate;
bool? isDoctorResponse; bool isDoctorResponse;
String? nationalityFlagURL; String nationalityFlagURL;
String? nursingStationName; String nursingStationName;
String? priorityDescription; String priorityDescription;
String? referringClinicDescription; String referringClinicDescription;
String? referringDoctorName; String referringDoctorName;
int? referalStatus; int referalStatus;
String? sourceSetupID; String sourceSetupID;
int? sourceProjectId; int sourceProjectId;
String? targetSetupID; String targetSetupID;
int? targetProjectId; int targetProjectId;
int? targetClinicID; int targetClinicID;
int? targetDoctorID; int targetDoctorID;
int? sourceAppointmentNo; int sourceAppointmentNo;
int? targetAppointmentNo; int targetAppointmentNo;
String? remarksFromSource; String remarksFromSource;
MyReferralPatientModel( MyReferralPatientModel(
{this.rowID, {this.rowID,
@ -133,18 +133,9 @@ class MyReferralPatientModel {
this.priorityDescription, this.priorityDescription,
this.referringClinicDescription, this.referringClinicDescription,
this.referringDoctorName, this.referringDoctorName,
this.referalStatus, this.referalStatus, this.sourceSetupID, this.sourceAppointmentNo, this.sourceProjectId, this.targetProjectId, this.targetAppointmentNo, this.targetClinicID, this.targetSetupID, this.targetDoctorID, this.remarksFromSource});
this.sourceSetupID,
this.sourceAppointmentNo,
this.sourceProjectId,
this.targetProjectId,
this.targetAppointmentNo,
this.targetClinicID,
this.targetSetupID,
this.targetDoctorID,
this.remarksFromSource});
MyReferralPatientModel.fromJson(Map<String?, dynamic> json) { MyReferralPatientModel.fromJson(Map<String, dynamic> json) {
rowID = json['RowID']; rowID = json['RowID'];
referalStatus = json['ReferalStatus']; referalStatus = json['ReferalStatus'];
projectID = json['ProjectID']; projectID = json['ProjectID'];
@ -228,10 +219,11 @@ class MyReferralPatientModel {
sourceAppointmentNo = json['SourceAppointmentNo']; sourceAppointmentNo = json['SourceAppointmentNo'];
targetAppointmentNo = json['TargetAppointmentNo']; targetAppointmentNo = json['TargetAppointmentNo'];
remarksFromSource = json['RemarksFromSource']; remarksFromSource = json['RemarksFromSource'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['RowID'] = this.rowID; data['RowID'] = this.rowID;
data['ReferalStatus'] = this.referalStatus; data['ReferalStatus'] = this.referalStatus;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
@ -306,6 +298,6 @@ class MyReferralPatientModel {
} }
get patientName { get patientName {
return this.firstName! + " " + this.lastName!; return this.firstName + " " + this.lastName;
} }
} }

@ -1,27 +1,27 @@
class MyReferralPatientRequestModel { class MyReferralPatientRequestModel {
int? channel; int channel;
int? clinicID; int clinicID;
int? doctorID; int doctorID;
int? editedBy; int editedBy;
String? firstName; String firstName;
String? from; String from;
String? iPAdress; String iPAdress;
bool? isLoginForDoctorApp; bool isLoginForDoctorApp;
int? languageID; int languageID;
String? lastName; String lastName;
String? middleName; String middleName;
int? patientID; int patientID;
String? patientIdentificationID; String patientIdentificationID;
String? patientMobileNumber; String patientMobileNumber;
bool? patientOutSA; bool patientOutSA;
int? patientTypeID; int patientTypeID;
int? projectID; int projectID;
String? sessionID; String sessionID;
String? stamp; String stamp;
String? to; String to;
String? tokenID; String tokenID;
double? versionID; double versionID;
String? vidaAuthTokenID; String vidaAuthTokenID;
MyReferralPatientRequestModel( MyReferralPatientRequestModel(
{this.channel, {this.channel,

@ -1,28 +1,28 @@
class ReferralRequest { class ReferralRequest {
String? roomID; String roomID;
String? referralClinic; String referralClinic;
String? referralDoctor; String referralDoctor;
int? createdBy; int createdBy;
int? editedBy; int editedBy;
int? patientID; int patientID;
int? patientTypeID; int patientTypeID;
int? referringClinic; int referringClinic;
int? referringDoctor; int referringDoctor;
int? projectID; int projectID;
int? admissionNo; int admissionNo;
String? referringDoctorRemarks; String referringDoctorRemarks;
String? priority; String priority;
String? frequency; String frequency;
String? extension; String extension;
int? languageID; int languageID;
String? stamp; String stamp;
String? iPAdress; String iPAdress;
double? versionID; double versionID;
int? channel; int channel;
String? tokenID; String tokenID;
String? sessionID; String sessionID;
bool? isLoginForDoctorApp; bool isLoginForDoctorApp;
bool? patientOutSA; bool patientOutSA;
ReferralRequest( ReferralRequest(
{this.roomID, {this.roomID,
@ -50,7 +50,7 @@ class ReferralRequest {
this.isLoginForDoctorApp, this.isLoginForDoctorApp,
this.patientOutSA}); this.patientOutSA});
ReferralRequest.fromJson(Map<String?, dynamic> json) { ReferralRequest.fromJson(Map<String, dynamic> json) {
roomID = json['RoomID']; roomID = json['RoomID'];
referralClinic = json['ReferralClinic']; referralClinic = json['ReferralClinic'];
referralDoctor = json['ReferralDoctor']; referralDoctor = json['ReferralDoctor'];

@ -1,19 +1,19 @@
class AddReferredRemarksRequestModel { class AddReferredRemarksRequestModel {
int? projectID; int projectID;
int? admissionNo; int admissionNo;
int? lineItemNo; int lineItemNo;
String? referredDoctorRemarks; String referredDoctorRemarks;
int? editedBy; int editedBy;
int? referalStatus; int referalStatus;
bool? isLoginForDoctorApp; bool isLoginForDoctorApp;
String? iPAdress; String iPAdress;
bool? patientOutSA; bool patientOutSA;
String? tokenID; String tokenID;
int? languageID; int languageID;
double? versionID; double versionID;
int? channel; int channel;
String? sessionID; String sessionID;
int? deviceTypeID; int deviceTypeID;
AddReferredRemarksRequestModel( AddReferredRemarksRequestModel(
{this.projectID, {this.projectID,

@ -1,13 +1,13 @@
class GetMedicationResponseModel { class GetMedicationResponseModel {
String? description; String description;
String? genericName; String genericName;
int ?itemId; int itemId;
String? keywords; String keywords;
dynamic price; dynamic price;
dynamic quantity; dynamic quantity;
dynamic mediSpanGPICode; dynamic mediSpanGPICode;
bool ?isNarcotic; bool isNarcotic;
String? uom; String uom;
GetMedicationResponseModel( GetMedicationResponseModel(
{this.description, {this.description,
this.genericName, this.genericName,
@ -19,7 +19,7 @@ class GetMedicationResponseModel {
this.uom, this.uom,
this.mediSpanGPICode}); this.mediSpanGPICode});
GetMedicationResponseModel.fromJson(Map<String?, dynamic> json) { GetMedicationResponseModel.fromJson(Map<String, dynamic> json) {
description = json['Description']; description = json['Description'];
genericName = json['GenericName']; genericName = json['GenericName'];
itemId = json['ItemId']; itemId = json['ItemId'];
@ -31,8 +31,8 @@ class GetMedicationResponseModel {
uom = json['uom']; uom = json['uom'];
} }
Map<String?, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String?, dynamic> data = new Map<String?, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['Description'] = this.description; data['Description'] = this.description;
data['GenericName'] = this.genericName; data['GenericName'] = this.genericName;
data['ItemId'] = this.itemId; data['ItemId'] = this.itemId;

@ -1,27 +1,27 @@
class ItemByMedicineModel { class ItemByMedicineModel {
List<Frequencies>? frequencies; List<Frequencies> frequencies;
List<Routes> ?routes; List<Routes> routes;
List<Strengths>? strengths; List<Strengths> strengths;
ItemByMedicineModel({this.frequencies, this.routes, this.strengths}); ItemByMedicineModel({this.frequencies, this.routes, this.strengths});
ItemByMedicineModel.fromJson(Map<String, dynamic> json) { ItemByMedicineModel.fromJson(Map<String, dynamic> json) {
if (json['frequencies'] != null) { if (json['frequencies'] != null) {
frequencies = []; frequencies = new List<Frequencies>();
json['frequencies'].forEach((v) { json['frequencies'].forEach((v) {
frequencies!.add(new Frequencies.fromJson(v)); frequencies.add(new Frequencies.fromJson(v));
}); });
} }
if (json['routes'] != null) { if (json['routes'] != null) {
routes = []; routes = new List<Routes>();
json['routes'].forEach((v) { json['routes'].forEach((v) {
routes!.add(new Routes.fromJson(v)); routes.add(new Routes.fromJson(v));
}); });
} }
if (json['strengths'] != null) { if (json['strengths'] != null) {
strengths = []; strengths = new List<Strengths>();
json['strengths'].forEach((v) { json['strengths'].forEach((v) {
strengths!.add(new Strengths.fromJson(v)); strengths.add(new Strengths.fromJson(v));
}); });
} }
} }
@ -29,22 +29,22 @@ class ItemByMedicineModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.frequencies != null) { if (this.frequencies != null) {
data['frequencies'] = this.frequencies!.map((v) => v.toJson()).toList(); data['frequencies'] = this.frequencies.map((v) => v.toJson()).toList();
} }
if (this.routes != null) { if (this.routes != null) {
data['routes'] = this.routes!.map((v) => v.toJson()).toList(); data['routes'] = this.routes.map((v) => v.toJson()).toList();
} }
if (this.strengths != null) { if (this.strengths != null) {
data['strengths'] = this.strengths!.map((v) => v.toJson()).toList(); data['strengths'] = this.strengths.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class Frequencies { class Frequencies {
String? description; String description;
bool? isDefault; bool isDefault;
int ?parameterCode; int parameterCode;
Frequencies({this.description, this.isDefault, this.parameterCode}); Frequencies({this.description, this.isDefault, this.parameterCode});
@ -64,9 +64,9 @@ class Frequencies {
} }
class Strengths { class Strengths {
String? description; String description;
bool ?isDefault; bool isDefault;
int ?parameterCode; int parameterCode;
Strengths({this.description, this.isDefault, this.parameterCode}); Strengths({this.description, this.isDefault, this.parameterCode});
@ -86,9 +86,9 @@ class Strengths {
} }
class Routes { class Routes {
String ?description; String description;
bool ?isDefault; bool isDefault;
int ?parameterCode; int parameterCode;
Routes({this.description, this.isDefault, this.parameterCode}); Routes({this.description, this.isDefault, this.parameterCode});

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save