|
|
|
|
@ -38,8 +38,7 @@ class _AdmissionOrdersScreenState extends State<AdmissionOrdersScreen> {
|
|
|
|
|
isDischargedPatient = routeArgs['isDischargedPatient'];
|
|
|
|
|
return BaseView<PendingOrdersViewModel>(
|
|
|
|
|
onModelReady: (model) => model.getAdmissionOrders(
|
|
|
|
|
admissionNo: int.parse(patient.admissionNo),
|
|
|
|
|
patientId: patient.patientMRN),
|
|
|
|
|
admissionNo: 2014005178, patientId: patient.patientMRN),
|
|
|
|
|
builder: (_, model, w) => AppScaffold(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
|
@ -91,43 +90,12 @@ class _AdmissionOrdersScreenState extends State<AdmissionOrdersScreen> {
|
|
|
|
|
widthFactor: 0.95,
|
|
|
|
|
child: CardWithBgWidget(
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
// bgColor: model.admissionOrderList[index]
|
|
|
|
|
// .status ==
|
|
|
|
|
// 1 &&
|
|
|
|
|
// authenticationViewModel
|
|
|
|
|
// .doctorProfile.doctorID !=
|
|
|
|
|
// model
|
|
|
|
|
// .patientProgressNoteList[
|
|
|
|
|
// index]
|
|
|
|
|
// .createdBy
|
|
|
|
|
// ? Color(0xFFCC9B14)
|
|
|
|
|
// : model.patientProgressNoteList[index]
|
|
|
|
|
// .status ==
|
|
|
|
|
// 4
|
|
|
|
|
// ? Colors.red.shade700
|
|
|
|
|
// : model.patientProgressNoteList[index]
|
|
|
|
|
// .status ==
|
|
|
|
|
// 2
|
|
|
|
|
// ? Colors.green[600]
|
|
|
|
|
// : Color(0xFFCC9B14),
|
|
|
|
|
widget: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 10,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 10,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
@ -156,14 +124,14 @@ class _AdmissionOrdersScreenState extends State<AdmissionOrdersScreen> {
|
|
|
|
|
context)
|
|
|
|
|
.createdBy
|
|
|
|
|
.toString(),
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.admissionOrderList[
|
|
|
|
|
index]
|
|
|
|
|
.createdBy
|
|
|
|
|
.createdByName
|
|
|
|
|
.toString() ??
|
|
|
|
|
'',
|
|
|
|
|
fontWeight:
|
|
|
|
|
@ -181,10 +149,11 @@ class _AdmissionOrdersScreenState extends State<AdmissionOrdersScreen> {
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.procedureName
|
|
|
|
|
.toString(),
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
context)
|
|
|
|
|
.procedureName
|
|
|
|
|
.toString() +
|
|
|
|
|
": ",
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
@ -212,7 +181,7 @@ class _AdmissionOrdersScreenState extends State<AdmissionOrdersScreen> {
|
|
|
|
|
context)
|
|
|
|
|
.orderNo
|
|
|
|
|
.toString(),
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
@ -230,34 +199,6 @@ class _AdmissionOrdersScreenState extends State<AdmissionOrdersScreen> {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// Row(
|
|
|
|
|
// crossAxisAlignment:
|
|
|
|
|
// CrossAxisAlignment
|
|
|
|
|
// .start,
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(
|
|
|
|
|
// context)
|
|
|
|
|
// .createdBy
|
|
|
|
|
// .toString(),
|
|
|
|
|
// fontSize: 10,
|
|
|
|
|
// ),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: AppText(
|
|
|
|
|
// model
|
|
|
|
|
// .admissionOrderList[
|
|
|
|
|
// index]
|
|
|
|
|
// .createdBy
|
|
|
|
|
// .toString() ??
|
|
|
|
|
// '',
|
|
|
|
|
// fontWeight:
|
|
|
|
|
// FontWeight.w600,
|
|
|
|
|
// fontSize: 12,
|
|
|
|
|
// isCopyable: true,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|