Migrate models to flutter 2

migrate_flutter_2
Mohammad Aljammal 5 years ago
parent 0747dfb1e0
commit d784310c82

@ -18,9 +18,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,
{Map<String, dynamic> body, {required Map<String, dynamic> body,
Function(dynamic response, int statusCode) onSuccess, required Function(dynamic response, int statusCode) onSuccess,
Function(String error, int statusCode) onFailure, required Function(String error, int statusCode) onFailure,
bool isAllowAny = false,bool isLiveCare = false}) async { bool isAllowAny = false,bool isLiveCare = false}) async {
String url; String url;
if(isLiveCare) if(isLiveCare)
@ -30,9 +30,8 @@ class BaseAppClient {
bool callLog = true; bool callLog = true;
try { try {
Map profile = await sharedPref.getObj(DOCTOR_PROFILE); Map<String, dynamic> profile = await sharedPref.getObj(DOCTOR_PROFILE);
String token = await sharedPref.getString(TOKEN); String token = await sharedPref.getString(TOKEN);
if (profile != null) {
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile); DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
if (body['DoctorID'] == null) if (body['DoctorID'] == null)
body['DoctorID'] = doctorProfile?.doctorID; body['DoctorID'] = doctorProfile?.doctorID;
@ -45,7 +44,6 @@ class BaseAppClient {
if (body['ClinicID'] == null) if (body['ClinicID'] == null)
body['ClinicID'] = doctorProfile?.clinicID; body['ClinicID'] = doctorProfile?.clinicID;
}
if (body['DoctorID'] == '') { if (body['DoctorID'] == '') {
body['DoctorID'] = null; body['DoctorID'] = null;
} }
@ -140,10 +138,10 @@ class BaseAppClient {
} }
postPatient(String endPoint, postPatient(String endPoint,
{Map<String, dynamic> body, {required Map<String, dynamic> body,
Function(dynamic response, int statusCode) onSuccess, required Function(dynamic response, int statusCode) onSuccess,
Function(String error, int statusCode) onFailure, required Function(String error, int statusCode) onFailure,
@required PatiantInformtion patient, required PatiantInformtion patient,
bool isExternal = false}) async { bool isExternal = false}) async {
String url = BASE_URL + endPoint; String url = BASE_URL + endPoint;

@ -5,14 +5,14 @@ class SizeConfig {
static double _blockWidth = 0; static double _blockWidth = 0;
static double _blockHeight = 0; static double _blockHeight = 0;
static double realScreenWidth; static double ? realScreenWidth;
static double realScreenHeight; static double ? realScreenHeight;
static double screenWidth; static double ? screenWidth;
static double screenHeight; static double ? screenHeight;
static double textMultiplier; static double ? textMultiplier;
static double imageSizeMultiplier; static double ? imageSizeMultiplier;
static double heightMultiplier; static double ? heightMultiplier;
static double widthMultiplier; static double ? widthMultiplier;
static bool isPortrait = true; static bool isPortrait = true;
static bool isMobilePortrait = false; static bool isMobilePortrait = false;
@ -28,7 +28,7 @@ class SizeConfig {
} }
if (orientation == Orientation.portrait) { if (orientation == Orientation.portrait) {
isPortrait = true; isPortrait = true;
if (realScreenWidth < 450) { if (realScreenWidth! < 450) {
isMobilePortrait = true; isMobilePortrait = true;
} }
// textMultiplier = _blockHeight; // textMultiplier = _blockHeight;
@ -43,8 +43,8 @@ class SizeConfig {
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;

@ -1,48 +1,48 @@
class AdmissionRequest { class AdmissionRequest {
int patientMRN; late int patientMRN;
int admitToClinic; late int? admitToClinic;
bool isPregnant; late bool? isPregnant;
int pregnancyWeeks; late int pregnancyWeeks;
int pregnancyType; late int pregnancyType;
int noOfBabies; late int noOfBabies;
int mrpDoctorID; late int? mrpDoctorID;
String admissionDate; late String? admissionDate;
int expectedDays; late int? expectedDays;
int admissionType; late int? admissionType;
int admissionLocationID; late int admissionLocationID;
int roomCategoryID; late int roomCategoryID;
int wardID; late int? wardID;
bool isSickLeaveRequired; late bool? isSickLeaveRequired;
String sickLeaveComments; late String sickLeaveComments;
bool isTransport; late bool isTransport;
String transportComments; late String transportComments;
bool isPhysioAppointmentNeeded; late bool isPhysioAppointmentNeeded;
String physioAppointmentComments; late String physioAppointmentComments;
bool isOPDFollowupAppointmentNeeded; late bool isOPDFollowupAppointmentNeeded;
String opdFollowUpComments; late String opdFollowUpComments;
bool isDietType; late bool? isDietType;
int dietType; late int? dietType;
String dietRemarks; late String? dietRemarks;
bool isPhysicalActivityModification; late bool isPhysicalActivityModification;
String physicalActivityModificationComments; late String physicalActivityModificationComments;
int orStatus; late int orStatus;
String mainLineOfTreatment; late String? mainLineOfTreatment;
int estimatedCost; late int? estimatedCost;
String elementsForImprovement; late String? elementsForImprovement;
bool isPackagePatient; late bool isPackagePatient;
String complications; late String complications;
String otherDepartmentInterventions; late String otherDepartmentInterventions;
String otherProcedures; late String otherProcedures;
String pastMedicalHistory; late String pastMedicalHistory;
String pastSurgicalHistory; late String pastSurgicalHistory;
List<dynamic> admissionRequestDiagnoses; late List<dynamic>? admissionRequestDiagnoses;
List<dynamic> admissionRequestProcedures; late List<dynamic>? admissionRequestProcedures;
int appointmentNo; late int? appointmentNo;
int episodeID; late int? episodeID;
int admissionRequestNo; late int? admissionRequestNo;
AdmissionRequest( AdmissionRequest(
{this.patientMRN, {required this.patientMRN,
this.admitToClinic, this.admitToClinic,
this.isPregnant, this.isPregnant,
this.pregnancyWeeks = 0, this.pregnancyWeeks = 0,
@ -123,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 = new List<dynamic>(); admissionRequestDiagnoses = [];
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 = new List<dynamic>(); admissionRequestProcedures = [];
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));
}); });
@ -190,7 +190,7 @@ class AdmissionRequest {
} }
if (this.admissionRequestProcedures != null) { if (this.admissionRequestProcedures != null) {
data['admissionRequestProcedures'] = data['admissionRequestProcedures'] =
this.admissionRequestProcedures.map((v) => v.toJson()).toList(); 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 {
int clinicGroupID; late int? clinicGroupID;
String clinicGroupName; late String? clinicGroupName;
int clinicID; late int? clinicID;
String clinicNameArabic; late String? clinicNameArabic;
String clinicNameEnglish; late String? clinicNameEnglish;
Clinic( Clinic(
{this.clinicGroupID, {this.clinicGroupID,
@ -29,5 +29,4 @@ class Clinic {
data['clinicNameEnglish'] = this.clinicNameEnglish; data['clinicNameEnglish'] = this.clinicNameEnglish;
return data; return data;
} }
} }

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

@ -1,14 +1,15 @@
class ActivationCodeModel { class ActivationCodeModel {
String mobileNumber; late String? mobileNumber;
String zipCode; late String? zipCode;
int channel; late int? channel;
int languageID; late int? languageID;
double versionID; late double? versionID;
int memberID; late int? memberID;
String password; late String? password;
int facilityId; late int? facilityId;
String generalid; late String? generalid;
String otpSendType; late String? otpSendType;
ActivationCodeModel( ActivationCodeModel(
{this.mobileNumber, {this.mobileNumber,
this.zipCode, this.zipCode,

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

@ -1,10 +1,10 @@
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 {
String authenticationTokenID; late String? authenticationTokenID;
List<ListDoctorsClinic> listDoctorsClinic; late List<ListDoctorsClinic>? listDoctorsClinic;
List<DoctorProfileModel> listDoctorProfile; late List<DoctorProfileModel>? listDoctorProfile;
MemberInformation memberInformation; late MemberInformation? memberInformation;
CheckActivationCodeForDoctorAppResponseModel( CheckActivationCodeForDoctorAppResponseModel(
{this.authenticationTokenID, {this.authenticationTokenID,
@ -15,16 +15,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 = new List<ListDoctorsClinic>(); 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 = new List<DoctorProfileModel>(); listDoctorProfile = [];
json['List_DoctorProfile'].forEach((v) { json['List_DoctorProfile'].forEach((v) {
listDoctorProfile.add(new DoctorProfileModel.fromJson(v)); listDoctorProfile!.add(new DoctorProfileModel.fromJson(v));
}); });
} }
@ -38,29 +38,30 @@ 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 {
Null setupID; late dynamic setupID;
int projectID; late int? projectID;
int doctorID; late int? doctorID;
int clinicID; late int? clinicID;
bool isActive; late bool? isActive;
String clinicName; late String? clinicName;
ListDoctorsClinic({this.setupID, ListDoctorsClinic(
{this.setupID,
this.projectID, this.projectID,
this.doctorID, this.doctorID,
this.clinicID, this.clinicID,
@ -89,17 +90,18 @@ class ListDoctorsClinic {
} }
class MemberInformation { class MemberInformation {
List<Clinics> clinics; late List<Clinics>? clinics;
int doctorId; late int? doctorId;
String email; late String? email;
int employeeId; late int? employeeId;
int memberId; late int? memberId;
Null memberName; late dynamic memberName;
Null memberNameArabic; late dynamic memberNameArabic;
String preferredLanguage; late String? preferredLanguage;
List<Roles> roles; late List<Roles>? roles;
MemberInformation({this.clinics, MemberInformation(
{this.clinics,
this.doctorId, this.doctorId,
this.email, this.email,
this.employeeId, this.employeeId,
@ -111,9 +113,9 @@ class MemberInformation {
MemberInformation.fromJson(Map<String, dynamic> json) { MemberInformation.fromJson(Map<String, dynamic> json) {
if (json['clinics'] != null) { if (json['clinics'] != null) {
clinics = new List<Clinics>(); 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'];
@ -124,9 +126,9 @@ class MemberInformation {
memberNameArabic = json['memberNameArabic']; memberNameArabic = json['memberNameArabic'];
preferredLanguage = json['preferredLanguage']; preferredLanguage = json['preferredLanguage'];
if (json['roles'] != null) { if (json['roles'] != null) {
roles = new List<Roles>(); roles = [];
json['roles'].forEach((v) { json['roles'].forEach((v) {
roles.add(new Roles.fromJson(v)); roles!.add(new Roles.fromJson(v));
}); });
} }
} }
@ -134,7 +136,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;
@ -144,16 +146,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 {
bool defaultClinic; late bool? defaultClinic;
int id; late int? id;
String name; late String? name;
Clinics({this.defaultClinic, this.id, this.name}); Clinics({this.defaultClinic, this.id, this.name});
@ -173,8 +175,8 @@ class Clinics {
} }
class Roles { class Roles {
String name; late String? name;
int roleId; late int? roleId;
Roles({this.name, this.roleId}); Roles({this.name, this.roleId});

@ -1,18 +1,19 @@
class CheckActivationCodeRequestModel { class CheckActivationCodeRequestModel {
String mobileNumber; late String? mobileNumber;
String zipCode; late String? zipCode;
int doctorID; late int? doctorID;
String iPAdress; late String? iPAdress;
int channel; late int? channel;
int languageID; late int? languageID;
int projectID; late int? projectID;
double versionID; late double? versionID;
String generalid; late String? generalid;
String logInTokenID; late String? logInTokenID;
String activationCode; late String? activationCode;
String vidaAuthTokenID; late String? vidaAuthTokenID;
String vidaRefreshTokenID; late String? vidaRefreshTokenID;
int oTPSendType; late int? oTPSendType;
CheckActivationCodeRequestModel( CheckActivationCodeRequestModel(
{this.mobileNumber, {this.mobileNumber,
this.zipCode, this.zipCode,

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

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

@ -1,13 +1,13 @@
class NewLoginInformationModel { class NewLoginInformationModel {
int doctorID; late int? doctorID;
List<ListMemberInformation> listMemberInformation; late List<ListMemberInformation>? listMemberInformation;
String logInTokenID; late String ?logInTokenID;
String mobileNumber; late String ?mobileNumber;
Null sELECTDeviceIMEIbyIMEIList; late dynamic sELECTDeviceIMEIbyIMEIList;
int userID; late int ?userID;
String zipCode; late String ?zipCode;
bool isActiveCode; late bool ?isActiveCode;
bool isSMSSent; late 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 = new List<ListMemberInformation>(); 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 {
Null setupID; late dynamic setupID;
int memberID; late int ? memberID;
String memberName; late String ? memberName;
Null memberNameN; late dynamic memberNameN;
String preferredLang; late String ? preferredLang;
String pIN; late String ? pIN;
String saltHash; late String ? saltHash;
int referenceID; late int ? referenceID;
int employeeID; late int ? employeeID;
int roleID; late int ? roleID;
int projectid; late 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,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,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 = new List<ApporvalDetails>(); 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 = new List<ApporvalDetails>(); 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 {
Null setupID; dynamic setupID;
Null projectID; dynamic projectID;
int approvalNo; int? approvalNo;
Null lineItemNo; dynamic lineItemNo;
Null orderType; dynamic orderType;
Null procedureID; dynamic procedureID;
Null toothNo; dynamic toothNo;
Null price; dynamic price;
Null approvedAmount; dynamic approvedAmount;
Null unapprovedPatientShare; dynamic unapprovedPatientShare;
Null waivedAmount; dynamic waivedAmount;
Null discountType; dynamic discountType;
Null discountValue; dynamic discountValue;
Null shareType; dynamic shareType;
Null patientShareTypeValue; dynamic patientShareTypeValue;
Null companyShareTypeValue; dynamic companyShareTypeValue;
Null patientShare; dynamic patientShare;
Null companyShare; dynamic companyShare;
Null deductableAmount; dynamic deductableAmount;
String disapprovedRemarks; String? disapprovedRemarks;
Null progNoteOrderNo; dynamic progNoteOrderNo;
Null progNoteLineItemNo; dynamic progNoteLineItemNo;
Null invoiceTransactionType; dynamic invoiceTransactionType;
Null invoiceNo; dynamic invoiceNo;
String procedureName; String? procedureName;
String procedureNameN; String? procedureNameN;
String status; String? status;
Null isInvoiced; dynamic 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,22 +1,22 @@
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? 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;
dynamic verifiedOnDateTime; dynamic verifiedOnDateTime;
LabResult( LabResult(
@ -87,12 +87,11 @@ class LabResult {
} }
} }
class LabResultList { class LabResultList {
String filterName = ""; String filterName = "";
List<LabResult> patientLabResultList = List(); List<LabResult> patientLabResultList = [];
LabResultList({this.filterName, LabResult lab}) { LabResultList({required this.filterName, required 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;
Null clinicDescriptionN; dynamic clinicDescriptionN;
int clinicID; int ?clinicID;
int doctorID; int ?doctorID;
String doctorImageURL; String? doctorImageURL;
String doctorName; String ?doctorName;
String doctorNameEnglish; String ?doctorNameEnglish;
Null doctorNameN; dynamic 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;
Null projectNameN; dynamic 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(); List<PatientLabOrders> patientLabOrdersList = [];
PatientLabOrdersList( PatientLabOrdersList(
{this.filterName, PatientLabOrders patientDoctorAppointment}) { {required this.filterName, required 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;
Null resultDataTxt; dynamic 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,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,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 = new List<EntityList>(); 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 = new List<Timelines>(); 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 = new List<TimeLineEvents>(); 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<Null> admissions; List<dynamic>? 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 = new List<Consulations>(); 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 = new List<LstAssessments>(); 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 = new List<LstCheifComplaint>(); 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 = new List<LstPhysicalExam>(); 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 = new List<LstProcedure>(); 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 = new List<LstMedicalHistory>(); 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});

@ -222,6 +222,7 @@ class AdmissionRequestService extends LookupService {
POST_ADMISSION_REQUEST, POST_ADMISSION_REQUEST,
onSuccess: (dynamic response, int statusCode) { onSuccess: (dynamic response, int statusCode) {
print(response["admissionResponse"]["success"]); print(response["admissionResponse"]["success"]);
AdmissionRequest admissionRequest = AdmissionRequest.fromJson(response);
}, },
onFailure: (String error, int statusCode) { onFailure: (String error, int statusCode) {
hasError = true; hasError = true;

@ -14,7 +14,7 @@ description: A new Flutter project.
version: 1.2.2+2 version: 1.2.2+2
environment: environment:
sdk: ">=2.8.0 <3.0.0" sdk: ">=2.12.0 <3.0.0"
#dependency_overrides: #dependency_overrides:

Loading…
Cancel
Save