Lab order API implemented
parent
a77fc49c68
commit
f5e655fd35
@ -1,126 +1,245 @@
|
|||||||
class PatientLabOrdersResponseModel {
|
class PatientLabOrdersResponseModel {
|
||||||
String? description;
|
int? actualDoctorRate;
|
||||||
dynamic femaleInterpretativeData;
|
dynamic? admissionDate;
|
||||||
|
dynamic? admissionNumber;
|
||||||
|
dynamic? appointmentDate;
|
||||||
|
dynamic? appointmentNo;
|
||||||
|
dynamic? appointmentTime;
|
||||||
|
String? clinicDescription;
|
||||||
|
String? clinicDescriptionEnglish;
|
||||||
|
dynamic? clinicDescriptionN;
|
||||||
|
int? clinicID;
|
||||||
|
String? createdOn;
|
||||||
|
num? decimalDoctorRate;
|
||||||
|
int? doctorID;
|
||||||
|
String? doctorImageURL;
|
||||||
|
String? doctorName;
|
||||||
|
String? doctorNameEnglish;
|
||||||
|
dynamic? doctorNameN;
|
||||||
|
int? doctorRate;
|
||||||
|
num? doctorStarsRate;
|
||||||
|
String? doctorTitle;
|
||||||
int? gender;
|
int? gender;
|
||||||
bool? isCertificateAllowed;
|
String? genderDescription;
|
||||||
int? lineItemNo;
|
String? invoiceNo;
|
||||||
dynamic maleInterpretativeData;
|
dynamic? invoiceNoVP;
|
||||||
dynamic notes;
|
String? invoiceType;
|
||||||
int? orderLineItemNo;
|
bool? isActiveDoctorProfile;
|
||||||
int? orderNo;
|
bool? isDoctorAllowVedioCall;
|
||||||
String? packageID;
|
bool? isDrReviewReq;
|
||||||
int? patientID;
|
bool? isExecludeDoctor;
|
||||||
|
bool? isInOutPatient;
|
||||||
|
String? isInOutPatientDescription;
|
||||||
|
String? isInOutPatientDescriptionN;
|
||||||
|
bool? isLiveCareAppointment;
|
||||||
|
bool? isRead;
|
||||||
|
bool? isSendEmail;
|
||||||
|
String? nationalityFlagURL;
|
||||||
|
int? noOfPatientsRate;
|
||||||
|
String? orderDate;
|
||||||
|
String? orderNo;
|
||||||
|
dynamic? orderProjectID;
|
||||||
|
String? patientID;
|
||||||
String? projectID;
|
String? projectID;
|
||||||
String? referanceRange;
|
String? projectName;
|
||||||
String? resultValue;
|
dynamic? projectNameN;
|
||||||
int? resultValueBasedLineItemNo;
|
String? qR;
|
||||||
String? resultValueFlag;
|
|
||||||
String? sampleCollectedOn;
|
|
||||||
String? sampleReceivedOn;
|
|
||||||
String? setupID;
|
String? setupID;
|
||||||
dynamic superVerifiedOn;
|
List<String>? speciality;
|
||||||
String? testCode;
|
int? status;
|
||||||
String? uOM;
|
String? statusDesc;
|
||||||
String? verifiedOn;
|
String? strOrderDate;
|
||||||
String? packageShortDescription;
|
List<TestDetails>? testDetails;
|
||||||
String? testShortDescription;
|
|
||||||
dynamic verifiedOnDateTime;
|
|
||||||
num? percentage;
|
|
||||||
num? width;
|
|
||||||
num? resultTypeID;
|
|
||||||
|
|
||||||
PatientLabOrdersResponseModel(
|
PatientLabOrdersResponseModel(
|
||||||
{this.description,
|
{this.actualDoctorRate,
|
||||||
this.femaleInterpretativeData,
|
this.admissionDate,
|
||||||
|
this.admissionNumber,
|
||||||
|
this.appointmentDate,
|
||||||
|
this.appointmentNo,
|
||||||
|
this.appointmentTime,
|
||||||
|
this.clinicDescription,
|
||||||
|
this.clinicDescriptionEnglish,
|
||||||
|
this.clinicDescriptionN,
|
||||||
|
this.clinicID,
|
||||||
|
this.createdOn,
|
||||||
|
this.decimalDoctorRate,
|
||||||
|
this.doctorID,
|
||||||
|
this.doctorImageURL,
|
||||||
|
this.doctorName,
|
||||||
|
this.doctorNameEnglish,
|
||||||
|
this.doctorNameN,
|
||||||
|
this.doctorRate,
|
||||||
|
this.doctorStarsRate,
|
||||||
|
this.doctorTitle,
|
||||||
this.gender,
|
this.gender,
|
||||||
this.isCertificateAllowed,
|
this.genderDescription,
|
||||||
this.lineItemNo,
|
this.invoiceNo,
|
||||||
this.maleInterpretativeData,
|
this.invoiceNoVP,
|
||||||
this.notes,
|
this.invoiceType,
|
||||||
this.orderLineItemNo,
|
this.isActiveDoctorProfile,
|
||||||
|
this.isDoctorAllowVedioCall,
|
||||||
|
this.isDrReviewReq,
|
||||||
|
this.isExecludeDoctor,
|
||||||
|
this.isInOutPatient,
|
||||||
|
this.isInOutPatientDescription,
|
||||||
|
this.isInOutPatientDescriptionN,
|
||||||
|
this.isLiveCareAppointment,
|
||||||
|
this.isRead,
|
||||||
|
this.isSendEmail,
|
||||||
|
this.nationalityFlagURL,
|
||||||
|
this.noOfPatientsRate,
|
||||||
|
this.orderDate,
|
||||||
this.orderNo,
|
this.orderNo,
|
||||||
this.packageID,
|
this.orderProjectID,
|
||||||
this.patientID,
|
this.patientID,
|
||||||
this.projectID,
|
this.projectID,
|
||||||
this.referanceRange,
|
this.projectName,
|
||||||
this.resultValue,
|
this.projectNameN,
|
||||||
this.resultValueBasedLineItemNo,
|
this.qR,
|
||||||
this.resultValueFlag,
|
|
||||||
this.sampleCollectedOn,
|
|
||||||
this.sampleReceivedOn,
|
|
||||||
this.setupID,
|
this.setupID,
|
||||||
this.superVerifiedOn,
|
this.speciality,
|
||||||
this.testCode,
|
this.status,
|
||||||
this.uOM,
|
this.statusDesc,
|
||||||
this.verifiedOn,
|
this.strOrderDate,
|
||||||
this.verifiedOnDateTime});
|
this.testDetails});
|
||||||
|
|
||||||
PatientLabOrdersResponseModel.fromJson(Map<String, dynamic> json, {String? flag}) {
|
PatientLabOrdersResponseModel.fromJson(Map<String, dynamic> json) {
|
||||||
description = json['Description'];
|
actualDoctorRate = json['ActualDoctorRate'];
|
||||||
femaleInterpretativeData = json['FemaleInterpretativeData'];
|
admissionDate = json['AdmissionDate'];
|
||||||
|
admissionNumber = json['AdmissionNumber'];
|
||||||
|
appointmentDate = json['AppointmentDate'];
|
||||||
|
appointmentNo = json['AppointmentNo'];
|
||||||
|
appointmentTime = json['AppointmentTime'];
|
||||||
|
clinicDescription = json['ClinicDescription'];
|
||||||
|
clinicDescriptionEnglish = json['ClinicDescriptionEnglish'];
|
||||||
|
clinicDescriptionN = json['ClinicDescriptionN'];
|
||||||
|
clinicID = json['ClinicID'];
|
||||||
|
createdOn = json['CreatedOn'];
|
||||||
|
decimalDoctorRate = json['DecimalDoctorRate'];
|
||||||
|
doctorID = json['DoctorID'];
|
||||||
|
doctorImageURL = json['DoctorImageURL'];
|
||||||
|
doctorName = json['DoctorName'];
|
||||||
|
doctorNameEnglish = json['DoctorNameEnglish'];
|
||||||
|
doctorNameN = json['DoctorNameN'];
|
||||||
|
doctorRate = json['DoctorRate'];
|
||||||
|
doctorStarsRate = json['DoctorStarsRate'];
|
||||||
|
doctorTitle = json['DoctorTitle'];
|
||||||
gender = json['Gender'];
|
gender = json['Gender'];
|
||||||
isCertificateAllowed = json['IsCertificateAllowed'];
|
genderDescription = json['GenderDescription'];
|
||||||
lineItemNo = json['LineItemNo'];
|
invoiceNo = json['InvoiceNo'];
|
||||||
maleInterpretativeData = json['MaleInterpretativeData'];
|
invoiceNoVP = json['InvoiceNo_VP'];
|
||||||
notes = json['Notes'];
|
invoiceType = json['InvoiceType'];
|
||||||
orderLineItemNo = json['OrderLineItemNo'];
|
isActiveDoctorProfile = json['IsActiveDoctorProfile'];
|
||||||
|
isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
|
||||||
|
isDrReviewReq = json['IsDrReviewReq'];
|
||||||
|
isExecludeDoctor = json['IsExecludeDoctor'];
|
||||||
|
isInOutPatient = json['IsInOutPatient'];
|
||||||
|
isInOutPatientDescription = json['IsInOutPatientDescription'];
|
||||||
|
isInOutPatientDescriptionN = json['IsInOutPatientDescriptionN'];
|
||||||
|
isLiveCareAppointment = json['IsLiveCareAppointment'];
|
||||||
|
isRead = json['IsRead'];
|
||||||
|
isSendEmail = json['IsSendEmail'];
|
||||||
|
nationalityFlagURL = json['NationalityFlagURL'];
|
||||||
|
noOfPatientsRate = json['NoOfPatientsRate'];
|
||||||
|
orderDate = json['OrderDate'];
|
||||||
orderNo = json['OrderNo'];
|
orderNo = json['OrderNo'];
|
||||||
packageID = json['PackageID'];
|
orderProjectID = json['OrderProjectID'];
|
||||||
patientID = json['PatientID'];
|
patientID = json['PatientID'];
|
||||||
projectID = json['ProjectID'];
|
projectID = json['ProjectID'];
|
||||||
referanceRange = json['ReferanceRange'];
|
projectName = json['ProjectName'];
|
||||||
resultValue = json['ResultValue'];
|
projectNameN = json['ProjectNameN'];
|
||||||
resultValueBasedLineItemNo = json['ResultValueBasedLineItemNo'];
|
qR = json['QR'];
|
||||||
resultValueFlag = json['ResultValueFlag'];
|
|
||||||
sampleCollectedOn = json['SampleCollectedOn'];
|
|
||||||
sampleReceivedOn = json['SampleReceivedOn'];
|
|
||||||
setupID = json['SetupID'];
|
setupID = json['SetupID'];
|
||||||
superVerifiedOn = json['SuperVerifiedOn'];
|
speciality = json['Speciality'].cast<String>();
|
||||||
testCode = json['TestCode'];
|
status = json['Status'];
|
||||||
uOM = json['UOM'];
|
statusDesc = json['StatusDesc'];
|
||||||
verifiedOn = json['VerifiedOn'];
|
strOrderDate = json['StrOrderDate'];
|
||||||
verifiedOnDateTime = json['VerifiedOnDateTime'];
|
if (json['TestDetails'] != dynamic) {
|
||||||
packageShortDescription = json['PackageShortDescription'];
|
testDetails = <TestDetails>[];
|
||||||
testShortDescription = json['TestShortDescription'];
|
json['TestDetails'].forEach((v) {
|
||||||
resultTypeID = json['ResultTypeID'];
|
testDetails!.add(new TestDetails.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
data['Description'] = this.description;
|
data['ActualDoctorRate'] = this.actualDoctorRate;
|
||||||
data['FemaleInterpretativeData'] = this.femaleInterpretativeData;
|
data['AdmissionDate'] = this.admissionDate;
|
||||||
|
data['AdmissionNumber'] = this.admissionNumber;
|
||||||
|
data['AppointmentDate'] = this.appointmentDate;
|
||||||
|
data['AppointmentNo'] = this.appointmentNo;
|
||||||
|
data['AppointmentTime'] = this.appointmentTime;
|
||||||
|
data['ClinicDescription'] = this.clinicDescription;
|
||||||
|
data['ClinicDescriptionEnglish'] = this.clinicDescriptionEnglish;
|
||||||
|
data['ClinicDescriptionN'] = this.clinicDescriptionN;
|
||||||
|
data['ClinicID'] = this.clinicID;
|
||||||
|
data['CreatedOn'] = this.createdOn;
|
||||||
|
data['DecimalDoctorRate'] = this.decimalDoctorRate;
|
||||||
|
data['DoctorID'] = this.doctorID;
|
||||||
|
data['DoctorImageURL'] = this.doctorImageURL;
|
||||||
|
data['DoctorName'] = this.doctorName;
|
||||||
|
data['DoctorNameEnglish'] = this.doctorNameEnglish;
|
||||||
|
data['DoctorNameN'] = this.doctorNameN;
|
||||||
|
data['DoctorRate'] = this.doctorRate;
|
||||||
|
data['DoctorStarsRate'] = this.doctorStarsRate;
|
||||||
|
data['DoctorTitle'] = this.doctorTitle;
|
||||||
data['Gender'] = this.gender;
|
data['Gender'] = this.gender;
|
||||||
data['IsCertificateAllowed'] = this.isCertificateAllowed;
|
data['GenderDescription'] = this.genderDescription;
|
||||||
data['LineItemNo'] = this.lineItemNo;
|
data['InvoiceNo'] = this.invoiceNo;
|
||||||
data['MaleInterpretativeData'] = this.maleInterpretativeData;
|
data['InvoiceNo_VP'] = this.invoiceNoVP;
|
||||||
data['Notes'] = this.notes;
|
data['InvoiceType'] = this.invoiceType;
|
||||||
data['OrderLineItemNo'] = this.orderLineItemNo;
|
data['IsActiveDoctorProfile'] = this.isActiveDoctorProfile;
|
||||||
|
data['IsDoctorAllowVedioCall'] = this.isDoctorAllowVedioCall;
|
||||||
|
data['IsDrReviewReq'] = this.isDrReviewReq;
|
||||||
|
data['IsExecludeDoctor'] = this.isExecludeDoctor;
|
||||||
|
data['IsInOutPatient'] = this.isInOutPatient;
|
||||||
|
data['IsInOutPatientDescription'] = this.isInOutPatientDescription;
|
||||||
|
data['IsInOutPatientDescriptionN'] = this.isInOutPatientDescriptionN;
|
||||||
|
data['IsLiveCareAppointment'] = this.isLiveCareAppointment;
|
||||||
|
data['IsRead'] = this.isRead;
|
||||||
|
data['IsSendEmail'] = this.isSendEmail;
|
||||||
|
data['NationalityFlagURL'] = this.nationalityFlagURL;
|
||||||
|
data['NoOfPatientsRate'] = this.noOfPatientsRate;
|
||||||
|
data['OrderDate'] = this.orderDate;
|
||||||
data['OrderNo'] = this.orderNo;
|
data['OrderNo'] = this.orderNo;
|
||||||
data['PackageID'] = this.packageID;
|
data['OrderProjectID'] = this.orderProjectID;
|
||||||
data['PatientID'] = this.patientID;
|
data['PatientID'] = this.patientID;
|
||||||
data['ProjectID'] = this.projectID;
|
data['ProjectID'] = this.projectID;
|
||||||
data['ReferanceRange'] = this.referanceRange;
|
data['ProjectName'] = this.projectName;
|
||||||
data['ResultValue'] = this.resultValue;
|
data['ProjectNameN'] = this.projectNameN;
|
||||||
data['ResultValueBasedLineItemNo'] = this.resultValueBasedLineItemNo;
|
data['QR'] = this.qR;
|
||||||
data['ResultValueFlag'] = this.resultValueFlag;
|
|
||||||
data['SampleCollectedOn'] = this.sampleCollectedOn;
|
|
||||||
data['SampleReceivedOn'] = this.sampleReceivedOn;
|
|
||||||
data['SetupID'] = this.setupID;
|
data['SetupID'] = this.setupID;
|
||||||
data['SuperVerifiedOn'] = this.superVerifiedOn;
|
data['Speciality'] = this.speciality;
|
||||||
data['TestCode'] = this.testCode;
|
data['Status'] = this.status;
|
||||||
data['UOM'] = this.uOM;
|
data['StatusDesc'] = this.statusDesc;
|
||||||
data['VerifiedOn'] = this.verifiedOn;
|
data['StrOrderDate'] = this.strOrderDate;
|
||||||
data['VerifiedOnDateTime'] = this.verifiedOnDateTime;
|
if (this.testDetails != dynamic) {
|
||||||
data['PackageShortDescription'] = this.packageShortDescription;
|
data['TestDetails'] = this.testDetails!.map((v) => v.toJson()).toList();
|
||||||
data['TestShortDescription'] = this.testShortDescription;
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class TestDetails {
|
||||||
|
String? description;
|
||||||
|
String? testCode;
|
||||||
|
String? testID;
|
||||||
|
|
||||||
|
TestDetails({this.description, this.testCode, this.testID});
|
||||||
|
|
||||||
bool shouldShowResultBarAndGraph() {
|
TestDetails.fromJson(Map<String, dynamic> json) {
|
||||||
if (resultTypeID == null) return false;
|
description = json['Description'];
|
||||||
if (resultTypeID == 6) return false;
|
testCode = json['TestCode'];
|
||||||
|
testID = json['TestID'];
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['Description'] = this.description;
|
||||||
|
data['TestCode'] = this.testCode;
|
||||||
|
data['TestID'] = this.testID;
|
||||||
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue