Lab order API implemented
							parent
							
								
									a77fc49c68
								
							
						
					
					
						commit
						f5e655fd35
					
				| @ -1,126 +1,245 @@ | ||||
| class PatientLabOrdersResponseModel { | ||||
|   String? description; | ||||
|   dynamic femaleInterpretativeData; | ||||
|   int? actualDoctorRate; | ||||
|   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; | ||||
|   bool? isCertificateAllowed; | ||||
|   int? lineItemNo; | ||||
|   dynamic maleInterpretativeData; | ||||
|   dynamic notes; | ||||
|   int? orderLineItemNo; | ||||
|   int? orderNo; | ||||
|   String? packageID; | ||||
|   int? patientID; | ||||
|   String? genderDescription; | ||||
|   String? invoiceNo; | ||||
|   dynamic? invoiceNoVP; | ||||
|   String? invoiceType; | ||||
|   bool? isActiveDoctorProfile; | ||||
|   bool? isDoctorAllowVedioCall; | ||||
|   bool? isDrReviewReq; | ||||
|   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? referanceRange; | ||||
|   String? resultValue; | ||||
|   int? resultValueBasedLineItemNo; | ||||
|   String? resultValueFlag; | ||||
|   String? sampleCollectedOn; | ||||
|   String? sampleReceivedOn; | ||||
|   String? projectName; | ||||
|   dynamic? projectNameN; | ||||
|   String? qR; | ||||
|   String? setupID; | ||||
|   dynamic superVerifiedOn; | ||||
|   String? testCode; | ||||
|   String? uOM; | ||||
|   String? verifiedOn; | ||||
|   String? packageShortDescription; | ||||
|   String? testShortDescription; | ||||
|   dynamic verifiedOnDateTime; | ||||
|   num? percentage; | ||||
|   num? width; | ||||
|   num? resultTypeID; | ||||
|   List<String>? speciality; | ||||
|   int? status; | ||||
|   String? statusDesc; | ||||
|   String? strOrderDate; | ||||
|   List<TestDetails>? testDetails; | ||||
| 
 | ||||
|   PatientLabOrdersResponseModel( | ||||
|       {this.description, | ||||
|       this.femaleInterpretativeData, | ||||
|       {this.actualDoctorRate, | ||||
|       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.isCertificateAllowed, | ||||
|       this.lineItemNo, | ||||
|       this.maleInterpretativeData, | ||||
|       this.notes, | ||||
|       this.orderLineItemNo, | ||||
|       this.genderDescription, | ||||
|       this.invoiceNo, | ||||
|       this.invoiceNoVP, | ||||
|       this.invoiceType, | ||||
|       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.packageID, | ||||
|       this.orderProjectID, | ||||
|       this.patientID, | ||||
|       this.projectID, | ||||
|       this.referanceRange, | ||||
|       this.resultValue, | ||||
|       this.resultValueBasedLineItemNo, | ||||
|       this.resultValueFlag, | ||||
|       this.sampleCollectedOn, | ||||
|       this.sampleReceivedOn, | ||||
|       this.projectName, | ||||
|       this.projectNameN, | ||||
|       this.qR, | ||||
|       this.setupID, | ||||
|       this.superVerifiedOn, | ||||
|       this.testCode, | ||||
|       this.uOM, | ||||
|       this.verifiedOn, | ||||
|       this.verifiedOnDateTime}); | ||||
|       this.speciality, | ||||
|       this.status, | ||||
|       this.statusDesc, | ||||
|       this.strOrderDate, | ||||
|       this.testDetails}); | ||||
| 
 | ||||
|   PatientLabOrdersResponseModel.fromJson(Map<String, dynamic> json, {String? flag}) { | ||||
|     description = json['Description']; | ||||
|     femaleInterpretativeData = json['FemaleInterpretativeData']; | ||||
|   PatientLabOrdersResponseModel.fromJson(Map<String, dynamic> json) { | ||||
|     actualDoctorRate = json['ActualDoctorRate']; | ||||
|     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']; | ||||
|     isCertificateAllowed = json['IsCertificateAllowed']; | ||||
|     lineItemNo = json['LineItemNo']; | ||||
|     maleInterpretativeData = json['MaleInterpretativeData']; | ||||
|     notes = json['Notes']; | ||||
|     orderLineItemNo = json['OrderLineItemNo']; | ||||
|     genderDescription = json['GenderDescription']; | ||||
|     invoiceNo = json['InvoiceNo']; | ||||
|     invoiceNoVP = json['InvoiceNo_VP']; | ||||
|     invoiceType = json['InvoiceType']; | ||||
|     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']; | ||||
|     packageID = json['PackageID']; | ||||
|     orderProjectID = json['OrderProjectID']; | ||||
|     patientID = json['PatientID']; | ||||
|     projectID = json['ProjectID']; | ||||
|     referanceRange = json['ReferanceRange']; | ||||
|     resultValue = json['ResultValue']; | ||||
|     resultValueBasedLineItemNo = json['ResultValueBasedLineItemNo']; | ||||
|     resultValueFlag = json['ResultValueFlag']; | ||||
|     sampleCollectedOn = json['SampleCollectedOn']; | ||||
|     sampleReceivedOn = json['SampleReceivedOn']; | ||||
|     projectName = json['ProjectName']; | ||||
|     projectNameN = json['ProjectNameN']; | ||||
|     qR = json['QR']; | ||||
|     setupID = json['SetupID']; | ||||
|     superVerifiedOn = json['SuperVerifiedOn']; | ||||
|     testCode = json['TestCode']; | ||||
|     uOM = json['UOM']; | ||||
|     verifiedOn = json['VerifiedOn']; | ||||
|     verifiedOnDateTime = json['VerifiedOnDateTime']; | ||||
|     packageShortDescription = json['PackageShortDescription']; | ||||
|     testShortDescription = json['TestShortDescription']; | ||||
|     resultTypeID = json['ResultTypeID']; | ||||
|     speciality = json['Speciality'].cast<String>(); | ||||
|     status = json['Status']; | ||||
|     statusDesc = json['StatusDesc']; | ||||
|     strOrderDate = json['StrOrderDate']; | ||||
|     if (json['TestDetails'] != dynamic) { | ||||
|       testDetails = <TestDetails>[]; | ||||
|       json['TestDetails'].forEach((v) { | ||||
|         testDetails!.add(new TestDetails.fromJson(v)); | ||||
|       }); | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     data['Description'] = this.description; | ||||
|     data['FemaleInterpretativeData'] = this.femaleInterpretativeData; | ||||
|     data['ActualDoctorRate'] = this.actualDoctorRate; | ||||
|     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['IsCertificateAllowed'] = this.isCertificateAllowed; | ||||
|     data['LineItemNo'] = this.lineItemNo; | ||||
|     data['MaleInterpretativeData'] = this.maleInterpretativeData; | ||||
|     data['Notes'] = this.notes; | ||||
|     data['OrderLineItemNo'] = this.orderLineItemNo; | ||||
|     data['GenderDescription'] = this.genderDescription; | ||||
|     data['InvoiceNo'] = this.invoiceNo; | ||||
|     data['InvoiceNo_VP'] = this.invoiceNoVP; | ||||
|     data['InvoiceType'] = this.invoiceType; | ||||
|     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['PackageID'] = this.packageID; | ||||
|     data['OrderProjectID'] = this.orderProjectID; | ||||
|     data['PatientID'] = this.patientID; | ||||
|     data['ProjectID'] = this.projectID; | ||||
|     data['ReferanceRange'] = this.referanceRange; | ||||
|     data['ResultValue'] = this.resultValue; | ||||
|     data['ResultValueBasedLineItemNo'] = this.resultValueBasedLineItemNo; | ||||
|     data['ResultValueFlag'] = this.resultValueFlag; | ||||
|     data['SampleCollectedOn'] = this.sampleCollectedOn; | ||||
|     data['SampleReceivedOn'] = this.sampleReceivedOn; | ||||
|     data['ProjectName'] = this.projectName; | ||||
|     data['ProjectNameN'] = this.projectNameN; | ||||
|     data['QR'] = this.qR; | ||||
|     data['SetupID'] = this.setupID; | ||||
|     data['SuperVerifiedOn'] = this.superVerifiedOn; | ||||
|     data['TestCode'] = this.testCode; | ||||
|     data['UOM'] = this.uOM; | ||||
|     data['VerifiedOn'] = this.verifiedOn; | ||||
|     data['VerifiedOnDateTime'] = this.verifiedOnDateTime; | ||||
|     data['PackageShortDescription'] = this.packageShortDescription; | ||||
|     data['TestShortDescription'] = this.testShortDescription; | ||||
| 
 | ||||
|     data['Speciality'] = this.speciality; | ||||
|     data['Status'] = this.status; | ||||
|     data['StatusDesc'] = this.statusDesc; | ||||
|     data['StrOrderDate'] = this.strOrderDate; | ||||
|     if (this.testDetails != dynamic) { | ||||
|       data['TestDetails'] = this.testDetails!.map((v) => v.toJson()).toList(); | ||||
|     } | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| class TestDetails { | ||||
|   String? description; | ||||
|   String? testCode; | ||||
|   String? testID; | ||||
| 
 | ||||
|   TestDetails({this.description, this.testCode, this.testID}); | ||||
| 
 | ||||
|   bool shouldShowResultBarAndGraph() { | ||||
|     if (resultTypeID == null) return false; | ||||
|     if (resultTypeID == 6) return false; | ||||
|   TestDetails.fromJson(Map<String, dynamic> json) { | ||||
|     description = json['Description']; | ||||
|     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
	
	 Haroon Amjad
						Haroon Amjad