completed the deviceapi with new architecture
parent
6bc7af00bc
commit
9509d4a192
@ -0,0 +1,91 @@
|
|||||||
|
import 'package:hmg_patient_app_new/core/enums.dart';
|
||||||
|
import 'package:hmg_patient_app_new/features/authentication/models/request_models/send_activation_request_model.dart';
|
||||||
|
|
||||||
|
class RequestUtils {
|
||||||
|
static dynamic getCommonRequestWelcome({
|
||||||
|
required String phoneNumber,
|
||||||
|
required OTPTypeEnum otpTypeEnum,
|
||||||
|
required String? deviceToken,
|
||||||
|
required bool patientOutSA,
|
||||||
|
required String? loginTokenID,
|
||||||
|
required var registeredData,
|
||||||
|
required int? patientId,
|
||||||
|
required String nationIdText,
|
||||||
|
required String countryCode,
|
||||||
|
}) {
|
||||||
|
bool fileNo = false;
|
||||||
|
if (nationIdText.isNotEmpty) {
|
||||||
|
fileNo = nationIdText.length < 10;
|
||||||
|
}
|
||||||
|
var request = SendActivationRequest();
|
||||||
|
request.patientMobileNumber = int.parse(phoneNumber);
|
||||||
|
request.mobileNo = '0$phoneNumber';
|
||||||
|
request.deviceToken = deviceToken;
|
||||||
|
request.projectOutSA = patientOutSA;
|
||||||
|
request.loginType = otpTypeEnum.toInt();
|
||||||
|
request.oTPSendType = otpTypeEnum.toInt(); // could map OTPTypeEnum if needed
|
||||||
|
request.zipCode = countryCode; // or countryCode if defined elsewhere
|
||||||
|
request.logInTokenID = loginTokenID ?? "";
|
||||||
|
|
||||||
|
if (registeredData != null) {
|
||||||
|
request.searchType = registeredData.searchType ?? 1;
|
||||||
|
request.patientID = registeredData.patientID ?? 0;
|
||||||
|
request.patientIdentificationID = request.nationalID = registeredData.patientIdentificationID ?? '0';
|
||||||
|
request.dob = registeredData.dob;
|
||||||
|
request.isRegister = registeredData.isRegister;
|
||||||
|
} else {
|
||||||
|
if (fileNo) {
|
||||||
|
request.patientID = patientId ?? int.parse(nationIdText);
|
||||||
|
request.patientIdentificationID = request.nationalID = "";
|
||||||
|
request.searchType = 2;
|
||||||
|
} else {
|
||||||
|
request.patientID = 0;
|
||||||
|
request.searchType = 1;
|
||||||
|
request.patientIdentificationID = request.nationalID = nationIdText.isNotEmpty ? nationIdText : '0';
|
||||||
|
}
|
||||||
|
request.isRegister = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
request.deviceTypeID = request.searchType;
|
||||||
|
return request;
|
||||||
|
}
|
||||||
|
|
||||||
|
static getCommonRequestAuthProvider({
|
||||||
|
required OTPTypeEnum otpTypeEnum,
|
||||||
|
required registeredData,
|
||||||
|
required deviceToken,
|
||||||
|
required mobileNumber,
|
||||||
|
required zipCode,
|
||||||
|
required patientOutSA,
|
||||||
|
required loginTokenID,
|
||||||
|
required selectedOption,
|
||||||
|
required int? patientId,
|
||||||
|
}) {
|
||||||
|
var request = SendActivationRequest();
|
||||||
|
request.patientMobileNumber = mobileNumber;
|
||||||
|
request.mobileNo = '0$mobileNumber';
|
||||||
|
request.deviceToken = deviceToken;
|
||||||
|
request.projectOutSA = patientOutSA == true ? true : false;
|
||||||
|
request.loginType = selectedOption;
|
||||||
|
request.oTPSendType = otpTypeEnum.toInt(); //this.selectedOption == 1 ? 1 : 2;
|
||||||
|
request.zipCode = zipCode;
|
||||||
|
|
||||||
|
request.logInTokenID = loginTokenID ?? "";
|
||||||
|
|
||||||
|
if (registeredData != null) {
|
||||||
|
request.searchType = registeredData.searchType ?? 1;
|
||||||
|
request.patientID = registeredData.patientID ?? 0;
|
||||||
|
request.patientIdentificationID = request.nationalID = registeredData.patientIdentificationID ?? '0';
|
||||||
|
request.dob = registeredData.dob;
|
||||||
|
request.isRegister = registeredData.isRegister;
|
||||||
|
} else {
|
||||||
|
request.searchType = request.searchType ?? 2;
|
||||||
|
request.patientID = patientId ?? 0;
|
||||||
|
request.nationalID = request.nationalID ?? '0';
|
||||||
|
request.patientIdentificationID = request.patientIdentificationID ?? '0';
|
||||||
|
request.isRegister = false;
|
||||||
|
}
|
||||||
|
request.deviceTypeID = request.searchType;
|
||||||
|
return request;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,121 +0,0 @@
|
|||||||
class CheckActivationCodeRegisterReq {
|
|
||||||
int? patientMobileNumber;
|
|
||||||
String? mobileNo;
|
|
||||||
String? deviceToken;
|
|
||||||
bool? projectOutSA;
|
|
||||||
int? loginType;
|
|
||||||
String? zipCode;
|
|
||||||
bool? isRegister;
|
|
||||||
String? logInTokenID;
|
|
||||||
int? searchType;
|
|
||||||
int? patientID;
|
|
||||||
String? nationalID;
|
|
||||||
String? patientIdentificationID;
|
|
||||||
String? activationCode;
|
|
||||||
bool? isSilentLogin;
|
|
||||||
double? versionID;
|
|
||||||
int? channel;
|
|
||||||
int? languageID;
|
|
||||||
String? iPAdress;
|
|
||||||
String? generalid;
|
|
||||||
int? patientOutSA;
|
|
||||||
dynamic sessionID;
|
|
||||||
bool? isDentalAllowedBackend;
|
|
||||||
int? deviceTypeID;
|
|
||||||
bool? forRegisteration;
|
|
||||||
String? dob;
|
|
||||||
int? isHijri;
|
|
||||||
String? healthId;
|
|
||||||
|
|
||||||
CheckActivationCodeRegisterReq({
|
|
||||||
this.patientMobileNumber,
|
|
||||||
this.mobileNo,
|
|
||||||
this.deviceToken,
|
|
||||||
this.projectOutSA,
|
|
||||||
this.loginType,
|
|
||||||
this.zipCode,
|
|
||||||
this.isRegister,
|
|
||||||
this.logInTokenID,
|
|
||||||
this.searchType,
|
|
||||||
this.patientID,
|
|
||||||
this.nationalID,
|
|
||||||
this.patientIdentificationID,
|
|
||||||
this.activationCode,
|
|
||||||
this.isSilentLogin,
|
|
||||||
this.versionID,
|
|
||||||
this.channel,
|
|
||||||
this.languageID,
|
|
||||||
this.iPAdress,
|
|
||||||
this.generalid,
|
|
||||||
this.patientOutSA,
|
|
||||||
this.sessionID,
|
|
||||||
this.isDentalAllowedBackend,
|
|
||||||
this.deviceTypeID,
|
|
||||||
this.forRegisteration,
|
|
||||||
this.dob,
|
|
||||||
this.isHijri,
|
|
||||||
this.healthId,
|
|
||||||
});
|
|
||||||
|
|
||||||
CheckActivationCodeRegisterReq.fromJson(Map<String, dynamic> json) {
|
|
||||||
patientMobileNumber = json['PatientMobileNumber'];
|
|
||||||
mobileNo = json['MobileNo'];
|
|
||||||
deviceToken = json['DeviceToken'];
|
|
||||||
projectOutSA = json['ProjectOutSA'];
|
|
||||||
loginType = json['LoginType'];
|
|
||||||
zipCode = json['ZipCode'];
|
|
||||||
isRegister = json['isRegister'];
|
|
||||||
logInTokenID = json['LogInTokenID'];
|
|
||||||
searchType = json['SearchType'];
|
|
||||||
patientID = json['PatientID'];
|
|
||||||
nationalID = json['NationalID'];
|
|
||||||
patientIdentificationID = json['PatientIdentificationID'];
|
|
||||||
activationCode = json['activationCode'];
|
|
||||||
isSilentLogin = json['IsSilentLogin'];
|
|
||||||
versionID = json['VersionID'];
|
|
||||||
channel = json['Channel'];
|
|
||||||
languageID = json['LanguageID'];
|
|
||||||
iPAdress = json['IPAdress'];
|
|
||||||
generalid = json['generalid'];
|
|
||||||
patientOutSA = json['PatientOutSA'];
|
|
||||||
sessionID = json['SessionID'];
|
|
||||||
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
|
||||||
deviceTypeID = json['DeviceTypeID'];
|
|
||||||
forRegisteration = json['ForRegisteration'];
|
|
||||||
dob = json['DOB'];
|
|
||||||
isHijri = json['IsHijri'];
|
|
||||||
healthId = json['HealthId'];
|
|
||||||
}
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
||||||
data['PatientMobileNumber'] = this.patientMobileNumber;
|
|
||||||
data['MobileNo'] = this.mobileNo;
|
|
||||||
data['DeviceToken'] = this.deviceToken;
|
|
||||||
data['ProjectOutSA'] = this.projectOutSA;
|
|
||||||
data['LoginType'] = this.loginType;
|
|
||||||
data['ZipCode'] = this.zipCode;
|
|
||||||
data['isRegister'] = this.isRegister;
|
|
||||||
data['LogInTokenID'] = this.logInTokenID;
|
|
||||||
data['SearchType'] = this.searchType;
|
|
||||||
data['PatientID'] = this.patientID;
|
|
||||||
data['NationalID'] = this.nationalID;
|
|
||||||
data['PatientIdentificationID'] = this.patientIdentificationID;
|
|
||||||
data['activationCode'] = this.activationCode;
|
|
||||||
data['IsSilentLogin'] = this.isSilentLogin;
|
|
||||||
data['VersionID'] = this.versionID;
|
|
||||||
data['Channel'] = this.channel;
|
|
||||||
data['LanguageID'] = this.languageID;
|
|
||||||
data['IPAdress'] = this.iPAdress;
|
|
||||||
data['generalid'] = this.generalid;
|
|
||||||
data['PatientOutSA'] = this.patientOutSA;
|
|
||||||
data['SessionID'] = this.sessionID;
|
|
||||||
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
|
||||||
data['DeviceTypeID'] = this.deviceTypeID;
|
|
||||||
data['ForRegisteration'] = this.forRegisteration;
|
|
||||||
data['DOB'] = dob;
|
|
||||||
data['IsHijri'] = isHijri;
|
|
||||||
data['HealthId'] = healthId;
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -0,0 +1,121 @@
|
|||||||
|
// class CheckActivationCodeRegisterReq {
|
||||||
|
// int? patientMobileNumber;
|
||||||
|
// String? mobileNo;
|
||||||
|
// String? deviceToken;
|
||||||
|
// bool? projectOutSA;
|
||||||
|
// int? loginType;
|
||||||
|
// String? zipCode;
|
||||||
|
// bool? isRegister;
|
||||||
|
// String? logInTokenID;
|
||||||
|
// int? searchType;
|
||||||
|
// int? patientID;
|
||||||
|
// String? nationalID;
|
||||||
|
// String? patientIdentificationID;
|
||||||
|
// String? activationCode;
|
||||||
|
// bool? isSilentLogin;
|
||||||
|
// double? versionID;
|
||||||
|
// int? channel;
|
||||||
|
// int? languageID;
|
||||||
|
// String? iPAdress;
|
||||||
|
// String? generalid;
|
||||||
|
// int? patientOutSA;
|
||||||
|
// dynamic sessionID;
|
||||||
|
// bool? isDentalAllowedBackend;
|
||||||
|
// int? deviceTypeID;
|
||||||
|
// bool? forRegisteration;
|
||||||
|
// String? dob;
|
||||||
|
// int? isHijri;
|
||||||
|
// String? healthId;
|
||||||
|
//
|
||||||
|
// CheckActivationCodeRegisterReq({
|
||||||
|
// this.patientMobileNumber,
|
||||||
|
// this.mobileNo,
|
||||||
|
// this.deviceToken,
|
||||||
|
// this.projectOutSA,
|
||||||
|
// this.loginType,
|
||||||
|
// this.zipCode,
|
||||||
|
// this.isRegister,
|
||||||
|
// this.logInTokenID,
|
||||||
|
// this.searchType,
|
||||||
|
// this.patientID,
|
||||||
|
// this.nationalID,
|
||||||
|
// this.patientIdentificationID,
|
||||||
|
// this.activationCode,
|
||||||
|
// this.isSilentLogin,
|
||||||
|
// this.versionID,
|
||||||
|
// this.channel,
|
||||||
|
// this.languageID,
|
||||||
|
// this.iPAdress,
|
||||||
|
// this.generalid,
|
||||||
|
// this.patientOutSA,
|
||||||
|
// this.sessionID,
|
||||||
|
// this.isDentalAllowedBackend,
|
||||||
|
// this.deviceTypeID,
|
||||||
|
// this.forRegisteration,
|
||||||
|
// this.dob,
|
||||||
|
// this.isHijri,
|
||||||
|
// this.healthId,
|
||||||
|
// });
|
||||||
|
//
|
||||||
|
// CheckActivationCodeRegisterReq.fromJson(Map<String, dynamic> json) {
|
||||||
|
// patientMobileNumber = json['PatientMobileNumber'];
|
||||||
|
// mobileNo = json['MobileNo'];
|
||||||
|
// deviceToken = json['DeviceToken'];
|
||||||
|
// projectOutSA = json['ProjectOutSA'];
|
||||||
|
// loginType = json['LoginType'];
|
||||||
|
// zipCode = json['ZipCode'];
|
||||||
|
// isRegister = json['isRegister'];
|
||||||
|
// logInTokenID = json['LogInTokenID'];
|
||||||
|
// searchType = json['SearchType'];
|
||||||
|
// patientID = json['PatientID'];
|
||||||
|
// nationalID = json['NationalID'];
|
||||||
|
// patientIdentificationID = json['PatientIdentificationID'];
|
||||||
|
// activationCode = json['activationCode'];
|
||||||
|
// isSilentLogin = json['IsSilentLogin'];
|
||||||
|
// versionID = json['VersionID'];
|
||||||
|
// channel = json['Channel'];
|
||||||
|
// languageID = json['LanguageID'];
|
||||||
|
// iPAdress = json['IPAdress'];
|
||||||
|
// generalid = json['generalid'];
|
||||||
|
// patientOutSA = json['PatientOutSA'];
|
||||||
|
// sessionID = json['SessionID'];
|
||||||
|
// isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||||
|
// deviceTypeID = json['DeviceTypeID'];
|
||||||
|
// forRegisteration = json['ForRegisteration'];
|
||||||
|
// dob = json['DOB'];
|
||||||
|
// isHijri = json['IsHijri'];
|
||||||
|
// healthId = json['HealthId'];
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// Map<String, dynamic> toJson() {
|
||||||
|
// final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
// data['PatientMobileNumber'] = this.patientMobileNumber;
|
||||||
|
// data['MobileNo'] = this.mobileNo;
|
||||||
|
// data['DeviceToken'] = this.deviceToken;
|
||||||
|
// data['ProjectOutSA'] = this.projectOutSA;
|
||||||
|
// data['LoginType'] = this.loginType;
|
||||||
|
// data['ZipCode'] = this.zipCode;
|
||||||
|
// data['isRegister'] = this.isRegister;
|
||||||
|
// data['LogInTokenID'] = this.logInTokenID;
|
||||||
|
// data['SearchType'] = this.searchType;
|
||||||
|
// data['PatientID'] = this.patientID;
|
||||||
|
// data['NationalID'] = this.nationalID;
|
||||||
|
// data['PatientIdentificationID'] = this.patientIdentificationID;
|
||||||
|
// data['activationCode'] = this.activationCode;
|
||||||
|
// data['IsSilentLogin'] = this.isSilentLogin;
|
||||||
|
// data['VersionID'] = this.versionID;
|
||||||
|
// data['Channel'] = this.channel;
|
||||||
|
// data['LanguageID'] = this.languageID;
|
||||||
|
// data['IPAdress'] = this.iPAdress;
|
||||||
|
// data['generalid'] = this.generalid;
|
||||||
|
// data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
// data['SessionID'] = this.sessionID;
|
||||||
|
// data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||||
|
// data['DeviceTypeID'] = this.deviceTypeID;
|
||||||
|
// data['ForRegisteration'] = this.forRegisteration;
|
||||||
|
// data['DOB'] = dob;
|
||||||
|
// data['IsHijri'] = isHijri;
|
||||||
|
// data['HealthId'] = healthId;
|
||||||
|
// return data;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
@ -0,0 +1,88 @@
|
|||||||
|
class CheckPatientAuthenticationReq {
|
||||||
|
int? patientMobileNumber;
|
||||||
|
String? zipCode;
|
||||||
|
bool? isRegister;
|
||||||
|
String? tokenID;
|
||||||
|
int? searchType;
|
||||||
|
String? patientIdentificationID;
|
||||||
|
int? patientID;
|
||||||
|
double? versionID;
|
||||||
|
int? channel;
|
||||||
|
int? languageID;
|
||||||
|
String? iPAdress;
|
||||||
|
String? generalid;
|
||||||
|
int? patientOutSA;
|
||||||
|
dynamic sessionID;
|
||||||
|
bool? isDentalAllowedBackend;
|
||||||
|
int? deviceTypeID;
|
||||||
|
String? dob;
|
||||||
|
int? isHijri;
|
||||||
|
String? healthId;
|
||||||
|
|
||||||
|
CheckPatientAuthenticationReq(
|
||||||
|
{this.patientMobileNumber,
|
||||||
|
this.zipCode,
|
||||||
|
this.isRegister,
|
||||||
|
this.tokenID,
|
||||||
|
this.searchType,
|
||||||
|
this.patientIdentificationID,
|
||||||
|
this.patientID,
|
||||||
|
this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.languageID,
|
||||||
|
this.iPAdress,
|
||||||
|
this.generalid,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.sessionID,
|
||||||
|
this.isDentalAllowedBackend,
|
||||||
|
this.deviceTypeID,
|
||||||
|
this.dob,
|
||||||
|
this.isHijri,
|
||||||
|
this.healthId});
|
||||||
|
|
||||||
|
CheckPatientAuthenticationReq.fromJson(Map<String, dynamic> json) {
|
||||||
|
patientMobileNumber = json['PatientMobileNumber'];
|
||||||
|
zipCode = json['ZipCode'];
|
||||||
|
isRegister = json['isRegister'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
searchType = json['SearchType'];
|
||||||
|
patientIdentificationID = json['PatientIdentificationID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
generalid = json['generalid'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||||
|
deviceTypeID = json['DeviceTypeID'];
|
||||||
|
dob = json['dob'];
|
||||||
|
isHijri = json['isHijri'];
|
||||||
|
healthId = json['HealthId'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = <String, dynamic>{};
|
||||||
|
data['PatientMobileNumber'] = patientMobileNumber;
|
||||||
|
data['ZipCode'] = zipCode;
|
||||||
|
data['isRegister'] = isRegister;
|
||||||
|
data['TokenID'] = tokenID;
|
||||||
|
data['SearchType'] = searchType;
|
||||||
|
data['PatientIdentificationID'] = patientIdentificationID;
|
||||||
|
data['PatientID'] = patientID;
|
||||||
|
data['VersionID'] = versionID;
|
||||||
|
data['Channel'] = channel;
|
||||||
|
data['LanguageID'] = languageID;
|
||||||
|
data['IPAdress'] = iPAdress;
|
||||||
|
data['generalid'] = generalid;
|
||||||
|
data['PatientOutSA'] = patientOutSA;
|
||||||
|
data['SessionID'] = sessionID;
|
||||||
|
data['isDentalAllowedBackend'] = isDentalAllowedBackend;
|
||||||
|
data['DeviceTypeID'] = deviceTypeID;
|
||||||
|
data['dob'] = dob;
|
||||||
|
data['isHijri'] = isHijri;
|
||||||
|
data['HealthId'] = healthId;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,132 @@
|
|||||||
|
class SendActivationRequest {
|
||||||
|
int? patientMobileNumber;
|
||||||
|
String? mobileNo;
|
||||||
|
String? deviceToken;
|
||||||
|
bool? projectOutSA;
|
||||||
|
int? loginType;
|
||||||
|
String? zipCode;
|
||||||
|
bool? isRegister;
|
||||||
|
String? logInTokenID;
|
||||||
|
int? searchType;
|
||||||
|
int? patientID;
|
||||||
|
String? nationalID;
|
||||||
|
String? patientIdentificationID;
|
||||||
|
int? oTPSendType;
|
||||||
|
int? languageID;
|
||||||
|
double? versionID;
|
||||||
|
int? channel;
|
||||||
|
String? iPAdress;
|
||||||
|
String? generalid;
|
||||||
|
int? patientOutSA;
|
||||||
|
dynamic sessionID;
|
||||||
|
bool? isDentalAllowedBackend;
|
||||||
|
int? deviceTypeID;
|
||||||
|
String? sMSSignature;
|
||||||
|
String? dob;
|
||||||
|
int? isHijri;
|
||||||
|
String? healthId;
|
||||||
|
int? responseID;
|
||||||
|
int? status;
|
||||||
|
int? familyRegionID;
|
||||||
|
bool? isPatientExcluded;
|
||||||
|
SendActivationRequest(
|
||||||
|
{this.patientMobileNumber,
|
||||||
|
this.mobileNo,
|
||||||
|
this.deviceToken,
|
||||||
|
this.projectOutSA,
|
||||||
|
this.loginType,
|
||||||
|
this.zipCode,
|
||||||
|
this.isRegister,
|
||||||
|
this.logInTokenID,
|
||||||
|
this.searchType,
|
||||||
|
this.patientID,
|
||||||
|
this.nationalID,
|
||||||
|
this.patientIdentificationID,
|
||||||
|
this.oTPSendType,
|
||||||
|
this.languageID,
|
||||||
|
this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.iPAdress,
|
||||||
|
this.generalid,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.sessionID,
|
||||||
|
this.isDentalAllowedBackend,
|
||||||
|
this.deviceTypeID,
|
||||||
|
this.sMSSignature,
|
||||||
|
this.dob,
|
||||||
|
this.isHijri,
|
||||||
|
this.healthId,
|
||||||
|
this.responseID,
|
||||||
|
this.status,
|
||||||
|
this.familyRegionID,
|
||||||
|
this.isPatientExcluded
|
||||||
|
});
|
||||||
|
|
||||||
|
SendActivationRequest.fromJson(Map<String, dynamic> json) {
|
||||||
|
patientMobileNumber = json['PatientMobileNumber'];
|
||||||
|
mobileNo = json['MobileNo'];
|
||||||
|
deviceToken = json['DeviceToken'];
|
||||||
|
projectOutSA = json['ProjectOutSA'];
|
||||||
|
loginType = json['LoginType'];
|
||||||
|
zipCode = json['ZipCode'];
|
||||||
|
isRegister = json['isRegister'];
|
||||||
|
logInTokenID = json['LogInTokenID'];
|
||||||
|
searchType = json['SearchType'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
nationalID = json['NationalID'];
|
||||||
|
patientIdentificationID = json['PatientIdentificationID'];
|
||||||
|
oTPSendType = json['OTP_SendType'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
generalid = json['generalid'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||||
|
deviceTypeID = json['DeviceTypeID'];
|
||||||
|
sMSSignature = json['SMSSignature'];
|
||||||
|
dob = json['DOB'];
|
||||||
|
isHijri = json['IsHijri'];
|
||||||
|
healthId = json['HealthId'];
|
||||||
|
responseID = json['ReponseID'];
|
||||||
|
status = json['Status'];
|
||||||
|
familyRegionID = json['FamilyRegionID'];
|
||||||
|
isPatientExcluded = json['IsPatientExcluded'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['PatientMobileNumber'] = patientMobileNumber;
|
||||||
|
data['MobileNo'] = mobileNo;
|
||||||
|
data['DeviceToken'] = deviceToken;
|
||||||
|
data['ProjectOutSA'] = projectOutSA;
|
||||||
|
data['LoginType'] = loginType;
|
||||||
|
data['ZipCode'] = zipCode;
|
||||||
|
data['isRegister'] = isRegister;
|
||||||
|
data['LogInTokenID'] = logInTokenID;
|
||||||
|
data['SearchType'] = searchType;
|
||||||
|
data['PatientID'] = patientID;
|
||||||
|
data['NationalID'] = nationalID;
|
||||||
|
data['PatientIdentificationID'] = patientIdentificationID;
|
||||||
|
data['OTP_SendType'] = oTPSendType;
|
||||||
|
data['LanguageID'] = languageID;
|
||||||
|
data['VersionID'] = versionID;
|
||||||
|
data['Channel'] = channel;
|
||||||
|
data['IPAdress'] = iPAdress;
|
||||||
|
data['generalid'] = generalid;
|
||||||
|
data['PatientOutSA'] = patientOutSA;
|
||||||
|
data['SessionID'] = sessionID;
|
||||||
|
data['isDentalAllowedBackend'] = isDentalAllowedBackend;
|
||||||
|
data['DeviceTypeID'] = deviceTypeID;
|
||||||
|
data['SMSSignature'] = sMSSignature;
|
||||||
|
data['DOB'] = dob;
|
||||||
|
data['IsHijri'] = isHijri;
|
||||||
|
data['HealthId'] = healthId;
|
||||||
|
data['ResponseID'] = responseID;
|
||||||
|
data['Status'] = status;
|
||||||
|
data['FamilyRegionID'] = familyRegionID;
|
||||||
|
data['IsPatientExcluded'] = isPatientExcluded;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,546 @@
|
|||||||
|
import 'package:hmg_patient_app_new/features/authentication/models/resp_models/authenticated_user_resp_model.dart';
|
||||||
|
|
||||||
|
class CheckActivationCode {
|
||||||
|
dynamic date;
|
||||||
|
int? languageID;
|
||||||
|
int? serviceName;
|
||||||
|
dynamic time;
|
||||||
|
dynamic androidLink;
|
||||||
|
String? authenticationTokenID;
|
||||||
|
dynamic data;
|
||||||
|
bool? dataw;
|
||||||
|
int? dietType;
|
||||||
|
dynamic errorCode;
|
||||||
|
dynamic errorEndUserMessage;
|
||||||
|
dynamic errorEndUserMessageN;
|
||||||
|
dynamic errorMessage;
|
||||||
|
int? errorType;
|
||||||
|
int? foodCategory;
|
||||||
|
dynamic iOSLink;
|
||||||
|
bool? isAuthenticated;
|
||||||
|
int? mealOrderStatus;
|
||||||
|
int? mealType;
|
||||||
|
int? messageStatus;
|
||||||
|
int? numberOfResultRecords;
|
||||||
|
dynamic patientBlodType;
|
||||||
|
dynamic successMsg;
|
||||||
|
dynamic successMsgN;
|
||||||
|
dynamic doctorInformationList;
|
||||||
|
dynamic getAllPendingRecordsList;
|
||||||
|
dynamic getAllSharedRecordsByStatusList;
|
||||||
|
dynamic getResponseFileList;
|
||||||
|
bool? isHMGPatient;
|
||||||
|
bool? isLoginSuccessfully;
|
||||||
|
bool? isNeedUpdateIdintificationNo;
|
||||||
|
bool? kioskSendSMS;
|
||||||
|
AuthenticatedUser? list;
|
||||||
|
dynamic listAskHabibMobileLoginInfo;
|
||||||
|
dynamic listAskHabibPatientFile;
|
||||||
|
dynamic listMergeFiles;
|
||||||
|
dynamic listMobileLoginInfo;
|
||||||
|
dynamic listPatientCount;
|
||||||
|
dynamic logInTokenID;
|
||||||
|
dynamic mohemmPrivilegeList;
|
||||||
|
int? pateintID;
|
||||||
|
String? patientBloodType;
|
||||||
|
bool? patientHasFile;
|
||||||
|
dynamic patientMergedIDs;
|
||||||
|
bool? patientOutSA;
|
||||||
|
int? patientShareRequestID;
|
||||||
|
int? patientType;
|
||||||
|
int? projectIDOut;
|
||||||
|
dynamic returnMessage;
|
||||||
|
bool? sMSLoginRequired;
|
||||||
|
dynamic servicePrivilegeList;
|
||||||
|
dynamic sharePatientName;
|
||||||
|
dynamic verificationCode;
|
||||||
|
dynamic email;
|
||||||
|
dynamic errorList;
|
||||||
|
bool? hasFile;
|
||||||
|
bool? isActiveCode;
|
||||||
|
bool? isMerged;
|
||||||
|
bool? isNeedUserAgreement;
|
||||||
|
bool? isSMSSent;
|
||||||
|
dynamic memberList;
|
||||||
|
dynamic message;
|
||||||
|
int? statusCode;
|
||||||
|
|
||||||
|
CheckActivationCode(
|
||||||
|
{this.date,
|
||||||
|
this.languageID,
|
||||||
|
this.serviceName,
|
||||||
|
this.time,
|
||||||
|
this.androidLink,
|
||||||
|
this.authenticationTokenID,
|
||||||
|
this.data,
|
||||||
|
this.dataw,
|
||||||
|
this.dietType,
|
||||||
|
this.errorCode,
|
||||||
|
this.errorEndUserMessage,
|
||||||
|
this.errorEndUserMessageN,
|
||||||
|
this.errorMessage,
|
||||||
|
this.errorType,
|
||||||
|
this.foodCategory,
|
||||||
|
this.iOSLink,
|
||||||
|
this.isAuthenticated,
|
||||||
|
this.mealOrderStatus,
|
||||||
|
this.mealType,
|
||||||
|
this.messageStatus,
|
||||||
|
this.numberOfResultRecords,
|
||||||
|
this.patientBlodType,
|
||||||
|
this.successMsg,
|
||||||
|
this.successMsgN,
|
||||||
|
this.doctorInformationList,
|
||||||
|
this.getAllPendingRecordsList,
|
||||||
|
this.getAllSharedRecordsByStatusList,
|
||||||
|
this.getResponseFileList,
|
||||||
|
this.isHMGPatient,
|
||||||
|
this.isLoginSuccessfully,
|
||||||
|
this.isNeedUpdateIdintificationNo,
|
||||||
|
this.kioskSendSMS,
|
||||||
|
this.list,
|
||||||
|
this.listAskHabibMobileLoginInfo,
|
||||||
|
this.listAskHabibPatientFile,
|
||||||
|
this.listMergeFiles,
|
||||||
|
this.listMobileLoginInfo,
|
||||||
|
this.listPatientCount,
|
||||||
|
this.logInTokenID,
|
||||||
|
this.mohemmPrivilegeList,
|
||||||
|
this.pateintID,
|
||||||
|
this.patientBloodType,
|
||||||
|
this.patientHasFile,
|
||||||
|
this.patientMergedIDs,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.patientShareRequestID,
|
||||||
|
this.patientType,
|
||||||
|
this.projectIDOut,
|
||||||
|
this.returnMessage,
|
||||||
|
this.sMSLoginRequired,
|
||||||
|
this.servicePrivilegeList,
|
||||||
|
this.sharePatientName,
|
||||||
|
this.verificationCode,
|
||||||
|
this.email,
|
||||||
|
this.errorList,
|
||||||
|
this.hasFile,
|
||||||
|
this.isActiveCode,
|
||||||
|
this.isMerged,
|
||||||
|
this.isNeedUserAgreement,
|
||||||
|
this.isSMSSent,
|
||||||
|
this.memberList,
|
||||||
|
this.message,
|
||||||
|
this.statusCode});
|
||||||
|
|
||||||
|
CheckActivationCode.fromJson(Map<String, dynamic> json) {
|
||||||
|
date = json['Date'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
serviceName = json['ServiceName'];
|
||||||
|
time = json['Time'];
|
||||||
|
androidLink = json['AndroidLink'];
|
||||||
|
authenticationTokenID = json['AuthenticationTokenID'];
|
||||||
|
data = json['Data'];
|
||||||
|
dataw = json['Dataw'];
|
||||||
|
dietType = json['DietType'];
|
||||||
|
errorCode = json['ErrorCode'];
|
||||||
|
errorEndUserMessage = json['ErrorEndUserMessage'];
|
||||||
|
errorEndUserMessageN = json['ErrorEndUserMessageN'];
|
||||||
|
errorMessage = json['ErrorMessage'];
|
||||||
|
errorType = json['ErrorType'];
|
||||||
|
foodCategory = json['FoodCategory'];
|
||||||
|
iOSLink = json['IOSLink'];
|
||||||
|
isAuthenticated = json['IsAuthenticated'];
|
||||||
|
mealOrderStatus = json['MealOrderStatus'];
|
||||||
|
mealType = json['MealType'];
|
||||||
|
messageStatus = json['MessageStatus'];
|
||||||
|
numberOfResultRecords = json['NumberOfResultRecords'];
|
||||||
|
patientBlodType = json['PatientBlodType'];
|
||||||
|
successMsg = json['SuccessMsg'];
|
||||||
|
successMsgN = json['SuccessMsgN'];
|
||||||
|
doctorInformationList = json['DoctorInformation_List'];
|
||||||
|
getAllPendingRecordsList = json['GetAllPendingRecordsList'];
|
||||||
|
getAllSharedRecordsByStatusList = json['GetAllSharedRecordsByStatusList'];
|
||||||
|
getResponseFileList = json['GetResponseFileList'];
|
||||||
|
isHMGPatient = json['IsHMGPatient'];
|
||||||
|
isLoginSuccessfully = json['IsLoginSuccessfully'];
|
||||||
|
isNeedUpdateIdintificationNo = json['IsNeedUpdateIdintificationNo'];
|
||||||
|
kioskSendSMS = json['KioskSendSMS'];
|
||||||
|
if (json['List'] != null) {
|
||||||
|
list = AuthenticatedUser.fromJson(json['List'][0]);
|
||||||
|
}
|
||||||
|
listAskHabibMobileLoginInfo = json['List_AskHabibMobileLoginInfo'];
|
||||||
|
listAskHabibPatientFile = json['List_AskHabibPatientFile'];
|
||||||
|
listMergeFiles = json['List_MergeFiles'];
|
||||||
|
listMobileLoginInfo = json['List_MobileLoginInfo'];
|
||||||
|
listPatientCount = json['List_PatientCount'];
|
||||||
|
logInTokenID = json['LogInTokenID'];
|
||||||
|
mohemmPrivilegeList = json['MohemmPrivilege_List'];
|
||||||
|
pateintID = json['PateintID'];
|
||||||
|
patientBloodType = json['PatientBloodType'];
|
||||||
|
patientHasFile = json['PatientHasFile'];
|
||||||
|
patientMergedIDs = json['PatientMergedIDs'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
patientShareRequestID = json['PatientShareRequestID'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
projectIDOut = json['ProjectIDOut'];
|
||||||
|
returnMessage = json['ReturnMessage'];
|
||||||
|
sMSLoginRequired = json['SMSLoginRequired'];
|
||||||
|
servicePrivilegeList = json['ServicePrivilege_List'];
|
||||||
|
sharePatientName = json['SharePatientName'];
|
||||||
|
verificationCode = json['VerificationCode'];
|
||||||
|
email = json['email'];
|
||||||
|
errorList = json['errorList'];
|
||||||
|
hasFile = json['hasFile'];
|
||||||
|
isActiveCode = json['isActiveCode'];
|
||||||
|
isMerged = json['isMerged'];
|
||||||
|
isNeedUserAgreement = json['isNeedUserAgreement'];
|
||||||
|
isSMSSent = json['isSMSSent'];
|
||||||
|
memberList = json['memberList'];
|
||||||
|
message = json['message'];
|
||||||
|
statusCode = json['statusCode'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = <String, dynamic>{};
|
||||||
|
data['Date'] = date;
|
||||||
|
data['LanguageID'] = languageID;
|
||||||
|
data['ServiceName'] = serviceName;
|
||||||
|
data['Time'] = time;
|
||||||
|
data['AndroidLink'] = androidLink;
|
||||||
|
data['AuthenticationTokenID'] = authenticationTokenID;
|
||||||
|
data['Data'] = this.data;
|
||||||
|
data['Dataw'] = dataw;
|
||||||
|
data['DietType'] = dietType;
|
||||||
|
data['ErrorCode'] = errorCode;
|
||||||
|
data['ErrorEndUserMessage'] = errorEndUserMessage;
|
||||||
|
data['ErrorEndUserMessageN'] = errorEndUserMessageN;
|
||||||
|
data['ErrorMessage'] = errorMessage;
|
||||||
|
data['ErrorType'] = errorType;
|
||||||
|
data['FoodCategory'] = foodCategory;
|
||||||
|
data['IOSLink'] = iOSLink;
|
||||||
|
data['IsAuthenticated'] = isAuthenticated;
|
||||||
|
data['MealOrderStatus'] = mealOrderStatus;
|
||||||
|
data['MealType'] = mealType;
|
||||||
|
data['MessageStatus'] = messageStatus;
|
||||||
|
data['NumberOfResultRecords'] = numberOfResultRecords;
|
||||||
|
data['PatientBlodType'] = patientBlodType;
|
||||||
|
data['SuccessMsg'] = successMsg;
|
||||||
|
data['SuccessMsgN'] = successMsgN;
|
||||||
|
data['DoctorInformation_List'] = doctorInformationList;
|
||||||
|
data['GetAllPendingRecordsList'] = getAllPendingRecordsList;
|
||||||
|
data['GetAllSharedRecordsByStatusList'] = getAllSharedRecordsByStatusList;
|
||||||
|
data['GetResponseFileList'] = getResponseFileList;
|
||||||
|
data['IsHMGPatient'] = isHMGPatient;
|
||||||
|
data['IsLoginSuccessfully'] = isLoginSuccessfully;
|
||||||
|
data['IsNeedUpdateIdintificationNo'] = isNeedUpdateIdintificationNo;
|
||||||
|
data['KioskSendSMS'] = kioskSendSMS;
|
||||||
|
if (list != null) {
|
||||||
|
data['List'] = list;
|
||||||
|
}
|
||||||
|
data['List_AskHabibMobileLoginInfo'] = listAskHabibMobileLoginInfo;
|
||||||
|
data['List_AskHabibPatientFile'] = listAskHabibPatientFile;
|
||||||
|
data['List_MergeFiles'] = listMergeFiles;
|
||||||
|
data['List_MobileLoginInfo'] = listMobileLoginInfo;
|
||||||
|
data['List_PatientCount'] = listPatientCount;
|
||||||
|
data['LogInTokenID'] = logInTokenID;
|
||||||
|
data['MohemmPrivilege_List'] = mohemmPrivilegeList;
|
||||||
|
data['PateintID'] = pateintID;
|
||||||
|
data['PatientBloodType'] = patientBloodType;
|
||||||
|
data['PatientHasFile'] = patientHasFile;
|
||||||
|
data['PatientMergedIDs'] = patientMergedIDs;
|
||||||
|
data['PatientOutSA'] = patientOutSA;
|
||||||
|
data['PatientShareRequestID'] = patientShareRequestID;
|
||||||
|
data['PatientType'] = patientType;
|
||||||
|
data['ProjectIDOut'] = projectIDOut;
|
||||||
|
data['ReturnMessage'] = returnMessage;
|
||||||
|
data['SMSLoginRequired'] = sMSLoginRequired;
|
||||||
|
data['ServicePrivilege_List'] = servicePrivilegeList;
|
||||||
|
data['SharePatientName'] = sharePatientName;
|
||||||
|
data['VerificationCode'] = verificationCode;
|
||||||
|
data['email'] = email;
|
||||||
|
data['errorList'] = errorList;
|
||||||
|
data['hasFile'] = hasFile;
|
||||||
|
data['isActiveCode'] = isActiveCode;
|
||||||
|
data['isMerged'] = isMerged;
|
||||||
|
data['isNeedUserAgreement'] = isNeedUserAgreement;
|
||||||
|
data['isSMSSent'] = isSMSSent;
|
||||||
|
data['memberList'] = memberList;
|
||||||
|
data['message'] = message;
|
||||||
|
data['statusCode'] = statusCode;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class List {
|
||||||
|
String? setupID;
|
||||||
|
int? patientType;
|
||||||
|
int? patientID;
|
||||||
|
String? firstName;
|
||||||
|
String? middleName;
|
||||||
|
String? lastName;
|
||||||
|
String? firstNameN;
|
||||||
|
String? middleNameN;
|
||||||
|
String? lastNameN;
|
||||||
|
int? relationshipID;
|
||||||
|
int? gender;
|
||||||
|
String? dateofBirth;
|
||||||
|
dynamic dateofBirthN;
|
||||||
|
String? nationalityID;
|
||||||
|
dynamic phoneResi;
|
||||||
|
dynamic phoneOffice;
|
||||||
|
String? mobileNumber;
|
||||||
|
dynamic faxNumber;
|
||||||
|
String? emailAddress;
|
||||||
|
dynamic bloodGroup;
|
||||||
|
dynamic rHFactor;
|
||||||
|
bool? isEmailAlertRequired;
|
||||||
|
bool? isSMSAlertRequired;
|
||||||
|
String? preferredLanguage;
|
||||||
|
bool? isPrivilegedMember;
|
||||||
|
dynamic memberID;
|
||||||
|
dynamic expiryDate;
|
||||||
|
dynamic isHmgEmployee;
|
||||||
|
dynamic employeeID;
|
||||||
|
dynamic emergencyContactName;
|
||||||
|
dynamic emergencyContactNo;
|
||||||
|
int? patientPayType;
|
||||||
|
dynamic dHCCPatientRefID;
|
||||||
|
bool? isPatientDummy;
|
||||||
|
int? status;
|
||||||
|
dynamic isStatusCleared;
|
||||||
|
int? patientIdentificationType;
|
||||||
|
String? patientIdentificationNo;
|
||||||
|
int? projectID;
|
||||||
|
int? infoSourceID;
|
||||||
|
dynamic address;
|
||||||
|
int? age;
|
||||||
|
String? ageDesc;
|
||||||
|
int? areaID;
|
||||||
|
int? createdBy;
|
||||||
|
String? genderDescription;
|
||||||
|
dynamic iR;
|
||||||
|
dynamic iSOCityID;
|
||||||
|
dynamic iSOCountryID;
|
||||||
|
ListPrivilege? listPrivilege;
|
||||||
|
dynamic marital;
|
||||||
|
int? outSA;
|
||||||
|
dynamic pOBox;
|
||||||
|
bool? receiveHealthSummaryReport;
|
||||||
|
int? sourceType;
|
||||||
|
dynamic strDateofBirth;
|
||||||
|
dynamic tempAddress;
|
||||||
|
dynamic zipCode;
|
||||||
|
|
||||||
|
List({
|
||||||
|
this.setupID,
|
||||||
|
this.patientType,
|
||||||
|
this.patientID,
|
||||||
|
this.firstName,
|
||||||
|
this.middleName,
|
||||||
|
this.lastName,
|
||||||
|
this.firstNameN,
|
||||||
|
this.middleNameN,
|
||||||
|
this.lastNameN,
|
||||||
|
this.relationshipID,
|
||||||
|
this.gender,
|
||||||
|
this.dateofBirth,
|
||||||
|
this.dateofBirthN,
|
||||||
|
this.nationalityID,
|
||||||
|
this.phoneResi,
|
||||||
|
this.phoneOffice,
|
||||||
|
this.mobileNumber,
|
||||||
|
this.faxNumber,
|
||||||
|
this.emailAddress,
|
||||||
|
this.bloodGroup,
|
||||||
|
this.rHFactor,
|
||||||
|
this.isEmailAlertRequired,
|
||||||
|
this.isSMSAlertRequired,
|
||||||
|
this.preferredLanguage,
|
||||||
|
this.isPrivilegedMember,
|
||||||
|
this.memberID,
|
||||||
|
this.expiryDate,
|
||||||
|
this.isHmgEmployee,
|
||||||
|
this.employeeID,
|
||||||
|
this.emergencyContactName,
|
||||||
|
this.emergencyContactNo,
|
||||||
|
this.patientPayType,
|
||||||
|
this.dHCCPatientRefID,
|
||||||
|
this.isPatientDummy,
|
||||||
|
this.status,
|
||||||
|
this.isStatusCleared,
|
||||||
|
this.patientIdentificationType,
|
||||||
|
this.patientIdentificationNo,
|
||||||
|
this.projectID,
|
||||||
|
this.infoSourceID,
|
||||||
|
this.address,
|
||||||
|
this.age,
|
||||||
|
this.ageDesc,
|
||||||
|
this.areaID,
|
||||||
|
this.createdBy,
|
||||||
|
this.genderDescription,
|
||||||
|
this.iR,
|
||||||
|
this.iSOCityID,
|
||||||
|
this.iSOCountryID,
|
||||||
|
this.listPrivilege,
|
||||||
|
this.marital,
|
||||||
|
this.outSA,
|
||||||
|
this.pOBox,
|
||||||
|
this.receiveHealthSummaryReport,
|
||||||
|
this.sourceType,
|
||||||
|
this.strDateofBirth,
|
||||||
|
this.tempAddress,
|
||||||
|
this.zipCode,
|
||||||
|
});
|
||||||
|
|
||||||
|
List.fromJson(Map<String, dynamic> json) {
|
||||||
|
setupID = json['SetupID'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
firstName = json['FirstName'];
|
||||||
|
middleName = json['MiddleName'];
|
||||||
|
lastName = json['LastName'];
|
||||||
|
firstNameN = json['FirstNameN'];
|
||||||
|
middleNameN = json['MiddleNameN'];
|
||||||
|
lastNameN = json['LastNameN'];
|
||||||
|
relationshipID = json['RelationshipID'];
|
||||||
|
gender = json['Gender'];
|
||||||
|
dateofBirth = json['DateofBirth'];
|
||||||
|
dateofBirthN = json['DateofBirthN'];
|
||||||
|
nationalityID = json['NationalityID'];
|
||||||
|
phoneResi = json['PhoneResi'];
|
||||||
|
phoneOffice = json['PhoneOffice'];
|
||||||
|
mobileNumber = json['MobileNumber'];
|
||||||
|
faxNumber = json['FaxNumber'];
|
||||||
|
emailAddress = json['EmailAddress'];
|
||||||
|
bloodGroup = json['BloodGroup'];
|
||||||
|
rHFactor = json['RHFactor'];
|
||||||
|
isEmailAlertRequired = json['IsEmailAlertRequired'];
|
||||||
|
isSMSAlertRequired = json['IsSMSAlertRequired'];
|
||||||
|
preferredLanguage = json['PreferredLanguage'];
|
||||||
|
isPrivilegedMember = json['IsPrivilegedMember'];
|
||||||
|
memberID = json['MemberID'];
|
||||||
|
expiryDate = json['ExpiryDate'];
|
||||||
|
isHmgEmployee = json['IsHmgEmployee'];
|
||||||
|
employeeID = json['EmployeeID'];
|
||||||
|
emergencyContactName = json['EmergencyContactName'];
|
||||||
|
emergencyContactNo = json['EmergencyContactNo'];
|
||||||
|
patientPayType = json['PatientPayType'];
|
||||||
|
dHCCPatientRefID = json['DHCCPatientRefID'];
|
||||||
|
isPatientDummy = json['IsPatientDummy'];
|
||||||
|
status = json['Status'];
|
||||||
|
isStatusCleared = json['IsStatusCleared'];
|
||||||
|
patientIdentificationType = json['PatientIdentificationType'];
|
||||||
|
patientIdentificationNo = json['PatientIdentificationNo'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
infoSourceID = json['InfoSourceID'];
|
||||||
|
address = json['Address'];
|
||||||
|
age = json['Age'];
|
||||||
|
ageDesc = json['AgeDesc'];
|
||||||
|
areaID = json['AreaID'];
|
||||||
|
createdBy = json['CreatedBy'];
|
||||||
|
genderDescription = json['GenderDescription'];
|
||||||
|
iR = json['IR'];
|
||||||
|
iSOCityID = json['ISOCityID'];
|
||||||
|
iSOCountryID = json['ISOCountryID'];
|
||||||
|
if (json['ListPrivilege'] != null) {
|
||||||
|
listPrivilege = ListPrivilege.fromJson(json['ListPrivilege']);
|
||||||
|
}
|
||||||
|
marital = json['Marital'];
|
||||||
|
outSA = json['OutSA'];
|
||||||
|
pOBox = json['POBox'];
|
||||||
|
receiveHealthSummaryReport = json['ReceiveHealthSummaryReport'];
|
||||||
|
sourceType = json['SourceType'];
|
||||||
|
strDateofBirth = json['StrDateofBirth'];
|
||||||
|
tempAddress = json['TempAddress'];
|
||||||
|
zipCode = json['ZipCode'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = <String, dynamic>{};
|
||||||
|
data['SetupID'] = setupID;
|
||||||
|
data['PatientType'] = patientType;
|
||||||
|
data['PatientID'] = patientID;
|
||||||
|
data['FirstName'] = firstName;
|
||||||
|
data['MiddleName'] = middleName;
|
||||||
|
data['LastName'] = lastName;
|
||||||
|
data['FirstNameN'] = firstNameN;
|
||||||
|
data['MiddleNameN'] = middleNameN;
|
||||||
|
data['LastNameN'] = lastNameN;
|
||||||
|
data['RelationshipID'] = relationshipID;
|
||||||
|
data['Gender'] = gender;
|
||||||
|
data['DateofBirth'] = dateofBirth;
|
||||||
|
data['DateofBirthN'] = dateofBirthN;
|
||||||
|
data['NationalityID'] = nationalityID;
|
||||||
|
data['PhoneResi'] = phoneResi;
|
||||||
|
data['PhoneOffice'] = phoneOffice;
|
||||||
|
data['MobileNumber'] = mobileNumber;
|
||||||
|
data['FaxNumber'] = faxNumber;
|
||||||
|
data['EmailAddress'] = emailAddress;
|
||||||
|
data['BloodGroup'] = bloodGroup;
|
||||||
|
data['RHFactor'] = rHFactor;
|
||||||
|
data['IsEmailAlertRequired'] = isEmailAlertRequired;
|
||||||
|
data['IsSMSAlertRequired'] = isSMSAlertRequired;
|
||||||
|
data['PreferredLanguage'] = preferredLanguage;
|
||||||
|
data['IsPrivilegedMember'] = isPrivilegedMember;
|
||||||
|
data['MemberID'] = memberID;
|
||||||
|
data['ExpiryDate'] = expiryDate;
|
||||||
|
data['IsHmgEmployee'] = isHmgEmployee;
|
||||||
|
data['EmployeeID'] = employeeID;
|
||||||
|
data['EmergencyContactName'] = emergencyContactName;
|
||||||
|
data['EmergencyContactNo'] = emergencyContactNo;
|
||||||
|
data['PatientPayType'] = patientPayType;
|
||||||
|
data['DHCCPatientRefID'] = dHCCPatientRefID;
|
||||||
|
data['IsPatientDummy'] = isPatientDummy;
|
||||||
|
data['Status'] = status;
|
||||||
|
data['IsStatusCleared'] = isStatusCleared;
|
||||||
|
data['PatientIdentificationType'] = patientIdentificationType;
|
||||||
|
data['PatientIdentificationNo'] = patientIdentificationNo;
|
||||||
|
data['ProjectID'] = projectID;
|
||||||
|
data['InfoSourceID'] = infoSourceID;
|
||||||
|
data['Address'] = address;
|
||||||
|
data['Age'] = age;
|
||||||
|
data['AgeDesc'] = ageDesc;
|
||||||
|
data['AreaID'] = areaID;
|
||||||
|
data['CreatedBy'] = createdBy;
|
||||||
|
data['GenderDescription'] = genderDescription;
|
||||||
|
data['IR'] = iR;
|
||||||
|
data['ISOCityID'] = iSOCityID;
|
||||||
|
data['ISOCountryID'] = iSOCountryID;
|
||||||
|
if (listPrivilege != null) {
|
||||||
|
data['ListPrivilege'] = listPrivilege;
|
||||||
|
}
|
||||||
|
data['Marital'] = marital;
|
||||||
|
data['OutSA'] = outSA;
|
||||||
|
data['POBox'] = pOBox;
|
||||||
|
data['ReceiveHealthSummaryReport'] = receiveHealthSummaryReport;
|
||||||
|
data['SourceType'] = sourceType;
|
||||||
|
data['StrDateofBirth'] = strDateofBirth;
|
||||||
|
data['TempAddress'] = tempAddress;
|
||||||
|
data['ZipCode'] = zipCode;
|
||||||
|
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ListPrivilege {
|
||||||
|
int? iD;
|
||||||
|
String? serviceName;
|
||||||
|
bool? previlege;
|
||||||
|
dynamic region;
|
||||||
|
|
||||||
|
ListPrivilege({this.iD, this.serviceName, this.previlege, this.region});
|
||||||
|
|
||||||
|
ListPrivilege.fromJson(Map<String, dynamic> json) {
|
||||||
|
iD = json['ID'];
|
||||||
|
serviceName = json['ServiceName'];
|
||||||
|
previlege = json['Previlege'];
|
||||||
|
region = json['Region'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = <String, dynamic>{};
|
||||||
|
data['ID'] = iD;
|
||||||
|
data['ServiceName'] = serviceName;
|
||||||
|
data['Previlege'] = previlege;
|
||||||
|
data['Region'] = region;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue