medical report fix

merge-requests/770/head
hussam al-habibeh 4 years ago
parent 1a735dca62
commit 158bea519e

@ -17,7 +17,7 @@ class PatientMedicalReportService extends BaseService {
body['ProjectID'] = doctorProfile.projectID;
await baseAppClient.postPatient(PATIENT_MEDICAL_REPORT_GET_LIST, onSuccess: (dynamic response, int statusCode) {
medicalReportList.clear();
medicalReportList = [];
if (response['DAPP_ListMedicalReportList'] != null) {
response['DAPP_ListMedicalReportList'].forEach((v) {
medicalReportList.add(MedicalReportModel.fromJson(v));

@ -43,7 +43,9 @@ class _AddVerifyMedicalReportState extends State<AddVerifyMedicalReport> {
String txtOfMedicalReport;
return BaseView<PatientMedicalReportViewModel>(
onModelReady: (model) async {},
onModelReady: (model) async {
model.getMedicalReportTemplate();
},
builder: (_, model, w) => AppScaffold(
baseViewModel: model,
isShowAppBar: true,

Loading…
Cancel
Save