|
|
|
|
@ -31,7 +31,8 @@ class RadiologyHomePage extends StatelessWidget {
|
|
|
|
|
bool isInpatient = routeArgs['isInpatient'];
|
|
|
|
|
|
|
|
|
|
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(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
backgroundColor: Colors.grey[100],
|
|
|
|
|
@ -47,27 +48,29 @@ class RadiologyHomePage extends StatelessWidget {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12,
|
|
|
|
|
),
|
|
|
|
|
if(model.radiologyList.isNotEmpty && patient.patientStatusType != 43)
|
|
|
|
|
if (model.radiologyList.isNotEmpty &&
|
|
|
|
|
patient.patientStatusType != 43)
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Radiology',
|
|
|
|
|
style: "caption2",
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
'Result',
|
|
|
|
|
bold: true,
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Radiology',
|
|
|
|
|
style: "caption2",
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
'Result',
|
|
|
|
|
bold: true,
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if(patient.patientStatusType == 43)
|
|
|
|
|
if (patient.patientStatusType != null &&
|
|
|
|
|
patient.patientStatusType == 43)
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -87,19 +90,21 @@ class RadiologyHomePage extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (patientType != null &&
|
|
|
|
|
patientType == '7' &&
|
|
|
|
|
if (patient.patientStatusType != null &&
|
|
|
|
|
patient.patientStatusType == 43)
|
|
|
|
|
AddNewOrder( onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => AddSelectedRadiologyOrder(
|
|
|
|
|
patient: patient,
|
|
|
|
|
model: model,
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
},label: 'Apply for Radiology Order',),
|
|
|
|
|
AddNewOrder(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => AddSelectedRadiologyOrder(
|
|
|
|
|
patient: patient,
|
|
|
|
|
model: model,
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
label: 'Apply for Radiology Order',
|
|
|
|
|
),
|
|
|
|
|
...List.generate(
|
|
|
|
|
model.radiologyList.length,
|
|
|
|
|
(index) => InkWell(
|
|
|
|
|
@ -112,27 +117,31 @@ class RadiologyHomePage extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: DoctorCard(
|
|
|
|
|
child: DoctorCard(
|
|
|
|
|
doctorName: model.radiologyList[index].doctorName,
|
|
|
|
|
profileUrl: model.radiologyList[index].doctorImageURL,
|
|
|
|
|
invoiceNO: '${model.radiologyList[index].invoiceNo}',
|
|
|
|
|
branch: '${model.radiologyList[index].projectName}',
|
|
|
|
|
clinic: model.radiologyList[index].clinicDescription,
|
|
|
|
|
appointmentDate: model.radiologyList[index].orderDate ?? model.radiologyList[index].reportData,
|
|
|
|
|
),
|
|
|
|
|
)),
|
|
|
|
|
if(model.radiologyList.isEmpty && patient.patientStatusType != 43)
|
|
|
|
|
appointmentDate:
|
|
|
|
|
model.radiologyList[index].orderDate ??
|
|
|
|
|
model.radiologyList[index].reportData,
|
|
|
|
|
),
|
|
|
|
|
)),
|
|
|
|
|
if (model.radiologyList.isEmpty &&
|
|
|
|
|
patient.patientStatusType != 43)
|
|
|
|
|
Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: 100,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 100,
|
|
|
|
|
),
|
|
|
|
|
Image.asset('assets/images/no-data.png'),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: AppText('No Radiology Found'),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
|