|
|
|
|
@ -12,7 +12,7 @@ class PatientMedicalReportService extends BaseService {
|
|
|
|
|
Future getMedicalReportList(PatiantInformtion patient, bool isVidaPlusProject) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
Map<String, dynamic> body = Map();
|
|
|
|
|
await getDoctorProfile();
|
|
|
|
|
await getDoctorProfile(isGetProfile: true);
|
|
|
|
|
body['AdmissionNo'] = isVidaPlusProject ?patient.admissionID : patient.admissionNo;
|
|
|
|
|
body['SetupID'] = doctorProfile!.setupID;
|
|
|
|
|
body['ProjectID'] = doctorProfile!.projectID;
|
|
|
|
|
@ -92,9 +92,9 @@ class PatientMedicalReportService extends BaseService {
|
|
|
|
|
body['AdmissionNo'] = isVidaPlusProject == true? patient.admissionID ?? -1 :int.parse(patient.admissionNo!);
|
|
|
|
|
print('the admission no is ${body['AdmissionNo']}');
|
|
|
|
|
body['MedicalReportHTML'] = htmlText;
|
|
|
|
|
body['ProjectID'] = patient.projectId;
|
|
|
|
|
body['ProjectID'] = doctorProfile?.projectID;
|
|
|
|
|
body['PatientID'] = patient.patientId;
|
|
|
|
|
body['DoctorID'] = patient.doctorId;
|
|
|
|
|
body['DoctorID'] = doctorProfile?.doctorID;
|
|
|
|
|
if(isVidaPlusProject == true) {
|
|
|
|
|
body['PatientType'] = patient.patientType;
|
|
|
|
|
}
|
|
|
|
|
|