|
|
|
|
@ -99,19 +99,23 @@ class PatientMedicalReportService extends BaseService {
|
|
|
|
|
}, body: body, patient: patient);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future updateMedicalReport(PatiantInformtion patient, String htmlText) async {
|
|
|
|
|
Future updateMedicalReport(PatiantInformtion patient, String htmlText, int limitNumber, String invoiceNumber) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
Map<String, dynamic> body = Map();
|
|
|
|
|
// body['TokenID'] = "@dm!n";
|
|
|
|
|
|
|
|
|
|
body['LineItemNo'] = limitNumber;
|
|
|
|
|
body['InvoiceNo'] = invoiceNumber;
|
|
|
|
|
|
|
|
|
|
body['SetupID'] = "91877";
|
|
|
|
|
body['AdmissionNo'] = int.parse(patient.admissionNo);
|
|
|
|
|
//body['AdmissionNo'] = int.parse(patient.admissionNo);
|
|
|
|
|
body['MedicalReportHTML'] = htmlText;
|
|
|
|
|
if (body['ProjectID'] == null) {
|
|
|
|
|
body['ProjectID'] = doctorProfile?.projectID;
|
|
|
|
|
}
|
|
|
|
|
if (body['DoctorID'] == null) body['DoctorID'] = doctorProfile?.doctorID;
|
|
|
|
|
|
|
|
|
|
await baseAppClient.postPatient(INSERT_MEDICAL_REPORT, onSuccess: (dynamic response, int statusCode) {},
|
|
|
|
|
await baseAppClient.postPatient(UPDATE_MEDICAL_REPORT, onSuccess: (dynamic response, int statusCode) {},
|
|
|
|
|
onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
super.error = error.toString();
|
|
|
|
|
|