|
|
|
|
@ -20,26 +20,59 @@ class PatientTicketModel {
|
|
|
|
|
late bool isQueue;
|
|
|
|
|
late bool isToneReq;
|
|
|
|
|
late bool isVoiceReq;
|
|
|
|
|
late int voiceLanguage;
|
|
|
|
|
late String voiceLanguageText;
|
|
|
|
|
late String ticketNoText;
|
|
|
|
|
late String vitalSignText;
|
|
|
|
|
late String doctorText;
|
|
|
|
|
late String procedureText;
|
|
|
|
|
late String vaccinationText;
|
|
|
|
|
late String nebulizationText;
|
|
|
|
|
late String callForVitalSignText;
|
|
|
|
|
late String callForDoctorText;
|
|
|
|
|
late String callForProcedureText;
|
|
|
|
|
late String callForVaccinationText;
|
|
|
|
|
late String callForNebulizationText;
|
|
|
|
|
late String roomText;
|
|
|
|
|
late String queueNoText;
|
|
|
|
|
late String callForText;
|
|
|
|
|
late bool callUpdated = false;
|
|
|
|
|
|
|
|
|
|
PatientTicketModel(
|
|
|
|
|
{this.id = 0,
|
|
|
|
|
this.patientID = 0,
|
|
|
|
|
this.mobileNo = "",
|
|
|
|
|
this.doctorName = "",
|
|
|
|
|
this.doctorNameN = "",
|
|
|
|
|
this.patientGender = 1,
|
|
|
|
|
this.callType = 1,
|
|
|
|
|
this.editedOnTimeStamp = 0,
|
|
|
|
|
this.roomNo = "",
|
|
|
|
|
this.createdOn = "",
|
|
|
|
|
this.editedOn = "",
|
|
|
|
|
this.queueNo = "",
|
|
|
|
|
this.callNoStr = "",
|
|
|
|
|
this.isQueue = false,
|
|
|
|
|
this.isToneReq = false,
|
|
|
|
|
this.isVoiceReq = false,
|
|
|
|
|
this.concurrentCallDelaySec = 1});
|
|
|
|
|
PatientTicketModel({
|
|
|
|
|
this.id = 0,
|
|
|
|
|
this.patientID = 0,
|
|
|
|
|
this.mobileNo = "",
|
|
|
|
|
this.doctorName = "",
|
|
|
|
|
this.doctorNameN = "",
|
|
|
|
|
this.patientGender = 1,
|
|
|
|
|
this.callType = 1,
|
|
|
|
|
this.editedOnTimeStamp = 0,
|
|
|
|
|
this.roomNo = "",
|
|
|
|
|
this.createdOn = "",
|
|
|
|
|
this.editedOn = "",
|
|
|
|
|
this.queueNo = "",
|
|
|
|
|
this.callNoStr = "",
|
|
|
|
|
this.isQueue = false,
|
|
|
|
|
this.isToneReq = false,
|
|
|
|
|
this.isVoiceReq = false,
|
|
|
|
|
this.concurrentCallDelaySec = 1,
|
|
|
|
|
this.voiceLanguage = 1,
|
|
|
|
|
this.voiceLanguageText = "English",
|
|
|
|
|
this.ticketNoText = "Ticket Number",
|
|
|
|
|
this.vitalSignText = "VitalSign",
|
|
|
|
|
this.doctorText = "Doctor",
|
|
|
|
|
this.procedureText = "Procedure",
|
|
|
|
|
this.vaccinationText = "Vaccination",
|
|
|
|
|
this.nebulizationText = "Nebulization",
|
|
|
|
|
this.callForVitalSignText = "Call For VitalSign",
|
|
|
|
|
this.callForDoctorText = "Call For Doctor",
|
|
|
|
|
this.callForProcedureText = "Call For Procedure",
|
|
|
|
|
this.callForVaccinationText = "Call For Vaccination",
|
|
|
|
|
this.callForNebulizationText = "Call For Nebulization",
|
|
|
|
|
this.roomText = "Room",
|
|
|
|
|
this.queueNoText = "Queue No",
|
|
|
|
|
this.callForText = "Call For",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
int getRandomNum() {
|
|
|
|
|
return Random().nextInt(9);
|
|
|
|
|
@ -62,9 +95,41 @@ class PatientTicketModel {
|
|
|
|
|
isQueue = json['isQueue'];
|
|
|
|
|
isToneReq = json['isToneReq'];
|
|
|
|
|
isVoiceReq = json['isVoiceReq'];
|
|
|
|
|
concurrentCallDelaySec = json['concurrentCallDelaySec'];
|
|
|
|
|
voiceLanguage = json['voiceLanguage'];
|
|
|
|
|
voiceLanguageText = json['voiceLanguageText'] ?? "English";
|
|
|
|
|
ticketNoText = json['ticketNoText'];
|
|
|
|
|
vitalSignText = json['vitalSignText'];
|
|
|
|
|
doctorText = json['doctorText'];
|
|
|
|
|
procedureText = json['procedureText'];
|
|
|
|
|
vaccinationText = json['vaccinationText'];
|
|
|
|
|
nebulizationText = json['nebulizationText'];
|
|
|
|
|
callForVitalSignText = json['callForVitalSignText'];
|
|
|
|
|
callForDoctorText = json['callForDoctorText'];
|
|
|
|
|
callForProcedureText = json['callForProcedureText'];
|
|
|
|
|
callForVaccinationText = json['callForVaccinationText'];
|
|
|
|
|
callForNebulizationText = json['callForNebulizationText'];
|
|
|
|
|
roomText = json['roomText'];
|
|
|
|
|
queueNoText = json['queueNoText'];
|
|
|
|
|
callForText = json['callForText'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// "voiceLanguage": 1,
|
|
|
|
|
// "voiceLanguageText": null,
|
|
|
|
|
// "ticketNoText": "Ticket Number",
|
|
|
|
|
// "vitalSignText": "VitalSign",
|
|
|
|
|
// "doctorText": "Doctor",
|
|
|
|
|
// "procedureText": "Procedure",
|
|
|
|
|
// "vaccinationText": "Vaccination",
|
|
|
|
|
// "nebulizationText": "Nebulization",
|
|
|
|
|
// "callForVitalSignText": "Call For VitalSign",
|
|
|
|
|
// "callForDoctorText": "Call For Doctor",
|
|
|
|
|
// "callForProcedureText": "Call For Procedure",
|
|
|
|
|
// "callForVaccinationText": "Call For Vaccination",
|
|
|
|
|
// "callForNebulizationText": "Call For Nebulization",
|
|
|
|
|
// "roomText": "Room",
|
|
|
|
|
// "queueNoText": "Queue No",
|
|
|
|
|
// "callForText": "Call For"
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
|