|
|
|
@ -31,7 +31,8 @@ class RadiologyHomePage extends StatelessWidget {
|
|
|
|
bool isInpatient = routeArgs['isInpatient'];
|
|
|
|
bool isInpatient = routeArgs['isInpatient'];
|
|
|
|
|
|
|
|
|
|
|
|
return BaseView<ProcedureViewModel>(
|
|
|
|
return BaseView<ProcedureViewModel>(
|
|
|
|
onModelReady: (model) => model.getPatientRadOrders(patient,patientType: patientType, isInPatient: isInpatient),
|
|
|
|
onModelReady: (model) =>
|
|
|
|
|
|
|
|
model.getPatientRadOrders(patient, patientType: patientType, isInPatient: isInpatient),
|
|
|
|
builder: (_, model, widget) => AppScaffold(
|
|
|
|
builder: (_, model, widget) => AppScaffold(
|
|
|
|
isShowAppBar: true,
|
|
|
|
isShowAppBar: true,
|
|
|
|
backgroundColor: Colors.grey[100],
|
|
|
|
backgroundColor: Colors.grey[100],
|
|
|
|
@ -47,7 +48,8 @@ class RadiologyHomePage extends StatelessWidget {
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 12,
|
|
|
|
height: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if(model.radiologyList.isNotEmpty && patient.patientStatusType != 43)
|
|
|
|
if (model.radiologyList.isNotEmpty &&
|
|
|
|
|
|
|
|
patient.patientStatusType != 43)
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -67,7 +69,8 @@ class RadiologyHomePage extends StatelessWidget {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if(patient.patientStatusType == 43)
|
|
|
|
if (patient.patientStatusType != null &&
|
|
|
|
|
|
|
|
patient.patientStatusType == 43)
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -87,10 +90,10 @@ class RadiologyHomePage extends StatelessWidget {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (patientType != null &&
|
|
|
|
if (patient.patientStatusType != null &&
|
|
|
|
patientType == '7' &&
|
|
|
|
|
|
|
|
patient.patientStatusType == 43)
|
|
|
|
patient.patientStatusType == 43)
|
|
|
|
AddNewOrder( onTap: () {
|
|
|
|
AddNewOrder(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
MaterialPageRoute(
|
|
|
|
@ -99,7 +102,9 @@ class RadiologyHomePage extends StatelessWidget {
|
|
|
|
model: model,
|
|
|
|
model: model,
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},label: 'Apply for Radiology Order',),
|
|
|
|
},
|
|
|
|
|
|
|
|
label: 'Apply for Radiology Order',
|
|
|
|
|
|
|
|
),
|
|
|
|
...List.generate(
|
|
|
|
...List.generate(
|
|
|
|
model.radiologyList.length,
|
|
|
|
model.radiologyList.length,
|
|
|
|
(index) => InkWell(
|
|
|
|
(index) => InkWell(
|
|
|
|
@ -118,21 +123,25 @@ class RadiologyHomePage extends StatelessWidget {
|
|
|
|
invoiceNO: '${model.radiologyList[index].invoiceNo}',
|
|
|
|
invoiceNO: '${model.radiologyList[index].invoiceNo}',
|
|
|
|
branch: '${model.radiologyList[index].projectName}',
|
|
|
|
branch: '${model.radiologyList[index].projectName}',
|
|
|
|
clinic: model.radiologyList[index].clinicDescription,
|
|
|
|
clinic: model.radiologyList[index].clinicDescription,
|
|
|
|
appointmentDate: model.radiologyList[index].orderDate ?? model.radiologyList[index].reportData,
|
|
|
|
appointmentDate:
|
|
|
|
|
|
|
|
model.radiologyList[index].orderDate ??
|
|
|
|
|
|
|
|
model.radiologyList[index].reportData,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
if(model.radiologyList.isEmpty && patient.patientStatusType != 43)
|
|
|
|
if (model.radiologyList.isEmpty &&
|
|
|
|
|
|
|
|
patient.patientStatusType != 43)
|
|
|
|
Center(
|
|
|
|
Center(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
SizedBox(height: 100,),
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 100,
|
|
|
|
|
|
|
|
),
|
|
|
|
Image.asset('assets/images/no-data.png'),
|
|
|
|
Image.asset('assets/images/no-data.png'),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
child: AppText('No Radiology Found'),
|
|
|
|
child: AppText('No Radiology Found'),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|